/* Colors from Design/palette.json as a website uses them (Design/reference/color-themes.html):
   ink on cream with pine in light, off-white on night with mint in dark. No web fonts: the
   lockup in the header is outlines, and running text uses the reader's own faces. */
:root {
    color-scheme: light dark;
    --paper: #f3ead3;
    --raised: #fbf6ea;
    --ink: #16211f;
    --muted: #4d5c58;
    --line: #d9cfb6;
    --accent: #17544f;
    --accent-ink: #ffffff;
    --link: #17544f;
    --display: "Iowan Old Style", Georgia, "Times New Roman", serif;
    --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --measure: 66ch;
    --gutter: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #0f1b1a;
        --raised: #162221;
        --ink: #eef3f1;
        --muted: #a3b5b0;
        --line: #27403c;
        --accent: #7ccdbc;
        --accent-ink: #0f1b1a;
        --link: #7ccdbc;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--text);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
    position: absolute; left: var(--gutter); top: -100px;
    background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: block; line-height: 0; }
.brand img { width: auto; height: 44px; margin: -6px 0 -6px -6px; }
.site-nav { display: flex; gap: 20px; font-size: 0.98rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.01em; margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.22rem; line-height: 1.5; color: var(--muted); max-width: 36ch; margin-top: 20px; }

/* Hero: the promise beside the mark */
.hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px);
    align-items: center; padding-top: clamp(24px, 6vw, 72px); padding-bottom: clamp(48px, 8vw, 96px);
}
.hero-mark { justify-self: center; width: min(100%, 320px); }
.hero-mark svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgb(15 27 26 / 0.45)); }
/* The mark, until it arrives (mark.js); a reader who asks for less motion sees it whole at once. */
.hero-mark svg.arriving path { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
    .hero-mark svg.arriving path { visibility: visible; }
}
.status { color: var(--muted); font-size: 0.95rem; margin: 28px 0 0; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 72px); }
.section h2 + p { margin-top: 16px; color: var(--muted); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.features h3 { margin-bottom: 4px; }
.features p { margin: 0; color: var(--muted); }

.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }

/* Document pages */
.doc .wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); padding-top: clamp(24px, 5vw, 56px); padding-bottom: 80px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc .updated { color: var(--muted); margin-top: 12px; }
.doc h2 { font-size: 1.55rem; margin-top: 2.2em; margin-bottom: 0.5em; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.45em; }
.summary { margin: 28px 0; padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--raised); border-radius: 0 12px 12px 0; }
.summary ul { margin-bottom: 0; }
.summary li:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
    .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
    .hero-mark { order: -1; width: 160px; justify-self: start; }
    .lede { max-width: none; }
}
@media (max-width: 520px) {
    .site-nav { gap: 14px; }
    .brand img { height: 38px; }
    .facts { grid-template-columns: 1fr; gap: 2px; }
    .facts dd { margin-bottom: 10px; }
}
