:root {
    color-scheme: light dark;
    --page: #faf7fb;
    --surface: #ffffff;
    --ink: #29202e;
    --muted: #625868;
    --brand: #42275a;
    --accent: #734b6d;
    --line: #e4dce8;
    --tint: #f1eaf4;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: absolute; left: 1rem; top: -6rem; background: var(--surface); padding: .6rem 1rem; z-index: 1; }
.skip-link:focus { top: 1rem; }
.shell { width: min(100% - 2.5rem, 52rem); margin-inline: auto; }
.site-header { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; }
.wordmark { font-size: 1.2rem; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9rem; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; font-weight: 700; }
main { padding-block: 3.5rem 2rem; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: .75rem; letter-spacing: .13em; font-weight: 750; margin: 0 0 .8rem; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); margin: 0 0 1rem; color: var(--brand); }
h2 { font-size: 1.45rem; margin: 0 0 .8rem; }
h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; max-width: 44rem; color: var(--muted); }
.meta, .small { color: var(--muted); font-size: .9rem; }
.callout { padding: 1.3rem 1.5rem; border-left: 3px solid var(--accent); background: var(--tint); border-radius: 0 .6rem .6rem 0; margin-block: 2rem; }
.callout p:last-child, .card p:last-child, section p:last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.button { display: inline-block; padding: .7rem 1.15rem; border: 1px solid var(--line); border-radius: .65rem; text-decoration: none; font-weight: 650; background: var(--surface); }
.button.primary { color: #fff; background: linear-gradient(120deg, #42275a, #734b6d); border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; padding: 1.5rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: .9rem; padding: 1.5rem; margin: 2rem 0; }
.toc ol { columns: 2; column-gap: 2rem; margin-bottom: 0; }
.toc li { break-inside: avoid; padding-bottom: .25rem; }
ol, ul { padding-left: 1.4rem; }
li { padding-left: .2rem; margin-bottom: .45rem; }
section { margin-top: 2.25rem; }
.legal section { padding-top: 2rem; border-top: 1px solid var(--line); }
.site-footer { margin-top: 2rem; padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer p:last-child { margin-bottom: 0; }
@media (max-width: 36rem) {
    main { padding-top: 2.5rem; }
    .grid { grid-template-columns: 1fr; }
    .toc ol { columns: 1; }
    .callout, .card, .toc { padding: 1.1rem; }
}
@media (prefers-color-scheme: dark) {
    :root {
        --page: #19141d;
        --surface: #231c28;
        --ink: #f7f0f9;
        --muted: #c4b6cb;
        --brand: #e5c8f2;
        --accent: #d6aed2;
        --line: #45374e;
        --tint: #302338;
    }
}
@media print {
    :root { color-scheme: light; --page: #fff; --ink: #000; --brand: #000; --muted: #333; --line: #bbb; --tint: #f5f5f5; }
    .site-header, .skip-link, .toc { display: none; }
    .shell { width: 100%; }
    main { padding: 0; }
    h1 { font-size: 2rem; }
    h2, h3 { break-after: avoid; }
    a { color: #000; }
}
