/* David Nowak — shared site styles
   Central stylesheet referenced by every page on the hub.
   Page-specific anatomy (guide steps / reference sections / FAQ bands) lives
   inline in each page and is NOT in this file. */

:root {
  --bg: #1d4333;          /* deep pine — the signature background */
  --bg-2: #27523f;        /* slightly lighter panel */
  --bg-3: #163629;        /* darker inset */
  --ink: #f4f8f4;         /* cream text */
  --muted: #bdd0c5;       /* sage muted */
  --line: rgba(244,248,244,0.14);
  --accent: #e6a54a;      /* warm amber — the action color */
  --accent-2: #9fd4cd;    /* soft aqua — secondary accent */
  --link: #f0cf8d;        /* light yellow — clickable titles */
  --link-hover: #f8e2b5;  /* lighter yellow — title hover */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--ink); line-height: 1.75; font-size: 1.1rem; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* Header — consistent across all pages */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(36,67,55,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.brand .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--link); font-size: 1rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--link-hover); }
.nav-links a.active { color: var(--accent-2); }
.nav-cta { background: var(--accent); color: #241500 !important; font-weight: 600; padding: 0.55rem 1.1rem; }
.nav-cta:hover { background: #efb25e; }

/* Mobile menu — pure-CSS hamburger (no JS, fits the minimal-script ethos) */
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links a { display: block; padding: 0.9rem 28px; border-top: 1px solid var(--line); }
  .nav-links a.nav-cta { margin: 0.9rem 28px 0; text-align: center; }
  .nav-toggle:checked ~ .nav-links { max-height: 500px; padding: 0 0 1rem; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Breadcrumbs */
.crumbs { padding: 2.2rem 0 0; }
.crumbs-inner { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs .sep { margin: 0 0.6rem; opacity: 0.5; }
.crumbs .here { color: var(--accent-2); }

/* Article base (shared by guides, articles, faq pages) */
.article { max-width: 720px; margin: 0 auto; padding: 2.6rem 0 3.5rem; }
.article .eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.article h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; margin-top: 1rem; }
.article hr { border: none; border-top: 1px solid var(--line); margin: 2.6rem 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.5rem; font-size: 1.05rem; font-weight: 600; transition: all 0.2s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #241500; }
.btn-primary:hover { background: #f0b25e; transform: translateY(-1px); }

/* Still stuck / help */
.help { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.4rem 0; margin-top: 2.4rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.help h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.help p { color: var(--muted); margin-top: 0.4rem; max-width: 52ch; }

/* Related */
.related { max-width: 720px; margin: 0 auto; padding: 2.4rem 0 4rem; }
.related .rl { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.2rem; }
.related-list { display: flex; flex-direction: column; }
.related-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.related-item a { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.related-item a:hover { color: var(--accent-2); }
.related-item .meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.related-item:last-child { border-bottom: 1px solid var(--line); }

/* Footer — consistent across all pages */
.footer { padding: 2.6rem 0 3rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer .tag { color: var(--muted); font-size: 0.98rem; }
.footer .tag b { color: var(--ink); font-weight: 600; }
.footer-links a { color: var(--link); font-size: 0.95rem; margin-left: 1.3rem; }
.footer-links a:hover { color: var(--link-hover); }

/* CTA callout — David's pitch above the footer on every page */
.callout { border-top: 1px solid var(--line); padding: 3rem 0; }
.callout-box { background: var(--bg-2); border: 1px solid var(--line); padding: 2.4rem 2.6rem; display: flex; justify-content: space-between; align-items: center; gap: 2.4rem; flex-wrap: wrap; }
.callout-box .ct { flex: 1 1 300px; }
.callout-box h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.callout-box p { color: var(--muted); margin-top: 0.6rem; max-width: 52ch; }
.callout-box .btn { margin-top: 1.2rem; }
.callout-img { width: 170px; height: 170px; object-fit: cover; flex-shrink: 0; }
@media (max-width: 640px) { .callout-box { padding: 2rem 1.6rem; } .callout-img { width: 130px; height: 130px; } }
