/* ── Walk the Floor — series pages ────────────────────────────────────────────
   Additive, loaded only on /walk-the-floor/ pages after style.css.
   ZERO literal hex by law (spec §11.7): every colour is a var(--…), so these
   pages cannot drift, and design/check-brand.py watches this file.

   The look, per spec §11.5: a print floated on museum board. Plate ivory and
   page paper are the same colour, so a 1px hairline and one shadow step do all
   the separating. Square corners on every artwork — the site's 14px radius is
   UI grammar, and radius on a plate would crop its printed band.
   ────────────────────────────────────────────────────────────────────────── */

/* ── shared: artwork treatment ─────────────────────────────────────────────── */
.wtf-art {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0;                     /* never round a plate */
  box-shadow: 0 2px 10px rgba(30, 40, 38, .07);
  background: var(--paper);
}

/* ── ARCHIVE ───────────────────────────────────────────────────────────────── */

/* featured super-row: same grammar as the archive rows, scaled up */
.wtf-latest {
  display: grid;
  grid-template-columns: 22.5rem 1fr;
  column-gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.wtf-latest .wtf-art { box-shadow: 0 6px 22px rgba(30, 40, 38, .12); }  /* the only shadow-2 */
.wtf-latest-txt { padding-top: .25rem; }

.wtf-num {
  font-weight: 650;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-800);
}
.wtf-latest h2 {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: var(--fs-h3);
  line-height: 1.15;
  color: var(--ink);
  margin: .5rem 0 0;
}
/* the contrast line is the whole tease — one per episode, never explains the joke */
.wtf-line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 560;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin: .75rem 0 0;
}
.wtf-meta {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3, var(--ink-2));
  margin: .9rem 0 0;
}
.wtf-more {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--gold-800);
}

/* section boundary before the archive list */
.wtf-divide { margin: 4.5rem 0 2.5rem; text-align: left; }
.wtf-divide span {
  display: block;
  width: 70px;
  height: 2.5px;
  background: var(--gold-500);
  margin-bottom: 1.1rem;
}
.wtf-divide b {
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3, var(--ink-2));
}

/* the rows — hairline-separated, never boxed (boxes are the blog-roll tell) */
.wtf-row {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: 2rem;
  align-items: start;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.wtf-row:last-of-type { border-bottom: 1px solid var(--line); }
.wtf-row .wtf-art { transition: transform .15s ease, box-shadow .15s ease; }
.wtf-row h3 {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.1875rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  display: inline;
}
.wtf-row .wtf-num { margin-right: .5rem; }
.wtf-row .wtf-line { font-size: 1.0625rem; margin-top: .375rem; }
.wtf-row .wtf-meta { margin-top: .5rem; }

@media (hover: hover) {
  .wtf-row:hover .wtf-art {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(30, 40, 38, .12);
  }
  .wtf-row:hover h3 {
    text-decoration: underline;
    text-decoration-color: var(--gold-500);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
  }
}

/* ── EPISODE PAGE — the spread ─────────────────────────────────────────────── */
/* The arithmetic is the argument: a 520px plate stands 650px tall; a 300-word
   column runs ~700–850px. They balance, so both fit one laptop viewport. */
.wtf-spread {
  display: grid;
  grid-template-columns: minmax(0, 32.5rem) minmax(0, 1fr);
  grid-template-areas: "fig head" "fig body";
  column-gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.wtf-fig  { grid-area: fig; margin: 0; }
.wtf-head { grid-area: head; }
.wtf-body { grid-area: body; padding-top: 1.6rem; }

.wtf-head h1 {                       /* quiet by design — the plate is the headline */
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--ink);
  margin: .45rem 0 0;
}
.wtf-body p { margin: 0 0 1.05rem; max-width: 62ch; }
.wtf-body p:last-child { margin-bottom: 0; }

/* "Where this shows up" — the column's final block, inside the text flow */
.wtf-where {
  margin: 1.9rem 0 0;
  padding-left: .9rem;
  border-left: 2px solid var(--gold-500);
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 52ch;
}

/* read-next row */
.wtf-next {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}
.wtf-next a { color: var(--gold-800); font-weight: 600; }
.wtf-next-card {
  display: flex;
  gap: .9rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  max-width: 22rem;
}
.wtf-next-card img { width: 10.5rem; flex: none; }
.wtf-next-card span { font-family: var(--font-display); font-weight: 620; color: var(--ink); }
.wtf-follow {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--ink-2);
  margin: 2.2rem 0 0;
}

