/* Brass Picnic: Midnight Ink stage, Warm Ivory type, Brass Gold accents, Slate/Sky links.
   Fraunces for display, DM Sans for text. The site is dark by design. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-soft-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #060d30;
  --ink-2: #0a1238;
  --surface: #0e1843;
  --surface-2: #15215a;
  --line: #243069;
  --text: #f5f0e6;
  --muted: #b4b9d2;
  --link: #99cae8;
  --brass: #d6a23d;
  --brass-hi: #efc56a;
  --on-brass: #060d30;
  --leaf: #36ad7f;
  --edge: clamp(1.25rem, 5vw, 4.5rem);
  --wrap: 78rem;
  --display: "Fraunces", "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 0.25em; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0.75rem 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 50;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 9vw, 6.5rem); font-weight: 750; overflow-wrap: anywhere; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.01em; }

.eyebrow {
  margin: 0 0 1rem;
  font: 700 0.8125rem/1 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-hi);
}
.eyebrow::before { content: ""; display: inline-block; width: 2rem; height: 2px; margin-inline-end: 0.75rem; vertical-align: middle; background: var(--brass); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--edge); }

.skip {
  position: absolute; inset: 0 auto auto 0; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--brass); color: var(--on-brass); font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---- studio header ---- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 13, 48, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 0.625rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--text); text-decoration: none;
  font: 700 1.375rem/1 var(--display); font-variation-settings: "SOFT" 50; letter-spacing: -0.01em;
}
.brand { white-space: nowrap; }
.brand img { width: 2.75rem; height: 2.75rem; }
.brand:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.nav { display: flex; gap: clamp(1.25rem, 3vw, 2rem); }
.nav a {
  white-space: nowrap;
  display: block; padding-block: 0.875rem;
  color: var(--muted); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none;
  border-block: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); border-block-end-color: var(--brass); }

/* ---- app bar: sits under the studio header on every game page ---- */
.appbar { background: var(--ink-2); border-block-end: 1px solid var(--line); }
.appbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 2rem; }
.appbar-id { display: inline-flex; align-items: center; gap: 0.75rem; padding-block: 0.625rem; color: var(--text); text-decoration: none; }
.appbar-id img { width: 2.25rem; height: 2.25rem; border-radius: 22%; }
.appbar-id span { font: 700 1.125rem/1 var(--display); font-variation-settings: "SOFT" 50; }
.tabs { display: flex; gap: clamp(1rem, 3vw, 2rem); overflow-x: auto; }
.tabs a {
  display: block; padding-block: 1rem; white-space: nowrap;
  color: var(--muted); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  border-block: 3px solid transparent;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--text); border-block-end-color: var(--brass); }

main { flex: 1; }
main:focus { outline: none; }

/* ---- buttons, chips ---- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  color: var(--on-brass); font-weight: 700; letter-spacing: 0.02em; text-decoration: none;
  border: 2px solid var(--brass);
  box-shadow: 0 10px 30px rgba(214, 162, 61, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(214, 162, 61, 0.38); }
.button.quiet { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.button.quiet:hover { border-color: var(--brass); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.chips li {
  padding: 0.375rem 0.875rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.03em;
  border: 1px solid var(--line); background: rgba(21, 33, 90, 0.5); color: var(--text);
}

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 70% at 78% 45%, rgba(54, 173, 127, 0.30), transparent 70%),
    radial-gradient(45% 55% at 10% 100%, rgba(214, 162, 61, 0.16), transparent 70%),
    radial-gradient(40% 50% at 55% -10%, rgba(32, 54, 124, 0.9), transparent 70%),
    var(--ink);
}
.hero::after { /* fine brass rule along the bottom edge */
  content: ""; position: absolute; inset: auto 0 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--brass) 20%, var(--brass) 80%, transparent);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.hero-title { display: flex; align-items: center; gap: 1.25rem; }
.hero-title img { width: clamp(4rem, 8vw, 6rem); aspect-ratio: 1; border-radius: 22%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,.12); }
.hero-sub { margin: 1.25rem 0 0; font: 550 clamp(1.5rem, 3vw, 2.25rem)/1.2 var(--display); font-variation-settings: "SOFT" 50; color: var(--brass-hi); }
.lede { max-width: 34rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #e4dfd2; }

/* phones: real screenshots in a device frame */
.phone {
  margin: 0; border-radius: 12% / 5.5%;
  background: #000; padding: 0; overflow: hidden;
  box-shadow: 0 0 0 clamp(3px, 0.6%, 6px) #1b2663, 0 0 0 clamp(4px, 0.8%, 8px) #050a26, 0 30px 70px rgba(0, 0, 0, 0.55);
}
.phone img { width: 100%; height: auto; }
.stage { position: relative; width: 100%; max-width: 36rem; margin-inline: auto; aspect-ratio: 1 / 1.12; }
.stage .phone { position: absolute; }
.stage .p-main { width: 50%; left: 25%; top: 0; z-index: 3; }
.stage .p-left { width: 40%; left: 1%; top: 16%; z-index: 2; transform: rotate(-7deg); filter: brightness(.9); }
.stage .p-right { width: 40%; right: 1%; top: 16%; z-index: 2; transform: rotate(7deg); filter: brightness(.9); }
.stage::before { /* glow behind the phones */
  content: ""; position: absolute; inset: 10% 5% 0; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(54, 173, 127, 0.35), transparent);
  filter: blur(20px);
}

