/* ───────────────────────────────────────────────────────────────────────────
   Peaceful Pairs — guide.css
   Shared stylesheet for the answer-hub guide pages (/guides/*). Pairs with
   fonts.css. Mirrors the design tokens of the landing page (index.html) so the
   guides feel like the same product: warm paper, pine + sage, editorial serif
   headings. No JavaScript required — pages are fully readable without it.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --paper: #FAF6EE;
  --surface: #FFFFFF;
  --mint: #E9F1E6;
  --mint-soft: #F3F6EC;
  --sand: #F0E8D7;
  --line: #E6DECC;
  --ink: #28302B;
  --ink-soft: #57605A;
  --ink-faint: #5E6760;
  --pine: #2C4A3B;
  --pine-deep: #22382E;
  --sage: #7BA18C;
  --sage-deep: #4F7561;
  --sage-bright: #A9C5B2;
  --amber: #C98A3A;
  --amber-deep: #8A5A20;
  --amber-bg: #FBF1E2;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --maxw: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--body);
  font-size: 17.5px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--mint); color: var(--pine-deep); }
a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--pine); }
:focus-visible { outline: 2.5px solid var(--sage-deep); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  background: var(--paper); color: var(--pine); padding: 10px 18px;
  border-radius: 999px; box-shadow: 0 4px 14px rgba(34,56,46,.25); text-decoration: none;
}

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

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,238,0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230,222,204,.7);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--pine); position: relative; flex: none; }
.brand .logo::before, .brand .logo::after { content: ""; position: absolute; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); }
.brand .logo::before { left: 6px; }
.brand .logo::after { left: 15px; opacity: .62; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a.navlink { color: var(--ink-soft); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav-links a.navlink:hover { color: var(--pine); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 15.5px;
  cursor: pointer; border: none; text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pine); color: #FCF9F2; box-shadow: 0 1px 0 rgba(34,56,46,.25), 0 10px 24px -14px rgba(34,56,46,.55); }
.btn-primary:hover { background: var(--pine-deep); color: #FCF9F2; }
.nav .btn { padding: 9px 18px; font-size: 14.5px; }
@media (max-width: 620px) { .nav-links .navlink { display: none; } }

/* ——— Breadcrumb ——— */
.crumbs { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px 0; font-size: 13.5px; color: var(--ink-faint); }
.crumbs a { color: var(--sage-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 8px; opacity: .6; }

/* ——— Article ——— */
/* padding-block (not the 4-value shorthand) so we don't clobber .wrap's
   horizontal `padding: 0 24px` — both are single-class selectors, and .guide
   comes later in the file, so a shorthand here would zero out the side gutter
   and jam the body text against the screen edge on mobile. */
.guide { padding-block: 14px 40px; }
.guide .kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sage-deep); margin-bottom: 14px;
}
.guide h1 {
  font-family: var(--display); font-weight: 540; letter-spacing: -0.012em; line-height: 1.14;
  font-size: clamp(29px, 5vw, 42px); color: var(--ink); margin-bottom: 22px;
  font-variation-settings: "opsz" 50;
}
/* The direct, quotable answer — what answer engines lift. Visually a lead block. */
.guide .answer {
  font-size: clamp(18.5px, 2.2vw, 21px); line-height: 1.6; color: var(--pine-deep);
  background: var(--mint-soft); border-left: 4px solid var(--sage);
  border-radius: 4px 14px 14px 4px; padding: 22px 26px; margin-bottom: 22px;
}
.guide .byline {
  font-size: 13.5px; color: var(--ink-faint); margin-bottom: 8px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.guide .byline strong { color: var(--ink-soft); }

.guide section { margin-top: 38px; }
.guide h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
  font-size: clamp(22px, 3vw, 28px); color: var(--ink); margin-bottom: 14px;
}
.guide p { margin-bottom: 16px; }
.guide p:last-child { margin-bottom: 0; }

.guide ul.bullets { list-style: none; margin: 4px 0 18px; padding: 0; }
.guide ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.guide ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--sage);
}

/* Comparison tables */
.guide .table-scroll { overflow-x: auto; margin: 6px 0 20px; }
.guide table.compare { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 460px; }
.guide table.compare th, .guide table.compare td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide table.compare thead th { background: var(--mint); color: var(--pine-deep); font-weight: 700; font-size: 14px; }
.guide table.compare tbody td:first-child, .guide table.compare tbody th:first-child { font-weight: 600; color: var(--ink-soft); }
.guide table.compare tr:last-child td { border-bottom: none; }

