/* The Quiet Game — styles */

:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --paper: #f6f3ec;
  --paper-alt: #efeae0;
  --paper-dark: #14110d;
  --accent: #b8552a;
  --rule: rgba(0, 0, 0, 0.12);
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 720px;
  --max-wide: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container.narrow {
  max-width: 600px;
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero.in {
  opacity: 1;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 28px;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}

.lede {
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.55;
  max-width: 580px;
  margin: 0 0 60px;
  color: var(--ink-soft);
}

.scroll-cue {
  font-family: var(--sans);
  font-size: 22px;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  animation: float 2.4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Sections ─────────────────────────────────────────── */

.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.section.in {
  opacity: 1;
  transform: none;
}

.section-alt {
  background: var(--paper-alt);
}

.section-dark {
  background: var(--paper-dark);
  color: #ece6d8;
  border-bottom: none;
}

.section-dark .closing-h,
.section-dark .prose-large,
.section-dark .identity-prompt,
.section-dark .closing-quote {
  color: #ece6d8;
}

.section-dark .muted {
  color: rgba(236, 230, 216, 0.55);
}

.act-label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--accent);
  margin: 0 0 12px;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.prose {
  font-size: 20px;
  line-height: 1.65;
  margin: 0 0 28px;
  color: var(--ink-soft);
}

.prose.small {
  font-size: 17px;
}

.prose-large {
  font-size: 22px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.muted {
  color: var(--muted);
}

/* ── Stats ────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin: 60px 0;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.stat-number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(64px, 8vw, 92px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}

.stat-number .unit {
  font-size: 0.4em;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
  font-weight: 400;
}

.stat-label {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.stat-label strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Pull quotes ──────────────────────────────────────── */

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  margin: 60px 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--accent);
  max-width: 620px;
}

/* ── Finite vs Infinite ───────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin: 40px 0 50px;
}

@media (min-width: 720px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 60px; }
}

.col h3 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 18px;
  display: inline-block;
}

.quiet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--ink-soft);
}

.quiet-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
}

.quiet-list li:last-child {
  border-bottom: none;
}

/* ── Video embed ──────────────────────────────────────── */

.embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 50px 0 12px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.caption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 40px;
}

/* ── Ideas list (Act 3) ───────────────────────────────── */

.ideas {
  list-style: none;
  padding: 0;
  margin: 50px 0;
  counter-reset: idea;
}

.ideas > li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.ideas > li:last-child {
  border-bottom: none;
}

.idea-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.ideas h3 {
  margin-bottom: 8px;
}

.ideas p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.attr {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ── Moves (Act 5) ────────────────────────────────────── */

.moves {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 50px 0;
}

@media (min-width: 820px) {
  .moves { grid-template-columns: repeat(3, 1fr); }
}

.move {
  padding: 36px 28px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.move-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 18px;
}

.move h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.move p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ── Closing ──────────────────────────────────────────── */

.closing-h {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 40px;
}

.identity-prompt {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.4;
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid rgba(236, 230, 216, 0.2);
  border-bottom: 1px solid rgba(236, 230, 216, 0.2);
}

.closing-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.4;
  margin: 70px 0 0;
  padding: 0;
  border: none;
  text-align: left;
}

.closing-quote .attr {
  font-style: normal;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(236, 230, 216, 0.55);
  margin-top: 18px;
  letter-spacing: 0.04em;
}

/* ── Books ────────────────────────────────────────────── */

.books {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}

.books li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 18px;
  color: var(--ink-soft);
}

.books li:last-child {
  border-bottom: none;
}

.books strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── About ────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

@media (min-width: 720px) {
  .about { grid-template-columns: 240px 1fr; gap: 56px; }
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-placeholder {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

.about-prose h3 {
  margin-bottom: 20px;
  font-size: 30px;
}

.about-prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.about-prose a:hover {
  opacity: 0.7;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  padding: 50px 0 70px;
  background: var(--paper);
  text-align: center;
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--sans);
}

/* ── Reduced motion ───────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero,
  .section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue {
    animation: none;
  }
}
