/* gogoodgame.com — GoodGame brand: ink, gold, purple-to-indigo slanted plates.
   Colours from docs/GoodGame-documents-brand-sheet.md. Fonts are self-hosted (no third-party requests). */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0E1013;
  --gold: #FFD300;
  --gold-line: #A08000;
  --gold-tint: #FFF3B0;
  --grey-text: #5E6672;
  --grey-line: #C7CCD3;
  --grey-band: #F2F4F7;
  --white: #FFFFFF;
  --purple: #4A127A;
  --indigo: #2A178F;
  --plate: linear-gradient(100deg, var(--purple) 0%, var(--indigo) 100%);

  --font-head: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius: 6px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --slant: 4vw;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0 0 var(--space-4); }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-line); outline-offset: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .plate :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: var(--space-3) var(--space-6);
  font: 700 18px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 680px; }

/* header */
.site-header { background: var(--ink); color: var(--white); border-bottom: 4px solid var(--gold); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-top: var(--space-3); padding-bottom: var(--space-3); }
.brand { display: inline-flex; min-height: 44px; align-items: center; }
.brand img { height: 44px; width: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0 calc(-1 * var(--space-3)); padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  font: 600 19px/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em;
  color: var(--white); text-decoration: none;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

/* slanted plates */
.plate { background: var(--plate); color: var(--white); position: relative; }
.plate a { color: var(--white); text-decoration-color: var(--gold); }
.hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.hero .plate-bg {
  position: absolute; inset: 0; background: var(--plate);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant) - 40px), 0 100%);
}
.hero .gold-stripe {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--slant) + 52px);
  background: var(--gold);
  clip-path: polygon(0 calc(100% - 6px), 100% 0, 100% 6px, 0 100%);
}
.hero .container { position: relative; display: grid; gap: var(--space-8); padding-top: var(--space-12); padding-bottom: calc(var(--space-16) + var(--slant)); }
.hero-art img { width: min(260px, 70%); margin: 0 auto; }

.eyebrow {
  display: inline-block; margin-bottom: var(--space-4);
  font: 700 16px/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em;
  background: var(--gold); color: var(--ink); padding: 6px 12px;
  transform: skewX(-12deg);
}
.eyebrow > span { display: inline-block; transform: skewX(12deg); }

