/* VOICE   occasion: a small game studio's home, warm and confident, never corporate
   IDEA    the Sandbox Theory emblem: separate pieces cut at the same 30 degree angle that fit into one hexagon
   PICTURE the glossy emblem on the home page; real game footage and renders on every other tile, all cut like emblem pieces
   COLOUR  emblem navy ground, cream and orange pieces as the working colours, slate for the unannounced game
   TYPE    Young Serif for headings (close to the wordmark's flared serif), Outfit for text (echoes THEORY)
   LAYOUT  sticky bar, hero text with the emblem, game tiles, studio, a cream sign-up band, footer */

@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/young-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/outfit-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0a1826;
  --bg2: #0f2134;
  --bg3: #152c44;
  --line: #22415f;
  --ink: #f3ead9;
  --muted: #b0bfcf;
  --cream: #f6e3c4;
  --cream-ink: #13263a;
  --orange: #f29324;
  --orange-hi: #ffab4a;
  --slate: #6a8db0;
  --slate-deep: #1b3b55;
  --cx: 44px;
  --cy: 26px;
  --wrap: 1240px;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --text: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 68px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.band { padding-block: clamp(48px, 7vw, 104px); padding-inline: max(5vw, 16px); }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }

/* the emblem's cut: corners sliced at the same angle as its pieces */
.cut { clip-path: polygon(var(--cx) 0, 100% 0, 100% calc(100% - var(--cy)), calc(100% - var(--cx)) 100%, 0 100%, 0 var(--cy)); }
.cut-sm { --cx: 22px; --cy: 13px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 24, 38, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-inline: max(5vw, 16px); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; display: block; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 22px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.top-cta { flex: none; min-height: 40px; padding: 0 16px; font-size: 15px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }

/* buttons and labels */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 4px; font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn-main { background: var(--orange); color: var(--cream-ink); }
.btn-main:hover { background: var(--orange-hi); }
.btn-line { border-color: rgba(246, 227, 196, 0.45); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--cream); background: rgba(246, 227, 196, 0.08); }
.btn-dark { background: var(--cream-ink); color: var(--cream); }
.btn-dark:hover { background: #1e3a56; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.tags li { font-size: 14px; font-weight: 500; line-height: 1; padding: 7px 11px; border-radius: 99px; border: 1px solid currentColor; opacity: 0.85; white-space: nowrap; }

/* home hero */
.hero { position: relative; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(64px, 8vw, 120px); background: radial-gradient(circle at 78% 42%, rgba(242, 147, 36, 0.13), transparent 46%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { max-width: 11em; }
.hero .emblem { justify-self: center; width: min(100%, 470px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }
.dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; pointer-events: none; }
.dunes path { fill: none; stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* home game tiles */
.games-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 32px; margin-bottom: 28px; }
.games-head p { max-width: 30em; margin: 0; }
.tile-rt { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--bg2); }
.tile-rt .media { position: relative; background: #0c2a44; min-height: 320px; }
.tile-rt video, .tile-rt .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.tile-body .logo { width: min(100%, 300px); height: auto; margin: 0 0 18px -6px; }
.tile-rt .tags { color: var(--orange-hi); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.tile-bip { background: var(--cream); color: var(--cream-ink); display: flex; flex-direction: column; }
.tile-bip .shot { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; object-position: 50% 60%; }
.tile-bip .tile-body { flex: 1; justify-content: flex-start; }
.tile-bip .logo { width: min(100%, 230px); margin: -78px 0 14px -4px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); position: relative; }
.tile-bip .tags { color: #2d5a3e; }
.tile-bip p { color: #33465a; }
.tile-coop { background: var(--slate-deep); display: flex; flex-direction: column; }
.tile-coop svg { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.tile-coop .tile-body { flex: 1; justify-content: flex-start; }
.tile-coop .tags { color: #9fc0df; }
.tile-coop p { color: #c4d3e2; }

/* studio */
.studio { background: var(--bg2); }
.studio .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.studio .intro p { color: var(--muted); }
.ways { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.ways li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; align-items: start; }
.ways svg { width: 46px; height: 40px; margin-top: 4px; }
.ways h3 { margin-bottom: 0.3em; }
.ways p { margin: 0; color: var(--muted); }

/* sign-up band */
.signup { background: var(--cream); color: var(--cream-ink); }
.signup .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.signup .lead { color: #3a4d61; }
.form { background: #fff8ec; padding: clamp(22px, 3vw, 34px); border: 1px solid #e2cba6; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field { width: 100%; height: 52px; padding: 0 14px; font: 400 17px var(--text); color: var(--cream-ink); background: #fff; border: 2px solid #b8a07c; border-radius: 4px; }
.field:focus { border-color: var(--cream-ink); outline: none; box-shadow: 0 0 0 3px rgba(242, 147, 36, 0.45); }
.form fieldset { border: 0; padding: 0; margin: 20px 0 22px; }
.form legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick span { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid #c9b18b; border-radius: 4px; font-weight: 500; font-size: 16px; background: #fff; white-space: nowrap; }
.pick span::before { content: ""; width: 16px; height: 16px; border: 2px solid #8b7556; border-radius: 3px; flex: none; }
.pick input:checked + span { border-color: var(--cream-ink); background: var(--cream-ink); color: var(--cream); }
.pick input:checked + span::before { background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2313263a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--orange); }
.pick input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.form .hint { font-size: 14px; color: #5a6b7d; margin: 8px 0 0; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 14px 0 0; font-weight: 500; }
.status:empty { display: none; }
.status.ok { color: #1f6b3a; }
.status.err { color: #a3361b; }
.form.done .field, .form.done fieldset, .form.done .btn { display: none; }
.form.done label[for] { display: none; }
.form.done .status { font-size: 19px; margin: 0; }

/* footer */
.foot { background: #07121d; color: var(--muted); padding-block: 48px 36px; padding-inline: max(5vw, 16px); font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot img { height: 56px; width: auto; margin-bottom: 14px; }
.foot h2 { font: 600 15px var(--text); color: var(--ink); margin: 0 0 10px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .small { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin: 8px 0 0; font-size: 14px; }

/* game pages */
.game-hero { padding-top: clamp(36px, 5vw, 72px); }
.game-hero .head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.game-hero h1 { margin: 0 0 18px; }
.game-hero h1 img { width: min(100%, 460px); height: auto; }
.game-hero .tags { color: var(--orange-hi); }
.trailer { margin-top: clamp(32px, 4vw, 56px); background: #000; }
.trailer video { width: 100%; aspect-ratio: 16 / 9; }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 88px); }
.feature:first-of-type { margin-top: 0; }
.feature.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature.flip .pic { order: 2; }
.feature .pic img { width: 100%; height: auto; }
.feature p { color: var(--muted); }
.planned { margin-top: clamp(48px, 6vw, 88px); padding: clamp(22px, 3vw, 34px); background: var(--bg3); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: start; }
.planned h3 { margin: 0; }
.planned ul { margin: 0; padding-left: 1.2em; color: var(--muted); columns: 2 220px; column-gap: 32px; }
.planned li { margin-bottom: 6px; break-inside: avoid; }
.playtest { background: linear-gradient(115deg, #2a1a08, #4a2a07 55%, #6b3b06); }
.playtest .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.playtest p { color: #f0d9b8; }
.playtest .note { font-size: 15px; color: #d9bb8f; margin-top: 12px; }
.playtest img { width: min(100%, 360px); justify-self: center; }

/* back in print page */
.bip-hero .head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bip-hero .pic { order: -1; }
.bip-hero .pic img { width: 100%; height: auto; }
.bip-hero .tags { color: #e8d2a8; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
.steps li::before { content: counter(s); font: 400 34px/1 var(--display); color: var(--cream); padding-top: 2px; }
.steps h3 { margin-bottom: 0.25em; font-size: 22px; }
.steps p { margin: 0; color: var(--muted); }
.plays { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.plays .pic img { width: 100%; height: auto; }
.letter { background: var(--bg2); }
.letter .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.letter p { color: var(--muted); }
.places { display: grid; gap: clamp(36px, 5vw, 64px); }
.place-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 14px; }
.place-head h3 { margin: 0; }
.place-head p { margin: 0; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--bg2); padding: 26px 28px; }
.facts h3 { font-size: 21px; }
.facts p { margin: 0; color: var(--muted); }

@media (max-width: 1000px) {
  .nav { gap: 2px 16px; }
  .studio .wrap, .signup .wrap, .playtest .wrap, .letter .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero .wrap, .tile-rt, .game-hero .head, .bip-hero .head, .feature, .feature.flip, .plays, .planned { grid-template-columns: minmax(0, 1fr); }
  .hero .emblem { width: min(40%, 230px); order: -1; justify-self: start; }
  .feature.flip .pic { order: 0; }
  .tile-rt .media { min-height: 0; aspect-ratio: 1100 / 486; }
  .duo, .facts { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playtest img { display: none; }
}
@media (max-width: 600px) {
  :root { --cx: 26px; --cy: 15px; }
  body { font-size: 16px; }
  .top .wrap { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; min-height: 0; }
  .brand img { height: 44px; }
  .top-cta { order: 2; margin-left: auto; min-height: 38px; padding: 0 14px; }
  .nav { order: 3; margin-left: 0; width: 100%; justify-content: space-between; flex-wrap: nowrap; overflow-x: auto; gap: 16px; scrollbar-width: none; }
  .nav a { flex: none; }
  .hero { padding-top: 28px; }
  .hero .emblem { width: 150px; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .tile-bip .logo { margin-top: -56px; width: 190px; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .btns .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
