/* ============================================================
   BRAND NEW COLORS — shared styles
   Palette from FULL_LOGO.pdf:
   red #E62D24 · blue #234B9B · yellow #F6A716 · ink #131313
   ============================================================ */

:root {
  --paper: #FBF9F3;
  --paper-2: #F1EDE2;
  --ink: #131313;
  --ink-soft: #3d3b36;
  --red: #E62D24;
  --blue: #234B9B;
  --blue-lt: #5B82D6;
  --yellow: #F6A716;
  --border: 2px solid var(--ink);
  --font-display: "Archivo Black", "Archivo", sans-serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "Space Mono", monospace;
  --measure: 62ch;
  --pad-x: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: var(--blue); }
a:hover { color: var(--red); }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; }

.display {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black carries its own weight */
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

h1.display { font-size: clamp(2.4rem, 6.4vw, 4.9rem); }
h2.display { font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.08; }
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.eyebrow .tick {
  width: 13px; height: 13px; flex: none;
  border-top: 4px solid var(--red);
  border-left: 4px solid var(--red);
  border-radius: 4px 0 0 0;
}
.tick-red { border-color: var(--red) !important; }
.tick-blue { border-color: var(--blue) !important; }
.tick-yellow { border-color: var(--yellow) !important; }

/* Nested-corner motif (mini version of the brand mark) */
.step-corner { display: block; }
.corner-red, .corner-blue, .corner-yellow {
  border-top: 8px solid;
  border-left: 8px solid;
  border-radius: 10px 0 0 0;
}
.corner-red { border-color: var(--red); }
.corner-blue { border-color: var(--blue); }
.corner-yellow { border-color: var(--yellow); }

.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: var(--measure); }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* Painted underline for a key phrase */
.painted {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 0.26em;
  background-position: 0 88%;
  padding: 0 0.06em;
}
.painted--red { background-image: linear-gradient(var(--red), var(--red)); color: var(--paper); }
.painted--blue { background-image: linear-gradient(var(--blue), var(--blue)); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 15px 26px;
  border: var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--yellow);
}
.btn-primary:hover {
  color: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--red);
}
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--yellow); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.btn-secondary:hover { color: var(--ink); background: var(--yellow); }

.btn-on-dark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 6px 6px 0 var(--red);
}
.btn-on-dark:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--yellow);
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--border);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--pad-x);
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; }
.brand .wordmark {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a.page-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
}
.nav-links a.page-link:hover { border-bottom-color: var(--yellow); }
.nav-links a.page-link[aria-current="page"] { border-bottom-color: var(--red); }
.nav-links .btn { padding: 11px 18px; font-size: 0.8rem; }

.nav-toggle {
  display: none;
  background: none;
  border: var(--border);
  border-radius: 2px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px var(--pad-x) 24px;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) var(--pad-x);
}
.section .inner { max-width: 1280px; margin: 0 auto; }
.section-alt { background: var(--paper-2); border-top: var(--border); border-bottom: var(--border); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: #d8d4c9; }
.section-dark a { color: var(--blue-lt); }
.section-dark a:hover { color: var(--yellow); }

.section-head { max-width: 820px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head p { margin-top: 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 140px) var(--pad-x) clamp(72px, 9vw, 120px);
}
.hero .inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(220px, 34vw, 520px);
  transform: rotate(90deg) translate(-6%, -6%);
  transform-origin: top right;
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero-mark { width: 190px; opacity: 0.35; }
}

/* Sub-hero used on interior pages */
.page-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 20ch; }

