/* ows theme. Direction: the project site looks like the ows console itself: a calm developer console with one
   accent (ows blue), system type, hairlines and one level of panels. Tokens mirror
   open-web-services src/OpenWebServices.Web/wwwroot/app.css and docs/brand.md; keep them in sync.
   The memorable idea: the hero shows a real console panel, and every service keeps its parody name next to a plain label. */

:root {
    color-scheme: light;
    --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

    /* type scale: 12 / 14 / 16 / 18 / 20 / 24+ (fluid display sizes) */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;

    /* space: 4px base */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-14: 56px;

    --bg: oklch(0.985 0.002 250);
    --surface: oklch(1 0 0);
    --surface-2: oklch(0.972 0.004 250);
    --surface-hover: oklch(0.962 0.006 250);
    --border: oklch(0.912 0.006 250);
    --border-strong: oklch(0.85 0.008 250);
    --text: oklch(0.22 0.016 258);
    --text-2: oklch(0.46 0.016 258);
    --text-3: oklch(0.52 0.014 258);

    --accent: oklch(0.54 0.165 252);
    --accent-hover: oklch(0.49 0.165 252);
    --accent-text: oklch(0.5 0.165 252);
    --accent-soft: oklch(0.54 0.165 252 / 0.1);
    --on-accent: oklch(1 0 0);

    --ok: oklch(0.5 0.12 155);
    --ok-soft: oklch(0.6 0.13 155 / 0.12);
    --warn: oklch(0.55 0.12 70);
    --warn-soft: oklch(0.75 0.14 75 / 0.16);
    --warn-text: oklch(0.46 0.1 65);

    --ink: #161a22;
    --code-text: #e6e9ef;
    --code-muted: #9aa2b1;
    --brand-smile: #2a63d8;
    --code-prompt: #7fa6ff;
    --svc-oc2: #3c7d5a;
    --svc-r66: #7a4fd0;
    --svc-l42: #b0563a;
    --svc-iou: #1f6fb2;
    --svc-s4: #8a909c;

    --radius: 6px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 2px oklch(0.2 0.02 258 / 0.06);
    --shadow-md: 0 4px 12px -2px oklch(0.2 0.02 258 / 0.1), 0 1px 3px oklch(0.2 0.02 258 / 0.06);
    --shadow-lg: 0 24px 48px -16px oklch(0.2 0.02 258 / 0.18), 0 2px 6px oklch(0.2 0.02 258 / 0.06);
    --ring: 0 0 0 3px oklch(0.54 0.165 252 / 0.32);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --page: 1120px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 64px;
    --z-header: 20;
    --z-skip: 50;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: oklch(0.165 0.008 258);
        --surface: oklch(0.2 0.009 258);
        --surface-2: oklch(0.18 0.008 258);
        --surface-hover: oklch(0.235 0.01 258);
        --border: oklch(0.285 0.01 258);
        --border-strong: oklch(0.36 0.012 258);
        --text: oklch(0.955 0.004 258);
        --text-2: oklch(0.78 0.01 258);
        --text-3: oklch(0.7 0.01 258);

        --accent: oklch(0.6 0.15 252);
        --accent-hover: oklch(0.65 0.15 252);
        --accent-text: oklch(0.78 0.12 252);
        --accent-soft: oklch(0.62 0.15 252 / 0.16);

        --ok: oklch(0.76 0.14 155);
        --ok-soft: oklch(0.7 0.14 155 / 0.14);
        --warn: oklch(0.8 0.13 80);
        --warn-soft: oklch(0.75 0.14 75 / 0.14);
        --warn-text: oklch(0.84 0.12 80);

        --ink: oklch(0.13 0.008 258);
        --brand-smile: #7fa6ff;
        --svc-oc2: #3f8a62;
        --svc-r66: #7d58d6;
        --svc-l42: #b9603f;
        --svc-iou: #2a78bd;
        --svc-s4: #5d6472;

        --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
        --shadow-md: 0 6px 16px -4px oklch(0 0 0 / 0.5), 0 1px 3px oklch(0 0 0 / 0.3);
        --shadow-lg: 0 24px 48px -16px oklch(0 0 0 / 0.6), 0 2px 6px oklch(0 0 0 / 0.3);
        --ring: 0 0 0 3px oklch(0.62 0.15 252 / 0.45);
    }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font: 400 var(--fs-md)/1.6 var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
