/* Boca Games studio site. System fonts only: no font, cookie or tracker requests.
   The studio pages are neutral; each game section sets its own colors with a body class. */
:root {
  --paper: #f5f8f7;
  --ink: #0e2a30;
  --ink-soft: #4d666b;
  --sea: #0b6a75;
  --coral: #ee5340;
  --line: #d3dedc;
  --band: #0e2a30;
  --band-ink: #f5f8f7;
  --accent: #ffc83d;
  --display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.g-tidy-magic { --band: #4a2f1f; --band-ink: #f4ead7; --accent: #d9a441; --sea: #7a3a12; }
body.g-tree-wreckers { --band: #1c4a2c; --band-ink: #fff4e0; --accent: #ff8a2a; --sea: #1f6a3a; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 750; margin: 2.2em 0 0.5em; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.7em 0 0.3em; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; line-height: 1.5; max-width: 34em; }
.where { font-weight: 650; }

/* header, game bar, footer */
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 18px; }
.brand { font: 800 1.45rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.14em; border-radius: 50%; background: var(--coral); }
header.site nav, footer.site nav, .gamebar nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
header.site nav a { color: var(--ink); text-decoration: none; font-weight: 550; }
header.site nav a:hover, header.site nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; }

.gamebar { background: var(--band); color: var(--band-ink); }
.gamebar .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; }
.gamebar a { color: var(--band-ink); text-decoration: none; }
.gamebar .gamename { font: 800 1.1rem/1.2 var(--display); }
.gamebar nav a { opacity: 0.85; }
.gamebar nav a:hover, .gamebar nav a[aria-current] { opacity: 1; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.gamebar a:focus-visible { outline-color: var(--accent); }

main { padding: 0 0 80px; }
footer.site { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.93rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 40px; }
footer.site p { margin: 0; }
footer.site a { color: var(--ink-soft); }

/* studio home */
.hero { padding: clamp(40px, 9vw, 96px) 0 clamp(36px, 6vw, 64px); }
.hero h1 { font-size: clamp(2.9rem, 10.5vw, 7rem); line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 0.36em; }

.posters { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.poster { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; text-decoration: none; padding: 0 30px 26px; color: var(--p-ink); background: var(--p-bg); }
.poster:hover { color: var(--p-ink); }
.poster:hover h2 { text-decoration: underline; text-decoration-color: var(--p-accent); text-decoration-thickness: 4px; }
.poster:focus-visible { outline-offset: 4px; border-radius: 22px; }
.poster .art { margin: 0 -30px 26px; aspect-ratio: 16 / 9; overflow: hidden; }
.poster .art img { width: 100%; height: 100%; object-fit: cover; }
.poster h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin: 0 0 0.3em; }
.poster p { margin: 0 0 0.9em; max-width: 26em; }
.poster .where { margin: auto 0 0; padding-top: 0.4em; color: var(--p-accent); }
.p-tw { --p-bg: #1c4a2c; --p-ink: #fff4e0; --p-accent: #ff9a45; }
.p-tm { --p-bg: #4a2f1f; --p-ink: #f4ead7; --p-accent: #e6b85c; }
.p-tw .art { background: #163d24; color: #2f6b41; }
.rings { width: 118%; max-width: none; margin: -24% 0 0 -30%; }

.about { max-width: 42em; margin-top: clamp(40px, 7vw, 72px); }
.about h2:first-child { margin-top: 0; }

/* game pages */
.ghero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; padding: clamp(32px, 6vw, 64px) 0 8px; }
.ghero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.03em; margin-bottom: 0.3em; }
.ghero img, .split img { border-radius: 14px; }
.ghero .art { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: #163d24; color: #2f6b41; }
.ghero .where { color: var(--sea); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-top: 16px; }
.split h2:first-child { margin-top: 1.2em; }
.split .tall { max-width: 320px; justify-self: center; margin-top: 28px; }
.shops { list-style: none; padding: 0; margin: 0; }
.shops li { padding: 12px 0; border-top: 1px solid var(--line); }
.shops b { display: block; font-family: var(--display); font-size: 1.08rem; }

/* text pages: support, privacy, terms */
.prose { padding-top: clamp(32px, 6vw, 60px); }
.prose > * { max-width: 42rem; }
.prose h1 { margin-bottom: 0.45em; }
.prose h2 { padding-top: 1.1em; border-top: 1px solid var(--line); }
.prose ul { padding-left: 1.25em; }
.prose li { margin: 0.3em 0; }
.meta { color: var(--ink-soft); font-size: 0.95rem; margin: -0.6em 0 1.8em; }
.note { background: #e7efed; border-left: 5px solid var(--accent); padding: 14px 18px; margin: 22px 0; border-radius: 0 8px 8px 0; }
.note p { margin: 0.3em 0; }
.prose ul.picks { list-style: none; padding: 0; margin: 1.6em 0; border-bottom: 1px solid var(--line); }
.picks li { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); }
.picks a { font: 750 1.25rem/1.3 var(--display); display: block; }
.picks span { color: var(--ink-soft); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .posters, .ghero, .split { grid-template-columns: 1fr; }
  .poster { padding: 0 22px 22px; }
  .poster .art { margin: 0 -22px 22px; }
  .split .tall { max-width: 260px; margin-top: 8px; }
}
