/* FroztRune — the painting is the identity. Night, snow, one ice-blue glow. */
@font-face { font-family: "Cinzel"; src: url("./fonts/cinzel/Cinzel-Variable.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("./fonts/newsreader/Newsreader-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("./fonts/newsreader/Newsreader-Italic-Variable.ttf") format("truetype"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --night: #070a14;
  --night-2: #0c1220;
  --snow: #e9eef6;
  --steel: #8b98ad;
  --ice: #5fb3ff;
  --ice-deep: #2b6fb8;
  --lamp: #f0b35a;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --carve: "Cinzel", "Trajan Pro", Georgia, serif;
  --mast-h: 56px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); color: var(--snow); scroll-behavior: smooth; }
body { font-family: var(--serif); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--ice); text-decoration: none; }
a:hover { color: #9dd0ff; }
a:focus-visible, .plate:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.visually-hidden, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--night); padding: 8px 12px; z-index: 50; }
.muted { color: var(--steel); }

/* ---- mast: a whisper over the painting, solid once you've left it */
.mast { position: fixed; top: 0; left: 0; right: 0; height: var(--mast-h); z-index: 30; display: flex; align-items: center; padding: 0 22px; transition: background .4s ease, box-shadow .4s ease; }
.mast.is-solid { background: rgba(7, 10, 20, .92); box-shadow: 0 1px 0 rgba(233, 238, 246, .08); backdrop-filter: blur(6px); }
.mast-name { font-family: var(--carve); font-weight: 600; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--snow); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }

/* ---- hero: pinned painting */
.hero { position: sticky; top: 0; height: 100svh; min-height: 520px; overflow: hidden; background: var(--night); z-index: 0; }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 50% 42%; transform-origin: 50% 45%; animation: drift 42s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(0, -1.2%, 0); } }
.rune-glow { position: absolute; width: 34vmin; height: 34vmin; left: 50%; top: 45%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(95, 179, 255, .55) 0%, rgba(95, 179, 255, .22) 30%, rgba(95, 179, 255, 0) 70%);
  mix-blend-mode: screen; filter: blur(6px); animation: breathe 5.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.frost { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(233, 238, 246, .55), rgba(180, 210, 240, .35) 40%, rgba(233, 238, 246, .55)); mix-blend-mode: screen; animation: thaw 2.4s cubic-bezier(.6, 0, .2, 1) .2s forwards; }
@keyframes thaw { from { opacity: 1; clip-path: inset(0 0 0 0); } to { opacity: 0; clip-path: inset(0 0 0 100%); } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(to top, var(--night), rgba(7, 10, 20, 0)); pointer-events: none; }