.display { font: 700 44px/1.02 var(--font-head); text-transform: uppercase; letter-spacing: .01em; }
.display .gold { color: var(--gold); }
.lead { font-size: 19px; line-height: 1.55; }
.hero .lead { color: #EDEAF7; }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  font: 700 19px/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius);
}
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: #FFE04D; }
.button-ghost { border-color: var(--white); color: var(--white); }
.button-ghost:hover { background: rgb(255 255 255 / .12); }
.button-ink { background: var(--ink); color: var(--white); }
.button-ink:hover { background: #262A31; }
.hero .button, .plate .button { color: inherit; }
.hero .button-gold, .plate .button-gold { color: var(--ink); }
.hero .button-ghost, .plate .button-ghost { color: var(--white); }

/* sections */
.section { padding: var(--space-12) 0; }
.section-band { background: var(--grey-band); }
.h1-rule, .section h2 {
  font: 700 32px/1.05 var(--font-head); text-transform: uppercase; letter-spacing: .02em;
  padding-bottom: var(--space-3); margin-bottom: var(--space-6);
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 72px 4px no-repeat;
}
.section h3 { font: 600 24px/1.15 var(--font-head); margin-bottom: var(--space-2); }

.features { display: grid; gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
.feature { background: var(--white); border: 1px solid var(--grey-line); border-top: 4px solid var(--gold); padding: var(--space-6); border-radius: 0 0 var(--radius) var(--radius); }
.feature p { margin: 0; color: var(--grey-text); }
.feature .num { font: 700 15px/1 var(--font-head); color: var(--grey-text); letter-spacing: .1em; margin-bottom: var(--space-3); display: block; }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.checklist li { position: relative; padding-left: 32px; margin-bottom: var(--space-3); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 10px;
  border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(-45deg); transform-origin: center;
}

.callout {
  background: var(--gold-tint); border-left: 6px solid var(--gold); padding: var(--space-6);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h2, .callout h3 { background: none; padding: 0; margin-bottom: var(--space-2); }

/* page head: a slim slanted plate */
.page-head { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.page-head .plate-bg { position: absolute; inset: 0; background: var(--plate); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); }
.page-head .container { position: relative; padding-top: var(--space-12); padding-bottom: calc(var(--space-12) + 16px); }
.page-head h1 { font: 700 44px/1.02 var(--font-head); text-transform: uppercase; margin-bottom: var(--space-3); }
.page-head p { color: #EDEAF7; margin: 0; }
.page-head .meta { margin-top: var(--space-3); font-size: 15px; }

/* legal prose */
.prose { max-width: 720px; padding: var(--space-12) 0 var(--space-16); }
.prose h2 {
  font: 700 26px/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .02em;
  margin: var(--space-12) 0 var(--space-4); padding-bottom: var(--space-2);
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 56px 3px no-repeat;
}
.prose h3 { font: 600 21px/1.2 var(--font-head); margin: var(--space-6) 0 var(--space-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose blockquote { margin: 0 0 var(--space-4); padding: var(--space-4) var(--space-6); border-left: 6px solid var(--ink); background: var(--grey-band); }
.prose blockquote p:last-child { margin: 0; }
.toc { background: var(--grey-band); padding: var(--space-6); border-radius: var(--radius); margin-bottom: var(--space-8); }
.toc h2 { margin-top: 0; }
.toc ol { columns: 1; margin: 0; }
.draft-banner {
  display: inline-block; background: var(--gold); color: var(--ink);
  font: 700 17px/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em;
  padding: 8px 14px; margin-bottom: var(--space-4);
}
.confirm { background: var(--gold-tint); color: var(--ink); outline: 1px dashed var(--gold-line); padding: 0 3px; font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-4); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
th { background: var(--ink); color: var(--white); text-align: left; font: 600 16px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; }
td { border-bottom: 1px solid var(--grey-line); padding: 10px 12px; vertical-align: top; }
tr:nth-child(even) td { background: var(--grey-band); }
address { font-style: normal; }

/* footer */
.site-footer { background: var(--ink); color: #D9DCE1; border-top: 4px solid var(--gold); padding: var(--space-12) 0 var(--space-8); font-size: 15px; }
.site-footer a { color: var(--white); text-decoration-color: var(--gold); }
.site-footer .footer-grid { display: grid; gap: var(--space-6); }
.site-footer .mark { width: 56px; height: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; font: 600 18px/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.site-footer .endorse { color: var(--gold); font: 600 17px/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.site-footer .endorse a { color: var(--gold); }
.site-footer .legal { margin: var(--space-2) 0 0; }

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .brand img { height: 52px; }
  .features { grid-template-columns: 1fr 1fr; }
  .display { font-size: 56px; }
}

@media (min-width: 960px) {
  :root { --gutter: 48px; --slant: 64px; }
  .section { padding: var(--space-16) 0; }
  .hero .container { grid-template-columns: 1.35fr 1fr; align-items: center; padding-top: var(--space-16); }
  .hero-art img { width: 100%; max-width: 360px; }
  .display { font-size: 72px; }
  .page-head h1 { font-size: 60px; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
  .site-footer .footer-grid { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-8); }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .site-nav a { transition: background-color 200ms ease, color 200ms ease; }
}
.prose a, .prose code { overflow-wrap: anywhere; }
.hero h1 { margin-bottom: var(--space-6); }
.two-col > * + * { margin-top: var(--space-8); }
@media (min-width: 960px) { .two-col > * + * { margin-top: 0; } }
.page-head .draft-banner { color: var(--ink); margin: 0 0 var(--space-4); }
.prose .callout { margin-bottom: var(--space-8); }
.prose .callout h2 { margin-top: 0; }
