/* ============================================================
   canon.css — abstracti.co on the Jason Englund design canon v6
   Built 2026-08-22 (Kit, w/ Jason — the NOW-site rebuild).

   Source of truth: Hermes/projects/creative-direction/shell/canon3.css
   (v4 EnFold orange · v4.5 one-dark #0A0A0F · v5.2 Overpass Variable
   shipped · v6 whiter dark ramp + 106.25% dark size lift).
   This file adapts those tokens to the site's existing data-theme
   mechanism (dark default, light via [data-theme="light"]).

   It also REMAPS the legacy variable names (--bg-primary, --accent,
   --font-display …) onto canon values, so the archive page's proven
   player (style.css + tracklist.css + media.js) re-skins without a
   single layout rule being touched. Load canon.css AFTER style.css.
   ============================================================ */

/* ---------- the face (canon v5.2 — ship the font) ------------- */
@font-face{font-family:"Overpass Variable";font-style:normal;font-display:swap;
  font-weight:100 900;src:url("fonts/overpass-var-latin.woff2") format("woff2-variations");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- tokens: DARK (default — canon v4.5 site-ink) ------ */
:root{
  --sans:"Overpass Variable","Interstate","Segoe UI","Helvetica Neue",Arial,sans-serif;
  --track-label:0.18em; --track-wide:0.32em; --rule:1px;
  --hal:#C41E24; --hal-sun:#F84858;      /* live dot only — never decor */

  --ground:#0A0A0F;                       /* v4.5 one-dark; void retired */
  --surface:#101016; --surface-2:#16161d;
  --edge:#1E1E24; --hairline:#2A2A2E;
  --ink:#F3F2F1;                          /* v6 ramp (was #E8E6E3 hal-era) */
  --text:#C2C0BC;                         /* was #B6B3AF */
  --muted:#A8A7A3;                        /* was #9E9A94 */
  --faint:#7E7A74;
  --accent:#E8804E;                       /* EnFold orange, dark depth (v4.4) */
  --accent-display:#E8804E;

  /* legacy names → canon (archive/style.css + media.js consume these) */
  --bg-primary:var(--ground); --bg-secondary:var(--surface);
  --bg-tertiary:var(--surface-2); --bg-card:var(--surface);
  --bg-card-hover:var(--surface-2);
  --text-primary:var(--ink); --text-secondary:var(--text); --text-muted:var(--muted);
  --accent-hover:#F09263; --accent-muted:rgba(232,128,78,0.14);
  --border:var(--hairline); --border-strong:var(--edge);
  --grain-opacity:0;
  --font-display:var(--sans); --font-body:var(--sans);
}

/* ---------- tokens: LIGHT (canon paper) ----------------------- */
[data-theme="light"]{
  --ground:#FFFFFF; --surface:#F6F7F5; --surface-2:#F2F3F5;
  --edge:#E4E6EA; --hairline:#D6D8DD;
  --ink:#111116; --text:#33333A; --muted:#5A5A64; --faint:#787882;
  --accent:#B4551F;                       /* orange small-text depth, AA on white */
  --accent-display:#E0703C;               /* orange display depth */

  --bg-primary:var(--ground); --bg-secondary:var(--surface);
  --bg-tertiary:var(--surface-2); --bg-card:var(--surface);
  --bg-card-hover:var(--surface-2);
  --text-primary:var(--ink); --text-secondary:var(--text); --text-muted:var(--muted);
  --accent-hover:#E0703C; --accent-muted:rgba(180,85,31,0.10);
  --border:var(--hairline); --border-strong:var(--edge);
}

/* ---------- base (canon v6 dark size lift rides the rem) ------ */
html{font-size:100%}
html:not([data-theme="light"]){font-size:106.25%}       /* v6: 16→17px dark */
*{box-sizing:border-box;margin:0}
body{font-family:var(--sans);background:var(--ground);color:var(--text);
  line-height:1.618;-webkit-font-smoothing:auto}
html:not([data-theme="light"]) body{font-weight:470;letter-spacing:-0.006em} /* v5.2 grade */
a{color:inherit;text-decoration:none}
img{max-width:100%}
::selection{background:var(--accent);color:var(--ground)}

.wrap{max-width:52rem;margin:0 auto;padding:0 1.25rem}

/* ---------- header — the ONE orange anchor ------------------- */
.header{position:sticky;top:0;z-index:50;background:var(--ground);
  border-bottom:var(--rule) solid var(--hairline)}
.header-inner{max-width:52rem;margin:0 auto;padding:0.9rem 1.25rem;
  display:flex;align-items:baseline;gap:1.5rem}
.masthead{font-size:0.72rem;font-weight:600;letter-spacing:var(--track-wide);
  text-transform:uppercase;color:var(--accent)}          /* the anchor */
.mast-dot{color:var(--muted);opacity:.55}  /* abstracti.co reads as one word: abstractico */
.nav-links{display:flex;gap:1.25rem;margin-left:auto}
.nav-link{font-size:0.72rem;font-weight:500;letter-spacing:var(--track-label);
  text-transform:uppercase;color:var(--muted)}
.nav-link:hover{color:var(--ink)}
.nav-link.active{color:var(--ink);border-bottom:var(--rule) solid var(--accent);
  padding-bottom:2px}
.head-right{margin-left:auto;display:flex;align-items:center;gap:0.6rem}
.theme-toggle{background:none;border:var(--rule) solid var(--hairline);
  color:var(--muted);width:2rem;height:2rem;border-radius:2px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;align-self:center}
.theme-toggle:hover{color:var(--ink);border-color:var(--edge)}
.share-btn{position:relative;background:none;border:var(--rule) solid var(--hairline);
  color:var(--accent);width:2rem;height:2rem;border-radius:2px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center}
.share-btn svg{width:1rem;height:1rem}
.share-btn:hover{border-color:var(--accent)}
.share-toast{position:absolute;top:2.4rem;right:0;white-space:nowrap;
  background:var(--surface);border:var(--rule) solid var(--edge);color:var(--ink);
  font-size:0.68rem;letter-spacing:var(--track-label);text-transform:uppercase;
  padding:0.3rem 0.5rem;border-radius:2px;opacity:0;transform:translateY(-3px);
  transition:opacity .18s,transform .18s;pointer-events:none}
.share-btn.shared .share-toast{opacity:1;transform:translateY(0)}
.menu-toggle{display:none}
.mobile-nav{display:none}

/* ---------- labels / type ----------------------------------- */
.label{font-size:0.68rem;font-weight:500;letter-spacing:var(--track-label);
  text-transform:uppercase;color:var(--muted)}
.label-accent{font-size:0.68rem;font-weight:500;letter-spacing:var(--track-label);
  text-transform:uppercase;color:var(--accent)}
h1{font-weight:300;color:var(--ink);letter-spacing:-0.01em;line-height:1.272}
h2{font-weight:300;color:var(--ink)}

/* square bullet — the grid module as a character (rule 30) */
.sq{display:inline-block;width:4px;height:4px;background:var(--muted);
  vertical-align:middle;margin:0 0.5em 2px 0}

/* ---------- NOW page ----------------------------------------- */
.now{padding:3.4rem 0 2.1rem}
.show-line{display:flex;align-items:baseline;gap:0.8rem;margin-bottom:2.1rem}
.show-line .rule{flex:1;border-top:var(--rule) solid var(--hairline)}

.ep-head{display:flex;align-items:flex-start;gap:1.3rem;margin-bottom:0.8rem}
.ep-numwrap{display:flex;flex-direction:column;align-items:flex-start;gap:0.35rem;flex:0 0 auto}
.ep-num{font-size:3.4rem;font-weight:700;color:var(--accent-display);
  line-height:1;letter-spacing:-0.02em}                  /* the pop (rule: one per page family w/ masthead = same hue) */
/* the stepper under the number — step back to earlier mixes */
.ep-nav{display:flex;gap:0.4rem}
.ep-nav-btn{background:none;border:var(--rule) solid var(--hairline);color:var(--muted);
  min-width:1.7rem;height:1.5rem;border-radius:2px;cursor:pointer;font-size:0.85rem;line-height:1;
  letter-spacing:0.04em;font-variant-numeric:tabular-nums;
  font-family:inherit;display:inline-flex;align-items:center;justify-content:center;padding:0 0.5rem;gap:0.2rem}
.ep-nav-btn:hover{color:var(--ink);border-color:var(--accent)}
.ep-nav-btn:disabled{opacity:0;pointer-events:none}    /* no wrap-around; ends just vanish */
.ep-title{font-size:1.9rem;margin-top:0.2rem}
.ep-meta{font-size:0.8rem;color:var(--muted);margin-top:0.35rem;
  letter-spacing:0.02em}
.ep-meta b{font-weight:600;color:var(--text)}
.ep-notes{max-width:34em;color:var(--text);margin:0.85rem 0 1.7rem;font-size:0.95rem}

/* player — thin, canon, no chrome */
.ep-player{border:var(--rule) solid var(--edge);border-radius:2px;
  padding:0.9rem 1rem;display:flex;align-items:center;gap:1rem;
  background:var(--surface)}
.ep-play{width:2.6rem;height:2.6rem;border-radius:50%;flex:0 0 auto;
  border:var(--rule) solid var(--accent);background:none;color:var(--accent);
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.ep-play:hover{background:var(--accent);color:var(--ground)}
.ep-play svg{width:1rem;height:1rem}
.ep-play.spin .i-load{animation:ep-spin 0.8s linear infinite;transform-origin:12px 12px}
@keyframes ep-spin{to{transform:rotate(360deg)}}
.ep-progress{flex:1;display:flex;align-items:center;cursor:pointer;
  touch-action:none}   /* 2026-08-24: without this the browser claims the touch
                          for page-scroll and pointermove never fires — the drag
                          died the instant your finger moved. */
#ep-wave{display:block;width:100%}
#ep-wave .wb{fill:var(--muted);opacity:0.45}          /* the wave, unplayed */
#ep-wave .wb.played{fill:var(--accent);opacity:1}     /* played bars go full accent */
.ep-time{font-size:0.75rem;color:var(--muted);font-variant-numeric:tabular-nums;
  white-space:nowrap}

/* volume — a way to use it (Jason 2026-08-22); thin canon slider, orange fill */
.ep-vol{display:flex;align-items:center;gap:0.45rem;flex:0 0 auto}
.ep-vol-btn{background:none;border:0;padding:0;color:var(--muted);cursor:pointer;
  display:inline-flex;align-items:center}
.ep-vol-btn:hover{color:var(--ink)}
.ep-vol-btn svg{width:1rem;height:1rem}
.ep-vol-slider{-webkit-appearance:none;appearance:none;width:4.5rem;height:2px;
  background:var(--hairline);border-radius:2px;cursor:pointer;outline:none}
.ep-vol-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;
  width:11px;height:11px;border-radius:50%;background:var(--accent);cursor:pointer;border:0}
.ep-vol-slider::-moz-range-thumb{width:11px;height:11px;border:0;border-radius:50%;
  background:var(--accent);cursor:pointer}

/* tracklist — keynoted rows, seekable doors (rule 35: every reference is a door) */
.ep-tracklist{list-style:none;padding:0;margin:1.7rem 0 0}
/* 2026-08-24 (rule 46c): the row is a real <button> now — Tab reaches it,
   Enter/Space fire it, the reader announces it. The <li> is just the list
   slot; the grid + the hairline live on the button. */
.ep-tracklist li{border-top:var(--rule) solid var(--hairline)}
.ep-tracklist .tl-row{display:grid;grid-template-columns:1.8rem 1fr auto;gap:0 0.7rem;
  width:100%;padding:0.38rem 0.4rem;align-items:baseline;cursor:pointer;
  border:0;border-radius:2px;background:none;color:inherit;font:inherit;
  text-align:left}                                        /* tightened 2026-08-22:
  "the playlist can be smaller per each mix" -- the mix is the hero, not the list */
.ep-tracklist .tl-row:hover{background:var(--surface)}
.ep-tracklist li.on .tl-row{background:var(--surface)}
.ep-tracklist li.on .tl-num{color:var(--accent)}
.tl-num{font-size:0.7rem;font-weight:700;color:var(--muted);
  font-variant-numeric:tabular-nums}
.tl-line{font-size:0.82rem}
.tl-artist{font-weight:600;color:var(--ink)}
.tl-track{color:var(--text)}
.tl-time{font-size:0.7rem;color:var(--accent);font-variant-numeric:tabular-nums;
  border-bottom:1px dotted var(--accent)}                /* keynote link form */

/* previous weeks + archive door */
.section{padding:1.7rem 0;border-top:var(--rule) solid var(--hairline)}
.prev-row{display:grid;grid-template-columns:2.6rem 1fr auto;gap:0 1rem;
  padding:0.7rem 0.4rem;border-top:var(--rule) solid var(--hairline);
  align-items:baseline;border-radius:2px}
.prev-row:first-of-type{border-top:0}
.prev-row:hover{background:var(--surface)}
.prev-num{font-size:0.85rem;font-weight:700;color:var(--accent)}
.prev-title{font-size:0.95rem;color:var(--ink);font-weight:500}
.prev-meta{font-size:0.75rem;color:var(--muted)}
.empty-note{font-size:0.85rem;color:var(--muted);padding:0.5rem 0.4rem}

/* earlier-mixes reveal (Jason 2026-08-22: a way to reach 002 + 001, "not
   obvious to a new person" — quiet by design, like the dot backdoor) */
.ep-more{background:none;border:0;padding:0.2rem 0;cursor:pointer;
  font-family:inherit;font-size:0.68rem;font-weight:500;letter-spacing:var(--track-label);
  text-transform:uppercase;color:var(--muted)}       /* perceivable — signals a back catalog exists (003 is legit) */
.ep-more:hover{color:var(--ink)}
.ep-more .cnt{color:var(--accent)}                    /* the count pops: there ARE earlier mixes */
.ep-more .caret{display:inline-block;transition:transform .18s ease;margin-left:0.3rem}
.ep-more[aria-expanded="true"] .caret{transform:rotate(90deg)}
.ep-prev{margin-top:0.9rem}
.crates-door{margin-top:0.9rem}                       /* the door to the full back-catalog */
.prev-row.lost{opacity:0.75}
.prev-row.lost:hover{background:none;cursor:default}
.prev-lost{font-size:0.7rem;color:var(--faint);font-style:italic}
/* a mix with no audio (001, the lost 7-hour) — player reads as archival */
.ep-player.silent{opacity:0.5}
.ep-player.silent .ep-play{cursor:default}

.door{display:flex;align-items:baseline;justify-content:space-between;
  gap:1rem;padding:1rem 1.1rem;border:var(--rule) solid var(--edge);
  border-radius:2px;background:var(--surface)}
.door:hover{border-color:var(--accent)}
.door-text{font-size:0.95rem;color:var(--ink)}
.door-go{font-size:0.72rem;font-weight:600;letter-spacing:var(--track-label);
  text-transform:uppercase;color:var(--accent);white-space:nowrap}

/* subscribe strip */
.subscribe{display:flex;align-items:baseline;gap:1rem;flex-wrap:wrap}
.subscribe .label{margin-right:auto}
.sub-link{font-size:0.8rem;color:var(--accent);border-bottom:1px dotted var(--accent)}

/* ---------- ABOUT page --------------------------------------- */
.about{padding:3.4rem 0}
.about h1{font-size:1.9rem;margin:0.4rem 0 1.7rem}
.about .lede{max-width:34em;font-size:1rem;color:var(--text);margin-bottom:2.1rem}
.disc{display:grid;grid-template-columns:2.6rem 1fr;gap:0 1rem;
  padding:1rem 0.4rem;border-top:var(--rule) solid var(--hairline)}
.disc-num{font-size:0.85rem;font-weight:700;color:var(--accent)}
.disc h2{font-size:1.05rem;font-weight:600;margin-bottom:0.3rem}
.disc p{max-width:34em;font-size:0.9rem;color:var(--text)}
.quote{font-size:1.3rem;font-weight:300;color:var(--ink);max-width:26em;
  margin:2.1rem 0 0.8rem;line-height:1.45}
.quote .a{color:var(--accent-display)}

/* ---------- footer ------------------------------------------- */
.footer{border-top:var(--rule) solid var(--hairline);margin-top:3.4rem}
.footer-inner{max-width:52rem;margin:0 auto;padding:1.3rem 1.25rem;
  display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  font-size:0.75rem;color:var(--muted)}
.footer a{color:var(--muted);border-bottom:1px dotted var(--muted)}
.footer a:hover{color:var(--accent);border-color:var(--accent)}

/* ---------- small screens ------------------------------------ */
@media (max-width:600px){
  .ep-head{gap:0.9rem}
  .ep-num{font-size:2.4rem}
  .ep-title{font-size:1.4rem}
  .nav-links{gap:0.8rem}
  .ep-tracklist .tl-row{grid-template-columns:1.7rem 1fr auto}

  /* 2026-08-24 (Jason, on the phone: "on my phone this is impossible to scrub").
     The one-row flex player left the wave ~120px wide between the play button,
     the time and the volume — a 59-minute mix in 120px is ~30s per pixel.
     On small screens the player becomes two rows: the wave spans the FULL width
     on row 1; play / time / volume share row 2. (Note the volume block is
     display:none on iOS — the grid collapses gracefully to play + time.) */
  .ep-player{display:grid;gap:0.55rem 0.6rem;padding:0.8rem 0.85rem;
    grid-template-columns:auto 1fr auto;
    grid-template-areas:"wave wave wave" "play time vol";
    align-items:center}
  .ep-progress{grid-area:wave;width:100%;min-width:0}
  #ep-wave{height:64px}                 /* taller = an easier target for a thumb */
  .ep-play{grid-area:play;justify-self:start}
  .ep-time{grid-area:time;justify-self:center;font-size:0.85rem}
  .ep-vol{grid-area:vol;justify-self:end}
  .ep-vol-slider{width:3.6rem}
}

/* calm navigation (Jason 2026-08-22: 'the whole page earthquakes'): pages of
   different heights toggled the scrollbar, shoving the layout sideways on every
   nav click. Reserve the gutter permanently. */
html{overflow-y:scroll;scrollbar-gutter:stable}

/* ============================================================
   THE LENS LAW — canon rule 46 (2026-08-24)
   Jason: "It should be always thought about through how is it viewed
   through any lens including people with no vision. I'm ADA compliant."
   Site-local implementation; the canonical version of this block belongs
   in shell/canon3.css and propagates to the estate.
   ============================================================ */

/* --- the focus ring. The canon defined NO focus state anywhere before
   today, which made a keyboard user invisible to themselves on every
   surface. :focus-visible so a mouse click doesn't ring. --- */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:2px}
