@font-face { font-family: "Montserrat"; src: url("/assets/fonts/Montserrat-variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/PlayfairDisplay-variable.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
:root {
  --paper: #f3eff0; --ink: #241b22; --muted: #6c5e66; --line: #d8ced2; --soft: #e9e1e4;
  --stage: #171115; --stage-ink: #f1e9ec;
  --focus: #241b22;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #141015; --ink: #efe8ec; --muted: #a797a0; --line: #2f2630; --soft: #221b23; --focus: #efe8ec; }
}
:root[data-theme="dark"] { --paper: #141015; --ink: #efe8ec; --muted: #a797a0; --line: #2f2630; --soft: #221b23; --focus: #efe8ec; }
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; font-weight: 450; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 0 10px; }
.mark { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; text-decoration: none; }
.mark i { font-style: normal; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: #b4532a; margin-right: 0.3em; vertical-align: 0.02em; box-shadow: 0.7em 0 0 #c9963f, 1.4em 0 0 #8b6fb8; margin-right: 1.9em; }
nav.top a { margin-left: 18px; text-decoration: none; color: var(--muted); font-weight: 500; }
nav.top a[aria-current="page"], nav.top a:hover { color: var(--ink); }
h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; margin: 0.4em 0 0.3em; max-width: 20ch; }
h2 { font-size: 1.6rem; margin: 2.2em 0 0.5em; max-width: 30ch; }
h3 { font-weight: 700; font-size: 1rem; margin: 1.4em 0 0.3em; }
p, li { max-width: 68ch; }
p.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 0 0 1.2em; }
p.promise { border-left: 3px solid var(--ink); padding-left: 14px; margin: 0 0 20px; max-width: 60ch; }
/* the mirror */
.mirror-grid { display: grid; grid-template-columns: minmax(280px, 480px) minmax(260px, 1fr); gap: 26px; align-items: start; }
@media (max-width: 760px) { .mirror-grid { grid-template-columns: 1fr; } }
.mirror { position: relative; background: var(--stage); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; }
.mirror video, .mirror img, .mirror canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mirror video, .mirror img { visibility: hidden; }
.mirror canvas { object-fit: contain; }
.mirror .status { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; font-size: 0.85rem; font-weight: 600; background: rgba(23, 17, 21, 0.78); color: var(--stage-ink); padding: 5px 9px; }
.mirror .status[hidden] { display: none; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.btn { font: inherit; font-weight: 700; font-size: 0.9rem; padding: 9px 13px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; border-radius: 2px; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.45; cursor: default; }
input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
/* the palette */
.palette h2 { margin: 0 0 6px; font-size: 1.25rem; }
.palette .row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); padding: 0; cursor: pointer; position: relative; background: var(--sw, #888); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.swatch.none { background: transparent; }
.swatch.none::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--muted); transform: rotate(-45deg); }
.swatch span { position: absolute; left: -9999px; }
.lip { width: 34px; height: 34px; }
.palette label { display: block; font-size: 0.9rem; color: var(--muted); margin: 0 0 4px; }
.palette input[type="range"] { width: 100%; max-width: 320px; accent-color: var(--ink); margin: 0 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.names { font-size: 0.85rem; color: var(--muted); margin: -10px 0 18px; min-height: 1.3em; }
/* sections */
section.plain { padding: 8px 0 0; }
.measure { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; max-width: 640px; margin: 10px 0; }
.measure div { border-top: 1px solid var(--line); padding-top: 8px; }
.measure b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.measure span { color: var(--muted); font-size: 0.9rem; }
footer.bottom { margin-top: 56px; padding: 22px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
