:root {
  color-scheme: light;
  --ledger-ink: #17211b;
  --evidence-paper: #f7f4ec;
  --caution-amber: #b97814;
  --verified-pine: #23533b;
  --carbon-blue: #253a4a;
  --chalk-line: #d9d1c1;
  --white: #fffdfa;
  --danger: #8f342c;
  --shadow: 0 24px 80px rgba(23, 33, 27, 0.12);
  --display: Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--evidence-paper);
  color: var(--ledger-ink);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; }
:focus-visible {
  outline: 3px solid var(--caution-amber);
  outline-offset: 4px;
  border-radius: 0.4rem;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--ledger-ink);
  color: var(--white);
  padding: 0.6rem 0.9rem;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--chalk-line);
  background: rgba(247, 244, 236, 0.94);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.brand-lockup { display: flex; gap: 0.85rem; align-items: center; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--carbon-blue);
  color: var(--carbon-blue);
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: -0.08em;
}
.brand-name { margin: 0; font-weight: 800; }
.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--carbon-blue);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.top-nav { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }
.top-nav a, .privacy-badge {
  border: 1px solid var(--chalk-line);
  background: rgba(255, 253, 250, 0.72);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.88rem;
  text-decoration: none;
}
.privacy-badge { margin: 0; color: var(--verified-pine); font-weight: 750; white-space: nowrap; }
.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(2.4rem, 7vw, 5.4rem) 0 2rem;
}
.hero-search-panel { display: grid; gap: 1rem; align-content: start; }
.hero-tool { border-top: 0.45rem solid var(--carbon-blue); }
h1, h2, h3 { line-height: 1.05; }
h1, h2 { font-family: var(--display); letter-spacing: -0.04em; }
h1 { margin: 0; font-size: clamp(3rem, 8vw, 6.8rem); max-width: 10ch; }
.lede { max-width: 62ch; font-size: clamp(1.05rem, 2vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button, .text-button {
  min-height: 2.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.button { display: inline-flex; align-items: center; justify-content: center; padding: 0.72rem 1rem; }
.button-primary { background: var(--ledger-ink); color: var(--white); }
.button-secondary { border-color: var(--ledger-ink); background: transparent; }
.text-button { background: transparent; color: var(--carbon-blue); padding: 0.3rem 0.45rem; min-height: 2rem; text-decoration: underline; text-underline-offset: 0.2em; }
.evidence-rail {
  align-self: start;
  background: var(--white);
  border: 1px solid var(--chalk-line);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}
.rail-title { margin: 0 0 1rem; font-family: var(--mono); font-weight: 800; text-transform: uppercase; font-size: 0.78rem; }
.evidence-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.evidence-rail li {
  position: relative;
  padding: 0 0 1.2rem 1.65rem;
  border-left: 2px solid var(--chalk-line);
}
.evidence-rail li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--caution-amber);
  border: 3px solid var(--white);
  border-radius: 50%;
}
.evidence-rail li:last-child { border-left-color: transparent; padding-bottom: 0; }
.evidence-rail span { display: block; color: var(--caution-amber); font-size: 0.8rem; font-family: var(--mono); }
.evidence-rail strong { display: block; margin-top: 0.1rem; }
.caution-strip {
  border: 1px solid rgba(185, 120, 20, 0.45);
  border-left: 0.7rem solid var(--caution-amber);
  background: #fff8e9;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}
.access-grid, .tool-grid, .step-list {
  display: grid;
  gap: 1rem;
}
.access-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; padding: 2rem 0; }
.access-card {
  min-height: 13rem;
  background: var(--white);
  border: 1px solid var(--chalk-line);
  padding: 1.1rem;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.access-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-number, .step-kicker {
  font-family: var(--mono);
  font-weight: 900;
  color: var(--caution-amber);
  letter-spacing: 0.08em;
}
.access-card h2 { font-size: 1.75rem; margin: 2.2rem 0 0.6rem; }
.research-section { padding: 2.2rem 0; border-top: 1px solid var(--chalk-line); }
.section-heading { max-width: 760px; margin-bottom: 1rem; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.6rem); margin: 0; }
.tool-card, .step-list article, .observation-card {
  background: var(--white);
  border: 1px solid var(--chalk-line);
  padding: 1.1rem;
}
.tool-card { box-shadow: 0 10px 32px rgba(23, 33, 27, 0.07); }
.field-row { display: grid; grid-template-columns: auto minmax(12rem, 1fr) auto; gap: 0.75rem; align-items: center; }
label { font-weight: 850; display: block; margin-bottom: 0.45rem; }
.field-row label { margin-bottom: 0; }
input, textarea {
  width: 100%;
  border: 1px solid var(--chalk-line);
  background: #fffefa;
  color: var(--ledger-ink);
  border-radius: 0.7rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
}
textarea { resize: vertical; font-family: var(--mono); font-size: 0.9rem; line-height: 1.45; }
.help-text { color: rgba(23, 33, 27, 0.72); margin: 0.6rem 0; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.6rem 0 0.85rem; }
.result-box {
  display: block;
  width: 100%;
  margin-top: 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid var(--chalk-line);
  padding: 0.9rem;
  min-height: 3.4rem;
  white-space: pre-line;
}
.result-box.neutral { background: #fbfaf6; }
.result-box.success { border-color: rgba(35, 83, 59, 0.45); background: #edf6ef; }
.result-box.warning { border-color: rgba(185, 120, 20, 0.48); background: #fff8e9; }
.result-box.error { border-color: rgba(143, 52, 44, 0.45); background: #fff0ed; }
.step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.step-kicker.warning { color: var(--danger); }
.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.observation-card { margin-top: 1rem; background: #fdf8ec; }
.record-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}
.record-list li {
  background: var(--white);
  border-left: 0.45rem solid var(--carbon-blue);
  padding: 0.9rem 1rem;
}
.site-footer {
  margin-top: 2rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--chalk-line);
  color: rgba(23, 33, 27, 0.72);
  font-size: 0.9rem;
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr; position: static; }
  .top-nav { justify-content: flex-start; }
  .hero, .access-grid, .tool-grid, .step-list { grid-template-columns: 1fr; }
  h1 { max-width: 12ch; }
  .field-row { grid-template-columns: 1fr; }
  .field-row label { margin-bottom: -0.3rem; }
  .privacy-badge { width: fit-content; }
}
@media (max-width: 460px) {
  .section-shell { width: min(100% - 1rem, 1120px); }
  .hero { padding-top: 2rem; }
  h1 { font-size: clamp(2.5rem, 18vw, 4.2rem); }
  .top-nav a { flex: 1 1 44%; text-align: center; }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