/* ---------- Card grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
}
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--paper);
  border: var(--border);
  border-radius: 2px;
  padding: 30px 28px 32px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.card h3 { margin: 18px 0 12px; }
.card p { font-size: 1.02rem; }

.card--red    { box-shadow: 7px 7px 0 var(--red); }
.card--blue   { box-shadow: 7px 7px 0 var(--blue); }
.card--yellow { box-shadow: 7px 7px 0 var(--yellow); }
.card:hover { transform: translate(-3px, -3px); }
.card--red:hover    { box-shadow: 10px 10px 0 var(--red); }
.card--blue:hover   { box-shadow: 10px 10px 0 var(--blue); }
.card--yellow:hover { box-shadow: 10px 10px 0 var(--yellow); }

.icon-tile {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: var(--border);
  border-radius: 2px;
}
.icon-tile svg { width: 28px; height: 28px; }
.tile-red { background: var(--red); }
.tile-blue { background: var(--blue); }
.tile-yellow { background: var(--yellow); }
.tile-red svg, .tile-blue svg { stroke: var(--paper); }
.tile-yellow svg { stroke: var(--ink); }

/* ---------- Stakes (dark) ---------- */

.stakes { position: relative; overflow: hidden; }
.stakes .inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.stakes h2 { max-width: 22ch; margin-bottom: 26px; }
.stakes .copy { max-width: var(--measure); margin-bottom: 34px; }
.stakes-mark {
  position: absolute;
  bottom: -8%;
  right: -4%;
  width: clamp(260px, 36vw, 560px);
  opacity: 0.16;
  pointer-events: none;
}

/* ---------- Plan steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 32px); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding: 26px 0 0; }
.step .step-corner {
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
}
.step .num {
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1;
  padding: 6px 0 0 14px;
}
.step h3 { margin: 18px 0 10px; }
.step p { font-size: 1.02rem; }

/* ---------- CTA band ---------- */

.cta-band { text-align: left; }
.cta-band .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}
.cta-band h2 { max-width: 18ch; }
.cta-band p { margin-top: 14px; }

/* ---------- Pricing ---------- */

.tier { display: flex; flex-direction: column; }
.tier .tier-for {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 6px 0 16px;
  color: var(--ink-soft);
}
.tier ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex: 1;
}
.tier li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 1rem;
  border-bottom: 1px solid #dcd7c9;
}
.tier li:last-child { border-bottom: 0; }
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 12px; height: 12px;
  border-top: 3px solid var(--accent, var(--yellow));
  border-left: 3px solid var(--accent, var(--yellow));
  border-radius: 3px 0 0 0;
}
.tier .btn { align-self: flex-start; }

.scope-note {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-top: 36px;
  max-width: 70ch;
  color: var(--ink-soft);
}

/* ---------- Guide / essay ---------- */

.guide-list { display: grid; gap: clamp(20px, 3vw, 34px); max-width: 820px; }
.guide-item { border-left: 6px solid var(--accent, var(--yellow)); padding-left: 22px; }
.guide-item h3 { text-transform: none; font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; }
.guide-item p { margin-top: 8px; }

.essay { max-width: 68ch; }
.essay p { font-size: 1.06rem; }
.essay .pull {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  margin: 34px 0;
  padding-left: 22px;
  border-left: 8px solid var(--red);
  max-width: 30ch;
}

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 20px; max-width: 640px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: var(--border);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}
.form-note { font-size: 0.95rem; color: var(--ink-soft); max-width: 60ch; }
.form-success {
  display: none;
  border: var(--border);
  border-radius: 2px;
  background: var(--paper-2);
  box-shadow: 6px 6px 0 var(--blue);
  padding: 26px;
  max-width: 640px;
}
.form-success.show { display: block; }

/* ---------- Brief checklist ---------- */

.brief-list {
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
  max-width: 620px;
}
.brief-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid #dcd7c9;
}
.brief-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 14px; height: 14px;
  border-top: 4px solid var(--red);
  border-left: 4px solid var(--red);
  border-radius: 4px 0 0 0;
}
.brief-list li:nth-child(3n+2)::before { border-color: var(--blue); }
.brief-list li:nth-child(3n)::before { border-color: var(--yellow); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(44px, 6vw, 72px) var(--pad-x) 36px;
  border-top: 8px solid transparent;
  border-image: linear-gradient(90deg,
    var(--red) 0 33.4%, var(--blue) 33.4% 66.7%, var(--yellow) 66.7% 100%) 1;
}
.site-footer .inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid #3a3a3a;
}
.footer-brand .mark { width: 44px; height: 44px; margin-bottom: 16px; }
.footer-brand .tagline {
  max-width: 34ch;
  color: #cfcabd;
  font-size: 1.02rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  align-items: center;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  padding-bottom: 3px;
}
.footer-links a:hover { color: var(--paper); border-bottom-color: var(--yellow); }
.footer-bottom {
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #a49f92;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Games showcase ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
}
@media (max-width: 960px) { .game-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .game-grid { grid-template-columns: 1fr; } }

