/* ==============================================================
   The Book of Mike — shared site styles
   Light/cream theme. Cinematic, hopeful, Lowcountry-inflected.
   ============================================================== */

:root {
  --bg:        #f5f1e8;  /* warm cream — page background */
  --bg-2:      #ede7d6;  /* slightly darker cream — section variant */
  --bg-3:      #e2dac6;  /* card / inset */
  --text:      #1a1a1a;  /* near-black, slightly warm */
  --text-muted:#6b6356;  /* warm muted brown-gray */
  --text-dim:  #9a9286;  /* lighter warm gray */
  --rule:      #d4cbb8;  /* cream-tan dividers */
  --serif: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
section[id], header[id] { scroll-margin-top: 5rem; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95; letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted);
}
.lede {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.45; color: var(--text);
}
h2.section-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500;
  margin-bottom: 2rem;
}
p { margin-bottom: 1.2rem; max-width: 38em; }
p.wide { max-width: 52em; }
em { font-style: italic; color: var(--text); }
a { color: var(--text); }

/* Layout */
.container {
  max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem);
}
section { padding: clamp(4rem, 8vw, 7rem) 0; }
section + section { border-top: 1px solid var(--rule); }
section.tinted { background: var(--bg-2); }

/* =================
   NAV
   ================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.nav-brand {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--text); text-decoration: none;
  white-space: nowrap;
}
.nav-brand .accent {
  font-style: italic; color: var(--text-muted); margin-right: 0.4rem;
}
.nav-links {
  display: flex; gap: clamp(1.25rem, 3vw, 2.25rem);
  list-style: none;
}
.nav-links a {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--text);
}
/* Active state via JS scroll-spy (added at bottom of page) */
.nav-links a.is-current {
  color: var(--text);
  border-bottom-color: var(--text);
}
@media (max-width: 720px) {
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; }
  .nav-links a { font-size: 0.72rem; }
}

/* =================
   HERO
   ================= */
.hero {
  min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  background: var(--bg-2);
}
.hero.with-image {
  background:
    linear-gradient(180deg, rgba(245,241,232,0.0) 0%, rgba(245,241,232,0.0) 35%, rgba(245,241,232,0.85) 95%),
    url('assets/hero.jpg') center/cover;
}
.hero .container { width: 100%; }
.hero .eyebrow { margin-bottom: 1.5rem; color: var(--text); }
.hero .display {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: clamp(2.8rem, 7.5vw, 6rem);
}
.hero .tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--text); max-width: 36ch;
  line-height: 1.5;
}
.hero-meta {
  display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem;
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--text); letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
}
/* Spread the meta items across the full container width */
.hero-meta.hero-meta-spread {
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

/* Page header (non-hero pages) */
.page-header {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(0.5rem, 1.5vw, 1.25rem);
}
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1;
  letter-spacing: -0.02em;
}
/* Tighten the section that immediately follows a page header */
.page-header + section { padding-top: clamp(2rem, 4vw, 3rem); }

/* =================
   TEASER
   ================= */
.teaser .video-wrap {
  position: relative; padding-bottom: 42.66%; height: 0; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--rule);
  max-width: 1100px; margin: 0 auto;
}
.teaser .video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.teaser .video-caption {
  text-align: center; margin-top: 1.5rem; color: var(--text-muted);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
}

/* =================
   STATEMENT (large serif body block)
   ================= */
.statement-body {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.2rem, 1.85vw, 1.5rem); line-height: 1.55; color: var(--text);
  max-width: 38em;
}
.statement-body p { max-width: none; margin-bottom: 1.5rem; }
.statement-attribution {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  max-width: 38em;
}

/* =================
   STAT BLOCK — airy treatment for the why-this-why-now section
   Generous breathing room between the giant number and the body
   ================= */
