@font-face { font-family: Newsreader; src: url(/assets/fonts/newsreader.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Newsreader; src: url(/assets/fonts/newsreader-italic.woff2) format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url(/assets/fonts/dm-mono.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url(/assets/fonts/dm-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

/* Change the brand here: every colour and type choice below reads from these. */
:root {
  color-scheme: light;
  --chalk: #e9efe6;
  --shallow: #cfe3dc;
  --sea: #0c4a54;
  --deep: #072f38;
  --coral: #f2593a;
  --ink: #10272c;
  --muted: #4e676b;
  --rule: rgba(16, 39, 44, 0.24);
  --serif: Newsreader, Georgia, serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--chalk); color: var(--ink); font: 400 19px/1.45 var(--serif); overflow-x: clip; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.03em; line-height: 0.98; }
h1 em, h2 em { color: var(--coral); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.label { font: 400 12.500px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.nav { position: absolute; z-index: 5; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--gutter); }
.brand { font-size: 22px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; gap: clamp(12px, 2.5vw, 26px); font: 400 13px var(--mono); text-transform: uppercase; }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--coral); }

/* Hero: living depth contours */
.hero { position: relative; min-height: max(640px, 96svh); display: flex; align-items: center; padding: 110px var(--gutter) 90px; overflow: hidden; background: var(--chalk); }
#contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; max-width: 960px; padding: 0; }
.hero-copy > .label { margin-bottom: 20px; }
h1 { font-size: clamp(58px, 11.500vw, 176px); line-height: 0.88; font-weight: 300; letter-spacing: -0.045em; }
h1 em { display: block; }
.lede { max-width: 30em; margin-top: 30px; padding: 2px 0; font-size: clamp(19px, 2vw, 25px); line-height: 1.3; background: linear-gradient(rgba(233, 239, 230, 0.76), rgba(233, 239, 230, 0.76)); }
.hint { position: absolute; left: var(--gutter); bottom: 26px; }

/* Games */
.games { position: relative; padding: clamp(70px, 10vw, 130px) 0; background: var(--deep); color: var(--chalk); overflow: clip;
  background-image: repeating-radial-gradient(circle at 92% 12%, transparent 0 46px, rgba(207, 227, 220, 0.09) 46px 47px); }
.games .label { color: #92b8b4; }
.games-head { margin-bottom: clamp(36px, 6vw, 70px); }
.games-head h2 { margin-top: 14px; font-size: clamp(46px, 8vw, 112px); font-weight: 300; }
.game { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.toy-frame { margin: 0; }
.orbit-toy { --toy-bg: #e9efe6; --toy-bg-2: #cfe3dc; --toy-ink: #10272c; --toy-ship: #f2593a; --toy-planets: #0c4a54, #f2593a, #2d7f7a;
  display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; background: var(--chalk); cursor: crosshair; touch-action: manipulation; outline: 1px solid rgba(207, 227, 220, 0.5); outline-offset: 7px; }
.orbit-toy:focus-visible { outline: 2px solid var(--coral); }
.orbit-toy canvas { display: block; width: 100%; height: 100%; }
figcaption { margin-top: 18px; }
.status { display: flex; align-items: center; gap: 9px; color: #ffb6a4 !important; }
.status::before { content: ''; width: 9px; height: 9px; background: var(--coral); transform: rotate(45deg); }
h3 { margin: 14px 0 0; font-size: clamp(64px, 11.500vw, 170px); font-style: italic; font-weight: 300; line-height: 0.86; letter-spacing: -0.05em; }
.pitch { margin: 22px 0 28px; font-size: clamp(22px, 2.300vw, 30px); line-height: 1.18; }
.specs { margin: 0; border-top: 1px solid currentColor; }
.specs div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
dt { padding-top: 4px; font: 400 12.500px/1.4 var(--mono); text-transform: uppercase; opacity: 0.75; }
dd { margin: 0; line-height: 1.3; }
.uncharted { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-top: clamp(50px, 7vw, 90px); padding: 20px 0; border-block: 1px dashed rgba(207, 227, 220, 0.4); font-size: 23px; }

/* Values */
.values { padding: clamp(70px, 10vw, 130px) 0; }
.philosophy { margin: 18px 0 clamp(44px, 7vw, 80px); max-width: 21em; font-size: clamp(32px, 5.200vw, 70px); font-weight: 300; line-height: 1.02; }
.soundings { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 70px); margin: 0; padding: 0; counter-reset: s; }
.soundings li { position: relative; counter-increment: s; padding: 18px 0 20px 58px; border-top: 1px solid var(--rule); font-size: clamp(21px, 2.100vw, 28px); line-height: 1.14; transition: color 0.2s; }
.soundings li::before { content: counter(s); position: absolute; left: 6px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--sea); border-radius: 50%; font: 500 13px var(--mono); color: var(--sea); box-shadow: 0 0 0 4px var(--chalk), 0 0 0 5px var(--rule), 0 0 0 9px var(--chalk), 0 0 0 10px transparent; transition: 0.3s; }
.soundings li:hover::before { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 0 0 4px var(--chalk), 0 0 0 5px var(--coral); }

/* Company */
.company { padding: clamp(70px, 10vw, 130px) 0 clamp(90px, 11vw, 150px); background: var(--shallow) repeating-radial-gradient(circle at 96% 70%, transparent 0 38px, rgba(12, 74, 84, 0.13) 38px 39px); }
.company h2 { margin: 14px 0 12px; font-size: clamp(54px, 9vw, 130px); font-weight: 300; font-style: italic; }
.contact { margin-bottom: 34px; font-size: clamp(21px, 2.500vw, 32px); overflow-wrap: anywhere; }
.company .specs { max-width: 760px; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 18px var(--gutter) 70px; background: var(--ink); color: var(--chalk); font: 400 13px var(--mono); }

/* Secondary pages */
.page { max-width: 720px; margin: 0 auto; padding: 110px var(--gutter) 90px; }
.page h1 { margin-bottom: 10px; font-size: clamp(54px, 9vw, 96px); font-style: italic; }
.page h2 { margin: 34px 0 6px; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }
.page p { margin-bottom: 12px; }
.page .label { margin-bottom: 28px; }

/* Always-visible values */
.legend { position: fixed; z-index: 20; right: clamp(10px, 2vw, 22px); bottom: clamp(10px, 2vw, 22px); width: min(430px, calc(100vw - 20px)); background: var(--chalk); color: var(--ink); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--coral); font-size: 16px; line-height: 1.25; }
.legend summary { display: flex; align-items: center; gap: 11px; padding: 9px 12px; list-style: none; cursor: pointer; }
.legend summary::-webkit-details-marker { display: none; }
.legend-tag { flex: none; padding: 2px 6px; background: var(--ink); color: var(--chalk); font: 400 11px var(--mono); text-transform: uppercase; }
.legend ul { margin: 0; padding: 4px 12px 12px 30px; border-top: 1px solid var(--rule); list-style: square; }
.legend li { margin-top: 6px; }
.legend li::marker { color: var(--coral); }
.legend[open] #legend-line { visibility: hidden; }

@media (max-width: 820px) {
  .game, .soundings { grid-template-columns: minmax(0, 1fr); }
  .toy-frame { max-width: 400px; order: 2; padding: 7px; }
  .specs div { grid-template-columns: 88px minmax(0, 1fr); }
  .brand { font-size: 18px; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .soundings li, .soundings li::before { transition: none; }
}