::selection { background: oklch(0.62 0.15 252 / 0.28); }
h1, h2, h3, .h3 { margin: 0; text-wrap: balance; font-family: var(--font-display); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--ring); border-radius: var(--radius); }
code, .mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: var(--s-4); top: -60px; z-index: var(--z-skip); padding: var(--s-2) var(--s-3); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.skip:focus { top: var(--s-3); }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Logo: word in currentColor, smile in the brand colour for the current scheme */
.wordmark { height: 30px; width: auto; flex: none; color: var(--text); overflow: visible; }
#ows { overflow: visible; } /* fonts wider than Segoe (e.g. San Francisco) must not be clipped by the symbol viewBox */
#ows .smile { stroke: var(--brand-smile); }

/* ---------- Header ---------- */

.top {
    position: sticky; top: 0; z-index: var(--z-header);
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms var(--ease-out);
}
.top.scrolled { border-bottom-color: var(--border); }
.top-row { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.brand:hover { text-decoration: none; }

.menu { display: flex; align-items: center; gap: var(--s-6); flex: 1; }
.menu nav { display: flex; gap: var(--s-1); }
.menu nav a { padding: 6px 10px; border-radius: var(--radius); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.menu nav a:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.menu-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.pill { display: flex; align-items: center; gap: var(--s-1); }

.lang { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.lang a { display: inline-grid; place-items: center; min-width: 32px; min-height: 26px; padding: 0 6px; border-radius: 4px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--text-2); }
.lang a:hover { color: var(--text); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.menu-btn {
    display: none; place-items: center;
    width: 44px; height: 44px; margin-right: -10px; padding: 0;
    border: 0; border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer;
}
.bars { position: relative; width: 20px; height: 12px; }
.bars span { position: absolute; left: 0; width: 100%; height: 1.75px; border-radius: 2px; background: currentColor; transition: transform 240ms var(--ease-out), top 240ms var(--ease-out); }
.bars span:first-child { top: 1px; }
.bars span:last-child { top: 9px; }
.top.open .bars span:first-child { top: 5px; transform: rotate(45deg); }
.top.open .bars span:last-child { top: 5px; transform: rotate(-45deg); }

/* Narrow screens. Without JavaScript the links stay visible as a second row; with it they fold into a menu panel. */
@media (max-width: 860px) {
    .top-row { flex-wrap: wrap; gap: 0 var(--s-4); }
    .pill { margin-left: auto; }
    .menu { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: var(--s-2); padding-bottom: var(--s-3); }
    .menu nav { flex-wrap: wrap; margin-left: -10px; }
    .menu-actions { margin-left: 0; }

    .js .menu-btn { display: grid; }
    .js .menu {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: var(--s-4);
        padding: var(--s-2) var(--gutter) var(--s-6);
        background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
        opacity: 0; visibility: hidden; transform: translateY(-6px);
        transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms;
    }
    .js .top.open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
    .js .menu nav { flex-direction: column; margin: 0; }
    .js .menu nav a { padding: 12px 0; font-size: var(--fs-md); color: var(--text); border-bottom: 1px solid var(--border); border-radius: 0; }
    .js .menu nav a:hover { background: transparent; }
    .js .menu-actions .btn { flex: 1; height: 44px; }
    .js .top.open { border-bottom-color: var(--border); }
    body.menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    height: 34px; padding: 0 var(--s-3);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: var(--surface); color: var(--text);
    font: 500 var(--fs-sm)/1 var(--font-sans); white-space: nowrap;
    cursor: pointer; text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.btn:hover { background: var(--surface-hover); text-decoration: none; }
.btn:active { transform: translateY(0.5px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-lg { height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-sm { height: 28px; padding: 0 10px; font-size: var(--fs-xs); gap: 6px; }
.btn-sm .icon { width: 14px; height: 14px; }

/* ---------- Status and badges (as in the console) ---------- */

.status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.status.ok { color: var(--ok); }
.status.ok::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.status.warn { color: var(--warn-text); }
.status.warn::before { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.status.busy { color: var(--accent-text); }
.status.busy::before { width: 9px; height: 9px; background: none; border: 1.75px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.svc-badge {
    width: 20px; height: 20px; flex: none; border-radius: 5px;
    display: inline-grid; place-items: center;
    color: #fff; font: 700 0.5625rem/1 var(--font-sans); letter-spacing: 0.01em;
    background: var(--svc-s4);
}
.svc-badge.lg { width: 40px; height: 40px; border-radius: 10px; font-size: var(--fs-xs); }
.svc-oc2 { background: var(--svc-oc2); }
.svc-r66 { background: var(--svc-r66); }
.svc-l42 { background: var(--svc-l42); }
.svc-iou { background: var(--svc-iou); }
.svc-s4 { background: var(--svc-s4); }

/* ---------- Sections ---------- */

.band { padding: clamp(64px, 10vw, 112px) 0; border-top: 1px solid var(--border); }
.eyebrow { margin-bottom: var(--s-4); font-size: var(--fs-sm); font-weight: 600; color: var(--accent-text); }
.h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; max-width: 24ch; }
.h3 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.01em; }
.lede { margin-top: var(--s-4); max-width: 62ch; font-size: var(--fs-lg); color: var(--text-2); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-8); }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(64px, 9vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 961px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.25rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
.hero h1 .soft { color: var(--text-3); }
.hero .lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); margin-top: var(--s-5); max-width: 46ch; }
.notice {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s-3);
    margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--border);
    font-size: var(--fs-sm); color: var(--text-2);
}
.notice a { font-weight: 500; }

/* Console illustration: a scaled copy of a real ows panel, decorative to assistive tech (the figure has a label) */
.shot-frame {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    font-size: var(--fs-sm);
}
.shot-bar { display: flex; align-items: center; gap: 10px; padding: 10px var(--s-4); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.shot-bar .wordmark { height: 18px; }
.shot-bar .crumb { color: var(--text-3); font-size: var(--fs-xs); }
.shot-bar .crumb b { color: var(--text); font-weight: 600; }
.shot-bar .svc-badge { margin-left: auto; }
.shot-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-3); }
.shot-title { font-size: 0.9375rem; font-weight: 600; }
.shot-sub { color: var(--text-3); font-size: var(--fs-xs); margin-top: 2px; }
.shot table { width: 100%; border-collapse: collapse; }
.shot th { padding: 7px var(--s-4); text-align: left; font-size: var(--fs-xs); font-weight: 550; color: var(--text-3); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); background: var(--surface-2); }
.shot td { padding: 10px var(--s-4); border-bottom: 1px solid var(--border); white-space: nowrap; color: var(--text-2); }
.shot tr:last-child td { border-bottom: 0; }
.shot td:first-child { color: var(--text); font-weight: 550; }
.shot .mono { font-size: 0.8125rem; }
.shot .status { font-size: 0.8125rem; }
.prov { display: inline-block; padding: 1px 8px; border: 1px solid var(--border); border-radius: 99px; font-size: var(--fs-xs); color: var(--text-2); background: var(--surface-2); }
.shot figcaption { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--text-3); text-align: center; }
@media (max-width: 600px) { .shot .hide-sm { display: none; } .shot td, .shot th { padding-left: var(--s-3); padding-right: var(--s-3); } }