@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

/* ---- stat strip ---- */
.stats { background: var(--ink-2); border-block-end: 1px solid var(--line); }
.stats ul { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats li { padding: 1.75rem 1rem; text-align: center; border-inline-end: 1px solid var(--line); }
.stats li:nth-child(2n) { border-inline-end: 0; }
.stats li:nth-child(n+3) { border-block-start: 1px solid var(--line); }
.stats b { display: block; font: 750 clamp(2.25rem, 5vw, 3.5rem)/1 var(--display); font-variation-settings: "SOFT" 50; color: var(--brass-hi); }
.stats span { display: block; margin-top: 0.5rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 48rem) {
  .stats ul { grid-template-columns: repeat(4, 1fr); }
  .stats li:nth-child(n+3) { border-block-start: 0; }
  .stats li:nth-child(2n) { border-inline-end: 1px solid var(--line); }
  .stats li:last-child { border-inline-end: 0; }
}

/* ---- sections ---- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* games list on the studio home */
.game-card {
  display: grid; gap: 1.5rem 2.5rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-block-end: 4px solid var(--brass);
}
.game-card img { width: 6.5rem; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.game-card h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.game-card p { margin: 0.5rem 0 0; color: var(--muted); }
.game-card .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; font-weight: 600; }
@media (min-width: 40rem) { .game-card { grid-template-columns: auto 1fr; } }

/* feature showcase: alternating copy and phone */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem clamp(2rem, 7vw, 7rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.showcase + .showcase { border-block-start: 1px solid var(--line); }
.showcase .num { font: 750 1rem/1 var(--display); color: var(--brass); letter-spacing: 0.1em; }
.showcase h2 { margin-top: 0.75rem; }
.showcase p { max-width: 30rem; margin-top: 1.25rem; color: var(--muted); font-size: 1.1875rem; }
.showcase .phone { width: min(100%, 19rem); margin-inline: auto; }
@media (min-width: 48rem) {
  .showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .showcase:nth-child(even) .copy { order: 2; }
  .showcase:nth-child(even) .phone { order: 1; }
}

/* small facts */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.facts li { padding: 1.5rem; background: var(--surface); }
.facts h3 { font-size: 1.1875rem; color: var(--brass-hi); }
.facts p { margin: 0.5rem 0 0; color: var(--muted); font-size: 1rem; }

.cta { text-align: center; background: radial-gradient(60% 100% at 50% 0, rgba(32, 54, 124, .7), transparent 70%), var(--ink-2); border-block-start: 1px solid var(--line); }
.cta h2 { max-width: 30rem; margin-inline: auto; }
.cta p { color: var(--muted); max-width: 30rem; margin-inline: auto; }
.cta .actions { justify-content: center; }

/* ---- reading pages: privacy, support ---- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.prose { max-width: 46rem; padding-block: 2rem clamp(4rem, 9vw, 6rem); }
.prose .lede { color: var(--muted); }
.prose h2 { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin-top: 1.75rem; font-size: 1.25rem; color: var(--brass-hi); }
.prose ul { list-style: disc; padding-inline-start: 1.25rem; margin: 0.5rem 0; }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--brass); }
.prose h1 { display: none; } /* the page head carries the title */
.date { color: var(--muted); margin: 0 0 1.5rem; }
.short { background: var(--surface); border-inline-start: 6px solid var(--brass); padding: 0.5rem 1.5rem 1rem; margin: 1.5rem 0; }
.short p:first-child { margin-top: 0.75rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 1rem; }
th, td { text-align: start; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; }

.faq details { background: var(--surface); border: 1px solid var(--line); margin-block: 0.75rem; transition: border-color .15s; }
.faq details:hover { border-color: var(--surface-2); background: var(--surface-2); }
.faq summary { cursor: pointer; padding: 1.125rem 1.5rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brass-hi); }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-inline-start: 4px solid var(--brass); background: var(--surface); }
.faq details > div { padding: 0 1.5rem 1.25rem; color: #e4dfd2; }
.faq details > div p:first-child { margin-top: 0; }
.contact { margin-top: 3rem; padding: 2rem; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border-block-end: 4px solid var(--brass); }
.contact h2 { margin: 0; padding: 0; border: 0; font-size: 1.75rem; }

/* ---- footer ---- */
.footer { background: var(--ink-2); border-block-start: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem; }
.footer .brand { font-size: 1.125rem; }
.footer .brand img { width: 2.25rem; height: 2.25rem; }
.footer p { margin: 0; }

@media (max-width: 30rem) {
  .brand { font-size: 1.125rem; gap: 0.5rem; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .nav { gap: 1rem; }
}
