/*
 * Shared stylesheet for the static /guides/ pages — SEO round. These are
 * plain HTML, no build step, no Tailwind, so the app's own color tokens
 * (src/index.css) are duplicated here as plain hex rather than imported
 * — the same light/dark values, kept in sync by hand since these pages
 * sit outside the Vite/Tailwind pipeline on purpose (real HTML, fast,
 * no JS needed).
 */
:root {
  --surface-100: #f5f7f7;
  --surface-200: #ffffff;
  --surface-300: #e7eceb;
  --border: #d4dbda;
  --ink: #353a3a;
  --ink-muted: #6b7472;
  /*
   * A dedicated, slightly darker shade for SMALL text (the crumb, the
   * sources footnote) sitting directly on --surface-100 — plain
   * --ink-muted there measures 4.47:1, just under WCAG AA's 4.5:1
   * threshold for normal-size text (confirmed via a real Lighthouse
   * accessibility run against the built page, not eyeballed — same
   * "don't guess contrast" house rule PROJECT_BRIEF.md documents for
   * the main app's own color tokens). --ink-muted itself is unchanged
   * and still used everywhere else (the footer, which sits on
   * --surface-200 at 4.81:1, passes as-is).
   */
  --ink-muted-small: #5c6462;
  --brand: #255e58;
  --brand-strong: #1a4642;
  --accent-strong: #2f7268;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-100: #121615;
    --surface-200: #1b211f;
    --surface-300: #242c2a;
    --border: #33403d;
    --ink: #e9edec;
    --ink-muted: #9aa6a3;
    --ink-muted-small: #9aa6a3; /* dark-mode ink-muted already clears 6.5:1 on surface-200/surface-100 alike — no separate shade needed */
    --brand: #4fa69c;
    --brand-strong: #7ec1b8;
    --accent-strong: #9ed9d0;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.6;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface-200);
}

.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .accent {
  color: var(--brand);
}

.open-tool {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
}

.open-tool:hover {
  background: var(--brand-strong);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.crumb {
  font-size: 0.8rem;
  color: var(--ink-muted-small);
  margin-bottom: 10px;
}

.crumb a {
  color: var(--accent-strong);
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ink);
}

h2 {
  font-size: 1.3rem;
  margin: 2em 0 0.6em;
  color: var(--ink);
}

h3 {
  font-size: 1.05rem;
  margin: 1.6em 0 0.5em;
  color: var(--ink);
}

p,
li {
  color: var(--ink);
  font-size: 1rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-strong);
}

ul,
ol {
  padding-left: 1.3em;
}

code {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--surface-300);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-size: 0.92em;
}

.callout {
  border: 1px solid var(--border);
  background: var(--surface-200);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 1.6em 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.sources {
  margin-top: 3em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-muted-small);
}

.sources h2 {
  font-size: 1rem;
  margin-top: 0;
}

.guide-links {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
}

.guide-links h2 {
  font-size: 1rem;
  margin-top: 0;
}

.cta {
  margin-top: 2.5em;
  text-align: center;
}

.cta .open-tool {
  font-size: 1rem;
  padding: 12px 28px;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-200);
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-inner a {
  color: var(--ink-muted);
  text-decoration: underline dotted;
}

.footer-inner a:hover {
  color: var(--accent-strong);
}
