/* 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; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
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: var(--bg-3); 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-links a.nav-cta { background: var(--accent); color: #241500 !important; font-weight: 600; font-size: 0.85rem; padding: 0.4rem 1.6rem 0.4rem 0.9rem; clip-path: polygon(0 0, calc(100% - 0.8rem) 0, 100% 50%, calc(100% - 0.8rem) 100%, 0 100%); }
.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-3); 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; 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 */
/* Buttons — wedge anatomy: vertical back edge, pointed nose. Clip-path draws the shape;
   labels must never wrap or the nose breaks. */
.btn { display: inline-flex; align-items: center; padding: 0.85rem 2.2rem 0.85rem 1.5rem; font-size: 1.05rem; font-weight: 600; transition: all 0.2s; white-space: nowrap; clip-path: polygon(0 0, calc(100% - 1.4rem) 0, 100% 50%, calc(100% - 1.4rem) 100%, 0 100%); }
.btn-primary { background: var(--accent); color: #241500; }
.btn-primary:hover { background: #f0b25e; transform: translateY(-1px); }
.btn-secondary { background: var(--bg-3); color: var(--link); }
.btn-secondary:hover { background: #122a20; color: var(--link-hover); }

/* 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.8rem 0 2.2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .tag { color: var(--muted); font-size: 0.98rem; display: block; }
.footer-brand .tag b { color: var(--ink); font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col .footer-k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.3rem; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--link-hover); }
.footer-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.4rem; color: var(--muted); font-size: 0.82rem; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--link-hover); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Verdict/answer block — shrink on small phones so the display font + padding
   don't crowd narrow containers. .article .answer wins over the inline .answer
   definition repeated on every review page. */
@media (max-width: 480px) {
  .article .answer { font-size: 1.12rem; line-height: 1.45; padding: 1.2rem 1.2rem; }
}

/* David's sign-off — asymmetric two-column editorial spread */
.signoff { border-top: 1px solid var(--line); background: var(--bg-3); padding: 4rem 0 3rem; }
.signoff-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 0 3rem; }
.signoff-head { display: flex; flex-direction: column; align-items: flex-start; }
.signoff-head h2 { font-family: var(--font-display); font-size: 2.8rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.signoff-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; filter: brightness(0.85) saturate(0.85) contrast(1.05); margin-top: 1.6rem; }
.signoff-side { display: flex; flex-direction: column; }
.signoff-deck { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.signoff-action { margin-top: 1.8rem; }
.signoff-action .btn { margin: 0; }
.signoff-note { color: var(--muted); font-size: 0.9rem; margin-top: 1.6rem; }
.signoff-email { color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }
.signoff-email a { color: var(--link); font-size: 0.9rem; border-bottom: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.signoff-email a:hover { color: var(--link-hover); border-color: var(--accent-2); }
/* Closing quote slab — full-bleed panel-pine band under the signoff, page's last word.
   Quiet band, readable text: cream quote 8.28:1, amber highlight 4.16:1, sage caption 5.49:1. */
.quote-slab { background: #27523f; border-top: 1px solid var(--line); padding: 4.2rem 0 4.6rem; }
.quote-slab-figure { max-width: 880px; margin: 0 auto; text-align: center; }
.quote-slab-figure blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.quote-slab-figure .qslab-hl { color: var(--accent); font-weight: 600; }
.quote-slab-figure figcaption { margin-top: 1.6rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.quote-slab-figure figcaption a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.quote-slab-figure figcaption a:hover { color: var(--link-hover); border-color: var(--accent-2); }
@media (max-width: 720px) {
  .quote-slab { padding: 3rem 0 3.4rem; }
}
@media (max-width: 720px) {
  .signoff { padding: 2.8rem 0 2.2rem; }
  .signoff-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .signoff-grid h2 { font-size: 2.1rem; }
}

/* Glossary auto-links — inline terms pointing at the glossary.
   Quiet by default: aqua tint + dotted underline, no layout shift.
   Distinct from regular links (which inherit ink) and from the
   amber action color. Hover fills the underline solid. */
.gl-auto {
  color: var(--accent-2);
  border-bottom: 1px dotted rgba(159, 212, 205, 0.55);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.gl-auto:hover {
  color: #c8e7e2;
  border-bottom: 1px solid var(--accent-2);
}

/* Glossary pointer in review translate blocks */
.gl-link { display: block; margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; line-height: 1.6; color: var(--muted); }
.gl-link a { color: var(--accent); }
.gl-link a:hover { color: var(--accent-2); }

/* Vendor notice — do-not-recommend warning on affected tool reviews.
   Wording lives in _includes/vendor-notice.njk. Deliberately the only red on
   the site: solid oxblood panel so it breaks the green page and holds the eye. */
.vendor-notice { background: #5e1a1a; border-top: 3px solid #d96a5a; border-bottom: 1px solid #431111; padding: 1.5rem 1.8rem 1.4rem; margin: 1.8rem 0 1rem; }
.vendor-notice .vn-k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f0a58e; margin: 0 0 0.7rem; }
.vendor-notice .vn-lead { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; color: #fdf6f0; margin: 0 0 0.8rem; }
.vendor-notice .vn-body { color: #f2ddd6; font-size: 0.98rem; line-height: 1.6; margin: 0 0 0.8rem; }
.vendor-notice .vn-body a { color: #f5c98d; }
.vendor-notice .vn-body a:hover { color: #fbe0b8; }
.vendor-notice .vn-foot { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: #f0a58e; margin: 0.4rem 0 0; }
.vendor-notice .vn-more { margin: 1.1rem 0 0; text-align: right; }
.vendor-notice .vn-more .btn { font-size: 0.9rem; padding: 0.65rem 1.8rem 0.65rem 1.2rem; }
