:root {
  --background: #08070a;
  --surface: #0e0d12;
  --foreground: #ece6dc;
  --foreground-muted: #a59e92;
  --accent: #b3211e;
  --accent-muted: #5e1612;
  --hairline: #1c1a20;
  --maxw: 1080px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* The Fool as a fixed, atmospheric page background behind a dark gradient.
   The overlay is lighter at the top (card shows through the hero) and darker
   lower down so body copy keeps WCAG-safe contrast. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(8, 7, 10, 0.70) 0%, rgba(8, 7, 10, 0.88) 48%, rgba(8, 7, 10, 0.96) 100%),
    url("/assets/the-fool.jpg");
  background-size: cover, cover;
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--foreground); }

/* Focus visibility (WCAG 2.2 AA) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--foreground);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark { width: 36px; height: 36px; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  text-decoration: none;
  color: var(--foreground);
  font-size: 0.95rem;
}
.header-cta:hover { border-color: var(--accent); }

/* Section rhythm */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
section { padding: clamp(3rem, 7vw, 6rem) 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(2rem, 5vw, 4rem);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 1rem; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.75); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--foreground); max-width: 40ch; margin: 0 0 1.75rem; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7); }
.fineprint { color: var(--foreground-muted); font-size: 0.9rem; max-width: 46ch; margin: 1.25rem 0 0; }

.play-badge { display: inline-block; min-height: 44px; }
.play-badge img { width: 200px; height: auto; }

.hero-art img {
  margin: 0 auto;
  width: min(270px, 70vw);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

/* Features */
.features h2, .shots h2, .reflect h2, .cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 2rem; }
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.feature-grid li { background: var(--surface); padding: 1.6rem 1.5rem; }
.feature-grid h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.feature-grid p { margin: 0; color: var(--foreground-muted); }

/* Screenshots */
.shot-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}
.shot-rail img {
  flex: 0 0 auto;
  width: 240px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  scroll-snap-align: start;
}

/* Reflection / positioning */
.reflect { max-width: 62ch; }
.reflect p { font-size: 1.1rem; margin: 0 0 1rem; }
.reflect .muted { color: var(--foreground-muted); font-size: 0.95rem; }

/* Closing CTA */
.cta { text-align: center; border-top: 1px solid var(--hairline); }
.cta .play-badge img { width: 220px; }

/* Footer */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.footer-brand { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.04em; margin: 0 0 0.75rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--foreground-muted); text-decoration: none; }
.footer-links a:hover { color: var(--foreground); }
.footer-legal { color: var(--foreground-muted); font-size: 0.8rem; max-width: 60ch; margin: 0 auto; }

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lede, .hero .fineprint { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}
