@font-face {
  font-family: "Signal Base Lettering";
  src: url("/assets/signal-base.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f0f1ef;
  --secondary: #c0c8ca;
  --muted: #9da7aa;
  --amber: #dfb48c;
  --line: #30373a;
  --paper: #0b0e10;
  --gutter: clamp(1.25rem, 5.2vw, 6rem);
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
  --wordmark: "Signal Base Lettering", "Segoe UI", Arial, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-width: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #f4c79f; outline-offset: 5px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
::selection { color: #101519; background: #d9b99b; }
.shell { width: min(calc(100% - var(--gutter) * 2), 100rem); margin-inline: auto; }
.skip-link {
  position: absolute; z-index: 5; top: .6rem; left: var(--gutter);
  padding: .8rem 1rem; color: #151716; background: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; border-bottom: 1px solid rgba(197, 208, 210, .17);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; white-space: nowrap; }
.brand img { width: 2.05rem; height: 2.05rem; }
.brand span { font: 400 1.05rem/1 var(--wordmark); letter-spacing: .035em; }
.top-nav, .site-footer nav { display: flex; align-items: center; gap: clamp(1.3rem, 2.6vw, 2.9rem); }
.top-nav a, .site-footer nav a, .motion-control {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary);
  font-size: .9375rem;
}
.top-nav a:hover, .site-footer nav a:hover, .art-link:hover .art-name { color: white; text-decoration: underline; text-underline-offset: .34em; }
.motion-control {
  position: relative; gap: .6rem; padding: 0 0 0 clamp(1rem, 2.2vw, 2rem);
  border: 0; color: #c1c8ca; background: transparent; cursor: pointer;
}
.motion-control::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: #505453; }
.motion-wave { width: 1.21rem; height: 1.05rem; color: var(--amber); }
.motion-control[aria-pressed="false"] .motion-wave { color: var(--muted); }
.motion-control[aria-pressed="true"] .resume-mark,
.motion-control[aria-pressed="false"] .pause-bars { display: none; }
.motion-control:disabled { cursor: default; }
.motion-text { font: .8125rem var(--mono); }
.motion-control:hover:enabled .motion-text { color: white; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  min-height: max(36rem, 100vh); min-height: max(36rem, 100svh);
  padding: 8.3rem var(--gutter) 8.6rem; background: #090e12;
}
.field, .field-camera, .field-plate, .field-plate img, .field-shade, .near-stars, .dust-veil {
  position: absolute; display: block; pointer-events: none;
}
.field { inset: 0; overflow: hidden; z-index: -1; background: #090e12; }
.space-volume { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
:root[data-renderer="volume"] .field :is(.field-camera,.dust-veil,.near-stars,.glint) { visibility: hidden; }
:root[data-renderer="volume"] .field :is(.field-plate,.dust-veil,.near-stars,.glint) { animation: none; }
.field-camera { inset: -12px; transform: translate(var(--look-x, 0px), var(--look-y, 0px)); }
.field-plate { inset: -1.4%; }
.field-plate img { inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 53% 50%; }
.field-shade {
  inset: 0;
  background: linear-gradient(180deg, rgba(3,7,9,.14), transparent 22%, transparent 85%, rgba(4,8,11,.3));
}
.dust-veil { inset: 22% -5% 5% 49%; background: center / contain no-repeat; }
.near-stars { inset: -3%; background: center / cover no-repeat; }
.glint {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #dfebee; box-shadow: 0 0 7px 1px #bddeef92; opacity: .72;
}
.glint::after, .glint::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 9px; height: 1px; background: linear-gradient(90deg, transparent, #d5e3e9a3, transparent);
}
.glint::after { width: 1px; height: 9px; background: linear-gradient(0deg, transparent, #d5e3e9a3, transparent); }
.glint-near { left: 21%; top: 60%; }
.glint-far { right: 17%; top: 29%; width: 2px; height: 2px; opacity: .52; }
.hero-copy { text-align: center; display: grid; justify-items: center; width: 100%; }
.eyebrow, .entry-kind, .explore-link, .art-label, .game-still figcaption {
  font-family: var(--mono); font-weight: 400; font-size: .75rem;
  letter-spacing: .12em; line-height: 1.5; text-transform: uppercase;
}
.hero-kicker { display: inline-flex; align-items: center; gap: .85rem; color: #deba98; letter-spacing: .17em; }
.kicker-rule { position: relative; width: 2rem; height: 1px; background: #c3a58a; }
.kicker-rule::after {
  content: ""; position: absolute; right: -1px; top: -1.5px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--amber);
}
.hero h1 {
  margin: 1.55rem 0 1.05rem; padding-left: .06em;
  font: 400 clamp(3.7rem, 6.75vw, 7.6rem)/1.1 var(--wordmark);
  color: #eeeFEB; letter-spacing: .055em; white-space: nowrap;
}
.tagline { color: #c4cccd; font-size: clamp(1rem, 1.42vw, 1.375rem); line-height: 1.55; letter-spacing: .01em; }
.tagline, .hero h1, .hero-kicker, .hero-foot { text-shadow: 0 0 2px #050b0e, 0 1px 5px #050b0ee6; }
.play-button {
  display: inline-flex; justify-content: center; align-items: center; gap: .85rem;
  min-height: 3.25rem; margin-top: 2.15rem; padding: .9rem 1.65rem;
  color: #1a1c1b; background: #d8b18d; border: 1px solid #e0bb99; border-radius: 3px;
  font: 650 .842rem/1.3 var(--body); letter-spacing: .105em;
}
.play-button:hover { background: #eac6a5; border-color: #edd0b6; }
.play-icon { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: clamp(1.4rem, 4.3vh, 3.2rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.explore-link, .art-link { display: inline-flex; min-height: 44px; align-items: center; gap: .85rem; }
.explore-link { color: #bdc5c7; font-size: .75rem; }
.explore-link:hover { color: #f6f2eb; }
.scroll-glyph {
  width: 18px; height: 28px; border: 1px solid #949ea2; border-radius: 11px;
  display: inline-flex; justify-content: center; padding-top: 5px;
}
.scroll-glyph::after { content: ""; width: 2px; height: 6px; border-radius: 2px; background: var(--amber); }
.art-link { gap: .85rem; }
.field-star { width: 1.95rem; height: 1.95rem; color: #b7a68f; }
.art-label, .art-name { display: block; }
.art-label { color: #a8b1b3; font-size: .75rem; }
.art-name { margin-top: .11rem; color: #d7dedc; font-size: .9rem; line-height: 1.4; }

.archive, .about { max-width: 78rem; }
.archive { padding: clamp(4rem, 7.3vw, 7.6rem) 0 0; }
.section-rule { display: flex; align-items: center; gap: 1.3rem; }
.section-rule h2 { color: #c5b298; white-space: nowrap; }
.section-rule > span { height: 1px; width: 100%; background: var(--line); }
.game-entry {
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  align-items: center; gap: clamp(2.8rem, 7vw, 7rem); padding: clamp(2.25rem, 4.6vw, 4.8rem) 0;
}
.game-copy { max-width: 35rem; }
.entry-kind { display: flex; align-items: center; gap: .7rem; color: var(--muted); }
.radio-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.game-copy h3, .reading h1 { font-weight: 450; font-size: clamp(2.8rem, 5.2vw, 5.7rem); line-height: 1.07; letter-spacing: -.05em; }
.game-copy h3 { margin: .72rem 0 1.1rem; }
.game-copy > p:not(.entry-kind), .about-text, .reading p { color: var(--secondary); font-size: clamp(1rem, 1.16vw, 1.13rem); line-height: 1.7; }
.text-play { display: inline-flex; min-height: 44px; gap: .7rem; align-items: center; margin-top: 1.18rem; color: var(--amber); font-weight: 560; }
.text-play:hover { text-decoration: underline; text-underline-offset: 5px; }
.game-still { position: relative; }
.game-still img { width: 100%; height: auto; aspect-ratio: 850 / 456; object-fit: cover; border-radius: 2px; }
.game-still figcaption { color: var(--muted); padding-top: .8rem; }
.game-still figcaption span { color: var(--amber); padding-inline: .35rem; }
.upcoming {
  border-block: 1px solid var(--line); padding: clamp(1.8rem, 3.6vw, 3.1rem) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.upcoming h3 { font-size: clamp(1.25rem, 2.3vw, 2.15rem); line-height: 1.25; font-weight: 450; letter-spacing: -.025em; }
.quiet-wave { width: min(43%, 27rem); height: 2.7rem; color: #9b836c; }
.about { padding-block: clamp(4.5rem, 7.4vw, 7.5rem); }
.about-lead { max-width: 36ch; margin: 2rem 0 1.1rem; font-weight: 450; font-size: clamp(1.9rem, 3.55vw, 3.8rem); line-height: 1.15; letter-spacing: -.04em; text-wrap: balance; }
.about-text { max-width: 62ch; }
.site-footer { border-top: 1px solid var(--line); min-height: 6.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer-brand img { width: 1.65rem; height: 1.65rem; }
.footer-brand span { font-size: .9rem; }
.site-footer nav a { color: var(--muted); }
.info-page { min-height: 100vh; display: flex; flex-direction: column; }
.info-page .site-header { position: static; }
.reading { width: min(calc(100% - var(--gutter) * 2), 48rem); margin: 0 auto; padding: clamp(3.5rem, 8vw, 8rem) 0; flex: 1; }
.reading h1 { margin: .9rem 0 1.65rem; }
.reading h2 { margin: 2.4rem 0 .6rem; font-size: 1.45rem; font-weight: 550; letter-spacing: -.025em; }
.reading p + p { margin-top: .8rem; }
.reading .eyebrow { font-size: .75rem; color: var(--amber); }
.reading a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.reading section { scroll-margin-top: 1.5rem; }
.art-detail { margin-top: 1.4rem; width: 100%; height: auto; }

/* Only transform or opacity changes while the field is drifting. */
:root[data-renderer="layers"][data-quality="full"] .field-plate { animation: far-drift 35s linear infinite alternate both; }
:root[data-renderer="layers"][data-quality="light"] .field-plate { animation: mobile-drift 26s linear -5s infinite alternate both; }
:root[data-renderer="layers"]:is([data-quality="full"],[data-quality="light"]) .dust-veil {
  background-image: url("/assets/dust-veil.webp"); animation: dust-drift 21s ease-in-out -8s infinite alternate both;
}
:root[data-renderer="layers"]:is([data-quality="full"],[data-quality="light"]) .near-stars {
  background-image: url("/assets/near-stars.svg"); animation: star-drift 22s linear -3s infinite alternate both;
}
:root[data-renderer="layers"][data-quality="full"] .glint { animation: starlight 12s ease-in-out -5s infinite alternate both; }
:root[data-quality="full"] .glint-far { animation-delay: -13s; animation-duration: 17s; }
:root:not([data-field-running]) .field :is(.field-plate,.dust-veil,.near-stars,.glint) { animation-play-state: paused; }
@keyframes far-drift {
  from { transform: translate(-1.1%, .6%) scale(1.014); }
  to { transform: translate(1.3%, -.9%) scale(1.046); }
}
@keyframes dust-drift {
  from { transform: translate(-5%, 4%) scale(.97) rotate(-1.2deg); opacity: .44; }
  to { transform: translate(5%, -4%) scale(1.08) rotate(1.2deg); opacity: .91; }
}
@keyframes mobile-drift {
  from { transform: translate(-1.2%, .8%) scale(1.01); }
  to { transform: translate(1.2%, -1.25%) scale(1.052); }
}
@keyframes star-drift {
  from { transform: translate(18px, -10px) scale(.98); }
  to { transform: translate(-27px, 15px) scale(1.055); }
}
@keyframes starlight { from { opacity: .36; } to { opacity: .78; } }
@media (max-width: 760px) {
  .brand { gap: .5rem; }
  .brand span { font-size: .9rem; }
  .site-header { min-height: 4.6rem; }
  .game-entry { grid-template-columns: 1fr; gap: 1.6rem; }
  .game-copy { max-width: 42rem; }
  .hero h1 { font-size: 8.55vw; }
}
@media (max-width: 560px) {
  .site-header { gap: .4rem; }
  .brand img { width: 1.7rem; height: 1.7rem; }
  .brand span { font-size: .79rem; }
  .top-nav { gap: .85rem; }
  .top-nav a { font-size: .875rem; }
  .motion-control { width: 44px; min-height: 44px; justify-content: flex-end; padding: 0; }
  .motion-text { display: none; }
  .hero { min-height: max(32rem, 100vh); min-height: max(32rem, 100svh); padding: 7rem var(--gutter); }
  .hero h1 { font-size: 8.95vw; letter-spacing: .024em; margin-block: 1.45rem 1.1rem; }
  .hero-kicker { font-size: .75rem; letter-spacing: .125em; gap: .65rem; }
  .kicker-rule { width: 1.45rem; }
  .tagline { max-width: 28ch; font-size: 1.05rem; }
  .play-button { min-height: 3.1rem; margin-top: 1.7rem; padding-inline: 1.4rem; }
  .hero-foot { bottom: max(1.15rem, env(safe-area-inset-bottom)); align-items: center; }
  .art-link, .explore-link { gap: .5rem; }
  .art-label { display: none; }
  .art-name { font-size: .8125rem; }
  .field-star { width: 1.35rem; height: 1.35rem; }
  .scroll-glyph { width: 15px; height: 23px; }
  .explore-link { letter-spacing: .07em; }
  .upcoming { gap: 1rem; }
  .quiet-wave { width: 24%; }
  .site-footer { min-height: 5.7rem; }
  .site-footer nav { gap: 1rem; }
}
@media (min-width: 385px) and (max-width: 560px) {
  .motion-control { width: auto; gap: .35rem; padding-left: .8rem; }
  .motion-text { display: inline; font-size: .75rem; }
  .motion-text [data-motion-value] { display: none; }
}
@media (max-width: 350px) {
  .top-nav { gap: .55rem; }
  .brand span { font-size: .73rem; }
  .hero-foot { gap: .3rem; }
}
@media (max-height: 540px) and (min-aspect-ratio: 4/3) {
  .site-header { min-height: 3.45rem; }
  .hero { min-height: max(24rem,100svh); padding-block: 4.4rem; }
  .hero h1 { margin: .7rem 0 .4rem; font-size: min(6.2vw, 4.4rem); }
  .hero-foot { bottom: .55rem; }
  .play-button { margin-top: 1rem; min-height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .field *, .field *::before, .field *::after { animation: none !important; transform: none !important; }
}
