:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1b1a17;
  --ink-soft: #55524b;
  --muted: #8a867d;
  --line: #e7e2d8;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee4;
  --radius: 14px;
  --maxw: 1080px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --surface: #1c1b17;
    --ink: #f3efe6;
    --ink-soft: #c4bfb3;
    --muted: #8f8a7f;
    --line: #2e2c26;
    --accent: #f97316;
    --accent-ink: #1b1a17;
    --accent-soft: #2a1d13;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 14px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: 12px 22px;
  font: 600 0.95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 620px; margin: 0 0 32px; }
.hero h1 em { font-style: italic; color: var(--accent); }

.subscribe { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.subscribe input {
  flex: 1 1 240px; min-width: 0;
  padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 1rem var(--sans);
}
.subscribe input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-alt .card { background: var(--bg); }
.card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card p { color: var(--ink-soft); margin: 0; }

/* Issue preview */
.issue { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.issue-mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); overflow: hidden; }
.issue-mock header { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.issue-mock .body { padding: 26px 22px; }
.issue-mock .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.issue-mock h4 { font-family: var(--serif); font-size: 1.25rem; margin: 6px 0 8px; line-height: 1.25; }
.issue-mock p { color: var(--ink-soft); font-size: 0.93rem; margin: 0 0 18px; }
.issue-mock hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 14px; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

/* CTA */
.cta { text-align: center; }
.cta .subscribe { margin: 0 auto; justify-content: center; }
.cta .lede { margin-left: auto; margin-right: auto; }

/* Prose pages */
.page-head { padding: 72px 0 24px; }
.page-head p { color: var(--ink-soft); }
.prose { padding: 8px 0 88px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.updated { font-size: 0.9rem; color: var(--muted); }
.notice { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.notice p { margin: 0; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .issue { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .br-desk { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .subscribe .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
