@layer page {
    #page { --newton: light-dark(color-mix(in oklab, var(--red) 65%, var(--black)), color-mix(in oklab, var(--red) 65%, var(--white)));
        --terms: light-dark(color-mix(in oklab, var(--blue) 50%, var(--green)), color-mix(in oklab, color-mix(in oklab, var(--blue) 50%, var(--green)) 60%, var(--white))); }
    figure.plate[data-law=newton] { --law: var(--newton); }
    figure.plate[data-law=conformal] { --law: var(--terms); }
    figure.plate, figure.curve {
        display: grid; gap: .25lh;
        svg { display: block; width: 100%; height: auto; font-family: inherit; overflow: visible; color: var(--ink); }
        .law, .newton { color: var(--law, var(--newton)); }
        .terms { color: var(--terms); }
        .ink { stroke: currentColor; stroke-width: .8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
        .law .ink { stroke-width: 1.2; }
        .hair { stroke-width: .4; }
        .dot { stroke-dasharray: .1 3; stroke-width: 1; }
        .dash { stroke-dasharray: 5 4; }
        .fill { fill: currentColor; stroke: none; }
        .ring { fill: none; stroke: currentColor; stroke-width: 1; }
        .hatch { fill: var(--hatch); }
        .hatchlaw { fill: var(--hatch-law); }
        text { fill: var(--mute); font-size: 9px; font-style: italic; }
        text.law { fill: currentColor; }
        text.title { fill: var(--ink); font-style: normal; font-weight: 700; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
        figcaption { color: var(--mute); font-size: .875em; line-height: 1lh; }
    }

    .controls {
        display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 2ch;
        font-size: .75em; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); line-height: 1.5lh;
        label { display: inline-flex; align-items: center; gap: 1ch; }
        input[type=range] { width: 14ch; border: 0; margin: 0; accent-color: var(--accent); }
        output, .readout { color: var(--ink); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
        .readout { flex-basis: 100%; }
    }

    .formula {
        display: grid; gap: .5lh;
        .eq { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .5lh 1.5ch; font-size: 1.125em; }
        var { font-style: italic; }
        .part { display: inline-flex; gap: 1.5ch; align-items: start; }
        .term { display: inline-grid; justify-items: center; gap: .25lh; .label { font-size: .5em; line-height: 1lh; text-align: center; } }
        .op, .lhs { line-height: 1lh; }
        figcaption { color: var(--mute); font-size: .875em; line-height: 1lh; }
    }
}
