/* HerbAtlas — shared styles. Colour tokens are RGB triplets so Tailwind can apply alpha. */
:root {
  --paper: 250 247 239;
  --card: 255 253 247;
  --ink: 28 36 30;
  --muted: 78 90 80;
  --leaf: 38 84 52;
  --moss: 74 124 89;
  --clay: 140 76 46;
  --line: 221 214 196;
  --tint: 232 240 226;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: 18 24 20;
    --card: 27 35 30;
    --ink: 233 238 228;
    --muted: 176 188 176;
    --leaf: 150 200 160;
    --moss: 120 170 135;
    --clay: 226 168 132;
    --line: 52 64 55;
    --tint: 30 44 34;
  }
}
html { scroll-behavior: smooth; }
body {
  background-color: rgb(var(--paper));
  color: rgb(var(--ink));
  font-family:'Nunito', system-ui, sans-serif"Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
h1, h2, h3, .serif { font-family:'Nunito', system-ui, sans-serif"Nunito", Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
h1, h2, h3 { line-height: 1.15; }
:focus-visible { outline: 3px solid rgb(var(--clay)); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 100;
  background: rgb(var(--leaf)); color: rgb(var(--paper)); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.6rem 1.25rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid rgb(var(--leaf));
  transition: background-color .15s, color .15s;
}
.btn-primary { background: rgb(var(--leaf)); color: rgb(var(--paper)); }
.btn-primary:hover { background: rgb(var(--ink)); border-color: rgb(var(--ink)); }
.btn-ghost { color: rgb(var(--leaf)); background: transparent; }
.btn-ghost:hover { background: rgb(var(--tint)); }
.card {
  background: rgb(var(--card)); border: 1px solid rgb(var(--line)); border-radius: 14px; padding: 1.25rem;
}
.eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--clay));
}
.prose-ha p { margin-top: 0.9rem; max-width: 65ch; }
.prose-ha a, .link { color: rgb(var(--leaf)); text-decoration: underline; text-underline-offset: 3px; }
.prose-ha a:hover, .link:hover { color: rgb(var(--clay)); }
.nav-link { display: block; padding: 0.65rem 0.25rem; min-height: 2.75rem; font-weight: 600; text-decoration: none; color: rgb(var(--ink)); }
.nav-link:hover, .nav-link[aria-current="page"] { color: rgb(var(--clay)); }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.field { width: 100%; min-height: 2.75rem; padding: 0.55rem 0.8rem; border-radius: 8px; border: 1.5px solid rgb(var(--muted)); background: rgb(var(--card)); color: rgb(var(--ink)); font: inherit; }
.label { display: block; margin-bottom: 0.25rem; font-weight: 600; font-size: 0.95rem; }
.leaf-rule { height: 3px; width: 3.5rem; background: rgb(var(--clay)); border-radius: 2px; }
.hero-bg {
  background:
    radial-gradient(60rem 28rem at 85% -10%, rgb(var(--tint)) 0%, transparent 70%),
    rgb(var(--paper));
}
.svg-ink { color: rgb(var(--leaf)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
