:root{
  --paper:#f7f6f4;
  --paper2:#ffffff;
  --ink:#1c1a17;
  --ink-soft:#5c564c;
  --line:#e3ded4;
  --line-strong:#cec6b6;
  --brand:#8a5a2b;
  --brand-dark:#6b4520;
  --brand-tint:#f1e6d6;
  --ok:#2f7d4f;
  --ok-tint:#e6f4ea;
  --mono:'IBM Plex Mono', monospace;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;width:100%;}
body{ background:var(--paper); color:var(--ink); font-family:'Inter',system-ui,-apple-system,sans-serif; -webkit-font-smoothing:antialiased; min-height:100vh; }
a{ color:inherit; text-decoration:none; }

/* ---- Navigation ---- */
.topnav{ background:linear-gradient(160deg,#241d14,#382c1c 60%,#241d14); border-bottom:4px solid var(--brand); }
.topnav-inner{ max-width:1040px; margin:0 auto; padding:14px 24px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.brand{ font-family:'Source Serif 4',serif; font-weight:600; font-size:19px; color:#fff; }
.brand span{ color:#d9b483; }
.navlinks{ display:flex; gap:22px; }
.navlinks a{ color:#cfc3ac; font-size:13.5px; font-weight:600; padding:6px 0; border-bottom:2px solid transparent; }
.navlinks a:hover, .navlinks a.active{ color:#fff; border-bottom-color:var(--brand); }

/* ---- Hero (homepage) ---- */
.hero{ background:linear-gradient(160deg,#241d14,#382c1c 60%,#241d14); color:#f0e8da; padding:56px 24px 60px; }
.hero-inner{ max-width:900px; margin:0 auto; text-align:center; }
.eyebrow{ font-family:var(--mono); letter-spacing:.1em; text-transform:uppercase; font-size:11px; color:#d9b483; }
.hero h1{ font-family:'Source Serif 4', serif; font-weight:600; font-size:clamp(26px,4vw,40px); margin:12px 0 14px; color:#fff; }
.hero p{ max-width:620px; margin:0 auto; color:#cfc3ac; font-size:15px; line-height:1.7; }

/* ---- Section cards on homepage ---- */
.section-grid{ max-width:1040px; margin:-34px auto 0; padding:0 24px 60px; display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:720px){ .section-grid{ grid-template-columns:1fr; } }
.section-card{ background:var(--paper2); border:1px solid var(--line-strong); border-radius:16px; padding:28px 26px; box-shadow:0 12px 30px -18px rgba(0,0,0,0.25); }
.section-card .tag{ font-family:var(--mono); font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--brand-dark); background:var(--brand-tint); display:inline-block; padding:3px 9px; border-radius:6px; margin-bottom:10px; }
.section-card h2{ font-family:'Source Serif 4',serif; font-size:21px; margin:0 0 8px; }
.section-card p{ font-size:13.5px; color:var(--ink-soft); line-height:1.6; margin:0 0 16px; }
.section-card .go{ display:inline-block; font-weight:600; font-size:13px; color:var(--brand-dark); }
.section-card .go:after{ content:' →'; }

/* ---- Catalog pages ---- */
main.catalog{ max-width:1040px; margin:0 auto; padding:40px 24px 80px; }
.catalog h1{ font-family:'Source Serif 4',serif; font-size:26px; margin:0 0 6px; }
.catalog .lead{ color:var(--ink-soft); font-size:13.5px; margin:0 0 32px; max-width:640px; line-height:1.6; }
.category-block{ margin-bottom:34px; }
.category-block h3{ font-family:var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); border-bottom:1px solid var(--line-strong); padding-bottom:8px; margin:0 0 14px; }
.tool-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.tool-card{ display:block; background:var(--paper2); border:1px solid var(--line-strong); border-radius:12px; padding:16px 18px; transition:border-color .15s, box-shadow .15s; }
.tool-card:hover{ border-color:var(--brand); box-shadow:0 8px 20px -14px rgba(0,0,0,0.3); }
.tool-card .icd{ font-family:var(--mono); font-size:10px; color:var(--brand-dark); background:var(--brand-tint); padding:1px 6px; border-radius:4px; display:inline-block; margin-bottom:8px; }
.tool-card h4{ font-family:'Source Serif 4',serif; font-size:15px; margin:0 0 6px; line-height:1.35; }
.tool-card p{ font-size:12.5px; color:var(--ink-soft); line-height:1.5; margin:0; }
.empty-state{ color:var(--ink-soft); font-size:13.5px; padding:20px; background:var(--paper2); border:1px dashed var(--line-strong); border-radius:10px; }

/* ---- Footer ---- */
.site-footer{ border-top:1px solid var(--line-strong); background:var(--paper2); }
.site-footer-inner{ max-width:1040px; margin:0 auto; padding:22px 24px; font-size:11.5px; color:var(--ink-soft); line-height:1.6; }
