/*
 * Guide pages (SEO surface): standalone stylesheet, no SPA bundle.
 * Tokens mirror client/src/styles.css ("The considered answer"); change them
 * together. Serif headings, paper background, pine brand, mobile-first.
 * Fonts fall back to system faces: guides load no webfonts by design.
 */

:root {
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --paper: #f4f5f1;
  --card: #ffffff;
  --ink: #1e2a26;
  --ink-soft: #54615b;
  --line: #dfe4de;

  --pine: #1d6e4a;
  --pine-deep: #14523a;
  --pine-tint: #e9f2ec;
  --pine-line: #c6dccf;

  --slate: #3d5a70;
  --slate-tint: #ecf1f5;
  --slate-line: #c9d6e0;

  --amber-tint: #fbf3df;
  --amber-line: #e7cd8c;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;

  --r-card: 16px;
  --r-control: 12px;
  --shadow: 0 1px 2px rgba(30, 42, 38, 0.05), 0 6px 20px rgba(30, 42, 38, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

.site-header {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--s4) var(--s4) 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pine-deep);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.wordmark svg {
  flex: 0 0 auto;
  color: var(--pine);
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--s4) var(--s4) var(--s6);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: var(--s4) 0 var(--s2);
}

h2 {
  font-size: 1.4rem;
  margin: var(--s6) 0 var(--s3);
}

h3 {
  font-size: 1.08rem;
  margin: var(--s4) 0 var(--s1);
}

p {
  margin: 0 0 var(--s4);
}

ul {
  margin: 0 0 var(--s4);
  padding-left: var(--s5);
}

li {
  margin-bottom: var(--s2);
}

li::marker {
  color: var(--pine);
}

a {
  color: var(--pine);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pine-deep);
}

.crumb {
  margin: var(--s3) 0 0;
  font-size: 0.9rem;
}

.crumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumb a::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.crumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: var(--s5);
}

.tagline {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: var(--s5);
}

/* CTA block into the free check */
.cta {
  background: var(--pine-tint);
  border: 1.5px solid var(--pine-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: var(--s4);
  margin: var(--s5) 0;
}

.cta p {
  margin: 0 0 var(--s3);
}

.cta .button {
  display: block;
  text-align: center;
  min-height: 52px;
  line-height: 52px;
  border-radius: var(--r-control);
  background: var(--pine);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color 180ms ease;
}

.cta .button:hover {
  background: var(--pine-deep);
  color: #fff;
}

/* FAQ block */
.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: var(--s4) var(--s4) var(--s2);
  margin: var(--s5) 0;
}

.faq > h2 {
  margin: 0 0 var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
}

.faq-item h3 {
  margin-top: var(--s4);
}

.faq-item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Sources */
.sources h2 {
  font-size: 1.1rem;
  margin-top: var(--s5);
}

.sources ul {
  padding-left: var(--s4);
}

.sources li {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.sources a {
  color: var(--slate);
}

/* Guide index cards */
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.guide-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: var(--s4);
  margin: 0;
}

.guide-card h2 {
  font-size: 1.2rem;
  margin: 0 0 var(--s2);
}

.guide-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.guide-card h2 a:hover {
  color: var(--pine-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Footer: the not-advice line lives here on every page */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--s6);
  padding-top: var(--s4);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

@media (min-width: 700px) {
  h1 {
    font-size: 2.25rem;
  }
}
