:root {
  --ink: #12211f;
  --muted: #4a5d5a;
  --teal: #0e3a3d;
  --teal-2: #1d5c5d;
  --mist: #e6efec;
  --paper: #f6f8f6;
  --card: #ffffff;
  --line: #d3dfdb;
  --copper: #b56a38;
  --copper-2: #c47a45;
  --copper-bg: #f8eee6;
  --safety: #8a2f24;
  --safety-bg: #fbece8;
  --shadow: 0 1px 2px rgba(14, 58, 61, 0.06), 0 12px 32px rgba(14, 58, 61, 0.07);
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1.05rem; line-height: 1.65; }
a { color: var(--teal-2); text-underline-offset: 0.18em; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper-2); outline-offset: 2px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--teal); color: #fff; padding: 0.5rem 0.8rem; }
.skip:focus { top: 0.5rem; z-index: 5; }

.site-header, .site-footer, main { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 0.7rem; align-items: center; text-decoration: none; color: var(--teal); }
.mark { width: 40px; height: 40px; flex: none; }
.wordmark { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.01em; font-weight: 600; line-height: 1; }
.wordmark b { color: var(--copper); font-weight: 600; }
.site-header nav { display: flex; gap: 1.2rem; }
.site-header nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.site-header nav a[aria-current="page"] { color: var(--teal-2); box-shadow: inset 0 -2px 0 var(--copper-2); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; color: var(--teal); }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.eyebrow, .kicker { letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); font-size: 0.76rem; font-weight: 700; margin: 0 0 0.5rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.dek, .lede { font-size: 1.15rem; color: var(--muted); }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; padding: 3rem 0 2rem; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.6rem; font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.button, button.primary, button.choice {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.55rem 1.1rem;
  border-radius: 8px; text-decoration: none; border: 2px solid var(--teal); font: inherit; font-weight: 600; cursor: pointer;
}
.button, button.primary { background: var(--teal); color: #fff; }
.button:hover, button.primary:hover { background: var(--teal-2); color: #fff; }
.button.secondary { background: transparent; color: var(--teal); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 1rem 0 2.5rem; }
.principles div { background: var(--card); padding: 1rem 1.2rem; }
.principles strong { font-family: var(--serif); color: var(--teal); font-size: 1.1rem; }
.principles p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.95rem; }

.section-head { margin: 0 0 1rem; }
.section-head h2 { margin: 0; font-size: 1.9rem; }
.directory { margin-bottom: 3rem; }
.dir-row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; border-top: 1px solid var(--line); padding: 1rem 0; }
.dir-topic { margin: 0.2rem 0 0; font-weight: 700; color: var(--copper); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.dir-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.dir-row a { display: block; text-decoration: none; color: inherit; }
.dir-row a strong { display: block; font-family: var(--serif); color: var(--teal); font-size: 1.25rem; font-weight: 600; }
.dir-row a span { color: var(--muted); }
.dir-row a:hover strong { color: var(--copper); }
.growing { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.card { display: block; padding: 1rem 1.1rem; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.card:hover { border-color: var(--teal-2); }
.card span { color: var(--copper); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--teal); margin: 0.25rem 0; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 2rem clamp(1rem, 4vw, 3rem); margin: 2rem 0 3rem; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--teal); }
.meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: 0.9rem; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--teal-2); color: var(--muted); }
code { background: var(--mist); padding: 0.05rem 0.3rem; border-radius: 4px; }

.disclosure { background: var(--copper-bg); border-left: 4px solid var(--copper); padding: 0.75rem 1rem; margin: 1rem 0 1.5rem; font-size: 0.95rem; border-radius: 0 8px 8px 0; }
.stop { background: var(--safety-bg); border-left: 5px solid var(--safety); padding: 0.4rem 1.1rem; margin: 1.2rem 0; border-radius: 0 10px 10px 0; }
.stop h2, .stop h3 { color: var(--safety); }
.note { background: var(--mist); border-left: 5px solid var(--teal-2); padding: 0.4rem 1.1rem; margin: 1.2rem 0; border-radius: 0 10px 10px 0; }
.product { border: 1px solid var(--line); border-radius: 12px; padding: 0.4rem 1.1rem; margin: 1rem 0; background: #fbfcfb; }
.product p:first-child strong { font-family: var(--serif); color: var(--teal); font-size: 1.1rem; }
.untested { font-size: 0.92rem; color: var(--muted); font-style: italic; }
.related { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 0.5rem; }

.form, .check-tool { background: var(--mist); border-radius: 12px; padding: 1.1rem 1.2rem; display: grid; gap: 0.8rem; margin: 1.2rem 0; }
.check-tool fieldset { border: 0; padding: 0; margin: 0; }
.check-tool legend { font-weight: 700; margin-bottom: 0.3rem; }
.check-tool output { display: block; background: var(--card); border-radius: 8px; padding: 0.8rem 1rem; border-left: 4px solid var(--copper); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.95rem; font-weight: 600; }
label.check, label.radio { flex-direction: row; align-items: center; font-weight: 400; gap: 0.5rem; }
input, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid #a9bdb8; border-radius: 8px; padding: 0.55rem 0.65rem; min-height: 44px; }
input[type="checkbox"], input[type="radio"] { min-height: auto; width: 1.1rem; height: 1.1rem; }
textarea { min-height: 150px; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.site-footer { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 1.5rem; padding: 2rem 0 3rem; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.95rem; }
.site-footer a { display: block; margin: 0.25rem 0; }
.site-footer strong { color: var(--teal); font-family: var(--serif); font-size: 1.2rem; }
.foot-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.foot-brand p { margin: 0.3rem 0; }
.foot-head { margin: 0 0 0.4rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }

.banner { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: var(--teal); color: #fff; padding: 0.8rem 1rem; z-index: 4; }
.banner p { margin: 0; max-width: 46rem; }
.banner a { color: #cfe6e2; }
.banner .actions { margin: 0; }
.banner button.choice { min-width: 8rem; background: #fff; color: var(--teal); border-color: #fff; }
.banner[hidden], [hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero, .principles, .cards, .site-footer, .grid, .dir-row { grid-template-columns: 1fr; }
  .hero { padding-top: 1.5rem; }
  .banner { flex-direction: column; align-items: stretch; }
  .banner .actions { justify-content: stretch; }
  .banner button.choice { flex: 1; }
}
