/* ez.css — the web Theme package. EngineZero sacred-geometry language.
   One hue per surface: the accent is --spectral, set per page by the Color Law.
   Neutrals carry the accent's temperature at low saturation. No raw hex in pages. */

/* EZ Digits: the house numerals, 0 to 9 only (EZ SYSTEM 0.8). It stands first in
   --zd-mono and --zd-sans and owns only the digits; aether.mjs copies fonts/ beside
   every copy of this sheet. */
@font-face{font-family:'EZ Digits';font-weight:300;font-display:swap;src:url(fonts/ez-digits-300.woff2) format('woff2');unicode-range:U+0030-0039}
@font-face{font-family:'EZ Digits';font-weight:400;font-display:swap;src:url(fonts/ez-digits-400.woff2) format('woff2');unicode-range:U+0030-0039}
/* Icons: ez-icons.js, a Lucide subset. One stroke, the seat's hue. */
.ez-icon{width:1.25em;height:1.25em;vertical-align:-.25em;color:var(--zd-id);overflow:visible}
[data-ez-icon]{display:inline-flex;align-items:center;justify-content:center;font-style:normal;line-height:1}

:root {
  /* written by STUDIO/AETHER/aether.mjs from aether.json; an edit here is overwritten */
  --zd-void: #060111;
  --zd-aether: #EDE9FF;
  --zd-dim: #8B82B8;
  --zd-faint: #453A6E;
  --zd-solar: #FFC24D;
  --zd-ultraviolet: #8A3FFF;
  --zd-plasma: #22F5FF;
  --zd-sigil: #FF3DD4;
  --zd-panel: #0D0720;
  --zd-hue: 295;
  --zd-id: oklch(78% 0.3 var(--zd-hue));
  --zd-id-dim: oklch(62% 0.21 var(--zd-hue));
  --zd-id-glow: oklch(70% 0.29 var(--zd-hue) / 0.55);
  --zd-s1: 3px;
  --zd-s2: 5px;
  --zd-s3: 8px;
  --zd-s4: 13px;
  --zd-s5: 21px;
  --zd-s6: 34px;
  --zd-s7: 55px;
  --zd-s8: 89px;
  --zd-t-hero: 71px;
  --zd-t-display: 44px;
  --zd-t-title: 27px;
  --zd-t-body: 17px;
  --zd-t-micro: 11px;
  --zd-serif: ui-serif,"New York",Georgia,serif;
  --zd-mono: "EZ Digits",ui-monospace,"SF Mono",Menlo,monospace;
  --zd-sans: "EZ Digits",system-ui,-apple-system,sans-serif;
  --zd-track-read: 0.02em;
  --zd-radius-panel: 0px;
  --zd-radius-control: 0px;
  --zd-pulse: 2.2s;
  --zd-hover: 0.2s;
  --zd-seat: 0.7s;
  /* the old names: aliases, here and nowhere else */
  --void: var(--zd-void);
  --panel: var(--zd-panel);
  --line: var(--zd-faint);
  --ink: var(--zd-aether);
  --dim: var(--zd-dim);
  --spectral: var(--zd-ultraviolet);
  --plasma: var(--zd-plasma);
  --sigil: var(--zd-sigil);
  --solar: var(--zd-solar);
  --mono: var(--zd-mono);
  --x3: var(--zd-s1);
  --x5: var(--zd-s2);
  --x8: var(--zd-s3);
  --x13: var(--zd-s4);
  --x21: var(--zd-s5);
  --x34: var(--zd-s6);
  --x55: var(--zd-s7);
  --x89: var(--zd-s8);
  --type-micro: var(--zd-t-micro);
  --type-note: var(--zd-t-micro);
  --type-meta: var(--zd-t-micro);
  --type-body: var(--zd-t-body);
  --type-page: var(--zd-t-body);
  --type-title: var(--zd-t-title);
  --type-display: var(--zd-t-title);
  --type-figure: var(--zd-t-display);
  --radius-panel: var(--zd-radius-panel);
  --radius-control: var(--zd-radius-control);
  --pulse: var(--zd-pulse);
  --hover: var(--zd-hover);
}

