/* The Pond Fables — Landing Page (production)
   Single static page. Mobile-first, then desktop via @media.
   Day-pole hero & content, night-pole follow band & footer.
*/

/* ─── Reset / base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  /* Day pole */
  --parchment: #f5ecd9;
  --parchment-deep: #ebdcc0;
  --ink-day: #2d2419;
  --ink-day-soft: #5a4632;
  --ochre: #c89a4a;
  --ochre-deep: #a87224;
  --terracotta: #b35a36;
  --terracotta-deep: #8a4023;

  /* Night pole */
  --indigo: #0e1b3a;
  --midnight: #061029;
  --moon: #e8eef7;
  --moon-soft: #aeb9d4;
  --gold-night: #d9b86b;

  --hair-day: rgba(60, 40, 20, 0.35);
  --hair-night: rgba(220, 220, 240, 0.35);
}

/* ─── Page shell ───────────────────────────────────────── */
.landing {
  font-family: "EB Garamond", "Iowan Old Style", Georgia, serif;
  color: var(--ink-day);
  background: var(--parchment);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}
.landing h1, .landing h2, .landing h3, .landing h4 {
  font-family: "EB Garamond", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: pretty;
}
/* Per-heading margins below override this reset via increased specificity. */
.landing p { margin: 0 0 1em; text-wrap: pretty; }
.landing em { font-style: italic; }

/* ─── Section eyebrow + hairlines ───────────────────────── */
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-day-soft);
  margin: 0 0 28px;
}
.section-eyebrow.on-night { color: var(--moon-soft); }

.rule {
  display: inline-block;
  height: 1px;
  width: 48px;
  background: var(--hair-day);
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4px;
  height: 2.4px;
  border-radius: 50%;
  background: var(--hair-day);
  transform: translate(-50%, -50%);
}
.rule-long { width: 120px; }
.rule-night { background: var(--hair-night); }
.rule-night::after { background: var(--hair-night); }

/* ─── Hero (split, parchment + cover art) ───────────────── */
.hero { position: relative; }
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}

.hero-art-half {
  background-image: url(assets/cover-day.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  aspect-ratio: 9 / 12;
}
.hero-art-half::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(245, 236, 217, 0.7) 100%);
}

.hero-text-half {
  background: var(--parchment);
  padding: 48px 28px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-day-soft);
  margin: 0 0 32px;
  justify-content: center;
}

.landing .hero-headline {
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.02;
  margin: 0 0 36px;
  padding-bottom: 0.04em;
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-weight: 500;
}

.hero-sub {
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-day);
  opacity: 0.78;
  max-width: 28em;
  margin: 0 auto 44px;
}

.hero-meta {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-day-soft);
  margin: 56px 0 0;
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 18px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn em { font-family: "EB Garamond", serif; font-style: italic; font-size: 16px; }
.btn:focus-visible { outline: 2px solid var(--terracotta-deep); outline-offset: 3px; }
.btn .arrow-out { margin-left: 10px; }

.btn-primary {
  background: var(--terracotta-deep);
  color: var(--parchment);
  box-shadow: 0 4px 14px rgba(45, 36, 25, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(45, 36, 25, 0.25); }

/* ─── Book section ─────────────────────────────────────── */
.book {
  background:
    radial-gradient(ellipse at 50% 0%, var(--parchment) 0%, var(--parchment-deep) 100%);
  padding: 64px 24px 48px;
  position: relative;
}

.book-inner {
  max-width: 1100px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.book-cover-wrap {
  position: relative;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
}
.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 240, 200, 0.4) inset,
    0 30px 60px -10px rgba(80, 40, 0, 0.35),
    0 6px 16px rgba(80, 40, 0, 0.15);
}

.landing .book-headline {
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.1;
  margin: 0 0 32px;
}
.book-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-day-soft);
}
.book-body p { margin: 0 0 1.2em; }

/* Pull quote */
.pull-quote {
  max-width: 820px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: 0 8px;
}
.pull-quote blockquote {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.35;
  color: var(--ink-day);
  margin: 0;
  max-width: 24ch;
  font-weight: 400;
}

/* Extracts */
.extracts {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 24px;
}
.extracts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.extract { display: flex; flex-direction: column; }

.extract-image-wrap {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 24px;
  position: relative;
  border: 1px solid var(--hair-day);
  box-shadow: 0 12px 28px -8px rgba(80, 40, 0, 0.25);
}
.extract-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.extract:hover .extract-image { transform: scale(1.02); }

.extract-icon { color: var(--ochre-deep); margin-bottom: 12px; }
.landing .extract-title { font-size: 26px; margin: 0 0 16px; font-weight: 600; }
.extract-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-day-soft);
}
.extract-body p { margin: 0 0 0.9em; }

/* Book CTA */
.book-cta {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.book-cta-meta {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-day-soft);
  margin: 0;
}

