/* ---------- chrome ---------- */

/* Deliberately `absolute`, not `fixed`, and with no z-index: both would form a
   stacking context and the exclusion blend below would have nothing to blend
   against. The page never scrolls (all scrolling happens inside an open card),
   so absolute sits exactly where fixed did. */
.header{
  position:absolute;
  top:0;left:0;right:0;
  height:var(--header-h);
  /* the content box is one control tall, so the wordmark centres on the row
     of controls whatever their height (the bottom takes up the difference) */
  padding:var(--pad) var(--pad) calc(var(--header-h) - var(--pad) - var(--chip-h));
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.wordmark{
  font-size:16px;
  font-weight:600;
  /* NO TRANSFORM ON THIS ELEMENT, EVER (2026-09-17). It is the blended one, and
     a transform on a blended element gives it a layer of its own, which is what
     iOS would not blend — the white wordmark, four times. Everything that has
     to move the wordmark moves .wm-t inside it, exactly as the live site moves
     things inside its blended navbar. */
}
.wm-t{display:inline-block;position:relative}

/* The measured-ink alternative, for comparing on a real phone: /?ink=measured
   paints the wordmark from what is under it instead of blending (see "the
   wordmark's ink is measured" in app.js). Deterministic, but it is ONE colour
   for the whole word, so where a card's edge crosses the word it can only pick
   the better of two. Delete whichever of the two loses. */
html[data-ink="measured"] .wordmark{
  mix-blend-mode:normal;
  color:var(--chrome-ink, var(--ink));
  transition:color 160ms var(--ease);
}

/* background-color, never the `background` shorthand — the shorthand resets
   background-image and would wipe the arrow glyph on hover */
.icon-btn{
  width:var(--chip-h);height:var(--chip-h);
  border:0;
  border-radius:50%;
  background-color:var(--chip);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  padding:0;
  transition:background-color var(--hover) var(--ease);
}
@media (hover:hover){.icon-btn:hover{background-color:var(--chip-hover)}}.icon-btn.is-pressed{background-color:var(--chip-hover)}

/* plus → X is one rotation of the whole glyph; rotating the two bars against
   each other passes through a single-bar "minus" on the way */
/* Figma's glyph is an 8px X with a 1px round-capped stroke; rotated 45deg it
   reads as a plus. Drawn as SVG on a 12px box (an even box inside the 30px
   button) so the arms land on whole device pixels — CSS bars at 11.314px sat
   on fractional offsets and each arm antialiased differently, which is what
   made the X look off-axis. */
.plus{
  width:12px;height:12px;
  flex:0 0 auto;
  overflow:visible;
  fill:none;
  stroke:var(--ink);
  stroke-width:1;
  stroke-linecap:round;
  stroke-linejoin:round;
  transform:rotate(45deg);          /* X artwork shown as a plus */
  transition:transform 420ms var(--ease);
}
body.menu-open #menuBtn .plus,
.slide.is-open .caption .plus{transform:rotate(90deg)}   /* back to the X */

.footer{
  position:absolute;
  bottom:0;left:0;right:0;
  padding:var(--pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:var(--fs-s);
}
.social{display:flex;gap:20px}
.foot-left{display:flex;align-items:center;gap:20px}

/* THE CHROME'S OWN BOXES TAKE NO CLICKS — ONLY ITS CONTROLS DO (2026-09-19).
   The header and footer are full-width strips over content that runs under
   them, so an open column's Read more scrolled up under the header line (or
   down behind the footer) was covered by an empty strip and could not be
   pressed (Anthony). The phone already did this for the header row (see "THE
   WORDMARK TAP WAS DEAD"); now every width does, for both. Each view-scoped
   header control states its own pointer-events (auto shown, none hidden); the
   plus is the one that inherits. */
.header,.footer{pointer-events:none}
.header .wordmark,
.header #menuBtn,
.footer a,
.footer button,
.footer .studio-clock{pointer-events:auto}
/* EACH BLENDED WORD IS ITS OWN LAYER. Safari only blends an element that is
   composited on its own; blended inside the footer's layer, the words blended
   against nothing and showed as plain #eee — near-invisible on the light
   theme (found 2026-09-19, the day the blend moved off .footer so the studio
   light could keep its colour). */
.footer .blend-ink{will-change:transform}

/* THE STUDIO LIGHT (Anthony, 2026-09-19; see app.js for what it says). Green
   while the studio is working, fading softly in and out — a casual
   announcement, not a blink; grey and still while away. NOT RED: red is the
   error colour now, and "away until Monday" is not an error. Updated once a
   minute; the fade is an opacity animation the compositor runs on its own.
   Footer on a laptop, the menu on a phone. */
.studio-clock{display:inline-flex;align-items:center;gap:10px;font-size:var(--fs-s)}
.clock-dot{
  width:6px;height:6px;
  border-radius:50%;
  background:var(--ink);
  opacity:.4;                 /* away: the dim the site uses for what is not chosen */
  flex:0 0 auto;
}
.studio-clock.is-open .clock-dot{background:#34c759;opacity:1;animation:clockBreathe 2s ease-in-out infinite}
@keyframes clockBreathe{0%,100%{opacity:1}50%{opacity:.2}}
@media (prefers-reduced-motion:reduce){.studio-clock.is-open .clock-dot{animation:none}}
.panel-side{display:none}   /* phone only: a laptop has these in its footer */
.panel-status{display:none}   /* phone only, too */

/* SELECTED TEXT IS THE SYSTEM BLUE (Anthony, 2026-09-19: "a standard blue…
   easy to read"). The browser's own was a pale wash; this is Apple's system
   blue with white type, the one colour outside the palette whose only job is
   this. */
::selection{background:#007aff;color:#ffffff}
[data-theme="dark"] ::selection{background:#0a84ff;color:#ffffff}

/* clickable text lightens rather than changing colour — the only hover
   treatment for links anywhere on the site */
.footer a,
.panel-foot a,
.wordmark{transition:opacity 200ms var(--ease)}
@media (hover:hover){.footer a:hover,.wordmark:hover{opacity:.55}}.footer a.is-pressed,.wordmark.is-pressed{opacity:.55}
@media (hover:hover){.panel-foot a:hover{opacity:.33}}.panel-foot a.is-pressed{opacity:.33}   /* .6 of the links' own .55, as before */

/* pinned 20px under the carousel band at any viewport height — these signal
   that the strip scrolls, so they must stay with it rather than the window */
.arrows{
  position:fixed;
  right:var(--pad);
  top:calc(50vh + (var(--card-h) / 2) + var(--gap));
  display:flex;
  gap:10px;
  z-index:40;
  transition:opacity 300ms var(--ease);
}

/* The glyph is a BACKGROUND IMAGE, so it cannot inherit `color` and stroke
   black is baked into the file — on the dark theme's chip that was a black
   arrow on a dark grey circle. Swapped per theme, the same way --chevron is. */
/* OPTICAL, NOT LITERAL (2026-09-28, his ask). Every arrow here is the same
   drawing — a line with its head at one end — and centred by its BOX its
   weight sits 1.3px towards the head (measured in Safari: the ink's weighted
   centre, on the strip's arrows, Back and the badge). So each arrow sits 1px
   towards its tail, in the direction it is drawn: then it looks centred in
   its circle. The plus, the X and the share arrow are balanced already. */
.arrow{
  background-image:var(--arrow);
  background-repeat:no-repeat;
  background-position:calc(50% - 1px) 50%;   /* optical: 1px towards the tail (turned with .prev) */
  background-size:12px 12px;
}
.arrow.prev{transform:rotate(180deg)}
