:root {
  color-scheme: light dark;
  --bg: #fff; --surface: #f6f8f7; --ink: #18241f; --muted: #53645b;
  --line: #d5dfda; --accent: #17634d; --tint: #e3f3ea; --watch: #71501a;
  --watch-bg: #f7eedb; --control: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101613; --surface: #181f1b; --ink: #ecf3ee; --muted: #acbcb2;
    --line: #39483f; --accent: #91d6bb; --tint: #1d3a30; --watch: #f2ce90;
    --watch-bg: #3c3020; --control: #141b17;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, select { font: inherit; }
button, input, select, .button { border: 1px solid var(--line); border-radius: .4rem; background: var(--control); color: var(--ink); }
button, .button { cursor: pointer; padding: .55rem .85rem; text-decoration: none; }
button:hover, .button:hover { border-color: var(--accent); }
button:disabled { cursor: default; opacity: .55; }
input, select { width: 100%; min-width: 0; min-height: 2.65rem; padding: .36rem .55rem; }
.wrap { width: min(71rem, 100% - 2.5rem); margin-inline: auto; }
.site-header, .site-footer { border-block-end: 1px solid var(--line); }
.topbar, .site-footer .wrap, .toplinks, .intro-links { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.3rem; }
.topbar, .site-footer .wrap { justify-content: space-between; padding-block: .9rem; }
.topbar a, .site-footer a { text-decoration: none; }
.topbar a:hover, .site-footer a:hover { text-decoration: underline; }
.home { color: var(--ink); font-weight: 700; }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; background: var(--bg); padding: .5rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: clamp(1.8rem, 7vw, 6rem); padding-block: clamp(2.3rem, 7vw, 5rem); }
.eyebrow { margin: 0 0 .5rem; color: var(--accent); font: 650 .86rem/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .075em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.9rem, 8vw, 5.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.55rem); }
h3 { font-size: 1.42rem; }
.lede { margin: 1rem 0 .65rem; font-size: clamp(1.12rem, 2.4vw, 1.55rem); line-height: 1.4; }
.intro-note, .secondary, .feature p:last-child, figcaption, .fact dt { color: var(--muted); }
.intro-note { margin: 0 0 1.35rem; }
.button.primary { background: var(--tint); border-color: var(--accent); color: var(--accent); font-weight: 650; }
.feature { border: 1px solid var(--line); background: var(--surface); border-radius: .7rem; padding: clamp(.85rem, 3vw, 1.4rem); }
.feature > a { font-weight: 700; }
.feature p:last-child { margin: .22rem 0 0; }
.lattice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; align-items: center; margin-block: .8rem 1rem; }
.lattice-x, .lattice-caption { color: var(--muted); font: .84rem/1.5 ui-monospace, monospace; white-space: nowrap; }
.lattice-caption { grid-column: 1 / -1; margin-top: .6rem; }
.lattice-caption b { color: var(--accent); margin-left: .65rem; }
.lattice i { width: 1rem; height: 1rem; background: var(--tint); border: 2px solid var(--accent); border-radius: .25rem; position: relative; margin: .46rem 0; }
.lattice i:not(:nth-of-type(3n))::after { content: ""; height: 2px; width: clamp(1.4rem, 9vw, 5.9rem); position: absolute; left: 100%; top: calc(50% - 1px); background: var(--accent); }
.lattice i:nth-of-type(-n + 6)::before { content: ""; width: 1px; height: .95rem; position: absolute; left: calc(50% - 1px); top: 100%; background: var(--muted); }
.section { border-block-start: 1px solid var(--line); padding-block: clamp(1.6rem, 5vw, 3rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .4rem 1rem; }
.section-head p { margin-block-end: .35rem; }
.filters, .compare-controls { display: grid; gap: .75rem; align-items: end; margin-top: 1rem; }
.filters { grid-template-columns: minmax(11rem, 2fr) repeat(3, minmax(7rem, 1fr)) auto; }
.compare-controls { grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto; }
label { font-size: .9rem; font-weight: 650; display: block; }
label > :is(input, select) { display: block; margin-top: .15rem; font-size: 1rem; font-weight: 400; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.card { display: grid; gap: .76rem; border: 1px solid var(--line); border-radius: .65rem; padding: 1rem; scroll-margin-top: 1rem; min-width: 0; }
.card:target { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p, .card figure, .facts { margin: 0; }
.card-top, .card-actions, .tags { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .65rem; }
.card-top { justify-content: space-between; }
.pill, .tag { border-radius: .24rem; padding: .08rem .38rem; font-size: .87rem; }
.pill { background: var(--tint); color: var(--accent); font-weight: 650; }
.pill.watch { background: var(--watch-bg); color: var(--watch); }
.tag { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.diagram { display: grid; gap: .55rem; background: var(--surface); border-radius: .4rem; padding: .75rem; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; align-items: stretch; gap: .55rem; }
.steps li { display: grid; place-items: center; flex: 1 1 0; min-width: 0; text-align: center; font-size: .88rem; line-height: 1.27; background: var(--control); border: 1px solid var(--line); border-radius: .25rem; padding: .3rem .2rem; position: relative; overflow-wrap: anywhere; }
.steps li + li::before { content: ""; width: .55rem; height: 1px; background: var(--accent); position: absolute; right: 100%; top: 50%; }
.steps .change { background: var(--tint); color: var(--accent); border-color: var(--accent); font-weight: 650; }
figcaption { font-size: .88rem; line-height: 1.37; }
.facts { display: grid; gap: .26rem .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact dt { font-size: .875rem; }
.fact dd { margin: 0; font-size: .95rem; }
details { border-block-start: 1px solid var(--line); padding-top: .48rem; }
summary { font-weight: 650; cursor: pointer; }
details p { margin-top: .6rem !important; }
.card-actions { font-size: .9rem; }
.comparison table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.comparison :is(th, td) { text-align: start; vertical-align: top; border: 1px solid var(--line); padding: .65rem; overflow-wrap: anywhere; }
.comparison thead, .comparison tbody th { background: var(--surface); }
.comparison th:first-child { width: 23%; }
.criteria-copy { max-width: 48rem; }
.site-footer { border-block-start: 1px solid var(--line); border-block-end: 0; }
@media (max-width: 55rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 39rem) {
  .wrap { width: calc(100% - 1.7rem); }
  .intro, .cards { grid-template-columns: minmax(0, 1fr); }
  .filters, .compare-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters label:first-child { grid-column: 1 / -1; }
  .comparison :is(th, td) { padding: .4rem; }
  .comparison th:first-child { width: 25%; }
  .comparison .steps { flex-direction: column; }
  .comparison .steps li + li::before { width: 1px; height: .55rem; right: 50%; top: auto; bottom: 100%; }
  .lattice i:not(:nth-of-type(3n))::after { width: clamp(3rem, 19vw, 6rem); }
}
