@font-face {
  font-family: Fraunces;
  src: url("../fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit-400.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3efe6;
  --bg-2: #eae4d8;
  --paper: #fffcf7;
  --ink: #16140f;
  --muted: #5f5a52;
  --line: #ddd4c6;
  --brand: #0c5c52;
  --brand-2: #14786c;
  --brand-soft: #dff1ed;
  --accent: #c45c26;
  --danger: #9b2c2c;
  --danger-bg: #fdecec;
  --ok: #0e7c66;
  --shadow: 0 24px 60px rgba(22, 20, 15, 0.08);
  --radius: 22px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --space: clamp(1rem, 2vw, 2rem);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-2); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.wrap { width: min(calc(100% - 2rem), var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(calc(100% - 2rem), 720px); }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 0.6rem 1rem; z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(243, 239, 230, 0.92);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
}
.header-inner, .footer-grid {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--brand); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s;
}
.nav-toggle span:first-of-type { top: 17px; }
.nav-toggle span:last-of-type { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-of-type { transform: translateY(-4px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-family: inherit;
  border-radius: 999px; padding: 0.85rem 1.35rem; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(12,92,82,.22); }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 3px;
}

.hero { position: relative; padding: clamp(2rem, 6vw, 5rem) 0 3rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto;
  height: 80%;
  background:
    radial-gradient(600px 280px at 12% 20%, rgba(12,92,82,.12), transparent 70%),
    radial-gradient(500px 240px at 88% 10%, rgba(196,92,38,.10), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; position: relative;
}
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; font-weight: 600;
  color: var(--brand); margin-bottom: 0.8rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38ch; }
.form-card { margin-top: 1.6rem; padding: 1.4rem; }
.card {
  background: var(--paper);
  border: 1px solid rgba(22,20,15,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; list-style: none; padding: 1rem 0 0; margin: 0; color: var(--muted); font-size: 0.92rem;
}
.trust-row li { display: flex; align-items: center; gap: 0.4rem; }
.trust-row li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.subscribe-form .form-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.8rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.85rem; }
.field label, .consent, .resend-form label { font-weight: 550; font-size: 0.92rem; }
.optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 0.85rem 0.95rem;
  font: inherit; background: #fff; color: var(--ink);
}
input:hover, select:hover { border-color: #c9bfb0; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(12,92,82,.12); }
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start;
  font-weight: 400; color: var(--muted); margin: 0.4rem 0 1rem; font-size: 0.95rem;
}
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--brand); }
.form-hint { min-height: 1.3em; font-size: 0.92rem; color: var(--muted); }
.alert { padding: 0.85rem 1rem; border-radius: 14px; margin-bottom: 1rem; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-note { display: block; margin-top: 0.35rem; font-weight: 400; }
.hp { position: absolute; left: -10000px; height: 0; overflow: hidden; }
.spinner {
  width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; display: none;
}
.is-loading .spinner { display: inline-block; animation: spin .6s linear infinite; }
.is-loading [data-label] { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-success { color: var(--ok); }
.is-error { color: var(--danger); }

.hero-art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(12,92,82,.12)); }

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.35) 20%, transparent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.panel { background: var(--brand); color: #eef7f4; border-radius: var(--radius); padding: 1.8rem; }
.panel h3 { color: #fff; }
.steps { margin: 0; padding-left: 1.2rem; }
.steps li { margin: 0.7rem 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.5rem; }
.icon-blob {
  width: 42px; height: 42px; border-radius: 14px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 1rem;
}
.faq details {
  background: var(--paper); border-radius: 16px; padding: 0.2rem 1rem; margin: 0.6rem 0; border: 1px solid var(--line);
}
.faq summary { cursor: pointer; font-weight: 600; padding: 0.95rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); }
.cta-band { padding-top: 0; }
.cta-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  background: var(--ink); color: #f6f1e8; border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.4rem);
}
.cta-inner h2, .cta-inner p { color: inherit; margin-bottom: 0.35rem; }
.cta-inner .btn-primary { background: #fff; color: var(--ink); }

.status-page { padding-top: 3rem; padding-bottom: 5rem; }
.status-card { padding: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.inline-fields { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.inline-fields input { flex: 1; min-width: 220px; }

.prose-page h1 { margin-bottom: 0.4em; }
.prose-page h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose-page ul { padding-left: 1.2rem; }
.prose-page code { background: #fff; padding: 0.1rem 0.35rem; border-radius: 6px; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-grid a, .footer-meta a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.footer-meta { font-size: 0.9rem; }

.admin-body { background: #efeae0; }
.admin-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-main { padding: 2rem 0 4rem; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; margin: 1.2rem 0; }
.stat .stat-num { font-family: var(--display); font-size: 1.8rem; margin: 0; }
.filters { display: flex; gap: 0.6rem; margin: 1.2rem 0; flex-wrap: wrap; }
.table-wrap { overflow: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pill { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.pill-pending { background: #f3e7d3; color: #8a5a12; }
.pill-confirmed { background: var(--brand-soft); color: var(--brand); }
.pill-unsubscribed { background: #ececec; color: #555; }
.bars { display: flex; align-items: flex-end; gap: 6px; min-height: 100px; overflow-x: auto; padding-top: 0.5rem; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; min-width: 22px; }
.bar { width: 14px; background: var(--brand); border-radius: 6px 6px 2px 2px; }
.bar-col span { font-size: 0.62rem; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.admin-login { min-height: 100vh; display: grid; place-items: center; }
.growth { margin: 1rem 0 1.5rem; }

@media (max-width: 900px) {
  .hero-grid, .split, .cards, .stat-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .subscribe-form .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; inset: 72px 1rem auto; background: var(--paper);
    border-radius: 16px; padding: 1rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media (max-width: 430px) {
  body { font-size: 1rem; }
  .btn { width: 100%; }
  .inline-fields { flex-direction: column; }
  .inline-fields .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