.why-section { padding: clamp(5rem, 10vw, 9rem) 0; }
.stat-airy {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  max-width: 42em;
}
.stat-airy .stat-num {
  display: block;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.stat-airy .airy-body {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.85; color: var(--text);
  max-width: 38em;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.stat-airy .stat-source {
  display: block;
  font-family: var(--sans); font-size: 0.75rem;
  color: var(--text-dim); letter-spacing: 0.05em;
  margin-top: 1rem;
}

/* =================
   STAT BLOCK (legacy — stacked layout — number on top, text flows below)
   ================= */
.stat-stack {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  max-width: 38em;
}
.stat-num {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4.5rem, 11vw, 8rem);
  line-height: 0.95; letter-spacing: -0.03em; color: var(--text);
  display: block; margin-bottom: 1.25rem;
}
.stat-label {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.2rem, 1.85vw, 1.5rem);
  line-height: 1.45; color: var(--text);
  margin-bottom: 1.25rem;
}
.stat-source {
  display: block;
  font-family: var(--sans); font-size: 0.78rem;
  color: var(--text-dim); margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* =================
   TEAM
   ================= */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem; margin-top: 2rem;
}
.team-member h3 {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 500; margin-bottom: 0.25rem;
}
.team-role {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem;
  font-weight: 500;
}
.team-bio { font-size: 0.95rem; color: var(--text); }

/* =================
   CTA CARDS
   ================= */
.cta-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem;
}
@media (max-width: 700px) { .cta-row { grid-template-columns: 1fr; } }
.cta-card {
  padding: 2.25rem 2rem; border: 1px solid var(--text);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  background: var(--bg);
}
.cta-card h3 {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.2;
  margin-bottom: 0.25rem;
}
.cta-card p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
.button {
  display: inline-block; padding: 0.95rem 1.6rem;
  background: var(--text); color: var(--bg);
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid var(--text); align-self: flex-start;
}
.button:hover { opacity: 0.85; }
.button.ghost {
  background: transparent; color: var(--text);
}
.button.ghost:hover { background: var(--text); color: var(--bg); }

/* =================
   PRODUCTION SPECS (3-col symmetric grid, prominent display)
   ================= */
.specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
@media (max-width: 800px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } }
.specs > div {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.specs > div:not(:nth-child(3n)) {
  padding-right: 2rem;
}
.spec-key {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.65rem;
  font-weight: 600;
}
.spec-val {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 500; color: var(--text);
  line-height: 1.15; letter-spacing: -0.01em;
}

/* =================
   CONTACT BLOCK
   ================= */
.contact-block {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; gap: 1.5rem; align-items: center;
}
.contact-block .person { text-align: center; }
.contact-block .person .spec-key { margin-bottom: 0.4rem; }
.contact-block a.email-link {
  font-family: var(--serif); font-size: 1.5rem;
  text-decoration: none; color: var(--text);
}
.contact-block a.email-link:hover { text-decoration: underline; }

/* =================
   FOOTER
   ================= */
footer {
  background: var(--bg-2); padding: 3.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--text-muted);
}
footer .container {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  justify-content: space-between; align-items: center;
}
footer .footer-brand {
  font-family: var(--serif); font-size: 1.1rem; color: var(--text);
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* =================
   GET INVOLVED CTA (full-width clickable card on home)
   ================= */
.cta-banner {
  display: block;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--text);
  background: var(--bg);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
  max-width: 900px; margin: 0 auto;
}
.cta-banner:hover { background: var(--text); color: var(--bg); }
.cta-banner:hover .cta-banner-arrow { transform: translateX(6px); }
.cta-banner .eyebrow { margin-bottom: 1rem; color: inherit; opacity: 0.7; }
.cta-banner h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.05;
  margin-bottom: 0.5rem;
}
.cta-banner p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin: 0 auto 1.5rem; max-width: 36em;
  color: inherit; opacity: 0.85;
}
.cta-banner-arrow {
  display: inline-block;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: transform 0.25s ease;
}

/* =================
   SUBTLE ENTRANCE
   ================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .display, .hero .tagline, .hero .eyebrow, .hero-meta {
  animation: rise 1s ease-out backwards;
}
.hero .eyebrow    { animation-delay: 0.05s; }
.hero .display    { animation-delay: 0.2s; }
.hero .tagline    { animation-delay: 0.4s; }
.hero-meta        { animation-delay: 0.6s; }