/* ---------- Services: hairline grid, no nested cards ---------- */

.services { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--border); }
.service { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-1) var(--s-4); padding: 28px 0; border-bottom: 1px solid var(--border); }
.service .svc-badge { grid-row: span 3; }
.service h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.01em; }
.service h3 .plain { font: 500 var(--fs-sm)/1.3 var(--font-sans); color: var(--text-3); }
.service .tagline { color: var(--text); font-weight: 500; }
.service .what { margin-top: var(--s-1); color: var(--text-2); font-size: 0.9375rem; max-width: 60ch; }
.service.soon h3, .service.soon .tagline { color: var(--text-2); }
@media (min-width: 761px) {
    .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service:nth-child(odd) { padding-right: clamp(16px, 4vw, 48px); }
    .service:nth-child(even) { padding-left: clamp(16px, 4vw, 48px); border-left: 1px solid var(--border); }
}

/* ---------- Principles ---------- */

.principles { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8) clamp(24px, 3vw, 40px); }
.principles li { padding-top: var(--s-4); border-top: 2px solid var(--text); }
.principles h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }
.principles p { margin-top: var(--s-2); color: var(--text-2); font-size: 0.9375rem; }
@media (min-width: 521px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 961px) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Provider matrix: one panel, an ows table ---------- */

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.matrix th, .matrix td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.matrix thead th { font-size: var(--fs-xs); font-weight: 550; color: var(--text-3); background: var(--surface-2); }
.matrix thead th:first-child { border-top-left-radius: var(--radius-lg); }
.matrix thead th:last-child { border-top-right-radius: var(--radius-lg); }
.matrix tbody th { font-weight: 600; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.no { color: var(--text-3); font-size: var(--fs-sm); }
.yes { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 500; font-size: var(--fs-sm); }
.yes .icon { width: 15px; height: 15px; stroke-width: 2.25; }
.matrix-note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--text-2); max-width: 72ch; }

