/* $WEEPI — the observation log
   Craft rule, from the moodboard: in every image that survives near-black you can POINT
   AT THE OBJECT MAKING THE LIGHT. Warmth applied as a post gradient is what makes art
   look pasted. So: the dark is big and soft, the warm is small and sharp, and the PLATE
   is always the light source. There is not one decorative gradient in this file. */

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body {
  margin: 0;
  background: var(--ink-abyss);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* the page sits on his ink, one step up from the abyss */
.sheet { background: var(--ink); }

img { max-width: 100%; display: block; }

::selection { background: var(--lime); color: var(--text-on-lime); }

a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lime); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--measure); }

/* ── mono instrument type ─────────────────────────────────────────── */
.mono {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum" 1, "zero" 1;
  color: var(--text-muted);
}
.micro { font-size: var(--fs-micro); letter-spacing: 0.18em; }

/* ── the vitrine: a specimen case / viewfinder reticle. Corner marks only,
      never a full box — a full box reads as a card, corner marks read as an
      instrument sighting on something. ─────────────────────────────── */
.vitrine { position: relative; }
.vitrine::before, .vitrine::after,
.vitrine > .vit-b::before, .vitrine > .vit-b::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--ink-line); pointer-events: none;
}
.vitrine::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.vitrine::after  { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.vitrine > .vit-b::before { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.vitrine > .vit-b::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ── masthead ─────────────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-2) var(--gutter);
  background: rgba(4, 22, 29, 0.88);   /* --ink-abyss #04161d at 88%. Explicit, not color-mix
                                          against transparent: if a theme redefines the var that
                                          resolves fully transparent and ships an unreadable bar. */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line-soft);
}
.masthead .brand { font-family: var(--ff-mono); font-size: var(--fs-mono);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.masthead nav { display: flex; gap: var(--sp-3); }
.masthead nav a { text-decoration: none; }

/* ── THE HIDE ─────────────────────────────────────────────────────── */
.hide { padding: var(--sp-7) 0 var(--sp-6); position: relative; }
.hide-grid { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 900px){ .hide-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-6); } }

.eyebrow { margin: 0 0 var(--sp-3); }
.eyebrow .dot { color: var(--ink-line); margin-inline: 0.5em; }

h1.hero {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
.hero-sub p { max-width: 32rem; margin: 0 0 var(--sp-3); color: var(--text-muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.btn {
  font-family: var(--ff-mono); font-size: var(--fs-mono);
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 0.75em 1.4em; border: 1px solid var(--ink-line); color: var(--text);
  background: transparent; cursor: pointer; transition: border-color .18s, color .18s;
}
.btn:hover { border-color: var(--lime); color: var(--lime); }

/* the hero plate — THE light source on the page. Warm, sharp, contained. */
.hero-plate { position: relative; padding: var(--sp-2); }
.hero-plate img { width: 100%; }

/* the instrument strip */
.strip {
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4);
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid var(--ink-line-soft);
}
.strip .cell { display: flex; gap: 0.6em; align-items: baseline; }
.strip .k { color: var(--text-faint); }
.strip .v { color: var(--text-muted); }
.strip .v[data-live="1"] { color: var(--lime); }

/* ── section furniture ────────────────────────────────────────────── */
section { scroll-margin-top: 5rem; }
.sec-head { padding: var(--sp-7) 0 var(--sp-4); }
.sec-head h2 {
  font-family: var(--ff-mono); font-size: var(--fs-mono);
  letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400;
  color: var(--text-muted); margin: 0 0 var(--sp-3);
}
.sec-head .lede { font-size: var(--fs-entry); font-family: var(--ff-display);
  line-height: 1.32; margin: 0 0 var(--sp-2); max-width: 30rem; font-weight: 400; }
.sec-head .legend { color: var(--text-faint); }

/* ── THE LOG ──────────────────────────────────────────────────────── */
/* A field log is a RECORD, not a slideshow. Entries stay dense and rhythmic:
   the plate is capped so an entry never eats a full viewport, and the text is
   centred against it so a short caption does not leave a column-height void. */
.log { display: grid; gap: var(--sp-5); padding-bottom: var(--sp-5); }
.entry { display: grid; gap: var(--sp-3); }
@media (min-width: 820px){
  .entry { grid-template-columns: 1fr 0.82fr; gap: var(--sp-5); align-items: center; }
  .entry:nth-child(even) .entry-plate { order: -1; }
  .entry-plate { max-width: 400px; justify-self: end; }
  .entry:nth-child(even) .entry-plate { justify-self: start; }
}
.entry-meta { display: flex; justify-content: space-between; gap: var(--sp-2);
  border-bottom: 1px solid var(--ink-line-soft); padding-bottom: 0.6em; margin-bottom: var(--sp-2); }
.entry-meta .idx { color: var(--text-faint); }
.entry-meta .when { text-align: right; color: var(--text-faint); }
.entry-meta .when b { display: block; font-weight: 400; color: var(--text-muted); }

.entry-cap {
  font-family: var(--ff-display); font-size: var(--fs-entry);
  line-height: 1.34; letter-spacing: -0.012em; margin: 0; text-wrap: pretty;
}
.entry-cap .ln { display: block; }
.trunc { color: var(--lime); font-family: var(--ff-mono); font-size: 0.8em;
  letter-spacing: 0.1em; white-space: nowrap; }
.trunc-note { color: var(--text-faint); margin-top: var(--sp-2); display: block; }
.entry-plate { position: relative; padding: var(--sp-1); }

/* ── THE PIVOT ────────────────────────────────────────────────────── */
.pivot { padding: var(--sp-7) 0; background: var(--ink-abyss); }
.pivot figure { margin: 0; }
.pivot .plate-wide { margin: var(--sp-4) 0 var(--sp-3); }
.pivot figcaption { color: var(--text-muted); }
.pivot .our-line { font-family: var(--ff-display); font-size: var(--fs-entry);
  line-height: 1.34; margin: var(--sp-3) 0 0; max-width: 32rem; }
.pivot .his-cap { font-family: var(--ff-display); color: var(--text); }

/* ── THE MOVE ─────────────────────────────────────────────────────── */
.move { padding: var(--sp-6) 0; }
.film { position: relative; max-width: 44rem; margin-inline: auto; padding: var(--sp-2); }
.film video { width: 100%; aspect-ratio: 1 / 1; background: var(--ink-abyss); display: block; }
/* the placeholder is deliberately SHORTER than the film it will be replaced by: an
   unfilmed page should read as a waiting instrument, not a viewport-sized hole. */
.film .film-ph { width: 100%; aspect-ratio: 16 / 6; background: var(--ink-abyss); display: block; }
.film .film-ph { display: grid; place-items: center; border: 1px solid var(--ink-line-soft); }
.film-note { text-align: center; margin-top: var(--sp-2); color: var(--text-faint); }

/* ── THE INSTRUMENT ───────────────────────────────────────────────── */
.instrument { padding: var(--sp-6) 0; }
.panel { border: 1px solid var(--ink-line-soft); }
.row { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3); border-bottom: 1px solid var(--ink-line-soft); align-items: baseline; }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--text-faint); }
.row .v { font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums slashed-zero; color: var(--text-muted);
  text-align: right; word-break: break-all; }
