/* Nookavi guides: one reading column on crema, espresso hero with the short answer, same brand tokens as the homepage. */
:root {
  --espresso: #2E211A;
  --crema: #F4EDE3;
  --terracotta: #C0643B;
  --terracotta-dark: #A9542F;
  --latte: #E2D4C0;
  --sage: #8A9A7B;
  --roast: #5F534C;
  --paper: #FBF7F1;
  --line: rgba(46, 33, 26, .16);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--crema); color: var(--espresso); font: 400 1.125rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.col { max-width: 44rem; margin-inline: auto; width: 100%; }
.wide { max-width: 64rem; margin-inline: auto; width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }
p { margin: 0; }
.eyebrow { font: 700 .8125rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); margin: 0; }
strong { font-weight: 700; }

/* Header + footer (same as homepage) */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--espresso); color: var(--crema); border-bottom: 1px solid rgba(244, 237, 227, .12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.wordmark { font: 600 1.6rem/1 var(--serif); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .85; }
.nav a:not(.btn):hover, .nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 700 1rem/1 var(--sans); text-decoration: none; background: var(--terracotta); color: var(--paper); transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); background: var(--terracotta-dark); }
.nav .btn { padding: 10px 18px; font-size: .9rem; }
.site-footer { background: var(--espresso); color: var(--latte); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 36px; font-size: .92rem; }
.site-footer .wordmark { color: var(--crema); font-size: 1.4rem; }
.site-footer a.email { color: var(--crema); text-decoration-color: var(--terracotta); text-underline-offset: 3px; }

/* Hero with the short answer */
.hero { background: var(--espresso); color: var(--crema); padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.hero .col { display: grid; gap: 20px; }
.crumbs { font-size: .9rem; color: var(--latte); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--latte); text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: var(--terracotta); }
.answer { background: rgba(244, 237, 227, .07); border-left: 3px solid var(--terracotta); border-radius: 0 10px 10px 0; padding: 18px 22px; display: grid; gap: 8px; }
.answer-label { font: 500 .78rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta); }
.answer p:not(.answer-label) { font-size: clamp(1.08rem, 1.8vw, 1.22rem); line-height: 1.6; color: var(--crema); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; color: var(--latte); }
.byline a { color: var(--crema); text-underline-offset: 3px; }
.byline span:not(:last-child)::after { content: "·"; margin-left: 18px; color: var(--terracotta); }

/* On this page */
.toc { display: grid; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.toc p { font: 700 .8rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--roast); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; font-size: .95rem; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }
.toc a:hover { border-color: var(--terracotta); }

/* Body */
article { padding-block: clamp(36px, 6vw, 72px); display: grid; gap: clamp(40px, 6vw, 64px); }
section[id] { scroll-margin-top: 80px; }
.prose { display: grid; gap: 18px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.prose li::marker { color: var(--terracotta); font-weight: 700; }
.prose a { color: var(--terracotta-dark); text-underline-offset: 3px; font-weight: 600; }
.note { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--sage); border-radius: 0 10px 10px 0; padding: 16px 20px; font-size: 1.02rem; }
.note strong { color: var(--espresso); }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border: 2px solid var(--terracotta); border-radius: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
th { font: 700 .8rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--roast); }
td:first-child { font-weight: 600; }
.prompt { font: 400 .95rem/1.6 var(--mono); background: var(--espresso); color: var(--crema); padding: 16px 20px; border-radius: 8px; white-space: pre-wrap; }
.prompt-label { font-weight: 700; margin-bottom: -8px; }

/* FAQ */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { display: grid; gap: 8px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.15rem; }

/* Sources */
.sources { font-size: .98rem; line-height: 1.55; }
.sources li span { color: var(--roast); }

/* Author */
.author { display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.author .monogram { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 600 1.3rem/1 var(--serif); background: var(--espresso); color: var(--crema); }
.author h2 { font-size: 1.15rem; }
.author p { font-size: 1rem; color: var(--roast); }

/* CTA */
.cta { background: var(--espresso); color: var(--crema); border-radius: 14px; padding: clamp(26px, 5vw, 44px); display: grid; gap: 14px; justify-items: start; }
.cta p { color: var(--latte); max-width: 36rem; }

/* Related guides + hub cards */
.related h2 { margin-bottom: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card { display: grid; gap: 8px; align-content: start; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.card .tag { font: 500 .76rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--terracotta); }
.card h3 { font-size: 1.12rem; }
.card p { font-size: .98rem; color: var(--roast); line-height: 1.5; }
.offer-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0 !important; }
.offer-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: grid; gap: 6px; }
.offer-list li strong { font-family: var(--serif); font-size: 1.12rem; }
.author .method { grid-column: 1 / -1; font-size: .95rem; padding-top: 10px; border-top: 1px solid var(--line); }
