/* Colorways inspired by materials and print. Morrow (graphite, cool white, silver) is the default; Film Stock (olive-charcoal,
   bone, tungsten amber) and the others stay in the theme menu. No neon anywhere. */
html[data-theme=film]{--bg:#1c1e17;--fg:#ece4d3;--muted:#aaa38f;--line:#3e4035;--accent:#d89a3c;--accent-alt:#98a07f;--paper:#ece4d3;--ink:#1c1e17;color-scheme:dark}
[data-theme-choice=film]{--preview-bg:#1c1e17;--preview-fg:#ece4d3;--preview-accent:#d89a3c;--preview-alt:#98a07f}
html[data-theme=mono]{--bg:#272727;--fg:#f8f8f5;--muted:#b8b8b0;--line:#979793;--accent:#e1e3d6;--accent-alt:#a4aaa7;--paper:#f8f8f5;--ink:#272727;color-scheme:dark}
[data-theme-choice=mono]{--preview-bg:#272727;--preview-fg:#f8f8f5;--preview-accent:#e1e3d6;--preview-alt:#a4aaa7}
html[data-theme=light]{--bg:#ece4d3;--fg:#1f2119;--muted:#57553f;--line:#a39c86;--accent:#85561a;--accent-alt:#4f5a3c;--paper:#1f2119;--ink:#ece4d3;color-scheme:light}
[data-theme-choice=light]{--preview-bg:#ece4d3;--preview-fg:#1f2119;--preview-accent:#85561a;--preview-alt:#4f5a3c}
html[data-theme=ocean]{--bg:#173d43;--fg:#f2e7cc;--muted:#c2d0bd;--line:#9bb5ae;--accent:#a9cdc4;--accent-alt:#f2c783;--paper:#f2e7cc;--ink:#173d43;color-scheme:dark}
[data-theme-choice=ocean]{--preview-bg:#173d43;--preview-fg:#f2e7cc;--preview-accent:#a9cdc4;--preview-alt:#f2c783}
html[data-theme=morrow]{--bg:#101216;--fg:#edeef0;--muted:#b6bbc4;--line:#707984;--accent:#dce4ec;--accent-alt:#aab8c8;--paper:#edeef0;--ink:#101216;color-scheme:dark}
[data-theme-choice=morrow]{--preview-bg:#101216;--preview-fg:#edeef0;--preview-accent:#dce4ec;--preview-alt:#aab8c8}
html[data-theme=blueprint]{--bg:#153ea5;--fg:#f1f1e6;--muted:#c2cee3;--line:#8fadd5;--accent:#fff7e4;--accent-alt:#c4d7ee;--paper:#f1f1e6;--ink:#153ea5;color-scheme:dark}
[data-theme-choice=blueprint]{--preview-bg:#153ea5;--preview-fg:#f1f1e6;--preview-accent:#fff7e4;--preview-alt:#c4d7ee}
html[data-theme=proof]{--bg:#e7decb;--fg:#24231f;--muted:#645e53;--line:#938c7e;--accent:#9a3e28;--accent-alt:#554738;--paper:#24231f;--ink:#e7decb;color-scheme:light}
[data-theme-choice=proof]{--preview-bg:#e7decb;--preview-fg:#24231f;--preview-accent:#9a3e28;--preview-alt:#554738}

::selection{background:var(--accent);color:var(--bg)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline-color:var(--accent)}
.cross,.statement em,.theme-selection-status{color:var(--accent)}
.scroll-progress,.loader-rule i{background:var(--accent)}
.tension-cord{color:var(--accent)}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;border:0;max-width:1100px;margin:auto}
.theme-options button{display:block;position:relative;min-width:0;text-align:left;padding:10px;border:1px solid var(--line);background:transparent;font:12px/1.5 'Geist Mono',monospace;transition:border-color .2s,scale .4s}
.theme-options button:last-child{border:1px solid var(--line)}
.theme-options button[aria-pressed=true]{border-color:var(--accent);outline:1px solid var(--accent);outline-offset:3px}
.theme-options button>span{margin-left:0}
.theme-sample{display:block;position:relative;min-height:150px;padding:18px;background:var(--preview-bg);color:var(--preview-fg);overflow:hidden;border:1px solid color-mix(in srgb,var(--preview-fg) 24%,transparent)}
.theme-sample:before{content:'';display:block;height:1px;background:var(--preview-fg);opacity:.4;margin-bottom:20px}
.theme-sample-word{display:block;font:500 38px/.97 Geist,sans-serif;letter-spacing:-1.8px}
.theme-sample-word em{color:var(--preview-accent);font-style:normal}
.theme-sample-mark{position:absolute;bottom:18px;right:18px;width:24px;height:24px;border-top:2px solid var(--preview-alt);border-right:2px solid var(--preview-alt)}
.theme-sample-mark:after{content:'';position:absolute;right:-2px;top:-2px;width:31px;height:2px;background:var(--preview-alt);transform:rotate(-45deg);transform-origin:right center}
.theme-choice-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px!important;padding:0 5px}
.theme-choice-label strong{font-weight:400}
.theme-choice-label small{font-size:9px;color:var(--muted);margin-right:8px}
.theme-choice-state{font:10px 'Geist Mono',monospace;color:var(--accent)}
.theme-choice-description{display:block;margin-top:6px;padding:0 5px 8px;font-size:9px;line-height:1.7;color:var(--muted)}
.theme-selection-status{font:11px/1.7 'Geist Mono',monospace;margin:28px 0 0}
.theme-options button:is(:hover,:focus-visible){scale:1.025}
@media(hover:hover){.entry-link:hover,.note-cta:hover,.detail-footer a:hover{color:var(--accent)}}
@media(max-width:900px){.theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.theme-options{gap:14px;grid-template-columns:1fr}.theme-sample{min-height:140px}.theme-options button:last-child{border:1px solid var(--line)}}
@media(prefers-reduced-motion:reduce){.theme-options button{transition:none}.theme-options button:is(:hover,:focus-visible){scale:1}}


/* Static silver highlights give Morrow a metal finish without extra motion. */
html[data-theme=morrow]{--metal:linear-gradient(115deg,#aab8c8 0%,#f5f7fa 28%,#b2c1cf 49%,#e8edf2 66%,#98a8b9 100%)}
html[data-theme=morrow] .scroll-progress,html[data-theme=morrow] .loader-rule i{background:var(--metal)}
@supports(background-clip:text){
 html[data-theme=morrow] .statement em,html[data-theme=morrow] .cross{background:var(--metal);background-clip:text;-webkit-background-clip:text;color:transparent}
 [data-theme-choice=morrow] .theme-sample-word em{background:linear-gradient(115deg,#aab8c8,#f5f7fa 28%,#b2c1cf 49%,#e8edf2 66%,#98a8b9);background-clip:text;-webkit-background-clip:text;color:transparent}
}
[data-theme-choice=morrow] .theme-sample:before{background:linear-gradient(90deg,#707984,#edf2f8 40%,#8897a8 65%,#dce4ec);opacity:1}