/* ---------- Two ways to run ows ---------- */

.ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: stretch; }
@media (min-width: 861px) { .ways { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.way { display: flex; flex-direction: column; min-width: 0; }
.way-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); padding: 14px var(--s-5); border-bottom: 1px solid var(--border); }
.way-head h3 { font-size: var(--fs-md); font-weight: 650; font-family: var(--font-sans); }
.way-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); flex: 1; }
.way-body > p { color: var(--text-2); }
.way-list li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 0.9375rem; }
.way-list li + li { margin-top: 6px; }
.way-list li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 10px; height: 2px; border-radius: 2px; background: var(--border-strong); }
.way-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding: 14px var(--s-5); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.hint { font-size: var(--fs-sm); color: var(--text-3); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: var(--fs-xs); font-weight: 600; background: var(--accent-soft); color: var(--accent-text); }

.code { position: relative; border-radius: var(--radius); background: var(--ink); color: var(--code-text); }
.code pre { margin: 0; padding: 14px var(--s-4); overflow-x: auto; font: 0.8125rem/1.75 var(--font-mono); tab-size: 4; }
.code .c { color: var(--code-muted); }
.code .p { color: var(--code-prompt); user-select: none; }
.copy {
    position: absolute; top: var(--s-2); right: var(--s-2);
    min-height: 28px; padding: 0 10px; border-radius: 5px;
    border: 1px solid oklch(1 0 0 / 0.16); background: var(--ink); color: #c5cad4;
    font: 500 var(--fs-xs)/1 var(--font-sans); cursor: pointer;
}
.copy:hover { background: oklch(0.28 0.01 258); color: #fff; }

/* ---------- Architecture ---------- */

.arch { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (min-width: 861px) { .arch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.arch-text { margin-top: var(--s-4); color: var(--text-2); max-width: 62ch; }
.arch .code { margin-top: var(--s-6); }
.layers { display: flex; flex-direction: column; gap: var(--s-2); }
.layer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px var(--s-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.layer b { font-weight: 650; }
.layer span { color: var(--text-2); font-size: var(--fs-sm); }
.layer:last-child { border-color: var(--accent); }
@media (min-width: 861px) {
    .layer { grid-template-columns: 132px minmax(0, 1fr); gap: var(--s-4); align-items: baseline; }
    .layer:nth-child(2) { margin-left: var(--s-4); }
    .layer:nth-child(3) { margin-left: var(--s-8); }
    .layer:nth-child(4) { margin-left: 48px; }
}
.layers-note { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-3); }

/* ---------- Closing and 404 ---------- */

.closing { text-align: center; }
.closing .h2 { margin: 0 auto; }
.closing .lede { margin-left: auto; margin-right: auto; }
.closing .cta { justify-content: center; }
.missing h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.missing-de { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.missing-de .lede { margin-top: var(--s-2); font-size: var(--fs-md); }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--border); background: var(--surface-2); padding: var(--s-10) 0 var(--s-8); font-size: var(--fs-sm); color: var(--text-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
.foot .about { grid-column: 1 / -1; }
@media (min-width: 641px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } .foot .about { grid-column: auto; } }
.foot h2 { margin-bottom: 10px; font: 600 var(--fs-sm)/1 var(--font-sans); color: var(--text); }
.foot li + li { margin-top: 6px; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot .wordmark { height: 26px; }
.foot .fine { margin-top: var(--s-3); max-width: 42ch; color: var(--text-3); }
.credit { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--border); font-size: var(--fs-xs); }
.credit a { color: var(--text-3); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .js .menu { transform: none !important; }
}

/* Keep the first command line clear of the copy button */
.copy:not([hidden]) + pre { padding-right: 84px; }

/* ---------- FAQ: question and answer pairs, hairline separated ---------- */

.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 56px); margin: 0; border-top: 1px solid var(--border); }
@media (min-width: 861px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq > div { padding: var(--s-5) 0; border-bottom: 1px solid var(--border); }
.faq dt { font: 650 var(--fs-lg)/1.35 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.faq dd { margin: var(--s-2) 0 0; color: var(--text-2); font-size: 0.9375rem; max-width: 60ch; }