/* ——— How Peaceful Pairs helps (accent band) ——— */
.guide .how {
  background: linear-gradient(170deg, #FDFCF8 50%, var(--mint-soft));
  border: 1px solid var(--line); border-radius: 22px; padding: 30px 30px 32px; margin-top: 44px;
}
.guide .how h2 { margin-bottom: 12px; }
.guide .cta { margin-top: 22px; }
.guide .cta .note { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-faint); }

/* ——— FAQ ——— */
.guide .faq { margin-top: 44px; }
.guide .faq .faq-list { border-top: 1px solid var(--line); }
.guide details { border-bottom: 1px solid var(--line); }
.guide summary {
  font-family: var(--display); font-weight: 600; font-size: 18.5px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 2px;
}
.guide summary:hover { color: var(--pine); }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.guide details[open] summary::after { content: "–"; background: var(--mint); }
.guide details .fa { padding: 0 2px 20px; color: var(--ink-soft); }

/* ——— Related ——— */
.guide .related { margin-top: 44px; }
.guide .related h2 { font-size: 20px; margin-bottom: 16px; }
.guide .related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .guide .related-list { grid-template-columns: 1fr; } }
.guide .related-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; color: var(--ink); font-weight: 600; font-size: 15.5px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.guide .related-card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -26px rgba(34,56,46,.4); color: var(--pine); }
.guide .related-card .arr { color: var(--sage); }

/* ——— Disclaimer / safety ——— */
.guide .disclaimer {
  margin-top: 40px; background: var(--amber-bg); border: 1px solid #EBD2AC; border-radius: 18px; padding: 24px 26px;
}
.guide .disclaimer h2 { font-size: 18px; margin-bottom: 10px; }
.guide .disclaimer p { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.guide .disclaimer strong { color: var(--amber-deep); }
.guide .res-list { display: grid; gap: 8px; margin-top: 12px; }
.guide .res-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  background: rgba(255,255,255,.6); border: 1px solid #EBD2AC; border-radius: 12px;
  padding: 11px 15px; color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.guide .res-list a:hover { background: #fff; }
.guide .res-list a b { color: var(--amber-deep); white-space: nowrap; }
@media (max-width: 520px) { .guide .res-list a { flex-direction: column; gap: 2px; } .guide .res-list a b { white-space: normal; } }

/* ——— Sources ——— */
.guide .sources { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.guide .sources h2 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.guide .sources ol { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-faint); }
.guide .sources li { margin-bottom: 7px; }
.guide .sources a { color: var(--sage-deep); }

/* ——— Hub (guides index) ——— */
/* padding-block only — keep .wrap's horizontal gutter (see .guide note above). */
.hub { padding-block: 26px 50px; }
.hub .lede { font-size: 18.5px; color: var(--ink-soft); max-width: 38em; margin: 8px 0 30px; }
.hub h1 { font-family: var(--display); font-weight: 540; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.012em; margin-bottom: 6px; }
.hub .group { margin-top: 34px; }
.hub .group > h2 { font-family: var(--display); font-weight: 600; font-size: 22px; margin-bottom: 16px; }
.hub-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .hub-list { grid-template-columns: 1fr; } }
.hub-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px; text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(34,56,46,.38); }
.hub-card h3 { font-family: var(--display); font-weight: 600; font-size: 18.5px; line-height: 1.3; margin-bottom: 8px; color: var(--ink); }
.hub-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* ——— Footer ——— */
.site-footer { background: var(--pine-deep); color: #C9D6C5; font-size: 14px; padding: 48px 0 44px; margin-top: 60px; }
.site-footer .wrap { max-width: 1040px; }
.site-footer .brand { color: #FCF9F2; }
.site-footer .brand .logo { background: var(--sage); }
.site-footer .brand .logo::before, .site-footer .brand .logo::after { background: var(--pine-deep); }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 22px; }
.site-footer .foot-links a { color: #C9D6C5; text-decoration: none; }
.site-footer .foot-links a:hover { color: #FCF9F2; }
.site-footer .disclaimer-fine { border-top: 1px solid rgba(201,214,197,.25); padding-top: 20px; line-height: 1.7; color: #9DB3A0; font-size: 13px; }
.site-footer .disclaimer-fine strong { color: #C9D6C5; }
.site-footer :focus-visible { outline-color: var(--sage-bright); }
