:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #17221d;
  --muted: #56645d;
  --line: #e3e1d8;
  --brand: #0f3d2e;
  --brand-2: #1e6b4f;
  --accent: #e8a33d;
  --accent-soft: #fdf3e2;
  --soft: #eef4f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(15,61,46,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1613; --surface: #16201b; --ink: #e9efe9; --muted: #a3b2a9; --line: #2a3832;
    --brand: #7fd1a8; --brand-2: #9ee0bd; --accent: #f0b65a; --accent-soft: #2b2416; --soft: #1a2a22;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1613; --surface: #16201b; --ink: #e9efe9; --muted: #a3b2a9; --line: #2a3832;
  --brand: #7fd1a8; --brand-2: #9ee0bd; --accent: #f0b65a; --accent-soft: #2b2416; --soft: #1a2a22;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 Inter, system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-2); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.logo b { color: var(--brand-2); }
.logo small { margin-left: 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--accent-soft); color: var(--ink); padding: 2px 6px; border-radius: 6px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--soft); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; color: var(--ink); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
}

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0f1613; } }
:root[data-theme="dark"] .btn { color: #0f1613; }
.site-nav a.btn { color: #fff; background: var(--brand); }
.btn:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--soft); }
.btn-small { padding: 8px 14px; font-size: .9rem; }

/* sections */
section { padding: 56px 0; }
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hero-panel ul { list-style: none; padding: 0; margin: 0; }
.hero-panel li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.hero-panel li:last-child { border-bottom: 0; }
.hero-panel li span { color: var(--brand-2); font-weight: 700; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: var(--brand-2); margin: 0 0 6px; }
.eyebrow a { color: inherit; text-decoration: none; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; max-width: 36em; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-2); }
.card p { margin: 0 0 10px; }
.meta { color: var(--muted); font-size: .85rem; }
.tag { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--brand-2); margin: 0 4px 4px 0; }
.tag-sponsored { background: var(--accent-soft); color: var(--ink); padding: 1px 6px; border-radius: 6px; text-transform: none; letter-spacing: 0; }
.band { background: var(--brand); color: #eaf4ee; border-radius: 20px; padding: 40px; }
.band h2 { color: #fff; }
.band .btn { background: var(--accent); color: #1b1408; }
.band .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #183a2c; } }
:root[data-theme="dark"] .band { background: #183a2c; }

/* pricing */
.price { font-family: Fraunces, Georgia, serif; font-size: 2rem; margin: 6px 0; }
.price small { font-family: Inter, sans-serif; font-size: .85rem; color: var(--muted); }
.card.featured { border: 2px solid var(--accent); }
.checks { list-style: none; padding: 0; margin: 12px 0 18px; }
.checks li { padding: 4px 0 4px 24px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }

/* directory */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 99px; font: inherit; font-size: .9rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.listing .brand { font-weight: 600; color: var(--muted); font-size: .85rem; margin: 0; }
.listing.is-featured { border-color: var(--accent); }
.listing .badge { float: right; font-size: .7rem; background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); }

/* article */
.article { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.article .lede { font-size: 1.15rem; color: var(--muted); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.prose blockquote { margin: 1em 0; padding: 12px 18px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
.cta-box { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--soft); }
.page-head { padding: 48px 0 8px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 42em; }

/* forms */
form.form { display: grid; gap: 14px; max-width: 640px; }
form.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
form.form input, form.form select, form.form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
form.form textarea { min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 16px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h3 { font-family: Inter, sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-grid a { display: block; color: var(--ink); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: var(--brand-2); }
.footer-brand { font-weight: 600; font-size: 1.05rem; }
.footer-brand b { color: var(--brand-2); }
.footer-base { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
