/*
  Viridian Interactive — site styles (local preview scaffold, 2026-11-13).

  Token names and the HSL-triplet format follow the [Viridian] token contract in
  viridian-brand/visual/colors.md §1. That file has NO company-level palette
  (only Compass and Harbor product palettes), so the VALUES below are
  PROVISIONAL placeholders, not brand decisions. Replace them when the founder
  sets a company palette.
  Fonts: system stack, because no typeface is decided (typography.md).
*/

:root {
  --background: 90 10% 96%;
  --foreground: 220 25% 15%;
  --muted-foreground: 220 10% 38%;
  --card: 0 0% 100%;
  --primary: 165 45% 26%;
  --primary-foreground: 0 0% 100%;
  --border: 90 8% 82%;
  --todo: 45 90% 85%;
  --todo-foreground: 30 60% 20%;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: 220 20% 10%;
    --foreground: 90 10% 92%;
    --muted-foreground: 220 8% 68%;
    --card: 220 18% 14%;
    --primary: 165 40% 55%;
    --primary-foreground: 220 25% 10%;
    --border: 220 10% 26%;
    --todo: 45 60% 25%;
    --todo-foreground: 45 90% 88%;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}

a { color: hsl(var(--primary)); }
a:focus-visible, .button:focus-visible { outline: 3px solid hsl(var(--primary)); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: hsl(var(--card)); padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; }

.preview-banner {
  margin: 0; padding: .5rem 1rem; text-align: center; font-size: .875rem;
  background: hsl(var(--todo)); color: hsl(var(--todo-foreground));
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }

.site-header { border-bottom: 1px solid hsl(var(--border)); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.wordmark { font-weight: 700; text-decoration: none; color: hsl(var(--foreground)); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }

main { padding: 2rem 0 3rem; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.25rem 0 .5rem; }
.lead { font-size: 1.2rem; color: hsl(var(--muted-foreground)); }
.promise { font-size: 1.25rem; font-weight: 600; }

.button {
  display: inline-block; padding: .7rem 1.2rem; border-radius: var(--radius);
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-weight: 600; text-decoration: none;
}

.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0;
}

dl.terms dt { font-weight: 700; margin-top: 1rem; }
dl.terms dd { margin: .25rem 0 0; }

.todo {
  background: hsl(var(--todo)); color: hsl(var(--todo-foreground));
  padding: 0 .25em; border-radius: 3px;
}

.site-footer { border-top: 1px solid hsl(var(--border)); padding: 1.5rem 0 2rem; font-size: .95rem; }
.site-footer address { font-style: normal; }
.site-footer p { margin: .25rem 0; }

/* Home hero */
main:has(> .hero) { padding-top: 0; }
.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, hsl(var(--primary) / .16), transparent 70%),
    linear-gradient(hsl(var(--background)), hsl(var(--card)));
  border-bottom: 1px solid hsl(var(--border));
}
.hero h1 { font-size: clamp(2.25rem, 8vw, 3.75rem); letter-spacing: -.02em; max-width: 14ch; }
.eyebrow {
  margin: 0 0 .75rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--primary));
}
.hero-note { font-size: .95rem; color: hsl(var(--muted-foreground)); }
.button-large { padding: .9rem 1.5rem; font-size: 1.1rem; }

/* Link cards */
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 40rem) { .link-cards { grid-template-columns: repeat(3, 1fr); } }
.link-cards .card { display: flex; flex-direction: column; gap: .25rem; height: 100%; margin: 0; text-decoration: none; color: hsl(var(--foreground)); }
.link-cards .card strong { color: hsl(var(--primary)); }
.link-cards .card span { font-size: .95rem; color: hsl(var(--muted-foreground)); }
.link-cards .card:hover { border-color: hsl(var(--primary)); }

/* FAQ */
.faq details { border-bottom: 1px solid hsl(var(--border)); padding: .75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .5rem 0 0; }

.cta { margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--radius); background: hsl(var(--primary) / .08); }
.cta h2 { margin-top: 0; }

/* Scroll reveal: only when JavaScript is running, never for reduced motion. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