/* typed wordmark: phones only (the painted one is cropped away with the mountains) */
.hero-type { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; padding: 0 6vw; z-index: 2; }
.hero-name { font-family: var(--carve); font-weight: 700; font-size: clamp(38px, 12vw, 64px); letter-spacing: .04em; line-height: 1;
  background: linear-gradient(180deg, #f4f8ff 0%, #bcd6f5 45%, #6ea9e6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .9)) drop-shadow(0 0 18px rgba(95, 179, 255, .35)); }
.hero-tag { font-family: var(--carve); font-weight: 500; font-size: clamp(11px, 3.1vw, 15px); letter-spacing: .13em; white-space: nowrap; text-transform: uppercase; color: #cfe0f5; margin-top: 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
@media (min-width: 700px) {
  .hero-type { display: none; }
  .cue { bottom: 1.6%; } .cue span { display: none; }
  .hero::after { height: 10%; }
  /* The desktop hero is the owner's native 16:9 painting (2026-09-01,
     homepage/assets/froztrune 16 9.jpg) so cover-fit barely crops. Bottom-anchored +
     bottom drift origin: any crop eats sky, never the painted tagline. */
  .hero-pic img { object-position: 50% 100%; transform-origin: 50% 100%; }
}

.cue { position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--steel); font-family: var(--carve); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
.cue i { width: 1px; height: 34px; background: linear-gradient(to bottom, var(--ice), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(.2); transform-origin: top; opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---- the tablet rises over the pinned painting */
/* +8svh of breathing room: the pinned painting holds the wordmark + tagline clear for the
   first stretch of scroll instead of the plate chopping them mid-letter (owner 2026-09-01) */
.tablet { position: relative; z-index: 2; background: var(--night); margin-top: 8svh; }
.frostline { height: 3px; background: linear-gradient(90deg, transparent, rgba(95, 179, 255, .8) 30%, rgba(233, 238, 246, .9) 50%, rgba(95, 179, 255, .8) 70%, transparent); box-shadow: 0 0 24px rgba(95, 179, 255, .45); }
.block { max-width: 1040px; margin: 0 auto; padding: 9vh 6vw; }
.block + .block { border-top: 1px solid rgba(233, 238, 246, .07); }
.inscription { font-family: var(--carve); font-weight: 600; font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--steel); margin-bottom: 28px; }
.who { padding-top: 11vh; }
.who-line { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.3; font-weight: 300; max-width: 22ch; letter-spacing: -.005em; }
/* filled-in words are NOT links — ice blue is reserved for <a>, or it reads as one */
.who-line [data-fill] { color: var(--snow); font-weight: 500; }

/* ---- the game card: the one warm thing in a cold page */
.card-boom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.card-art { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(240, 179, 90, .35), 0 18px 60px rgba(240, 179, 90, .22), 0 0 120px rgba(240, 179, 90, .12); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.card-art img { display: block; width: 100%; height: auto; }
.card-art:hover { transform: translateY(-4px) scale(1.012); box-shadow: 0 0 0 1px rgba(240, 179, 90, .6), 0 26px 70px rgba(240, 179, 90, .3), 0 0 160px rgba(240, 179, 90, .18); }
.card-title { font-family: var(--carve); font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: .02em; color: var(--snow); }
.card-line { margin-top: 10px; color: #c9d4e4; font-size: 19px; }
.card-proof { margin-top: 10px; color: var(--lamp); font-family: var(--carve); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.card-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.plate { display: inline-block; font-family: var(--carve); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 13px 18px; border-radius: 3px; border: 1px solid rgba(233, 238, 246, .18); color: var(--snow); background: linear-gradient(180deg, #1a2233, #0f1626); }
.plate-warm { color: #2a1a08; background: linear-gradient(180deg, #f5c877, #c98a2e); border-color: rgba(240, 179, 90, .7); box-shadow: 0 0 22px rgba(240, 179, 90, .35); }
.plate[data-state="soon"] { cursor: default; }
.textlink { font-family: var(--carve); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.card-next { margin-top: 40px; min-height: 120px; border: 1px dashed rgba(233, 238, 246, .12); border-radius: 6px; }
@media (max-width: 820px) { .card-boom { grid-template-columns: 1fr; gap: 22px; } }

/* ---- news, press, footer: inscriptions in stone */
.news-list { list-style: none; display: grid; gap: 14px; }
.news-list li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; font-size: 18px; }
.news-list time { font-family: var(--carve); font-size: 12px; letter-spacing: .16em; color: var(--steel); padding-top: 5px; }
.factsheet { display: grid; grid-template-columns: 140px 1fr; gap: 10px 20px; font-size: 18px; }
.factsheet dt { font-family: var(--carve); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); padding-top: 5px; }
/* factsheet fills inherit snow like every other value — blue would read as a link */
.press-pack { margin-top: 26px; font-size: 16px; }
.foot { text-align: center; padding: 10vh 6vw 8vh; border-top: 1px solid rgba(233, 238, 246, .07); }
.foot-name { font-family: var(--carve); font-weight: 700; font-size: 22px; letter-spacing: .12em; }
.foot-tag { font-family: var(--carve); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); margin: 8px 0 22px; }
.foot .muted, .foot-links { font-size: 15px; margin-top: 6px; }
.credit { font-size: 11px; color: #4f5a6c; letter-spacing: .04em; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-pic img, .rune-glow, .cue i, .card-art { animation: none; transition: none; }
  .frost { display: none; }
  #snow { display: none; }
}
