/* ============================================================
   PERIPATOS — Audio Companion for Greece · MVP preview
   Design language: editorial, book-object, restraint-first.
   ============================================================ */

:root {
  /* Palette */
  --cream:        #f4efe0;
  --cream-warm:   #ede4cc;
  --paper:        #faf6ea;
  --ink:          #2b2721;
  --ink-soft:     #5a5346;
  --ink-mute:     #8c8371;
  --terracotta:   #c8763a;
  --terracotta-d: #a95a26;
  --aegean:       #2c5776;
  --aegean-d:     #1a3f5a;
  --gold:         #b8973d;
  --sand:         #e9e2d1;
  --stone:        #d4c9a8;

  /* Type */
  --serif:  "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;
  --shadow-soft:  0 1px 3px rgba(43,39,33,0.06), 0 8px 32px rgba(43,39,33,0.06);
  --shadow-lift:  0 4px 12px rgba(43,39,33,0.08), 0 24px 60px rgba(43,39,33,0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.hidden { display: none !important; }

/* ------------------------------------------------------------
   Type primitives
   ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 90;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.2; }

h1 em, h2 em { font-style: italic; color: var(--terracotta-d); font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

.lede, .section-lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
  font-weight: 400;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--aegean-d); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(43,39,33,0.2);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(43,39,33,0.04); }
.btn-lg { padding: 1rem 1.75rem; font-size: 0.98rem; }
.cta-mini {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(244,239,224,0.6);
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  transition: all 200ms ease;
  background: rgba(43,39,33,0.3);
  backdrop-filter: blur(4px);
}
.cta-mini:hover { background: var(--paper); color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  color: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-image-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(43,39,33,0.55) 0%, rgba(43,39,33,0.15) 30%, rgba(43,39,33,0.15) 55%, rgba(43,39,33,0.85) 100%);
}

.site-nav {
  position: relative;
  z-index: 2;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.88rem;
  color: rgba(244,239,224,0.8);
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 300ms ease;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { transform: scaleX(1); }

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  max-width: 1000px;
}
.hero-content .eyebrow { color: rgba(244,239,224,0.75); }
.hero-content h1 { color: var(--paper); margin-bottom: 1.5rem; max-width: 22ch; }
.hero-content .lede { color: rgba(244,239,224,0.88); max-width: 52ch; margin-bottom: 2.2rem; }

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--terracotta); color: var(--paper); }
.hero-actions .btn-primary:hover { background: var(--terracotta-d); }
.hero-actions .btn-ghost { color: var(--paper); border-color: rgba(244,239,224,0.4); }
.hero-actions .btn-ghost:hover { border-color: var(--paper); background: rgba(244,239,224,0.08); }

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(244,239,224,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 2;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ============================================================
   Section shell
   ============================================================ */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 5rem);
  max-width: 1400px;
  margin: 0 auto;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-bottom: 1.2rem; }

/* ============================================================
   DISCOVER — Tour marketplace
   ============================================================ */
.discover { background: var(--paper); }

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 4rem;
}

.tour-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tour-card.featured { grid-column: span 2; }
@media (max-width: 900px) { .tour-card.featured { grid-column: span 1; } }

.tour-image-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tour-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms ease; }
.tour-card:hover .tour-image-wrap img { transform: scale(1.03); }
.tour-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.tour-meta { padding: 1.6rem 1.75rem 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.tour-location {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--terracotta-d);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.tour-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; font-weight: 500; color: var(--ink); margin: 0; }
.tour-presenter { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.tour-presenter .separator { color: var(--ink-mute); margin: 0 0.5rem; font-style: normal; }
.tour-desc { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; margin: 0.3rem 0 0.8rem; }
.tour-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(43,39,33,0.08);
}
.price { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); font-weight: 500; }
.cta-arrow { font-family: var(--sans); font-size: 0.85rem; color: var(--terracotta-d); font-weight: 600; }

/* Collections */
.collections {
  border-top: 1px solid rgba(43,39,33,0.1);
  padding-top: 2.5rem;
}
.collections-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin: 0 0 1.5rem;
}
.collection-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.collection {
  padding: 1.4rem 1.6rem;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 200ms ease;
}
.collection:hover { background: var(--cream-warm); }
.collection-title { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.collection-count { font-size: 0.8rem; color: var(--ink-mute); }
.collection-price { font-family: var(--serif); font-size: 1rem; color: var(--terracotta-d); margin-top: 0.5rem; }

/* ============================================================
   TOUR DETAIL
   ============================================================ */
.tour-detail { background: var(--cream); }
.tour-detail-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .tour-detail-grid { grid-template-columns: 1fr; } }

