:root {
  --ivory: #f5ebdd;
  --ivory-dim: #ede0cb;
  --paper: #fffcf7;
  --ink: #23201a;
  --ink-soft: #5a5346;
  --bronze: #785733;
  --bronze-light: #9c7850;
  --green: #294c43;
  --green-deep: #1c352f;
  --green-tint: #e4ebe6;
  --gold: #d9a85b;
  --gold-deep: #b9843a;
  --red: #9c3b3b;
  --line: #e2d5bd;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 16px 34px -18px rgba(35, 32, 26, 0.35);
  --shadow-sm: 0 8px 18px -12px rgba(35, 32, 26, 0.28);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
}

h1, h2, h3, h4, .display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--green-deep);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

button {
  font-family: inherit;
}

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

.narrow {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.9em;
}

.demo-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  background: var(--green-tint);
  border: 1px solid rgba(41, 76, 67, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 235, 221, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.site-header .logo,
.site-header nav,
.site-header .nav-right {
  flex-shrink: 0;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gold) 0deg, var(--bronze) 150deg, var(--green) 260deg, var(--gold) 360deg);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--green-deep);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switcher {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
}

.lang-switcher:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--green);
  color: var(--green-deep);
}

.btn-ghost:hover {
  background: var(--green);
  color: var(--paper);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* Hero */
.hero {
  padding: 88px 0 76px;
  background: radial-gradient(circle at 84% 8%, rgba(217, 168, 91, 0.18), transparent 55%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.hero-lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gold) 0deg, var(--bronze) 150deg, var(--green) 260deg, var(--gold) 360deg);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(35, 32, 26, 0.08);
}

.hero-visual .hero-visual-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16%;
}

.hero-visual .quote-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  color: var(--gold-deep);
  line-height: 1;
}

.hero-visual p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: var(--green-deep);
  margin: 0;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 48px;
  text-align: left;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.alt-bg {
  background: var(--ivory-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.paper-bg {
  background: var(--paper);
}

/* Story / feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.story-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.story-card .cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(155deg, var(--gold) 0%, var(--bronze) 55%, var(--green) 130%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  overflow: hidden;
}

.story-card .cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 20, 15, 0.55) 0%, rgba(23, 20, 15, 0) 45%);
  pointer-events: none;
}

.story-card .cover .badge {
  position: relative;
  z-index: 1;
  background: rgba(255, 252, 247, 0.92);
}

.story-card .body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.story-card .meta-row {
  font-size: 0.78rem;
  color: var(--bronze);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.story-card h3 {
  font-size: 1.28rem;
  margin: 0;
}

.story-card .excerpt {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
  flex: 1;
}

.story-card .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.step-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

/* Benefit list */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit {
  text-align: center;
  padding: 8px;
}

.benefit .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  color: var(--green-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.benefit h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.benefit p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

/* Explore page */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.filter-group select,
.filter-group input {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
  min-width: 170px;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.filter-reset {
  align-self: flex-end;
  margin-left: auto;
}

.results-count {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.empty-state,
.error-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  grid-column: 1 / -1;
}

.empty-state h3,
.error-state h3 {
  color: var(--green-deep);
  margin-bottom: 8px;
}

.error-state {
  border-color: rgba(156, 59, 59, 0.4);
}

.error-state h3 {
  color: var(--red);
}

.skeleton {
  background: linear-gradient(90deg, var(--ivory-dim) 25%, var(--line) 50%, var(--ivory-dim) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 320px;
}

/* Story detail */
.story-hero {
  background: linear-gradient(155deg, var(--gold) 0%, var(--bronze) 55%, var(--green) 130%);
  padding: 64px 0 56px;
  color: var(--paper);
}

.story-hero .wrap {
  max-width: 720px;
}

.story-hero .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.story-hero .tag {
  background: rgba(255, 252, 247, 0.22);
  border: 1px solid rgba(255, 252, 247, 0.4);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 600;
}

.story-hero h1 {
  color: var(--paper);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin-bottom: 10px;
}

.story-hero .story-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  opacity: 0.92;
}

.story-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.story-figure {
  margin: 0 0 32px;
}

.story-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.story-figure figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.story-body .lede {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--green-deep);
}

.story-body p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}

.story-body h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin: 28px 0;
}

.callout h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--bronze);
}

.callout ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.callout li {
  margin-bottom: 6px;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.share-row .share-status {
  font-size: 0.85rem;
  color: var(--green-deep);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.share-row .share-status.show {
  opacity: 1;
}

.related-strip {
  margin: 56px 0 0;
}

.related-strip h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 4px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--gold-deep);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 4px 20px;
  color: var(--ink-soft);
  margin: 0;
}

/* About / static */
.static-page .wrap {
  max-width: 720px;
  padding-top: 20px;
}

.static-page h1 {
  margin-bottom: 20px;
}

.static-page h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
}

.static-page p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.contact-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 20ch;
  margin: 0 auto 16px;
}

.final-cta p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 30px;
}

/* Newsletter */
#newsletter .section-head {
  margin-bottom: 28px;
}

.social-proof {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bronze);
  margin: 0 0 14px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  font-family: "Inter", sans-serif;
  font-size: 0.96rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.newsletter-form .form-status {
  width: 100%;
  margin: 8px 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.newsletter-form .form-status.success {
  color: var(--green-deep);
}

.newsletter-form .form-status.error {
  color: var(--red);
}

.newsletter-form .form-status.pending {
  color: var(--ink-soft);
}

.footer-newsletter {
  min-width: 220px;
}

.footer-newsletter p {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--ink);
}

.footer-newsletter .newsletter-form-compact {
  max-width: 320px;
  margin: 0;
}

.footer-newsletter .newsletter-form-compact input[type="email"] {
  padding: 9px 12px;
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--ivory-dim);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--green-deep);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 300px;
    margin: 0 auto;
  }

  .card-grid,
  .steps,
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    z-index: 40;
  }

  .card-grid,
  .steps,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group select,
  .filter-group input {
    min-width: 0;
    width: 100%;
  }

  .filter-reset {
    margin-left: 0;
    align-self: stretch;
  }
}

@media (max-width: 520px) {
  .story-body {
    padding: 40px 18px 0;
  }
}
