/* Credits-specific presentation. Shared homepage styles remain untouched. */
.credits-page { --credit-rule: #464735; --credit-secondary: #bdbca5; }
.credits-page .credits-hero { padding: 178px 0 66px; border-bottom: 1px solid var(--credit-rule); }
.credits-page .credits-background { background: linear-gradient(90deg, rgb(0 0 0 / .94), rgb(0 0 0 / .64) 54%, rgb(0 0 0 / .32)), linear-gradient(0deg, var(--ink), transparent 90%), url('../images/level-zero-pillar.png') 35% 44% / cover; }
.credits-page .credits-heading { position: relative; }
.credits-page .credits-heading .eyebrow { color: #d2d0b8; margin-bottom: 22px; }
.credits-page .credits-heading h1 { font-size: clamp(4.5rem, 10vw, 8.5rem); letter-spacing: -.065em; line-height: .98; }
.credits-lede { font-size: clamp(1.2rem, 2vw, 1.6rem); max-width: 480px; margin-top: 28px; color: #e0ddc6; line-height: 1.55; }
.credits-kicker { display: flex; align-items: center; gap: 12px; }
.credits-kicker::before { content: ''; height: 1px; width: 32px; background: var(--light); }
.credits-subnav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 27px; padding-bottom: 27px; border-bottom: 1px solid var(--credit-rule); }
.credits-subnav > p { color: var(--credit-secondary); }
.credits-subnav nav { display: flex; gap: 30px; flex-wrap: wrap; }
.credits-subnav a { display: inline-flex; gap: 12px; align-items: center; padding-block: 8px; text-decoration: none; font-size: .875rem; color: var(--cream); }
.credits-subnav a span { color: var(--light); font-family: var(--mono); }
.credits-subnav a:hover { color: var(--light); text-decoration: underline; }
.credits-roster { max-width: 1440px; padding-top: 52px; padding-bottom: 72px; }
.credits-section-label { color: var(--credit-secondary); margin-bottom: 14px; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.credit-profile { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(32px, 6vw, 88px); padding-block: 46px; border-bottom: 1px solid var(--credit-rule); scroll-margin-top: 30px; }
.credit-profile:last-child { border-bottom: 0; padding-bottom: 0; }
.credit-photo { grid-column: 1; grid-row: 1 / 3; align-self: start; margin: 0; min-width: 0; }
.credit-photo-frame { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 5; background: #000000; border: 1px solid #575841; padding: 10px; box-shadow: 10px 10px 0 #000000; position: relative; }
.credit-photo-frame::before, .credit-photo-frame::after { content: ''; position: absolute; width: 19px; height: 19px; pointer-events: none; border-color: var(--light); }
.credit-photo-frame::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.credit-photo-frame::after { bottom: -1px; right: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.credit-photo img { width: 100%; height: 100%; object-fit: contain; }
.credit-photo figcaption { margin-top: 24px; display: flex; justify-content: space-between; color: var(--credit-secondary); font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.credit-profile-heading { grid-column: 2; min-width: 0; }
.credit-focus { color: var(--credit-secondary); font-size: .7rem; line-height: 1.7; letter-spacing: .12em; }
.credit-profile h3 { font-size: clamp(2.2rem, 4.6vw, 4.25rem); line-height: 1.12; font-weight: 400; letter-spacing: -.045em; overflow-wrap: anywhere; margin: 15px 0 0; }
.credit-lead { margin-top: 13px; color: var(--light); font-size: 1.1rem; line-height: 1.6; }
.credit-contribution { grid-column: 2; margin-top: 25px; min-width: 0; }
.credit-summary { color: var(--credit-secondary); line-height: 1.8; max-width: 600px; font-size: 1rem; }
.credit-responsibilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin: 28px 0 0; gap: 20px 28px; }
.credit-responsibilities > div { border-top: 1px solid var(--credit-rule); padding-top: 14px; }
.credit-responsibilities dt { color: var(--cream); font-size: .9rem; font-weight: 400; line-height: 1.5; }
.credit-responsibilities dd { color: var(--credit-secondary); font-size: .8rem; line-height: 1.7; margin: 5px 0 0; }
.credits-finale { padding-block: 48px 64px; }
.credits-finale-inner { border-top: 1px solid var(--credit-rule); padding-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.credits-finale .eyebrow { color: var(--credit-secondary); margin-bottom: 12px; }
.credits-finale h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.12; max-width: 540px; }
.credits-finale-links { display: flex; flex-direction: column; align-items: center; gap: 18px; flex-shrink: 0; }
.credits-finale-links > a:last-child { color: var(--credit-secondary); font-size: .85rem; padding: 6px 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body[data-motion='on'] .credit-photo-frame { transition: border-color 300ms, box-shadow 300ms; }
  body[data-motion='on'] .credit-profile:hover .credit-photo-frame { border-color: var(--light); box-shadow: 10px 10px 0 #26281a; }
}
@media (max-width: 900px) {
  .credit-profile { grid-template-columns: 190px minmax(0, 1fr); column-gap: 36px; }
  .credits-page .credits-hero { padding-top: 152px; padding-bottom: 50px; }
}
@media (max-width: 600px) {
  .credits-page .credits-hero { padding-top: 140px; padding-bottom: 40px; }
  .credits-page .credits-heading h1 { font-size: clamp(4rem, 19vw, 6.5rem); }
  .credits-lede { font-size: 1.125rem; margin-top: 22px; }
  .credits-subnav { flex-direction: column; align-items: start; gap: 7px; padding-block: 18px; }
  .credits-subnav nav { gap: 28px; }
  .credits-roster { padding-top: 34px; padding-bottom: 40px; }
  .credit-profile { grid-template-columns: 100px minmax(0, 1fr); column-gap: 23px; padding-block: 32px; align-items: start; }
  .credit-photo { grid-row: 1; }
  .credit-photo-frame { padding: 5px; box-shadow: 5px 5px 0 #000000; }
  .credit-photo figcaption { font-size: .6rem; margin-top: 14px; }
  .credit-photo figcaption > span:last-child { display: none; }
  .credit-profile h3 { font-size: clamp(1.7rem, 7.5vw, 2.6rem); margin-top: 8px; }
  .credit-focus { font-size: .6rem; letter-spacing: .06em; }
  .credit-lead { font-size: .9rem; margin-top: 10px; }
  .credit-contribution { grid-column: 1 / -1; margin-top: 26px; }
  .credit-summary { font-size: .95rem; }
  .credit-responsibilities { gap: 18px; margin-top: 22px; }
  .credits-finale { padding-block: 20px 56px; }
  .credits-finale-inner { flex-direction: column; align-items: start; }
  .credits-finale-links { width: 100%; align-items: stretch; text-align: center; }
}
@media (max-width: 360px) {
  .credit-profile { grid-template-columns: 84px minmax(0, 1fr); column-gap: 18px; }
  .credit-responsibilities { grid-template-columns: 1fr; gap: 16px; }
}
@media print {
  .credits-subnav, .credits-finale-links { display: none; }
  .credit-profile { break-inside: avoid; }
}

/* Preserve Mariikyu’s supplied Unicode name in headings, links and captions. */
.credits-page .dev-display-name { font-family: "Segoe UI", "DejaVu Sans", Arial, sans-serif; text-transform: none; letter-spacing: 0; }

/* Personal name colors and verified social destinations. */
.credits-page .name-royoshi { color: #7dff65; text-shadow: 0 0 14px rgb(90 255 65 / .32), 0 0 32px rgb(90 255 65 / .12); }
.credits-page .name-mariikyu { color: #d28aff; text-shadow: 0 0 14px rgb(187 72 255 / .38), 0 0 32px rgb(187 72 255 / .14); }
.credit-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.credit-socials a { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; border: 1px solid var(--credit-rule); border-radius: 3px; padding: 9px 14px; color: var(--cream); font-family: var(--mono); font-size: .8rem; text-decoration: none; line-height: 1.5; }
.credit-socials a span { font-size: 1rem; }
#royoshi .credit-socials a:hover, #royoshi .credit-socials a:focus-visible { color: #7dff65; border-color: #7dff65; }
#mariikyu .credit-socials a:hover, #mariikyu .credit-socials a:focus-visible { color: #d28aff; border-color: #d28aff; }
.credit-photo figcaption .name-royoshi { text-transform: none; }
@media print { .credits-page .name-royoshi, .credits-page .name-mariikyu { text-shadow: none; } }

/* ₘₐᵣᵢᵢₖᵧᵤ is written in subscript characters, which render about 60% the size of normal letters.
   Scale those spots up so the name reads at the same size as RoYoshi's. */
.credits-subnav a .dev-display-name { font-size: 1.45rem; line-height: 1; transform: translateY(-.32em); }
.credit-photo figcaption .dev-display-name { display: inline-block; font-size: 1.1rem; line-height: 1; transform: translateY(-.32em); }
.credits-page .credit-profile h3.dev-display-name { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; }
@media (max-width: 600px) { .credits-page .credit-profile h3.dev-display-name { font-size: clamp(2.2rem, 10vw, 3.1rem); } }

/* Special thanks */
.credits-thanks { max-width: 1440px; padding-bottom: 72px; }
.thanks-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 18px 0 0; padding: 0; }
.thanks-list > div { border-top: 1px solid var(--credit-rule); padding: 18px 0 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.thanks-list dt { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.01em; color: var(--cream); overflow-wrap: anywhere; }
.thanks-list dd { margin: 0; flex: none; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--light); }
@media (max-width: 700px) {
  .credits-thanks { padding-bottom: 44px; }
  .thanks-list { grid-template-columns: 1fr; }
  .thanks-list > div { flex-direction: column; gap: 6px; padding: 16px 0; }
}

/* Source material (Backrooms Wiki, CC BY-SA 3.0) */
.credits-sources { max-width: 1440px; padding-bottom: 72px; }
.sources-statement { max-width: 760px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--credit-rule); color: var(--cream); line-height: 1.8; }
.sources-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.sources-list li { color: var(--credit-secondary); font-size: .95rem; line-height: 1.6; }
.sources-list li::before { content: "— "; color: var(--light); }
.sources-note { margin-top: 16px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8d8b6c; }
.credits-sources a { color: var(--light); }
.credits-sources a:hover { color: var(--cream); }
@media (max-width: 700px) { .credits-sources { padding-bottom: 44px; } }
.license-note { max-width: 760px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--credit-rule); }
.license-note h3 { font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--light); margin-bottom: 12px; }
.license-note p { color: var(--credit-secondary); line-height: 1.8; }
.license-note p + p { margin-top: 10px; }
.license-name { font-family: "Segoe UI", "DejaVu Sans", Arial, sans-serif; font-size: 1.55em; line-height: 0; color: var(--cream); position: relative; top: -.18em; }

/* Super special thanks: same list, a step more prominent. */
.credits-thanks-super { padding-bottom: 56px; }
.credits-thanks-super .credits-section-label { color: var(--light); }
.credits-thanks-super .thanks-list > div { border-top-color: var(--light); padding: 22px 0 24px; }
.credits-thanks-super .thanks-list dt { font-size: clamp(1.45rem, 2.4vw, 2rem); color: var(--light); }
@media (max-width: 700px) { .credits-thanks-super { padding-bottom: 36px; } }
