:root {
  --bg: #FDFAF6;
  --fg: #1C1917;
  --muted: #78716C;
  --accent: #DC4C0B;
  --accent-warm: #FFF0E8;
  --light: #F5F0E8;
  --white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--light);
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding: 6rem 3rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 2rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

/* Proof */
.proof {
  background: var(--fg);
  color: var(--white);
  padding: 5rem 3rem;
}

.proof-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5px;
  max-width: 1100px;
  margin: 0 auto;
}

.proof-card {
  background: rgba(255,255,255,0.04);
  padding: 2rem 2rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.proof-income {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.proof-role {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.proof-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* How */
.how {
  padding: 6rem 3rem;
  background: var(--white);
}

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

.how-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.how-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.how-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.how-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-step {
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--light);
  padding: 1rem 1.5rem;
}

.flow-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.flow-label {
  font-size: 0.85rem;
  color: var(--fg);
  line-height: 1.4;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  padding: 0.5rem 0;
}

/* Capabilities */
.capabilities {
  padding: 6rem 3rem;
  background: var(--accent-warm);
}

.cap-header {
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.cap-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.cap-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cap-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.cap-item {
  background: var(--white);
  padding: 2rem 2.5rem;
}

.cap-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.cap-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Manifesto */
.manifesto {
  padding: 6rem 3rem;
  background: var(--fg);
  color: var(--white);
  text-align: center;
}

.manifesto-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: var(--white);
}

.manifesto-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  padding: 3rem;
  background: var(--light);
  text-align: center;
}

.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .proof { padding: 4rem 1.5rem; }
  .how { padding: 4rem 1.5rem; }
  .how-inner { grid-template-columns: 1fr; gap: 3rem; }
  .capabilities { padding: 4rem 1.5rem; }
  .cap-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 4rem 1.5rem; }
  .footer { padding: 2rem 1.5rem; }
  .proof-grid { grid-template-columns: 1fr; }
}
/* Nav link reset */
.nav-logo {
  text-decoration: none;
  color: var(--fg);
}

/* ============================================================
   Stories Feed Section (landing page)
   ============================================================ */
.stories-section {
  padding: 6rem 3rem;
  background: var(--bg);
}

.stories-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.stories-header {
  margin-bottom: 3rem;
}

.stories-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.stories-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.story-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--light);
  padding: 2rem 2.5rem 2.5rem;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.story-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(220, 76, 11, 0.08);
}

.story-card-badge {
  display: inline-block;
  background: var(--accent-warm);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.story-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.story-card-summary {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 2;
  /* Two-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card-read {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-top: auto;
}

/* ============================================================
   Subscribe Section
   ============================================================ */
.subscribe-section {
  padding: 6rem 3rem;
  background: var(--light);
}

.subscribe-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.subscribe-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.subscribe-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.subscribe-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  border: 1.5px solid #D6D0C8;
  border-radius: 4px;
  background: var(--white);
  color: var(--fg);
  transition: border-color 0.15s;
  outline: none;
}

.subscribe-input:focus {
  border-color: var(--accent);
}

.subscribe-btn {
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.subscribe-btn:hover { opacity: 0.88; }
.subscribe-btn:disabled { opacity: 0.6; cursor: default; }

.subscribe-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.subscribe-message--success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.subscribe-message--error {
  background: #FFF3F0;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

/* Premium upsell button */
.subscribe-premium-cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E8E3DC;
  text-align: center;
}

.premium-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--fg);
  border-radius: 4px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  max-width: 300px;
}

.premium-btn:hover { background: var(--fg); color: var(--white); }
.premium-btn:disabled { opacity: 0.6; cursor: default; }

.story-premium-cta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--light);
  text-align: center;
}

/* ============================================================
   Story Detail Page
   ============================================================ */
.story-page {
  padding: 4rem 3rem 6rem;
}

.story-page-inner {
  max-width: 680px;
  margin: 0 auto;
}

.story-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.15s;
}

.story-back:hover { color: var(--accent); }

.story-page-badge {
  display: inline-block;
  background: var(--accent-warm);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.story-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.story-page-lede {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
}

.story-page-body p {
  font-size: 1.0rem;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 1.4em;
}

.story-how {
  background: var(--light);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}

.story-how-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.story-how-list {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg);
}

.story-how-list li { margin-bottom: 0.5em; }

.story-examples {
  border-top: 1px solid var(--light);
  padding-top: 2rem;
  margin-top: 2rem;
}

.story-examples-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.story-examples-list {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.story-examples-list li { margin-bottom: 0.5em; }

.story-subscribe-cta {
  background: var(--fg);
  color: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  margin-top: 3rem;
  text-align: center;
}

.story-subscribe-cta-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.story-subscribe-cta-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.story-subscribe-cta .subscribe-form { max-width: 380px; }
.story-subscribe-cta .subscribe-input { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: var(--white); }
.story-subscribe-cta .subscribe-input::placeholder { color: rgba(255,255,255,0.4); }
.story-subscribe-cta .subscribe-input:focus { border-color: var(--accent); }

.story-subscribe-cta .premium-btn,
.story-subscribe-cta .subscribe-premium-cta .premium-btn {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  background: transparent;
}
.story-subscribe-cta .premium-btn:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* Mobile additions */
@media (max-width: 768px) {
  .stories-section { padding: 4rem 1.5rem; }
  .stories-grid { grid-template-columns: 1fr; }
  .subscribe-section { padding: 4rem 1.5rem; }
  .story-page { padding: 3rem 1.5rem 5rem; }
  .story-subscribe-cta { padding: 2rem 1.5rem; }
}
