/* Game Startup Dojo — one stylesheet, no framework. */

:root {
  /* Palette taken from the logo: black, brand yellow, white moon.
     Discipline: yellow appears only at small sizes, plus ONE filled
     element per screen (the primary button). Never a large yellow panel. */
  --bg:        #0b0b0c;
  --bg-2:      #121213;
  --surface:   #161617;
  --line:      #2a2a26;
  --line-soft: #1f1f1c;
  --text:      #f2f2ef;
  --muted:     #bcbcb3;  /* lifted so body copy stays AA over the bright moon.
                            MEASURED, and the margin is nil: the brightest
                            composited watermark pixel is rgb(85,76,28), against
                            which this is 4.51:1 — AA by 0.01. Dimming this, or
                            brightening assets/mark-watermark.png, fails the
                            check. Re-measure before touching either. */

  --brand:     #f2e900;  /* logo yellow — buttons, the mark */
  --accent:    #e6dc3d;  /* softened, for small text-sized marks */
  --accent-dim:#e6dc3d;  /* large numerals — full accent; they read as a design element */
  --moon:      #ffffff;  /* the white disc behind the fighters */

  --gutter: 2.5rem;
  --measure: 62ch;
  --wrap: 1080px;
  --radius: 14px;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - var(--gutter), var(--wrap)); margin-inline: auto; }
@media (max-width: 640px) { :root { --gutter: 2rem; } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #12120c; padding: .75rem 1rem; z-index: 100;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-family: var(--display); font-weight: 700;
  letter-spacing: .01em; font-size: .95rem; white-space: nowrap;
}
.brand span { display: none; }
@media (min-width: 480px) { .brand span { display: inline; } }

.nav { margin-left: auto; display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text); }

.head-cta { margin-left: auto; }
@media (min-width: 900px) { .head-cta { margin-left: 0; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem;
  font: 600 .9375rem/1 var(--body);
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #12120c; }
.btn-primary:hover { background: #fff42e; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #3a3a46; background: var(--bg-2); }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }

/* ---------- sections ---------- */

section { padding: clamp(4rem, 8vw, 7rem) 0; }
section + section { border-top: 1px solid var(--line-soft); }

.eyebrow {
  font: 600 .75rem/1 var(--body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 1px; background: var(--accent); flex: none;
}

.section-title { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.75rem); }
.section-intro { color: var(--muted); max-width: var(--measure); margin-top: 1rem; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -30% 30% 40% -20%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 70%);
  pointer-events: none; filter: blur(20px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 1.3rem + 5.4vw, 5rem); }
.hero .lead {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem);
  color: var(--muted); max-width: 46ch; margin-top: 1.5rem; line-height: 1.55;
}
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
  margin-top: 3rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  font-size: .875rem; color: var(--muted);
}
.hero-meta b { color: var(--text); font-weight: 600; }

/* ---------- three steps ---------- */

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { background: var(--surface); padding: 2rem 1.75rem; }
.step-num {
  font-family: var(--display); font-weight: 700; font-size: 2.25rem;
  color: var(--accent-dim); line-height: 1; margin-bottom: 1rem;
}
.step h3 {
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.step ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .9375rem; }
.step li { margin-bottom: .35rem; }

/* ---------- overview blocks ---------- */

/* Deliberately columns, not grid. As a 2x2 grid each row is as tall as its
   tallest cell, so "The format" being long left a hole under "The goal" before
   "Join us" began. Columns let each block pack against the one above it. */
.blocks { margin-top: 3.5rem; }
.blocks .block { margin-bottom: 2.5rem; }
.blocks .block:last-child { margin-bottom: 0; }
@media (min-width: 760px) {
  .blocks { columns: 2; column-gap: 3.25rem; }
  /* Every block needs the bottom margin, not just later siblings: the first one
     in each column has a block beneath it too. */
  .blocks .block { break-inside: avoid; margin-bottom: 2.75rem; }
}

.block h3 {
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .85rem;
}
.block p { color: var(--muted); }

/* ---------- events ---------- */

.event-grid { display: grid; gap: 2.5rem; align-items: start; margin-top: 2.5rem; }
@media (min-width: 860px) { .event-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: flex; gap: 1.25rem; padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts li:first-child { padding-top: 0; }
.facts .k {
  font-family: var(--display); font-weight: 700; color: var(--accent);
  font-size: .875rem; flex: none; width: 5.5rem; padding-top: .15rem;
}
.facts .v { color: var(--muted); font-size: .9375rem; }
.facts .v b { display: block; color: var(--text); font-weight: 600; margin-bottom: .1rem; }

.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem;
}
.callout h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.callout p { color: var(--muted); font-size: .9375rem; }
.callout .btn { margin-top: 1.5rem; }