/* the scrubber is a big box — ring it just inside so it reads as one control */
.ep-progress:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
/* never remove the ring without replacing it */
:focus:not(:focus-visible){outline:none}

/* --- .sr-only: for the reader, not the eye. clip-rect, NOT display:none —
   display:none is skipped by screen readers too, which defeats the point.
   (Distinct from rule 43's invisible register, which is aria-hidden on
   purpose and IS meant to be skipped.) --- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
  border:0}

/* --- skip link: off-screen until it takes focus, then it lands in the
   corner as a real canon label. --- */
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--surface);color:var(--ink);
  border:var(--rule) solid var(--accent);border-radius:2px;
  padding:0.6rem 0.9rem;font-size:0.72rem;font-weight:600;
  letter-spacing:var(--track-label);text-transform:uppercase}
.skip-link:focus{left:0.75rem;top:0.75rem}

/* --- touch targets: 44x44 of real hit area (WCAG 2.5.5 / Apple HIG).
   The thin canon marks keep their looks; the target grows underneath. --- */
.ep-vol-btn,.ep-nav-btn,.theme-toggle,.share-btn{position:relative}
.ep-vol-btn::after,.ep-nav-btn::after{content:'';position:absolute;
  top:50%;left:50%;transform:translate(-50%,-50%);
  width:max(100%,44px);height:max(100%,44px)}
/* the 2px volume slider was a 2px-tall target; give it a real one */
.ep-vol-slider{position:relative;padding:1rem 0;background-clip:content-box;
  height:auto;min-height:2px}

/* --- respect a stated preference for less motion --- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;transition-duration:0.001ms !important;
    scroll-behavior:auto !important}
  /* the buffering spinner is INFORMATION, not decoration: keep it turning,
     just slowly, so "loading" is still legible without the whirl. */
  .ep-play.spin .i-load{animation:ep-spin 2.4s linear infinite !important}
}

/* one header on every page (2026-08-22, 'the top bar makes the whole page jump'):
   style.css's fixed/flex header (the old deck) shrink-wrapped .header-inner on
   archive/about (884px -> 506px), sliding the masthead sideways on every nav
   click. canon loads last: neutralize the geometry style.css sets. */
.header{display:block;height:auto;padding:0}
.header-inner{width:100%}
