:root {
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --tint: #ece6d8;
  --ink: #16241f;
  --muted: #56645e;
  --line: #ddd5c4;
  --brand: #344542;
  --brand-ink: #f7f3ea;
  --accent: #f2b544;
  --accent-ink: #1b1508;
  --hl: rgba(242, 181, 68, 0.45);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 36, 31, 0.06), 0 8px 24px rgba(22, 36, 31, 0.06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1714;
    --surface: #16211d;
    --tint: #121c18;
    --ink: #ecebe4;
    --muted: #a3ada7;
    --line: #26342e;
    --brand: #26332f;
    --brand-ink: #ecebe4;
    --hl: rgba(242, 181, 68, 0.28);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(242, 181, 68, 0.35); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.text-link { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.text-link:hover { border-bottom-color: var(--ink); }

.eyebrow { font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.fine { font-size: 14px; color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { height: 48px; width: auto; }
.brand-footer .logo { height: 56px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 20px; }
.hl { background: linear-gradient(transparent 62%, var(--hl) 62%); padding: 0 2px; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin-bottom: 28px; }

.subscribe { display: flex; gap: 8px; max-width: 480px; padding: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.subscribe input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 400 16px/1 var(--sans); padding: 0 14px;
}
.subscribe input:focus { outline: none; }
.subscribe:focus-within { border-color: var(--accent); }
.subscribe + .fine { margin-top: 12px; padding-left: 20px; }

.hero-card {
  background: var(--brand); color: var(--brand-ink);
  border-radius: 20px; padding: 32px; box-shadow: var(--shadow);
}
.hero-card-label { font: 700 22px/1.2 var(--serif); margin-bottom: 20px; }
.signal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.signal-list li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; font-size: 16px; opacity: 0.92; }
.signal-list strong { color: var(--accent); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-head-center .eyebrow { margin-bottom: 0; }
.section-note { color: var(--muted); max-width: 32em; }

/* ---------- Feature article ---------- */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
}
.feature.no-media { grid-template-columns: 1fr; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.4s ease; }
.feature-media { overflow: hidden; }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; align-items: flex-start; }
.feature-body h3 { font-size: clamp(24px, 2.6vw, 32px); }
.feature-body h3 a { text-decoration: none; }
.feature-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.feature-body > p:not(.meta) { color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); font-weight: 500; }

.more-posts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-posts:empty { display: none; }
.more-posts a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: var(--surface); transition: border-color 0.15s;
}
.more-posts a:hover { border-color: var(--ink); }
.more-title { font: 600 18px/1.3 var(--serif); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  box-shadow: var(--shadow);
}
.product > p:not(.product-tagline) { color: var(--muted); font-size: 16px; }
.product .btn { margin-top: auto; }
.product-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.product-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tint); font-size: 24px; }
.product h3 { font-size: 26px; }
.product-tagline { font-weight: 600; }
.badge { font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 10px; border-radius: 999px; background: var(--brand); color: var(--accent); }
.badge-soon { background: var(--tint); color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.product-next { background: transparent; border: 1.5px dashed var(--muted); box-shadow: none; justify-content: center; }
.product-next .product-icon { color: var(--muted); }
.product-next .text-link { margin-top: 4px; }

/* ---------- Community ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 28px; border-top: 3px solid var(--brand); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--muted); font-size: 16px; flex: 1; }
.step-num { font: 700 36px/1 var(--serif); color: var(--accent); }

/* ---------- CTA ---------- */
.cta { background: var(--brand); color: var(--brand-ink); padding: 80px 0; }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); max-width: 20em; }
.subscribe-dark { width: 100%; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); box-shadow: none; }
.subscribe-dark input { color: var(--brand-ink); }
.subscribe-dark input::placeholder { color: rgba(247, 243, 234, 0.6); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px 48px; align-items: start; }
.footer-inner .fine { margin-top: 12px; max-width: 36em; }
.footer-links { display: flex; gap: 24px; justify-content: flex-end; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.copyright { grid-column: 1 / -1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero-inner, .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature { gap: 0; }
  .feature-body { padding: 28px; }
  .more-posts, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .logo { height: 36px; }
  .subscribe { flex-direction: column; border-radius: 18px; padding: 8px; }
  .subscribe input { padding: 12px; }
  .subscribe + .fine { padding-left: 4px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

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