/* ---------- about ---------- */

.people { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 3rem; }
@media (min-width: 620px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .people { grid-template-columns: repeat(4, 1fr); } }

.person { background: var(--surface); padding: 1.75rem 1.5rem; }
.person h3 { font-size: 1.0625rem; }
.person .role { color: var(--muted); font-size: .8125rem; margin-top: .3rem; }

/* ---------- faq ---------- */

.faq { margin-top: 2.5rem; border-top: 1px solid var(--line-soft); max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 3rem 1.5rem 0; color: var(--muted); font-size: .9375rem; }

/* ---------- contact ---------- */

.cards { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 780px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 1.1875rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .9375rem; flex: 1; }
.card .btn { margin-top: 1.5rem; align-self: flex-start; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 3rem 0;
  font-size: .875rem; color: var(--muted);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.site-foot a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
  text-underline-offset: 3px;
}
.site-foot a:hover { color: var(--text); text-decoration-color: currentColor; }
.site-foot .spacer { margin-left: auto; }

/* ---------- holding page ---------- */

.holding { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.holding h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 1rem; }
.holding p { color: var(--muted); max-width: 44ch; margin-inline: auto; }
.holding .btn { margin-top: 2rem; }

/* ---------- logo ---------- */

.brand .logomark {
  width: 34px; height: 34px; flex: none;
  border-radius: 8px;
  /* The yellow is loud at size. Small + slightly held back reads as brand,
     not as a highlighter pen. It comes fully forward on hover. */
  opacity: .88;
  transition: opacity .15s ease, transform .15s ease;
}
.brand:hover .logomark { opacity: 1; transform: rotate(-3deg); }

/* The mark, enormous and nearly submerged, behind the hero. The fighters are
   painted the page background, so they read as cut-outs of the dim moon. */
.hero-mark {
  /* Fixed, so it stays put while the page scrolls past it. It has to live
     outside .hero to do that: .hero clips with overflow:hidden and .hero .wrap
     creates a stacking context that would trap it. */
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(42vw, 500px);
  /* Right edge aligned to the content column, not the viewport edge. */
  transform: translate(calc(min(100vw - var(--gutter), var(--wrap)) / 2 - 100%), -50%);
  z-index: -1;
  pointer-events: none; user-select: none;
}
@media (max-width: 900px) {
  .hero-mark { width: 74vw; opacity: .55; }
}

/* ---------- founder links ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.person-link {
  display: inline-block; margin-top: .85rem;
  font-size: .8125rem; font-weight: 600; color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 1px;
  transition: border-color .15s ease;
}
.person-link:hover { border-bottom-color: var(--accent); }

.holding .back { margin-top: 2rem; }
.holding .back a { color: var(--muted); font-size: .875rem; }

/* The steps grid now follows the prose blocks, so it needs its own separation.
   Without this its border sits directly under the last line of "Join us". */
.blocks + .steps { margin-top: 4rem; }

/* Subtle: reads as text until you look for it, then it is clearly a link. */
.maplink {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.maplink:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Two-column hero: the logo anchors a left column, and every line of text —
   headline, lede, buttons — shares the single left edge of the right column.
   The previous version indented only the headline, which gave the hero three
   different left edges to follow. */
.hero-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.hero-logo {
  width: clamp(110px, 13vw, 168px);
  height: auto;
  flex: none;
  margin-top: .4rem;   /* optical: lines the mark up with the h1's cap height */
}
.hero-copy { min-width: 0; }
.hero-copy .lead { margin-top: 1.5rem; }
@media (max-width: 700px) {
  .hero-head { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .hero-logo { width: 116px; margin-top: 0; }
}

/* .btn sets white-space: nowrap, which is right for short labels but not for
   an email address: hello@gamestartupdojo.com needs 272px, and a 320px phone
   only has 232px inside the card. The page scrolled sideways. */
.card .btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

/* The arrow was U+2190, which falls outside every unicode-range we declare, so
   it silently rendered in a system fallback font beside Inter. Drawn in CSS
   instead — no glyph, no fallback, no mismatch. */
.holding .back a { display: inline-flex; align-items: center; gap: .5rem; }
.holding .back a::before {
  content: "";
  width: 7px; height: 7px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex: none;
}

/* Bios arrive one at a time and will differ in length. Anchoring the LinkedIn
   link to the bottom keeps the four links on one line across the row, whether
   a card has a bio yet or not. */
.person { display: flex; flex-direction: column; }
.person .person-link { margin-top: auto; }
.person .role { margin-bottom: 0; }
.person .bio {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.55;
  margin-top: .55rem;
}
