/*
 * Marble Mazer — the public site.
 *
 * Same tokens as the game (src/client/index.css): the void, one accent, an amber read-out.
 * Deliberately one small stylesheet with no build step and no external request — the pages are
 * about an app that makes none, and a webfont CDN on the privacy policy would be a bad joke.
 */
:root {
  --void: #060607;
  --face: #0e0e11;
  --hair: #1e1e24;
  --text: #eceaf2;
  --muted: #a6abb4;
  --faint: #6c7079;
  --accent: #6b73d6;
  --lcd: #ff9900;
  --measure: 46rem;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }

/* Skip link — a keyboard user should not have to tab the nav on every page. */
.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 8px;
}
.skip:focus { left: 24px; top: 24px; z-index: 10; }

header.site { padding: 28px 0 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 34px; height: 34px; display: block; }
.brand span { font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }

h1 { font-size: clamp(2.4rem, 8vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 700; }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); letter-spacing: -0.02em; margin: 3.5rem 0 1rem; font-weight: 700; }
h3 { font-size: 1.05rem; margin: 2rem 0 .5rem; font-weight: 600; }
p { margin: 0 0 1.15rem; color: var(--muted); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
strong { color: var(--text); font-weight: 600; }
code { font: 400 .9em var(--mono); color: var(--text); background: var(--face); padding: .12em .4em; border-radius: 4px; }

.hero { padding: clamp(56px, 14vw, 130px) 0 20px; }
.hook { font-size: clamp(1.25rem, 4.6vw, 1.7rem); color: var(--text); letter-spacing: -0.01em; margin-bottom: .5rem; }
.sub { color: var(--muted); max-width: 34rem; }

.cta {
  display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 15px 26px; border-radius: 11px;
}
.cta:hover { color: #fff; filter: brightness(1.08); }
.cta[aria-disabled="true"] { background: var(--face); color: var(--faint); border: 1px solid var(--hair); cursor: default; }
.cta[aria-disabled="true"]:hover { filter: none; color: var(--faint); }
.fine { font-size: 14px; color: var(--faint); margin: 0; }

ul { color: var(--muted); padding-left: 1.15rem; margin: 0 0 1.15rem; }
li { margin-bottom: .55rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 2rem 0; }
.shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--hair); display: block; }

.says { border-left: 2px solid var(--hair); padding-left: 20px; margin: 1.5rem 0; }
.says p { font: 400 15px/1.9 var(--mono); color: var(--faint); margin: 0; }

.note { background: var(--face); border: 1px solid var(--hair); border-radius: 12px; padding: 20px 22px; margin: 1.6rem 0; }
.note p:last-child { margin-bottom: 0; }

dl { margin: 0 0 1.15rem; }
dt { font-weight: 600; color: var(--text); margin-top: 1.4rem; }
dd { margin: .35rem 0 0; color: var(--muted); }

footer.site { border-top: 1px solid var(--hair); margin-top: 5rem; padding: 30px 0 60px; }
footer.site p { font-size: 14px; color: var(--faint); margin: 0 0 .4rem; }
footer.site a { color: var(--muted); }
.updated { font: 400 13px var(--mono); color: var(--lcd); letter-spacing: .04em; }

@media (prefers-reduced-motion: no-preference) {
  a, .cta { transition: color .15s ease, filter .15s ease; }
}