/* Only a page built on .ez gets these. A page that links the sheet for its tokens keeps its own look. */
:where(.ez, .ez *) { box-sizing: border-box; margin: 0; }
html { background: var(--void); }
body:has(> .ez) {
  margin: 0;
  background: var(--void); color: var(--ink);
  font-family: var(--mono); font-size: var(--type-page); line-height: 1.6;
  min-height: 100vh; padding: var(--x34) var(--x21) var(--x55);
}
:where(.ez) a { color: var(--spectral); text-decoration: none; }
:where(.ez) a:hover { text-shadow: 0 0 12px var(--spectral); }
:where(.ez) ::selection { background: var(--spectral); color: var(--void); }

/* ── page column ─────────────────────────────────────────────── */
.ez { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--x34); }

/* ── HUD chrome ──────────────────────────────────────────────── */
.ez-top {
  display: flex; justify-content: space-between; gap: var(--x13); flex-wrap: wrap;
  font-size: var(--type-micro); letter-spacing: .25em; text-transform: uppercase; color: var(--dim);
}
.ez-title { font-size: var(--type-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-wrap: balance; }
.ez-title b { color: var(--spectral); font-weight: 600; }
.ez-meta { color: var(--dim); font-size: var(--type-meta); letter-spacing: .08em; }
.ez-thesis { color: var(--dim); max-width: 62ch; }
.ez-label { font-size: var(--type-micro); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.ez-foot {
  display: flex; justify-content: space-between; gap: var(--x13); flex-wrap: wrap;
  color: var(--dim); font-size: var(--type-micro); letter-spacing: .2em; text-transform: uppercase;
}

/* ── panels ──────────────────────────────────────────────────── */
.ez-panel {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  padding: var(--x21); display: flex; flex-direction: column; gap: var(--x13);
  border-radius: var(--radius-panel);
}
/* corner brackets: four L-marks in the accent, drawn by gradients */
.ez-brackets {
  --b: 14px;
  background:
    linear-gradient(var(--spectral), var(--spectral)) left 0 top 0 / var(--b) 1px,
    linear-gradient(var(--spectral), var(--spectral)) left 0 top 0 / 1px var(--b),
    linear-gradient(var(--spectral), var(--spectral)) right 0 top 0 / var(--b) 1px,
    linear-gradient(var(--spectral), var(--spectral)) right 0 top 0 / 1px var(--b),
    linear-gradient(var(--spectral), var(--spectral)) left 0 bottom 0 / var(--b) 1px,
    linear-gradient(var(--spectral), var(--spectral)) left 0 bottom 0 / 1px var(--b),
    linear-gradient(var(--spectral), var(--spectral)) right 0 bottom 0 / var(--b) 1px,
    linear-gradient(var(--spectral), var(--spectral)) right 0 bottom 0 / 1px var(--b);
  background-repeat: no-repeat; background-color: var(--panel);
}

/* ── live status ─────────────────────────────────────────────── */
.ez-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--spectral); box-shadow: 0 0 9px var(--spectral);
  vertical-align: middle; margin-right: var(--x8);
  animation: ez-pulse var(--pulse) ease-in-out infinite;
}
@keyframes ez-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ez-dot { animation: none; } }

/* ── controls ────────────────────────────────────────────────── */
:where(.ez) button, .ez-btn {
  display: inline-block; background: transparent; border: 1px solid var(--line);
  color: var(--dim); font: inherit; font-size: var(--type-meta); letter-spacing: .12em;
  text-transform: uppercase; padding: 10px 16px; cursor: pointer; min-height: 44px;
  border-radius: var(--radius-control);
  transition: border-color var(--hover), color var(--hover);
}
:where(.ez) button:hover, .ez-btn:hover { border-color: var(--spectral); color: var(--ink); }
:where(.ez) .on, :where(.ez) button.on {
  border-color: var(--spectral); color: var(--spectral);
  box-shadow: 0 0 12px color-mix(in srgb, var(--spectral) 45%, transparent);
}
:where(.ez) button:focus-visible, .ez-btn:focus-visible, :where(.ez) input:focus-visible { outline: 1px solid var(--spectral); outline-offset: 2px; }
:where(.ez) input[type=text] {
  background: var(--void); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: var(--type-title); letter-spacing: .2em; padding: 10px var(--x13);
  width: 100%; min-height: 44px; border-radius: var(--radius-control);
}
:where(.ez) input[type=text]:focus { outline: none; border-color: var(--spectral); }

/* ── the weigh bar ───────────────────────────────────────────── */
.ez-weigh-out { display: flex; gap: var(--x13); align-items: baseline; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.ez-weigh-out .v { font-size: var(--type-figure); color: var(--spectral); font-weight: 600; }
.ez-weigh-out .u { color: var(--dim); font-size: var(--type-meta); letter-spacing: .15em; }

/* ── link rows / map grid ────────────────────────────────────── */
.ez-links { display: flex; flex-wrap: wrap; gap: var(--x8); }
.ez-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--x13); }

