/* Moonsmith Games — direction A, Moonlit Gate (docs/SPEC.md). Cool navy night; warm gold only for what you can act on. */

@font-face { font-family: 'Cormorant'; src: url(/fonts/cormorant-garamond-latin-var.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Marcellus SC'; src: url(/fonts/marcellus-sc-latin-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url(/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url(/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --night: #060812; --night2: #0a0e1e; --navy: #131c38; --navy2: #1f2d5a; --blue: #2c4078;
  --rim: #a4c4f0; --gold: #d09622; --gold2: #f4c440; --gold3: #ffe89a; --ember: #ff9a2e; --cyan: #6ae0ff;
  --text: #e3e9f6; --dim: #a6b4d4; --faint: #6f7fa6; --line: rgba(164, 196, 240, .14); --goldline: rgba(208, 150, 34, .55);
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif; --caps: 'Marcellus SC', 'Cormorant', serif; --sans: 'Atkinson', system-ui, sans-serif;
  --wrap: 1240px; --gutter: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }
.px { image-rendering: pixelated; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 10px 16px; background: var(--gold2); color: var(--night); font-weight: 700; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: #f6f2ea; font-variant-numeric: lining-nums; margin: 0; letter-spacing: .005em; }

/* ---------- type ---------- */
.eyebrow { font: 13px/1.2 var(--caps); letter-spacing: .38em; color: var(--gold2); }
.display { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.04; }
.h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
.h3 { font-size: 28px; line-height: 1.15; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--dim); max-width: 640px; }
.prose { max-width: 680px; }
.prose p, .prose li { color: #cfd8ec; }
.prose h2 { font-size: 32px; margin: 48px 0 12px; }
.prose a { color: var(--gold3); }
.head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.head .eyebrow + * { margin-top: 14px; }
.head .lede { margin: 16px auto 0; }
.rule { width: 160px; height: 9px; margin: 22px auto 0; position: relative; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent) center / 100% 1px no-repeat; }
.rule::after { content: ''; position: absolute; left: 50%; top: 0; width: 9px; height: 9px; background: var(--gold2); transform: translateX(-50%) rotate(45deg); }
.head.left { text-align: left; margin-left: 0; margin-right: 0; }
.left .rule { margin-left: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 15px/1 var(--caps); letter-spacing: .16em; text-decoration: none; padding: 16px 30px; white-space: nowrap; }
.btn-gold { color: #1d1305; background: linear-gradient(180deg, var(--gold3), var(--gold2) 45%, var(--gold)); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); filter: drop-shadow(0 0 16px rgba(244, 196, 64, .35)); transition: filter .2s; }
.btn-gold:hover { filter: drop-shadow(0 0 26px rgba(244, 196, 64, .6)); }
.btn-ghost { color: var(--gold3); border: 1px solid var(--goldline); padding: 15px 28px; transition: border-color .2s, background .2s; }
.btn-ghost:hover { border-color: var(--gold2); background: rgba(244, 196, 64, .06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.textlink { font: 14px/1 var(--caps); letter-spacing: .2em; color: var(--gold3); text-decoration: none; }
.textlink:hover { color: #fff; }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 20; background: var(--night); border-bottom: 1px solid var(--line); }
.has-hero .site-head { position: absolute; inset: 0 0 auto; background: linear-gradient(180deg, rgba(6, 8, 18, .88), rgba(6, 8, 18, 0)); border-bottom: 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 92px; max-width: 1440px; }
.brand { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--gold3); flex: none; }
.brand .mark { width: 41px; height: 41px; image-rendering: pixelated; }
.brand .wm { font: 700 21px/1 var(--serif); letter-spacing: .3em; }
.brand .wm small { display: block; margin-top: 6px; font: 10px/1 var(--caps); letter-spacing: .62em; color: var(--rim); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav > a, .nav .drop > a { font: 14px/1 var(--caps); letter-spacing: .14em; color: #c9d4ec; text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; }
.nav > a:hover, .nav .drop > a:hover, .nav [aria-current] { color: var(--gold3); }
.nav [aria-current] { border-bottom-color: var(--gold2); }
.drop { position: relative; }
.drop > a::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 9px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-3px) rotate(45deg); }
.drop .menu { position: absolute; left: -22px; top: 100%; min-width: 230px; padding: 12px 0; background: rgba(10, 14, 30, .97); border: 1px solid var(--goldline); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.drop:hover .menu, .drop:focus-within .menu { visibility: visible; opacity: 1; transform: none; }
.drop .menu a { display: block; padding: 10px 22px; font: 14px/1.2 var(--caps); letter-spacing: .12em; color: #c9d4ec; text-decoration: none; }
.drop .menu a:hover { color: var(--gold3); background: rgba(244, 196, 64, .06); }
.head-play { flex: none; padding: 14px 26px; }
.mnav { display: none; }
@media (max-width: 1080px) {
  .nav, .head-play { display: none; }
  .mnav { display: block; }
  .mnav summary { list-style: none; cursor: pointer; font: 14px/1 var(--caps); letter-spacing: .2em; color: var(--gold3); padding: 12px 16px; border: 1px solid var(--goldline); }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav[open] summary { background: rgba(244, 196, 64, .08); }
  .mnav:not([open]) .panel { display: none; }
  .mnav .panel { position: absolute; left: 0; right: 0; top: 92px; padding: 18px var(--gutter) 28px; background: rgba(6, 8, 18, .98); border-bottom: 1px solid var(--goldline); display: grid; gap: 4px; }
  .mnav .panel a { font: 18px/1.2 var(--caps); letter-spacing: .1em; color: var(--text); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mnav .panel a.sub { padding-left: 18px; font-size: 16px; color: var(--dim); }
  .mnav .panel .btn { margin-top: 18px; justify-content: center; }
  .brand .wm { font-size: 18px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--night); }
.hero--page { min-height: 64vh; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 40%); }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 72% 62% at 50% 44%, transparent 38%, rgba(6, 8, 18, .55)), linear-gradient(180deg, rgba(6, 8, 18, .25) 0%, transparent 28%, transparent 50%, rgba(6, 8, 18, .88) 78%, var(--night) 100%); }
.hero-top { position: absolute; z-index: 3; left: 50%; top: 14vh; transform: translateX(-50%); width: min(920px, 92vw); text-align: center; }
.hero-foot { position: absolute; z-index: 3; left: 50%; bottom: 5vh; transform: translateX(-50%); width: min(920px, 92vw); text-align: center; }
.presents { display: flex; align-items: center; justify-content: center; gap: 18px; font: 13px/1 var(--caps); letter-spacing: .4em; color: var(--gold2); }
.presents::before, .presents::after { content: ''; width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.presents::after { transform: scaleX(-1); }
.gamelogo { width: min(432px, 70vw); height: auto; margin: 18px auto 8px; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .7)); }
.hero h1 { text-shadow: 0 4px 30px rgba(0, 0, 0, .65); }
.hero .lede { margin: 0 auto 24px; color: #c3cfe8; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.hero .btn-row { justify-content: center; }
.facts-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; font: 12px/1 var(--caps); letter-spacing: .26em; color: var(--rim); }
.facts-inline span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 12px; background: var(--gold2); transform: translateY(-2px) rotate(45deg); }
.page-hero-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: 9vh; }
.page-hero-copy .lede { margin: 18px 0 28px; }
.hero--page::after { background: linear-gradient(90deg, rgba(6, 8, 18, .9) 0%, rgba(6, 8, 18, .55) 45%, rgba(6, 8, 18, .1) 75%), linear-gradient(180deg, rgba(6, 8, 18, .4), transparent 30%, transparent 60%, var(--night) 100%); }
.embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; background: #ffcf4a; box-shadow: 0 0 6px 1px rgba(255, 154, 46, .9); opacity: 0; animation: rise linear infinite; }
.embers i:nth-child(3n) { width: 2px; height: 2px; background: #fff2a8; }
.embers i:nth-child(4n) { width: 4px; height: 4px; background: var(--ember); }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 70% { opacity: .9; } 100% { transform: translate(40px, -80vh); opacity: 0; } }
@media (max-width: 720px) {
  .hero-top { top: 112px; }
  /* Phone copy spans the full width, so the side shade cannot carry it: darken from the middle down instead. */
  .hero--page::after { background: linear-gradient(180deg, rgba(6, 8, 18, .45) 0%, rgba(6, 8, 18, .2) 22%, rgba(6, 8, 18, .84) 48%, rgba(6, 8, 18, .94) 72%, var(--night) 100%); }
  .page-hero-copy .lede, .page-hero-copy .crumbs { text-shadow: 0 1px 10px rgba(0, 0, 0, .95); }
  .presents::before, .presents::after { width: 36px; }
  .presents { letter-spacing: .26em; font-size: 11px; }
}

/* ---------- sections ---------- */
.band { padding: clamp(72px, 9vw, 120px) 0; }
.band--panel { background: linear-gradient(180deg, var(--night2), var(--night)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--art { position: relative; background: var(--night); overflow: hidden; }
.band--art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.band--art::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--night) 0%, rgba(6, 8, 18, .45) 35%, rgba(6, 8, 18, .45) 65%, var(--night) 100%); }
.band--art > .wrap { position: relative; z-index: 2; }
.center { text-align: center; }
.center .btn-row { justify-content: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--wide { grid-template-columns: 5fr 7fr; }
@media (max-width: 880px) { .split, .split--wide { grid-template-columns: 1fr; } }
.media-frame { position: relative; border: 1px solid var(--goldline); padding: 6px; background: var(--night2); }
.media-frame img { width: 100%; height: auto; }
.media-frame::before, .media-frame::after { content: ''; position: absolute; width: 11px; height: 11px; background: var(--gold2); transform: rotate(45deg); }
.media-frame::before { top: -6px; left: calc(50% - 5.5px); }
.media-frame::after { bottom: -6px; left: calc(50% - 5.5px); }
.crumbs { font: 13px/1 var(--caps); letter-spacing: .16em; color: var(--faint); margin-bottom: 22px; }
.crumbs a { color: var(--dim); text-decoration: underline; text-decoration-color: rgba(166, 180, 212, .45); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--gold3); }
.crumbs span[aria-hidden] { margin: 0 10px; color: var(--gold); }
.page-top { padding: 64px 0 0; }

