:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --panel: #fffdf7;
  --ink: #173833;
  --green: #16544c;
  --muted: #495e55;
  --edge: #cbd2c6;
  --ochre: #94641d;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(1.1rem, 5vw, 4.5rem);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.container, .masthead { width: min(calc(100% - 2 * var(--gutter)), 78rem); margin-inline: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.3vw, 5.1rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.85rem); letter-spacing: -.037em; }
h3 { font-size: 1.5rem; letter-spacing: -.025em; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: #784b0d; }
:focus-visible { outline: 3px solid #aa631e; outline-offset: 3px; }
.skip { position: absolute; top: 0; left: 1rem; z-index: 2; background: white; padding: .7rem; transform: translateY(-130%); }
.skip:focus { transform: none; }
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem 2rem; flex-wrap: wrap; padding-block: 1rem; border-bottom: 1px solid var(--edge);
}
.brand { display: inline-flex; gap: .65rem; align-items: center; font: bold 1.6rem/1 var(--serif); letter-spacing: -.045em; color: var(--ink); text-decoration: none; }
.masthead nav { display: flex; flex-wrap: wrap; gap: .1rem clamp(.8rem, 2vw, 2rem); }
.masthead nav a { font-size: .9rem; font-weight: 550; color: var(--muted); text-decoration: none; padding-block: .45rem; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; }
.kicker, .badge, .plate figcaption, .figure-note figcaption {
  font: 600 .74rem/1.5 var(--mono); letter-spacing: .095em;
}
.kicker, .badge { text-transform: uppercase; }
.kicker { color: var(--green); }
.rule { display: inline-block; vertical-align: middle; width: 2rem; height: 2px; margin-right: .55rem; background: var(--ochre); }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2rem, 4.4vw, 4.3rem); }
.hero h1 { margin-block: 1.3rem; font-size: clamp(3.2rem, 5.7vw, 5.7rem); line-height: .99; }
.hero h1 em { color: var(--green); font-weight: 400; }
.lead, .muted { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.23rem); max-width: 60ch; }
.lead { max-width: 40ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.button, .text-link { font-size: .95rem; font-weight: 650; }
.button { display: inline-flex; align-items: center; gap: 1.25rem; padding: .8rem 1.15rem; background: var(--green); color: white; border-radius: .28rem; text-decoration: none; }
.button:hover { background: var(--ink); color: white; }
.plate { overflow: hidden; border-radius: .45rem; background: #123f3f; }
.plate img { display: block; width: 100%; height: auto; }
.plate figcaption { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .85rem; padding: .7rem 1rem; color: #e4ecdf; font-weight: 450; letter-spacing: .02em; }
.plate figcaption span { text-transform: uppercase; color: #efc474; }
.plate figcaption i { margin-left: auto; font: italic .85rem var(--serif); }
.guide { border-top: 1px solid var(--edge); padding-block: 2rem 2.8rem; }
.guide h2, .annex h2 { margin: .55rem 0 1.25rem; }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card { position: relative; border: 1px solid var(--edge); background: var(--panel); border-radius: .4rem; padding: clamp(1.1rem, 2vw, 1.75rem); }
.card .kicker { margin-bottom: 1.2rem; color: var(--ochre); }
.card p:not(.kicker) { color: var(--muted); margin-top: .65rem; }
.guide .card h3 a { text-decoration: none; color: var(--ink); }
.guide .card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: .4rem; }
.guide .card:focus-within, .guide .card:hover { border-color: var(--green); background: #f1f3ea; }
.guide .card h3 a:hover { text-decoration: underline; }
.annex { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; background: #e7ede2; padding: clamp(1.4rem, 3.5vw, 3.2rem); border-radius: .4rem; }
.note-links { padding: 0; list-style: none; }
.note-links a { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid #b1c2b5; font-weight: 550; }
.footline, .reading-footer { font-size: .88rem; color: var(--muted); padding-block: 1.3rem 2rem; border-top: 1px solid var(--edge); margin-top: 2.8rem; }
.footline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footline > span { font: bold 1.15rem var(--serif); color: var(--ink); }

/* The guide and its technical notes use the same reading layout. */
.article { max-width: 66rem; }
.article-head { padding-block: clamp(2rem, 5vw, 4rem) 2rem; border-bottom: 1px solid var(--edge); }
.article-head h1 { max-width: 24ch; margin-block: .75rem; }
.article > section { margin-block: 2.3rem; }
.article section > * + * { margin-top: .9rem; }
.article section > p { max-width: 75ch; }
.article li + li { margin-top: .35rem; }
.article ul, .article ol { padding-left: 1.4rem; }
.badge { display: inline-block; color: var(--green); background: #e2ebe0; padding: .2rem .55rem; border-radius: .2rem; margin-bottom: .75rem; }
.badge.warn { color: #744710; background: #f4e8cc; }
.article .callout { padding: 1.1rem 1.35rem; border-left: 3px solid var(--ochre); background: #f1eddf; }
.figure-note { display: grid; grid-template-columns: minmax(14rem, 23rem) 1fr; align-items: center; gap: 1rem 2rem; margin-top: 1.5rem; background: #e9eee5; border-radius: .4rem; overflow: hidden; }
.figure-note img { display: block; width: 100%; height: auto; }
.figure-note figcaption { padding: .5rem 1.5rem .5rem 0; font: 1rem/1.55 system-ui, sans-serif; letter-spacing: normal; }
.figure-note figcaption b { display: block; margin-bottom: .35rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: .35rem; }
table { width: 100%; min-width: 39rem; font-size: .94rem; border-collapse: collapse; background: var(--panel); }
th, td { padding: .85rem 1rem; vertical-align: top; text-align: left; }
th { background: #194945; color: white; font-weight: 600; }
td { border-top: 1px solid var(--edge); }
td:first-child { font-weight: 600; }
tbody tr:nth-child(even) { background: #f1f3ea; }
@media (max-width: 48rem) {
  .masthead { align-items: flex-start; flex-direction: column; }
  .hero, .annex { grid-template-columns: 1fr; }
  .hero { gap: 1.7rem; }
  .hero h1 { font-size: clamp(3.25rem, 8.5vw, 4.8rem); }
  .plate img { aspect-ratio: 16 / 10; object-fit: cover; }
  .figure-note { grid-template-columns: 1fr; }
  .figure-note img { max-width: 24rem; justify-self: center; }
  .figure-note figcaption { padding: 0 1.1rem 1rem; }
}
