/* ---------------------------------------------------------------
   TermSentinel static guide pages — shared stylesheet.

   These pages are plain server-rendered HTML, not part of the Vite/React
   build. They intentionally do NOT pull in Tailwind or the component
   library; that would require the guides to be part of the SPA bundle,
   which defeats the point (a crawler needs real HTML, not a script tag).

   Values below are copied by hand from client/src/index.css so the visual
   system matches exactly: Fraunces (display), Work Sans (body), JetBrains
   Mono (data/eyebrow). Colors are the same HSL triples as the live app's
   :root and .dark blocks. There is no JS theme toggle here — dark mode
   follows the OS via prefers-color-scheme, which is the only signal a
   static, no-JS-required page can use.
   --------------------------------------------------------------- */

:root {
  --background: 32 24% 96%;
  --foreground: 210 32% 10%;
  --border: 210 16% 84%;
  --card: 36 30% 99%;
  --card-foreground: 210 32% 10%;
  --card-border: 210 16% 86%;
  --primary: 189 68% 21%;
  --primary-foreground: 40 30% 97%;
  --muted-foreground: 210 13% 34%;
  --accent: 189 30% 90%;
  --accent-foreground: 189 68% 18%;
  --brand-accent: 22 68% 46%;
  --brand-accent-text: 22 70% 36%;
  --quote-bg: 200 20% 95%;
  --quote-rule: 189 30% 62%;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 0.3125rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: 205 18% 7%;
    --foreground: 200 12% 90%;
    --border: 205 16% 18%;
    --card: 205 17% 10%;
    --card-foreground: 200 12% 90%;
    --card-border: 205 16% 17%;
    --primary: 189 38% 59%;
    --primary-foreground: 205 30% 9%;
    --muted-foreground: 205 10% 62%;
    --accent: 189 30% 16%;
    --accent-foreground: 189 38% 72%;
    --brand-accent: 22 72% 62%;
    --brand-accent-text: 22 72% 62%;
    --quote-bg: 205 16% 14%;
    --quote-rule: 189 26% 42%;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: hsl(var(--primary)); }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.6);
}
.site-header-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}
.brand svg { flex: none; color: hsl(var(--primary)); }
.header-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.875rem;
}
.header-nav a { color: hsl(var(--muted-foreground)); text-decoration: none; }
.header-nav a:hover { color: hsl(var(--foreground)); }

main { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: hsl(var(--brand-accent-text));
  margin-bottom: 0.75rem;
}

h1 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: hsl(var(--foreground));
}
@media (min-width: 640px) {
  h1 { font-size: 2.3rem; }
}

.lede {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
  margin: 0 0 2rem;
}

.disclaimer {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--accent) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0 0 2.25rem;
  line-height: 1.55;
}

.prose { font-size: 1.03rem; line-height: 1.68; }
.prose h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  color: hsl(var(--foreground));
}
.prose h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
}
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.prose li { margin: 0 0 0.5rem; }
.prose strong { color: hsl(var(--foreground)); }

.quote {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  background-color: hsl(var(--quote-bg));
  border-left: 2px solid hsl(var(--quote-rule));
  padding: 0.75rem 0.875rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 1.25rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}
.checklist li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.65rem;
}
.checklist li::before {
  content: "\2610";
  position: absolute;
  left: 0;
  color: hsl(var(--primary));
  font-family: var(--font-mono);
}

.cta-box {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid hsl(var(--card-border));
  background: hsl(var(--card));
  border-radius: calc(var(--radius) * 2);
}
.cta-box h2 {
  margin-top: 0 !important;
  font-family: var(--font-serif) !important;
  font-size: 1.25rem !important;
}
.cta-box p { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.crosslinks {
  margin: 2.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid hsl(var(--border));
}
.crosslinks h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.9rem;
}
.crosslinks ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.crosslinks a { text-decoration: none; font-weight: 500; }
.crosslinks a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid hsl(var(--border));
  margin-top: 3rem;
}
.site-footer-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.site-footer a { color: hsl(var(--muted-foreground)); }

@media (max-width: 480px) {
  main { padding: 1.75rem 1.1rem 3rem; }
  h1 { font-size: 1.65rem; }
  .lede { font-size: 1.05rem; }
}