/* ── LANDING TEASER ────────────────────────────────────────────────────────── */
.wtf-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2rem;
}
.wtf-teaser-grid a { text-decoration: none; color: inherit; display: block; }
.wtf-teaser-grid .wtf-art { transition: transform .15s ease, box-shadow .15s ease; }
@media (hover: hover) {
  .wtf-teaser-grid a:hover .wtf-art {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(30, 40, 38, .12);
  }
}
.wtf-teaser-grid .wtf-line { font-size: 1rem; margin-top: .7rem; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 1023.98px) {
  /* stack: masthead, plate, column — markup order already gives this */
  .wtf-spread { grid-template-columns: 1fr; grid-template-areas: "head" "fig" "body"; }
  .wtf-fig { width: min(92vw, 35rem); margin-inline: auto; margin-block: 1.6rem 0; }
  .wtf-latest { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .wtf-latest .wtf-art { width: min(92vw, 22.5rem); }
}
@media (max-width: 720px) {
  .wtf-teaser-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* rows stay side-by-side — podcast-app compactness, not a heavy image feed */
  .wtf-row { grid-template-columns: clamp(5.5rem, 26vw, 12.5rem) 1fr; gap: 1rem; padding-block: 1.35rem; }
  .wtf-row h3 { font-size: 1.0625rem; }
  .wtf-row .wtf-line { font-size: .9375rem; }
  .wtf-next { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .wtf-next-card { max-width: 100%; }
}

/* ── the column: "the walk-through" (Fable's ruling, 2026-08-02) ──────────────
   The subject is what HAPPENS, not what he has seen. Beside the reader pointing
   at their floor, not across a table reporting on his.

   The bookends are the red thread made optically real: a marked entry (Fraunces
   italic), three or four plain stations, a marked exit (the diagnostic question)
   — with zero apparatus. Colour is for marks, not sentences: gold-500 fails AA
   as text, gold-800 is the link vocabulary, green means the actor. So the
   honouring is done by face and size.
   ────────────────────────────────────────────────────────────────────────── */

/* the opening problem statement — the "ojaaaa"
   NOTE the p. prefix: `.wtf-body p` above is (0,1,1) and would otherwise win the
   width, leading and margin off a bare `.wtf-open` (0,1,0). Same for .wtf-close. */
p.wtf-open {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(1.3125rem, 1.19rem + 0.5vw, 1.4375rem);
  line-height: 1.42;
  color: var(--ink);
  /* NOT 44ch. `ch` is the width of "0", and in Fraunces at 23px that resolves to
     920px — three times wider than this column, so it never binds. Measured: the
     grid sets the measure at 496px = ~32 characters, which is right for a display
     opener. This cap is a ceiling for wider containers, not the working measure. */
  max-width: 34rem;
  margin: 0 0 1.6rem;
}
p.wtf-open::after {                   /* the column's one gold mark */
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold-500);
  margin-top: 1.35rem;
}

/* Body. §11.6 says 60ch; measured, that resolves to ~534px and the grid column is
   496px, so the column is the binding measure at ~56 characters — inside the
   editorial norm. The cap stays as a ceiling for wide viewports. */
.wtf-body p { margin: 0 0 1.25rem; max-width: 60ch; line-height: 1.7; }

p.wtf-close { margin-top: 1.9rem; }   /* a breath before the question */
.wtf-q {                              /* the only inline italic, the exit bookend */
  font-family: var(--font-display);
  font-style: italic;
  /* 460, not 540: Fraunces carries far more weight than Inter at the same number,
     and at 540 beside 400 body the question read as BOLD — the one emphasis device
     §11.6 bans. The serif and the italic already mark it; weight would be a third
     signal saying the same thing. */
  font-weight: 460;
  font-size: 1.04em;
  /* the italic's last glyph leans into the following space and swallows it —
     measured: "green?" and "A number" read as one word. Optical, not content. */
  margin-right: 0.09em;
}

/* The plate rides along with the column.
   §11.6's new measure (60ch) and leading (1.7) made a 300-word column ~1300px
   against a 650px plate, so the spread's original arithmetic — plate and column
   roughly equal, both in one viewport — no longer holds and left half the figure
   column empty. Sticky restores the intent rather than the number: the drawing
   stays beside the prose the whole read, which is what a reader wants while the
   mechanism is being explained. Only where it genuinely fits under the sticky
   header (73px) — below that it returns to normal flow. */
@media (min-width: 1024px) and (min-height: 760px) {
  .wtf-fig { position: sticky; top: calc(73px + 1.5rem); align-self: start; }
}