.tour-detail-left { position: sticky; top: 2rem; display: flex; flex-direction: column; gap: 1.8rem; }
@media (max-width: 900px) { .tour-detail-left { position: static; } }

.tour-detail-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.presenter-block { display: flex; gap: 1rem; align-items: center; }
.presenter-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.presenter-info .eyebrow { margin-bottom: 0.35rem; }
.presenter-name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin: 0 0 0.2rem; }
.presenter-title { font-size: 0.82rem; color: var(--ink-soft); margin: 0; line-height: 1.4; }

.tour-detail-right h2 { margin: 0.25rem 0 1rem; }
.detail-lede {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  max-width: 55ch;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(43,39,33,0.1);
  border-bottom: 1px solid rgba(43,39,33,0.1);
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) { .detail-stats { grid-template-columns: repeat(2, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-value { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 500; }
.stat-unit { font-size: 0.85rem; color: var(--ink-mute); margin-left: 0.2rem; }
.stat-label { font-size: 0.75rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.06em; }

.chapters .eyebrow { margin-bottom: 1rem; }
.chapter-list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.chapter {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(43,39,33,0.08);
  cursor: default;
  transition: background 150ms ease;
}
.chapter-available { cursor: pointer; }
.chapter-available:hover { background: rgba(244,239,224,0.5); padding-left: 0.5rem; }
.chapter-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-mute);
  width: 32px;
  font-variant-numeric: tabular-nums;
}
.chapter-available .chapter-num { color: var(--terracotta-d); }
.chapter-body { flex: 1; }
.chapter-title { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin: 0 0 0.15rem; font-weight: 500; }
.chapter-sub { font-size: 0.82rem; color: var(--ink-mute); margin: 0; }
.chapter-play {
  color: var(--terracotta);
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(200,118,58,0.1);
}
.chapter-lock { color: var(--ink-mute); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }

.detail-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.detail-fineprint { font-size: 0.78rem; color: var(--ink-mute); line-height: 1.5; max-width: 55ch; }

/* ============================================================
   PLAYER
   ============================================================ */
.player-section { background: var(--paper); }
.player-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (max-width: 900px) { .player-grid { grid-template-columns: 1fr; } }

/* Map */
.map-panel { display: flex; flex-direction: column; gap: 1rem; }
.map-frame {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem;
  aspect-ratio: 1;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.map-svg { width: 100%; height: 100%; display: block; }

.pin { cursor: pointer; }
.pin-active .geofence-ring {
  animation: pulse-ring 2.4s ease-out infinite;
  transform-origin: center;
}
@keyframes pulse-ring {
  0% { r: 12; opacity: 0.4; }
  100% { r: 40; opacity: 0; }
}
.user-pulse {
  animation: pulse-user 2s ease-out infinite;
  transform-origin: center;
}
@keyframes pulse-user {
  0% { r: 10; opacity: 0.4; }
  100% { r: 30; opacity: 0; }
}

.simulate-btn {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--paper);
  background: var(--aegean);
  border: none;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  transition: all 200ms ease;
}
.simulate-btn:hover { background: var(--aegean-d); transform: translateY(-1px); }
.simulate-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.simulate-icon { animation: chime-pulse 2s ease-in-out infinite; }
@keyframes chime-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Player panel */
.player-panel {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.player-state {
  padding: 2rem 2rem 2.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: fade-in 500ms ease;
}
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Idle state */
.player-idle { padding: 0; }
.player-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(0.9) saturate(0.85);
}
.player-idle-body { padding: 2rem 2rem 2.4rem; }
.player-idle-message {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.player-idle-distance {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin: 0;
}
.distance-value { color: var(--aegean); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Prompt state */
.player-prompt { align-items: flex-start; text-align: left; padding-top: 3rem; }
.prompt-chime {
  font-size: 2rem;
  color: var(--terracotta);
  animation: chime-pulse 1.5s ease-in-out infinite;
  margin-bottom: 0.5rem;
}
.prompt-eyebrow { margin-bottom: 0.3rem; }
.prompt-title { font-family: var(--serif); font-size: 2rem; margin: 0 0 0.5rem; color: var(--ink); }
.prompt-message { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 1.5rem; }
.prompt-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.prompt-actions .btn-primary { background: var(--terracotta); }
.prompt-actions .btn-primary:hover { background: var(--terracotta-d); }

/* Playing state */
.playing-presenter { display: flex; gap: 1rem; align-items: center; }
.playing-portrait {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.playing-name { font-family: var(--serif); font-size: 1.15rem; margin: 0.1rem 0; color: var(--ink); }
.playing-chapter { font-family: var(--serif); font-style: italic; font-size: 0.9rem; color: var(--ink-mute); margin: 0; }

/* Audio viz */
.audio-viz {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
  padding: 0.5rem 0;
}
.audio-viz span {
  flex: 1;
  background: var(--terracotta);
  border-radius: 2px;
  min-height: 4px;
  transition: height 100ms ease-out;
}
.audio-viz.playing span {
  animation: viz-bar 0.9s ease-in-out infinite alternate;
}
.audio-viz span:nth-child(1)  { animation-delay: 0.0s; }
.audio-viz span:nth-child(2)  { animation-delay: 0.1s; }
.audio-viz span:nth-child(3)  { animation-delay: 0.2s; }
.audio-viz span:nth-child(4)  { animation-delay: 0.3s; }
.audio-viz span:nth-child(5)  { animation-delay: 0.4s; }
.audio-viz span:nth-child(6)  { animation-delay: 0.5s; }
.audio-viz span:nth-child(7)  { animation-delay: 0.6s; }
.audio-viz span:nth-child(8)  { animation-delay: 0.7s; }
.audio-viz span:nth-child(9)  { animation-delay: 0.15s; }
.audio-viz span:nth-child(10) { animation-delay: 0.25s; }
.audio-viz span:nth-child(11) { animation-delay: 0.35s; }
.audio-viz span:nth-child(12) { animation-delay: 0.45s; }
.audio-viz span:nth-child(13) { animation-delay: 0.55s; }
.audio-viz span:nth-child(14) { animation-delay: 0.65s; }
.audio-viz span:nth-child(15) { animation-delay: 0.05s; }
.audio-viz span:nth-child(16) { animation-delay: 0.28s; }
.audio-viz span:nth-child(17) { animation-delay: 0.48s; }
.audio-viz span:nth-child(18) { animation-delay: 0.62s; }
.audio-viz span:nth-child(19) { animation-delay: 0.42s; }
.audio-viz span:nth-child(20) { animation-delay: 0.22s; }
.audio-viz span:nth-child(21) { animation-delay: 0.08s; }
.audio-viz span:nth-child(22) { animation-delay: 0.38s; }
.audio-viz span:nth-child(23) { animation-delay: 0.58s; }
.audio-viz span:nth-child(24) { animation-delay: 0.15s; }
@keyframes viz-bar {
  0%   { height: 8px; opacity: 0.6; }
  100% { height: 100%; opacity: 1; }
}

/* Scrub */
.scrub-row { display: flex; align-items: center; gap: 0.8rem; }
.scrub-time { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; min-width: 36px; }
.scrub-track {
  flex: 1;
  height: 4px;
  background: rgba(43,39,33,0.12);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}
.scrub-fill { height: 100%; background: var(--ink); border-radius: 999px; width: 0%; transition: width 100ms linear; }
.scrub-thumb {
  position: absolute; top: 50%; left: 0%;
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left 100ms linear;
}

/* Transport */
.transport { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 0.6rem 0; }
.transport-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms ease;
}
.transport-btn:hover { background: rgba(43,39,33,0.06); }
.transport-play {
  width: 56px; height: 56px;
  background: var(--ink);
  color: var(--paper);
}
.transport-play:hover { background: var(--aegean-d); }

.chapter-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(43,39,33,0.08);
  margin-top: 0.5rem;
}
.chapter-nav-btn {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.chapter-nav-btn:hover { color: var(--ink); }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  background: var(--ink);
  color: var(--paper);
  max-width: none;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 5rem);
}
.manifesto-inner { max-width: 1000px; margin: 0 auto; }
.manifesto .eyebrow { color: rgba(244,239,224,0.6); }
.manifesto-lede {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.25;
  color: var(--paper);
  margin: 0 0 2.5rem;
  max-width: 32ch;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.manifesto-body {
  max-width: 60ch;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(244,239,224,0.75);
}
.manifesto-body p { margin: 0 0 1rem; }
.manifesto-emphasis { color: var(--paper); font-style: italic; font-size: 1.35rem; padding-top: 1rem; }

.principles {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(244,239,224,0.15);
}
.principle-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: rgba(244,239,224,0.5);
  margin: 0 0 0.8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.principle-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--paper);
  margin: 0 0 0.7rem;
  line-height: 1.3;
  font-weight: 500;
}
.principle-body {
  font-size: 0.9rem;
  color: rgba(244,239,224,0.7);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--paper);
  padding: 3rem clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid rgba(43,39,33,0.08);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-text { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.footer-fineprint { color: var(--ink-mute); font-size: 0.78rem; }

/* Responsive nav */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .site-nav { padding: 1.2rem 1.2rem; }
  .cta-mini { font-size: 0.78rem; }
  .detail-stats { padding: 1rem 0; }
}