/* ---------- champions ---------- */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 34px 26px; }
.roster--strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; }
.champ { text-align: center; text-decoration: none; color: inherit; }
.frame { position: relative; width: 136px; height: 136px; margin: 0 auto; padding: 3px; border: 1px solid var(--goldline); background: var(--navy); transition: box-shadow .2s, border-color .2s; }
.frame img { width: 128px; height: 128px; }
.frame::before, .frame::after { content: ''; position: absolute; left: calc(50% - 4.5px); width: 9px; height: 9px; background: var(--gold2); transform: rotate(45deg); }
.frame::before { top: -5px; }
.frame::after { bottom: -5px; }
.champ:hover .frame, .champ:focus-visible .frame { box-shadow: 0 0 26px rgba(244, 196, 64, .35); border-color: var(--gold2); }
.champ .name { display: block; margin-top: 16px; font: 15px/1.2 var(--caps); letter-spacing: .16em; color: #dfe6f5; }
.champ .cls { display: block; margin-top: 6px; font-size: 13px; color: var(--faint); }
.profile { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
@media (max-width: 880px) { .profile { grid-template-columns: 1fr; } }
.stage { position: relative; aspect-ratio: 1 / 1; max-height: 640px; display: grid; place-items: end center; overflow: hidden; border: 1px solid var(--goldline); background: radial-gradient(ellipse 60% 40% at 50% 92%, rgba(255, 154, 46, .22), transparent 70%), radial-gradient(ellipse 80% 70% at 50% 30%, var(--navy2), var(--night) 75%); }
.stage::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 7%; height: 10%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%); }
.stage .sprite { position: relative; z-index: 1; margin-bottom: 7%; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 32px; justify-content: start; margin: 26px 0; }
.stats dt { font: 12px/1 var(--caps); letter-spacing: .26em; color: var(--faint); }
.stats dd { margin: 0; font: 600 24px/1.3 var(--serif); color: #f6f2ea; }
.pips { display: inline-flex; gap: 6px; vertical-align: middle; }
.pips i { width: 10px; height: 10px; border: 1px solid var(--gold2); transform: rotate(45deg); }
.pips i.on { background: var(--gold2); }
.kit { display: grid; gap: 2px; border: 1px solid var(--line); }
.ability { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: start; padding: 22px 24px; background: var(--night2); }
.ability .icon { width: 64px; height: 64px; border: 1px solid var(--goldline); background: var(--navy); display: grid; place-items: center; font: 22px/1 var(--caps); color: var(--gold2); }
.ability .icon img { width: 62px; height: 62px; }
.ability .slot { font: 12px/1 var(--caps); letter-spacing: .3em; color: var(--gold2); }
.ability h3 { font-size: 26px; margin: 6px 0 6px; }
.ability p { margin: 0; color: #cfd8ec; }
.ability .details { margin: 10px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--dim); }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; }
.pager small { display: block; font: 12px/1 var(--caps); letter-spacing: .26em; color: var(--faint); margin-bottom: 8px; }
.pager span { font: 600 26px/1.2 var(--serif); color: #f6f2ea; }
.pager a:hover span { color: var(--gold3); }

.roster--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
@media (max-width: 480px) { .roster--cards { grid-template-columns: 1fr 1fr; gap: 12px; } }
.champ-card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--goldline); background: var(--navy); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.champ-card img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; transition: transform .5s; }
.champ-card.portrait img { object-position: 50% 30%; }
.champ-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 8, 18, .92) 88%); }
.champ-card .name { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 36px; font: 600 26px/1.1 var(--serif); color: #f6f2ea; }
.champ-card .cls { position: absolute; z-index: 1; left: 16px; bottom: 16px; font: 12px/1 var(--caps); letter-spacing: .24em; color: var(--gold2); }
.champ-card:hover, .champ-card:focus-visible { border-color: var(--gold2); box-shadow: 0 0 28px rgba(244, 196, 64, .3); }
.champ-card:hover img { transform: scale(1.04); }
.hero--splash { min-height: 78vh; }
.hero--splash .hero-art { object-position: 68% 35%; }
.hero--splash .crumbs a, .hero--splash .crumbs { color: var(--rim); }
.hero--splash .page-hero-copy .btn { margin-top: 4px; }

.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2px; border: 1px solid var(--line); }
.qa > div { padding: 28px 30px 30px; background: var(--night2); }
.qa h3 { font-size: 26px; margin-bottom: 10px; }
.qa p { margin: 0; color: #cfd8ec; }
.split > .head.left { margin-bottom: 0; }

.shots { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.shots .shot:first-child { grid-row: span 2; }
.shot { display: block; border: 1px solid var(--goldline); overflow: hidden; background: var(--night2); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.shot:hover img { transform: scale(1.02); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } .shots .shot:first-child { grid-row: auto; } }

/* ---------- cards and lists ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--night2), var(--night)); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--goldline); transform: translateY(-2px); }
.card .img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--goldline); background: var(--navy); }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 24px 26px 28px; }
.card time, .meta { font: 12px/1 var(--caps); letter-spacing: .24em; color: var(--gold2); }
.card h3 { font-size: 28px; line-height: 1.15; margin: 12px 0 10px; }
.card p { margin: 0; color: var(--dim); line-height: 1.55; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border: 1px solid var(--line); }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 34px 32px 36px; background: var(--night2); }
.feature .eyebrow { font-size: 12px; }
.feature h3 { font-size: 30px; margin: 14px 0 10px; }
.feature p { margin: 0; color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--goldline); border-bottom: 1px solid var(--goldline); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { padding: 24px 20px; text-align: center; }
.facts dt { font: 12px/1 var(--caps); letter-spacing: .26em; color: var(--faint); }
.facts dd { margin: 10px 0 0; font: 600 26px/1.15 var(--serif); color: #f6f2ea; }
.list { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 180px 1fr 220px; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.row:hover h3 { color: var(--gold3); }
.row h3 { font-size: 28px; }
.row p { margin: 6px 0 0; color: var(--dim); }
.row .thumb { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 10px; } .row .thumb { order: -1; } }
.table { width: 100%; border-collapse: collapse; }
.table td { overflow-wrap: anywhere; }
.table th, .table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { width: 34%; font: 13px/1.4 var(--caps); letter-spacing: .18em; color: var(--faint); font-weight: 400; }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
/* The whole card is the download link, so the art, the title and the word all work. */
.download { display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); background: var(--night2); transition: border-color .2s, box-shadow .2s; }
.download:hover, .download:focus-visible { border-color: var(--gold2); box-shadow: 0 0 26px rgba(244, 196, 64, .2); }
.download .img { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--navy); border-bottom: 1px solid var(--line); }
.download .img img { max-height: 70%; width: auto; }
.download .body { padding: 18px 20px 22px; }
.download h3 { font-size: 22px; }
.download p { margin: 6px 0 14px; font-size: 14px; color: var(--faint); }
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .team { grid-template-columns: 1fr 1fr; } }
.member { text-align: center; }
.member .frame { width: 200px; height: 200px; }
.member .frame img { width: 192px; height: 192px; }
.member .role { margin-top: 6px; font: 12px/1.3 var(--caps); letter-spacing: .2em; color: var(--gold2); }
.member p { margin: 10px auto 0; max-width: 240px; font-size: 15px; }
@media (max-width: 480px) { .team { gap: 30px 16px; } .member .frame { width: 140px; height: 140px; } .member .frame img { width: 132px; height: 132px; } }
.member .frame .silhouette { width: 168px; height: 168px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 35%, var(--navy2), var(--night) 75%); color: var(--faint); font: 48px/1 var(--serif); }
.member h3 { font-size: 26px; margin-top: 20px; }
.member p { margin: 4px 0 0; color: var(--dim); }
.job { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 34px 36px; border: 1px solid var(--goldline); background: var(--night2); text-decoration: none; color: inherit; }
.job:hover { border-color: var(--gold2); }
.job h3 { font-size: 34px; }
.job p { margin: 6px 0 0; color: var(--dim); }
@media (max-width: 700px) { .job { grid-template-columns: 1fr; } }

/* Visible only in the private preview: something Tyler still has to supply. tools/check-publish fails while any remain. */
.placeholder { outline: 1px dashed var(--ember); outline-offset: 6px; }
.placeholder-note { display: inline-block; margin-top: 8px; padding: 4px 10px; font: 12px/1.3 var(--sans); color: var(--night); background: var(--ember); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--goldline); background: linear-gradient(180deg, var(--night2), var(--night)); padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid .foot-contact { margin-top: 12px; }
#main:focus { outline: none; }
.foot-grid p { margin: 18px 0 0; color: var(--dim); font-size: 15px; max-width: 320px; }
.foot-grid h2 { font: 13px/1 var(--caps); letter-spacing: .3em; color: var(--gold2); margin-bottom: 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid ul a { color: var(--dim); text-decoration: none; }
.foot-grid ul a:hover { color: var(--gold3); }
.foot-base a { color: var(--dim); }
.foot-base a:hover { color: var(--gold3); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.forged { display: inline-flex; gap: 8px; align-items: center; }
.forged::before { content: ''; width: 6px; height: 6px; background: var(--ember); box-shadow: 0 0 8px var(--ember); transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .embers { display: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