.game-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.game-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: var(--border);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
/* Replace a cover's placeholder art with a real screenshot:
   <img class="game-shot" src="assets/screens/your-game.png" alt="..."> */
.game-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-red { background: var(--red); }
.cover-blue { background: var(--blue); }
.cover-yellow { background: var(--yellow); }
.cover-ink { background: var(--ink); }
.game-cover .cover-genre {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 12px;
  margin: 0 0 12px 12px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 2px;
}
.game-card:target {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
}
.game-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 1rem; margin: 0 0 8px; }
.game-body p { font-size: 0.98rem; flex: 1; }
.game-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-decoration: none;
  margin-top: 14px;
  align-self: flex-start;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 2px;
}
.game-link:hover { color: var(--red); border-bottom-color: var(--red); }

/* ---------- Game index (home) ---------- */

.game-index {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  border-top: var(--border);
}
.game-index li { border-bottom: 1px solid #ddd8ca; }
.game-index li:last-child { border-bottom: var(--border); }
.game-index a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 4px 16px 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 140ms ease, background 140ms ease;
}
.game-index a:hover,
.game-index a:focus-visible {
  color: var(--ink);
  background: var(--paper-2);
  padding-left: 16px;
}
.gi-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  line-height: 1.15;
}
.gi-genre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
/* Rotate the three brand colors down the list */
.game-index li:nth-child(3n+1) a:hover .gi-genre,
.game-index li:nth-child(3n+1) a:focus-visible .gi-genre { color: var(--red); }
.game-index li:nth-child(3n+2) a:hover .gi-genre,
.game-index li:nth-child(3n+2) a:focus-visible .gi-genre { color: var(--blue); }
.game-index li:nth-child(3n) a:hover .gi-genre,
.game-index li:nth-child(3n) a:focus-visible .gi-genre { color: #b57c05; }

@media (max-width: 620px) {
  .game-index a { flex-direction: column; gap: 6px; }
  .gi-genre { white-space: normal; }
}

/* ---------- Founder ---------- */

.founder { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: flex-start; }
.founder .founder-mark { width: clamp(90px, 12vw, 150px); flex: none; }
.founder-roles { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 22px; padding: 0; list-style: none; }
.founder-roles li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: var(--border);
  border-radius: 2px;
  padding: 8px 14px;
}
.founder-roles li:nth-child(1) { box-shadow: 4px 4px 0 var(--red); }
.founder-roles li:nth-child(2) { box-shadow: 4px 4px 0 var(--blue); }
.founder-roles li:nth-child(3) { box-shadow: 4px 4px 0 var(--yellow); }

/* ---------- Thanks pages ---------- */

.thanks-hero { min-height: 52vh; display: flex; align-items: center; }
.thanks-hero .inner { max-width: 1280px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* ---------- Funnel steps ---------- */

.funnel-steps {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 640px;
}
.funnel-steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.02rem;
  line-height: 1.5;
}
.funnel-steps .fs-num {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  border: var(--border);
  border-radius: 2px;
  background: var(--paper);
  transform: translateY(6px);
}
.funnel-steps li:nth-child(1) .fs-num { box-shadow: 3px 3px 0 var(--red); }
.funnel-steps li:nth-child(2) .fs-num { box-shadow: 3px 3px 0 var(--blue); }
.funnel-steps li:nth-child(3) .fs-num { box-shadow: 3px 3px 0 var(--yellow); }
.funnel-steps strong { font-weight: 700; }