/* ── tables (the canon) ──────────────────────────────────────── */
.ez-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ez-table th, .ez-table td { border: 1px solid var(--line); padding: var(--x8) 12px; text-align: left; }
.ez-table th { font-size: var(--type-micro); letter-spacing: .25em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.ez-table td.num { color: var(--spectral); }

/* ── the confession ──────────────────────────────────────────── */
.ez-confess { border-top: 1px solid var(--line); padding-top: var(--x21); color: var(--dim); font-size: var(--type-meta); line-height: 2; }
.ez-confess b { color: var(--ink); font-weight: 600; }
.ez-confess .law { color: var(--spectral); }

/* ── seat: the hue turns to its new home, the short way round ─────── */
@property --zd-hue { syntax: "<number>"; inherits: true; initial-value: 295; }
html { transition: --zd-hue var(--zd-seat) ease; }
@media (prefers-reduced-motion: reduce) { html { transition: none; } }

/* ── the pieces: the manual is gallery.html, the recipes are in aether.json ── */
.zd-micro{
  font-family:var(--zd-mono);font-size:var(--zd-t-micro);letter-spacing:.22em;
  text-transform:uppercase;color:var(--zd-dim);font-variant-numeric:tabular-nums;
}
.zd-display{
  font-family:var(--zd-serif);font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;text-wrap:balance;line-height:1.15;
}
.zd-lore{font-family:var(--zd-serif);font-style:italic;color:var(--zd-dim);letter-spacing:.01em}
.zd-mark{
  background:linear-gradient(100deg,var(--zd-ultraviolet),var(--zd-plasma) 45%,var(--zd-sigil));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.zd-rule{display:flex;align-items:center;gap:var(--zd-s4);margin:var(--zd-s6) 0 var(--zd-s5)}
.zd-rule::before,.zd-rule::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,var(--zd-faint))}
.zd-rule::after{background:linear-gradient(90deg,var(--zd-faint),transparent)}
.zd-panel{
  position:relative;border:1px solid oklch(45% .15 var(--zd-hue) / .35);
  background:linear-gradient(160deg, oklch(20% .09 var(--zd-hue) / .55), oklch(10% .05 var(--zd-hue) / .2) 70%);
  border-radius:var(--zd-s3);padding:var(--zd-s5);margin-bottom:var(--zd-s5);
}
.zd-panel > .zd-micro.cap{display:block;margin-bottom:var(--zd-s4);color:var(--zd-faint)}
.zd-notice{font-size:14px;color:var(--zd-dim);line-height:1.5}
.zd-notice b{color:var(--zd-solar);font-weight:600}
.zd-back{
  display:inline-flex;align-items:center;gap:var(--zd-s3);min-height:44px;
  font-family:var(--zd-mono);font-size:var(--zd-t-micro);letter-spacing:.22em;text-transform:uppercase;color:var(--zd-dim);
}
.zd-back::before{content:"◂";color:var(--zd-id)}
.zd-head{display:flex;align-items:center;gap:var(--zd-s4)}
.zd-head .sig{width:55px;height:55px;flex:none;filter:drop-shadow(0 0 13px var(--zd-id-glow))}
.zd-head h1{font-size:var(--zd-t-title);color:var(--zd-id)}
.zd-head .zd-micro{margin-top:var(--zd-s1)}
.glyphline{stroke-dasharray:1;stroke-dashoffset:1;animation:zdDraw 1.4s cubic-bezier(.4,0,.2,1) .3s forwards}
@keyframes zdDraw{to{stroke-dashoffset:0}}
.zd-chip,.zd-band{
  font-family:var(--zd-mono);font-size:var(--zd-t-micro);letter-spacing:.2em;text-transform:uppercase;
  color:var(--zd-dim);border:1px solid var(--zd-faint);border-radius:999px;
  min-height:44px;padding:0 var(--zd-s5);display:inline-flex;align-items:center;
  transition:color .3s,border-color .3s,box-shadow .3s;
}
.zd-chip{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.zd-chip:active{color:var(--zd-aether);border-color:var(--zd-dim)}
.zd-band{padding:0 var(--zd-s4);letter-spacing:.18em}
.zd-band[aria-pressed="true"]{
  color:var(--zd-id);border-color:var(--zd-id-dim);
  box-shadow:0 0 13px oklch(70% .29 var(--zd-hue) / .3), inset 0 0 8px oklch(70% .29 var(--zd-hue) / .15);
}
.zd-slider{display:flex;align-items:center;gap:var(--zd-s4);min-height:44px}
.zd-slider .zd-micro{width:89px;flex:none}
.zd-slider output{font-family:var(--zd-mono);font-size:var(--zd-t-micro);color:var(--zd-id);width:55px;text-align:right;flex:none;letter-spacing:.1em}
.zd-slider input[type=range]{flex:1;min-width:0;appearance:none;-webkit-appearance:none;height:2px;border-radius:1px;background:linear-gradient(90deg,var(--zd-id-dim),var(--zd-faint))}
.zd-slider input[type=range]::-webkit-slider-thumb{
  appearance:none;-webkit-appearance:none;width:21px;height:21px;border-radius:50%;border:none;
  background:radial-gradient(circle at 40% 35%, var(--zd-aether), var(--zd-id) 60%, transparent 75%);
  box-shadow:0 0 13px var(--zd-id-glow);
}
.zd-slider input[type=range]::-moz-range-thumb{
  width:21px;height:21px;border-radius:50%;border:none;
  background:radial-gradient(circle at 40% 35%, var(--zd-aether), var(--zd-id) 60%, transparent 75%);
  box-shadow:0 0 13px var(--zd-id-glow);
}
.zd-bigplay{
  position:relative;display:grid;place-items:center;margin:var(--zd-s5) auto var(--zd-s6);width:144px;height:144px;border-radius:50%;
  border:1px solid oklch(55% .2 var(--zd-hue) / .5);
  box-shadow:0 0 34px oklch(70% .29 var(--zd-hue) / .25), inset 0 0 34px oklch(70% .29 var(--zd-hue) / .12);
}
.zd-bigplay .zd-micro{position:absolute;bottom:-26px;color:var(--zd-id)}
.zd-bigplay.playing{animation:zdBreathe 4s ease-in-out infinite}
@keyframes zdBreathe{
  0%,100%{box-shadow:0 0 21px oklch(70% .29 var(--zd-hue) / .2), inset 0 0 21px oklch(70% .29 var(--zd-hue) / .1)}
  50%{box-shadow:0 0 55px oklch(70% .29 var(--zd-hue) / .45), inset 0 0 34px oklch(70% .29 var(--zd-hue) / .2)}
}
.zd-stats{display:flex;justify-content:space-between;gap:var(--zd-s4)}
.zd-stat{display:flex;flex-direction:column;gap:var(--zd-s1);align-items:center;flex:1}
.zd-stat .v{font-family:var(--zd-mono);font-size:var(--zd-t-title);color:var(--zd-id);letter-spacing:.05em;font-variant-numeric:tabular-nums}
.zd-input{
  width:100%;background:oklch(12% .05 var(--zd-hue) / .6);border:1px solid var(--zd-faint);border-radius:var(--zd-s2);
  color:var(--zd-aether);padding:var(--zd-s4);font-size:16px;min-height:44px;
}
.zd-input.name{font-family:var(--zd-mono);letter-spacing:.2em;text-transform:uppercase;text-align:center}
.zd-input.intent{font-family:var(--zd-serif);font-style:italic}
.zd-input:focus-visible{outline:1px solid var(--zd-plasma);outline-offset:3px}
.zd-capture{
  position:relative;overflow:hidden;border:1px solid oklch(45% .15 var(--zd-hue) / .4);border-radius:var(--zd-s3);
  padding:var(--zd-s5);margin-bottom:var(--zd-s5);
  background:linear-gradient(165deg, oklch(19% .08 var(--zd-hue) / .6), oklch(9% .04 var(--zd-hue) / .35));
}
.zd-capture::after{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(transparent 50%, color-mix(in srgb,var(--zd-void) 24%,transparent) 50%),
             linear-gradient(90deg, rgba(255,0,60,.05), rgba(0,255,170,.02), rgba(60,0,255,.05));
  background-size:100% 4px, 8px 100%;
}
.zd-capture h3{font-family:var(--zd-mono);font-size:var(--zd-t-micro);font-weight:400;letter-spacing:.24em;text-transform:uppercase;color:var(--zd-id);margin-bottom:var(--zd-s3)}
.zd-capture h3 .src{color:var(--zd-faint)}
.zd-capture p{font-size:15px;color:var(--zd-dim);margin-top:var(--zd-s3)}
.zd-capture p b{color:var(--zd-aether);font-weight:500}
.zd-tag{
  display:inline-block;margin:var(--zd-s3) var(--zd-s2) 0 0;font-family:var(--zd-mono);font-size:10px;letter-spacing:.18em;
  color:var(--zd-solar);border:1px solid oklch(60% .1 85 / .35);border-radius:999px;padding:2px 10px;
}
.zd-hud{position:relative;height:233px;border-radius:var(--zd-s3);overflow:hidden;background:oklch(8% .04 var(--zd-hue) / .6)}
.zd-hud canvas{width:100%;height:100%;display:block}
.zd-hud .c{position:absolute;padding:var(--zd-s4)}
.zd-hud .tl{top:0;left:0}
.zd-hud .tr{top:0;right:0;text-align:right}
.zd-hud .bl{bottom:0;left:0}
.zd-hud .br{bottom:0;right:0;color:var(--zd-faint)}
.zd-hud .bk{position:absolute;width:13px;height:13px;border-color:var(--zd-id-dim);border-style:solid;border-width:0}
.zd-hud .bk.a{top:8px;left:8px;border-top-width:1px;border-left-width:1px}
.zd-hud .bk.b{top:8px;right:8px;border-top-width:1px;border-right-width:1px}
.zd-hud .bk.c2{bottom:8px;left:8px;border-bottom-width:1px;border-left-width:1px}
.zd-hud .bk.d{bottom:8px;right:8px;border-bottom-width:1px;border-right-width:1px}
.zd-hud .live{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--zd-id);box-shadow:0 0 8px var(--zd-id-glow);margin-right:6px;vertical-align:1px;animation:zdLive 4s ease-in-out infinite}
@keyframes zdLive{50%{opacity:.35}}
.zd-law{list-style:none;display:flex;flex-direction:column;gap:var(--zd-s4)}
.zd-law li{display:flex;gap:var(--zd-s4);align-items:baseline;font-size:15px;color:var(--zd-dim)}
.zd-law li::before{content:"◈";color:var(--zd-solar);flex:none}
.zd-law b{color:var(--zd-aether);font-weight:500}
footer .zd-micro{color:var(--zd-faint)}
.zd-notice{letter-spacing:var(--zd-track-read)}
.zd-depth{display:flex;flex-direction:column;align-items:center;gap:var(--zd-s4)}
.zd-depth > .zd-micro.cap{align-self:stretch;margin-bottom:0}
.zd-depth .stage{position:relative;width:100%;max-width:377px;aspect-ratio:1;overflow:hidden;border-radius:var(--zd-s3);background:oklch(8% .04 var(--zd-hue) / .6)}
.zd-depth .stage svg{position:absolute;inset:0;width:100%;height:100%;transform-origin:50% 50%;will-change:transform}
.zd-depth .inside{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--zd-s3);opacity:0;pointer-events:none;text-align:center;padding:var(--zd-s5)}
.zd-depth .inside .zd-display{font-size:var(--zd-t-title);color:var(--zd-id)}
.zd-depth .layers{display:flex;justify-content:space-between;width:100%;max-width:377px}
.zd-depth .layers .zd-micro{font-size:9px;letter-spacing:.14em;transition:color .3s}
.zd-depth .layers .on{color:var(--zd-id)}
.zd-depth .zd-slider,.zd-depth .zd-notice{width:100%;max-width:377px}
.zd-depth .zd-input{max-width:377px}
.zd-read{font-size:var(--zd-t-body);line-height:1.55;letter-spacing:var(--zd-track-read);color:var(--zd-aether);min-height:6.2em;margin:var(--zd-s5) 0 var(--zd-s4)}
.zd-read .ck{opacity:0;transition:opacity .12s}
.zd-read .ck.in{opacity:1}
.zd-glitch{font-family:var(--zd-serif);font-weight:600;font-size:var(--zd-t-title);letter-spacing:.1em;text-transform:uppercase;text-wrap:balance;line-height:1.35;color:var(--zd-aether);min-height:2.8em;margin:var(--zd-s5) 0 var(--zd-s4)}
@media (prefers-reduced-motion: reduce) {
  .zd-bigplay.playing, .zd-hud .live, .glyphline { animation-duration: .001s; animation-iteration-count: 1; }
}
