/* The website's one stylesheet: the app's calm greens, light or dark as the device is set, system fonts only.
   Text colours keep at least 4.5:1 contrast on every surface they sit on (tests/site.test.mjs checks). */
:root {
  color-scheme: light dark;
  --bg: #f8f9f5;
  --paper: #ffffff;
  --soft: #edf2e8;
  --line: #dde3d6;
  --ink: #293a32;
  --muted: #59625a;
  --accent: #284e3c;
  --accent-hover: #193e2b;
  --on-accent: #ffffff;
  --dot: #6f8d50;
  --focus: #3b7a57;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121513;
    --paper: #191d1a;
    --soft: #1d221e;
    --line: #2f3630;
    --ink: #e8ebe5;
    --muted: #a9b2a6;
    --accent: #a3c48d;
    --accent-hover: #bad7a5;
    --on-accent: #13200f;
    --dot: #a3c48d;
    --focus: #b8d6a1;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.wrap { width: min(44rem, 100% - 2.5rem); margin-inline: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:focus-visible, main:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 2;
  padding: .7rem 1rem; border-radius: .5rem;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.skip:focus { top: 1rem; }

/* Header and footer */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .9rem; }
.brand { font-family: var(--serif); font-size: 1.75rem; letter-spacing: -.04em; line-height: 1; color: var(--ink); text-decoration: none; padding-block: .5rem; }
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--dot); }
nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
nav a { display: inline-block; padding-block: .6rem; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { text-decoration: underline; }
.top nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }

.bottom { margin-top: 4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.bottom .wrap { padding-block: 1.5rem 2.5rem; }
.bottom p { margin: 0 0 .25rem; }
.bottom a { color: var(--muted); }

/* Text */
main { padding-top: 2.5rem; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 2.75rem); margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.75rem 0 .75rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.0625rem; margin: 2rem 0 .5rem; }
p, ul, ol, table, blockquote { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
main li + li { margin-top: .5rem; }
li > ul, li > ol { margin: .5rem 0 0; }
li > p { margin: 0 0 .5rem; }
li > p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; background: var(--soft); border-radius: .3em; padding: .1em .3em; overflow-wrap: anywhere; }
blockquote { margin-left: 0; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.lead { font-size: 1.1875rem; color: var(--muted); }
.updated, .eyebrow { color: var(--muted); font-size: .9375rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .8125rem; margin-bottom: .5rem; }

table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
th:first-child, td:first-child { width: 34%; }

/* Pieces */
.hero { padding-bottom: .5rem; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 5vw, 3.75rem); }
.cta { margin: 1.5rem 0 0; }
.button {
  display: inline-block; min-height: 2.75rem; padding: .7rem 1.2rem; border-radius: .6rem;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.features { list-style: none; padding: 0; }
.features li { padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; }
main .features li + li { margin-top: .6rem; }

.toc { margin: 1.5rem 0 0; padding: 1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; }
.toc-title { margin: 0 0 .25rem; font-weight: 600; }
.toc ol { margin: 0; }
main .toc li + li { margin-top: 0; }
.toc a { display: inline-block; padding-block: .3rem; }

.placeholder { padding: .9rem 1rem; border: 1px dashed var(--muted); border-radius: .6rem; background: var(--soft); }
span.placeholder, .cta.placeholder { display: inline-block; }
span.placeholder { padding: .2rem .5rem; }
.cta.placeholder { padding: .6rem 1rem; }
.urgent { margin-top: 1.5rem; padding: .9rem 1rem; border-left: 4px solid var(--accent); border-radius: 0 .6rem .6rem 0; background: var(--soft); }

@media print {
  .skip, .top nav, .toc, .bottom nav { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: inherit; }
}