/* ─── Dusk transition ────────────────────────────────── */
.dusk {
  position: relative;
  width: 100%;
}
.dusk-clean {
  height: 140px;
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment) 50%, var(--midnight) 50%, var(--midnight) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--ochre-deep);
}
.dusk-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 200px 100px at 50% 50%, var(--parchment-deep), transparent);
  pointer-events: none;
}
.dusk-clean svg { position: relative; }

/* ─── Author section ──────────────────────────────────── */
.author {
  background: var(--parchment-deep);
  padding: 72px 24px;
}
.author-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.author-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  text-align: left;
  margin-top: 16px;
}
.author-mark { color: var(--ochre-deep); margin-bottom: 16px; }
.landing .author-h {
  font-size: 26px;
  margin: 0 0 16px;
  font-style: italic;
  font-weight: 400;
}
.author-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-day-soft);
  margin: 0;
}

/* ─── Follow band (night pole, full-bleed cover) ───────── */
.follow {
  background: var(--midnight);
  color: var(--moon);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.follow-art {
  position: absolute;
  inset: 0;
  background-image: url(assets/cover-night.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.follow-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(6, 16, 41, 0.0) 0%, rgba(6, 16, 41, 0.55) 60%, rgba(6, 16, 41, 0.85) 100%),
    linear-gradient(180deg, rgba(6, 16, 41, 0.35) 0%, rgba(6, 16, 41, 0.1) 25%, rgba(6, 16, 41, 0.1) 60%, rgba(6, 16, 41, 0.7) 100%);
  pointer-events: none;
}

.follow-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.landing .follow-headline {
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1.0;
  color: var(--moon);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
}
.follow-sub {
  font-size: clamp(16px, 2.4vw, 19px);
  font-style: italic;
  color: var(--moon-soft);
  max-width: 32em;
  margin: 0 auto 56px;
  line-height: 1.55;
}

.follow-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.follow-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(6, 16, 41, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 238, 247, 0.22);
  border-radius: 2px;
  padding: 20px 24px;
  color: var(--moon);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  text-align: left;
}
.follow-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(217, 184, 107, 0.45);
  transform: translateY(-1px);
}
.follow-btn:focus-visible { outline: 2px solid var(--gold-night); outline-offset: 2px; }
.follow-btn-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(232, 238, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-night);
}
.follow-btn-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.follow-btn-platform {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.follow-btn-handle {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moon-soft);
}
.follow-btn .arrow-out { color: var(--moon-soft); }

/* ─── Footer (night pole, quiet) ────────────────────── */
.foot {
  background: var(--midnight);
  color: var(--moon-soft);
  padding: 32px 24px 40px;
  border-top: 1px solid rgba(232, 238, 247, 0.08);
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--moon);
}
.foot-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.foot-meta a:hover { color: var(--moon); }
.foot-dot { opacity: 0.4; }

.foot-disclosure {
  max-width: 1200px;
  margin: 18px auto 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(174, 185, 212, 0.55);
  text-align: left;
}

/* ─────────────────────────────────────────────────────
   Tablet (≥720px)
   ───────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .extracts-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .author-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .follow-buttons { flex-direction: row; justify-content: center; gap: 20px; flex-wrap: wrap; }
  .follow-btn { min-width: 260px; flex: 1 1 260px; max-width: 320px; padding: 22px 28px; }

  .author { padding: 96px 48px; }
  .book { padding: 96px 48px 72px; }
  .follow { padding: 120px 48px; min-height: 600px; }
  .foot { padding: 40px 48px 48px; }
}

/* ─────────────────────────────────────────────────────
   Desktop (≥1024px) — split hero, larger spacing
   ───────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero-split {
    grid-template-columns: 1.05fr 1fr;
    min-height: 88vh;
  }
  .hero-art-half {
    aspect-ratio: auto;
  }
  .hero-art-half::after {
    background: linear-gradient(90deg, transparent 0%, transparent 70%, rgba(245, 236, 217, 0.4) 100%);
  }
  .hero-text-half {
    padding: 96px 88px;
  }
  .landing .hero-headline { font-size: clamp(56px, 6.4vw, 88px); margin-bottom: 36px; }

  .book { padding: 120px 80px 80px; }
  .book-inner {
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    margin-bottom: 96px;
  }
  .book-cover-wrap { max-width: 360px; }
  .book-body { font-size: 19px; }
  .pull-quote { margin-bottom: 96px; }
  .extracts-grid { gap: 56px; }
  .landing .extract-title { font-size: 28px; }
  .extract-body { font-size: 17px; }
  .book-cta { margin-top: 96px; }

  .author { padding: 120px 80px; }
  .author-grid { gap: 64px; }
  .author-block p { font-size: 18px; }

  .follow { padding: 140px 80px; min-height: 720px; }
  .foot { padding: 40px 80px 56px; }
}

/* ─── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .extract:hover .extract-image { transform: none; }
}

/* ─── Print ──────────────────────────────────────────── */
@media print {
  .follow, .foot { display: none; }
  .btn-primary { background: none; color: var(--ink-day); border: 1px solid var(--ink-day); box-shadow: none; }
}