/* an instrument with no signal does NOT glow — blank is grey, live is lime */
.row .v[data-live="1"] { color: var(--lime); }
.panel-legend { margin-top: var(--sp-3); color: var(--text-muted); max-width: 34rem; }

/* ── THE PLATES ───────────────────────────────────────────────────── */
.plates { padding-bottom: var(--sp-7); }
.plate-grid { display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.plate figure { margin: 0; }
.plate img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.plate figcaption { margin-top: 0.55em; color: var(--text-faint); }

/* ── footer ───────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--ink-line-soft); padding: var(--sp-5) 0 var(--sp-6);
  background: var(--ink-abyss); }
.foot-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 760px){ .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.foot-links a, .foot-links span { text-decoration: none; }
.foot-links [aria-disabled="true"] { color: var(--text-faint); }
.disclaimer { color: var(--text-faint); margin-top: var(--sp-4); max-width: 30rem; }
.disclaimer p { margin: 0 0 0.35em; }

/* ── reveal: opacity+transform only, and NEVER animation-timeline
      (an unguarded scroll timeline falls back to the document timeline
      and flashes every reveal on load) ─────────────────────────────── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .rv { opacity: 1; transform: none; transition: none; } }

/* the log's closing beat — the silence is the point, so it gets air */
.log-close {
  font-family: var(--ff-display); font-size: var(--fs-entry); line-height: 1.34;
  color: var(--text-muted); margin: var(--sp-6) 0 0; padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-line-soft); max-width: 26rem;
}

/* mono WITHOUT the uppercase transform — for anything longer than a label.
   All-caps destroys word shape (ascenders/descenders), which is what we read by;
   uppercase is for short instrument labels only, never for a sentence. */
.mono-lc {
  font-family: var(--ff-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.02em;
  text-transform: none;
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--text-faint);
}

/* the film frame needs inset: children flush to a border reads as an unfinished box */
.film .film-ph { padding: var(--sp-5); gap: var(--sp-2); color: var(--text-faint); }

/* hero: less dead air above the eyebrow on a phone, where vertical space is the budget */
@media (max-width: 899px){
  .hide { padding-top: var(--sp-5); }
  .hide-grid { gap: var(--sp-4); }
}
/* instrument strip: the label must read as a label, not run into its value */
.strip .cell { gap: 0.9em; }
.strip .k { opacity: 0.72; }
.strip .k::after { content: ""; }
