/* ============================================================================
   SAMPLE D — COLOUR FIELD
   Prefixes: cf- (page), cfc- (chrome).

   THE DIRECTION IN ONE PARAGRAPH. The page is not a ground with things on it, it
   is a STACK OF ROOMS: five full-bleed slabs of pigment, one per section, and the
   reader descends them. The signature is the DENSITY LADDER — one column, then
   two, three, four, six — with the type stepping down and the ground darkening at
   every rung, so the page opens with one article filling the screen and closes
   with the whole magazine on one. Take the ladder away and it is five coloured
   sections in an arbitrary order, which is the test the design skill asks a
   signature to pass.

   ⚠ THE PALETTE WAS MEASURED BEFORE ANYTHING WAS DRAWN, and three of its findings
   are load-bearing. → HANDOFF §6j, and `node tools/contrast.mjs colourfield`

   1. Jade is 1.55:1 on chalk in BOTH directions, so jade is a TEXT colour in every
      deep room and a BLOCK on the chalk room, and a jade block always carries ink.
   2. A pale wash of a room cannot carry the room's identity: mixed toward chalk at
      any strength from 10% to 50% the three washes stay within 1.08:1 of each
      other. So every card is plain chalk and the FIELD does all the colour work.
      That was measured instead of built and looked at.
   3. The three rooms are within 1.23:1 of each other — hue-distinct and
      value-identical. That is why ONE text system is correct in all of them, and
      also why colour alone cannot tell a reader the room changed. The density
      ladder is the non-colour carrier, which is the locked brief validating itself.

   ⚠ NO DESCENDANT SELECTORS ANYWHERE. `build-etch.mjs` hoists each selector into
   its own style entry and silently drops compound descendant rules. Where a parent
   state has to reach a child, it travels as an INHERITED CUSTOM PROPERTY.
   → kit 01 §3, kit 03 §6c

   ⚠ EVERY TEXT ELEMENT INSIDE A ROOM DECLARES ITS COLOUR. Colour inheritance passes
   the COMPUTED value, so an element with no `color` of its own keeps whatever was
   resolved further up the tree and is untouched by a room re-pointing its tokens.
   That fault has bitten this project four times in four different disguises.
   → HANDOFF §6h-viii, kit 03 §5l
   ============================================================================ */

/* ---------------------------------------------------------------- palette --
   Hardcoded because ACSS is deferred until a direction wins (§6a). Six colours,
   inside the ACSS ceiling; every other value here is a DERIVED tint of one of the
   six and becomes a color-mix() at the token pass rather than a seventh colour. */
.cf-body {
  --cf-chalk: #F0ECE3;              /* base      raw-canvas warm chalk            */
  --cf-ink: #15171B;                /* neutral   the reading colour, and room 5   */
  --cf-clay: #6B3A2A;               /* primary   room 2                  hue  15  */
  --cf-indigo: #22306B;             /* secondary room 3                  hue 228  */
  --cf-moss: #374A1C;               /* tertiary  room 4                  hue  85  */
  --cf-jade: #3FD98E;               /* accent    the colour that travels hue 151  */

  /* derived, all measured. ink at 66% over chalk = 5.42:1 */
  --cf-mutedink: #5F5F5F;
  /* derived: the interface line on chalk, solved for the 3:1 floor, not guessed */
  --cf-linechalk: #898885;

  --cf-spine: 5.25rem;
  --cf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* the room a card sits in never changes the card: cards are chalk everywhere */
  --cf-cardbg: var(--cf-chalk);

  background: var(--cf-chalk);
  color: var(--cf-ink);
  font-family: Literata, Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-size: 100%;
  line-height: 1.55;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ⚠ The gutter and the lock go on the SAME element, and then nothing compensates.
   On the body, `scrollbar-gutter` computes on an element that never scrolls; a
   measured padding-right on top of a working gutter double-counts and slides every
   centred band by half the scrollbar. → kit 03 §5c */
html { scrollbar-gutter: stable; }
html[data-locked="true"] { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }

.cf-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cf-ink); color: var(--cf-chalk);
  font-family: Syne, 'Trebuchet MS', sans-serif; font-weight: 700;
  padding: 0.75rem 1.25rem; text-decoration: none;
}
.cf-skip:focus { left: 0.5rem; top: 0.5rem; }

/* ⚠ Bounds the full-bleed blooms without creating a scroll container, which is the
   one overflow pairing the spec permits. `hidden` here would kill position: sticky
   and `overflow-x` alone on a wide element is the other half of the same trap.
   → kit 03 §5q-i */
.cf-main { overflow-x: clip; overflow-y: visible; display: block; }
/* The phone bar is fixed, so the document owes it its own height. Relying on the
   hero's own padding to clear it leaves the margin at the mercy of a clamp. */
@media (width < 64rem) { .cf-main { padding-top: 4.5rem; } }

/* ---------------------------------------------------------------- the band --
   One measure for every room's content. The FIELD is full-bleed and runs under the
   spine, uninterrupted, which is the whole subject of the direction; only the
   content is inset far enough to clear it. */
.cf-band {
  position: relative; z-index: 1;
  width: 100%; max-width: 84rem; margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
@media (width >= 64rem) {
  .cf-band { max-width: calc(84rem + var(--cf-spine)); padding-left: calc(var(--cf-spine) + clamp(1.25rem, 4vw, 3rem)); }
}

/* ---------------------------------------------------------------- the rooms --
   Each room re-points one small token set: the field, the foreground on it, the
   muted foreground and the interface line. Every muted value here is the measured
   one from tools/contrast.mjs, not a guess, and every one clears 4.5:1. */
.cf-room {
  position: relative;
  overflow: clip;
  background: var(--cf-field);
  color: var(--cf-on);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.cf-room--chalk  { --cf-field: #F0ECE3; --cf-on: #15171B; --cf-onmuted: #5F5F5F; --cf-line: #898885; }
.cf-room--clay   { --cf-field: #6B3A2A; --cf-on: #F0ECE3; --cf-onmuted: #C8B7AB; --cf-line: #AA8E81; }
.cf-room--indigo { --cf-field: #22306B; --cf-on: #F0ECE3; --cf-onmuted: #B2B4BF; --cf-line: #767D9C; }
.cf-room--moss   { --cf-field: #374A1C; --cf-on: #F0ECE3; --cf-onmuted: #B9BBA7; --cf-line: #8A9376; }
.cf-room--ink    { --cf-field: #15171B; --cf-on: #F0ECE3; --cf-onmuted: #AEACA7; --cf-line: #646463; }

/* THE LIVING ELEMENT, one per room, at whisper level. A soft bloom of the room's own
   light that drifts as the reader moves through the room, so the movement has a
   cause rather than being decoration that animates on a timer. It is a radial
   gradient with no edge: a hard-edged shape in a wide box is always cut flat by the
   clip and reads as a lump. → HANDOFF §6h-xx */
.cf-bloom {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 0; width: 140vw; height: 120%;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
}
/* ⚠⚠ THE DEEP ROOMS BLOOM IN INK, NOT IN CHALK, AND THAT IS A CONTRAST DECISION
   BEFORE IT IS AN AESTHETIC ONE. The first build washed each deep field with chalk,
   which LIGHTENS the ground toward the muted text sitting on it: measured at the
   bloom's own peak, clay's muted meta fell to 3.48:1, moss's to 3.66:1 and indigo's
   to 4.48:1, all of them from values that pass comfortably on the untinted field.
   A decorative layer is a real change of ground, which is §5a's rule arriving
   through the back door, and the peak sweeps across the room because the bloom
   parallaxes.
   Solving it the other way round was worse: holding the chalk wash and restrengthening
   the muted values put clay's at 86% of chalk, which is not muted any more. Blooming
   the room in its own DARKER pigment moves contrast the safe direction for every
   element at once, and it reads as depth in the field rather than as a grey haze,
   which is what a colour field actually does. Only the chalk room keeps a jade bloom,
   because there the accent is what the light should be.
   Measured at peak: body 14.03 / 8.96 / 8.34 / 9.22 / 11.87, muted 4.99 / 5.44 / 4.77
   / 5.55 / 6.17. All five are permanent rows in tools/contrast.mjs. */
.cf-bloom--chalk  { background: radial-gradient(58% 46% at 22% 30%, rgba(63, 217, 142, 0.16), rgba(63, 217, 142, 0) 70%); }
.cf-bloom--clay   { background: radial-gradient(54% 44% at 78% 24%, rgba(21, 23, 27, 0.16), rgba(21, 23, 27, 0) 70%); }
.cf-bloom--indigo { background: radial-gradient(56% 46% at 18% 70%, rgba(63, 217, 142, 0.12), rgba(63, 217, 142, 0) 70%); }
.cf-bloom--moss   { background: radial-gradient(54% 44% at 82% 34%, rgba(21, 23, 27, 0.16), rgba(21, 23, 27, 0) 70%); }
.cf-bloom--ink    { background: radial-gradient(60% 48% at 28% 66%, rgba(63, 217, 142, 0.13), rgba(63, 217, 142, 0) 72%); }

/* ---------------------------------------------------------------- icons --
   16x16, drawn by hand, rendered at 1em on currentColor, so they never need a
   second colour value and never fall out of step with a type change. The fill is an
   inherited custom property rather than a descendant rule, which is what lets the
   saved bookmark fill its glyph without `.cf-bm[aria-pressed] .cf-ico`. */
.cf-ico {
  width: 1em; height: 1em; flex: none;
  fill: var(--cf-icofill, none);
  stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.13em;
}

/* ---------------------------------------------------------------- chrome --
   THE SPINE. A column, not a bar. → the note at the top of ColourField.html */
.cfc-nav { position: relative; z-index: 90; }

/* ⚠ ABOVE THE SCRIM, NOT UNDER IT. A scrim that is a later sibling paints over
   everything earlier in the chrome, so at z-index 92 the spine was dimmed and blurred
   the moment the menu opened - which loses the ladder the panel was moved aside to
   keep, and leaves the control that opened the menu unusable as the way out. The
   spine sits above both the scrim (94) and the panel (95); they do not overlap
   anyway, because the panel starts at the spine's right edge. → HANDOFF §6h-ii */
.cfc-spine {
  position: fixed; z-index: 96; left: 0; top: 0; bottom: 0; width: var(--cf-spine);
  display: none;
  flex-direction: column; align-items: center; justify-content: space-between;
  padding-block: 1.25rem;
  color: #F0ECE3;
  font-family: Syne, 'Trebuchet MS', sans-serif;
}
/* ⚠ The spine floats over whatever room is behind it, and every deep room carries
   chalk while the chalk room carries ink. That is TWO states, not five, because the
   rooms are value-identical by construction, so one attribute with two values is
   the whole mechanism. → the palette note at the top of this file */
.cfc-spine[data-onlight="true"] { color: #15171B; }

@media (width >= 64rem) { .cfc-spine { display: flex; } }

/* ⚠⚠ WHILE THE MENU IS OPEN THE SPINE TAKES THE PANEL'S OWN GROUND, and this is a
   contrast fix rather than a flourish. The spine is deliberately transparent so the
   field shows through it - which means that once the scrim paints behind it, the
   spine's ground is the SCRIM, and the ink wordmark that was correct on chalk is
   suddenly dark type on a dark wash. Nothing errors, the palette is untouched, and
   the mark is simply hard to read at the one moment the reader is looking for the
   way out. Same shape as the byline that was given a theme token where the correct
   value varied by block. → HANDOFF §6h-ix, kit 03 §5n
   Declared AFTER the data-onlight rule: both are (0,2,0), so source order decides. */
.cfc-spine[data-menu="true"] { background: #15171B; color: #F0ECE3; }

/* ⚠⚠ THE SPINE'S HEIGHT BUDGET, AND IT IS ARITHMETIC. Measured, not estimated: the
   first version of this comment carried a budget I had reasoned out rather than read off
   the page, and every number in it was wrong. The real ones, at these sizes:

     padding 40 + mark 32 + gap 8 + names 210 + ladder 236 + controls 136 = 662

   ⚠ THE NAMES BLOCK IS A ROW, NOT A COLUMN. Stacked, the wordmark (210px) and the
   tagline (195px) cost 413px together and the column needed 930px, so the Sections
   control sat below the fold on every screen under 950px tall - unreachable, because a
   fixed element cannot be scrolled to. Side by side the pair costs the height of the
   TALLER of the two, which is the whole saving.

   ⚠ And nothing here was caught by a check until one was written for it. The ellipsis
   check asks whether TEXT is truncated and the collision check asks whether two controls
   overlap EACH OTHER; a column that is simply taller than the screen passes both, with no
   overflow, no clipping and no collision. fit.mjs now asserts that every control in fixed
   chrome is inside the viewport. → kit 07 §5h

   ⚠⚠ NOTHING IN THE SPINE MAY SHRINK, AND NOTHING IS CAPPED WITH AN ELLIPSIS.
   The first build gave the wordmark and the tagline a max-height plus
   text-overflow: ellipsis, exactly as the Deck's pill guards its own width. In a
   COLUMN of flex items that is the wrong instrument twice over: the groups shrank,
   the vertical text overflowed the reduced box, and the spine read
   CHRISTIAN T... over ENGAGE, ENTHRALL, E... - the truncated-masthead fault of
   §6h-vi, in the one axis fit.mjs was not testing (it compared scrollWidth against
   clientWidth, and vertical text overflows on the BLOCK axis, so it passed).
   The fix is the same one §6h-vi reached: make the height ARITHMETIC and degrade
   explicitly, rather than let a cap decide at runtime what to cut.

   degrade explicitly, rather than let a cap decide at runtime what to cut. */
.cfc-nav__logo {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: inherit; text-decoration: none; width: 100%;
  flex: none;
}
.cfc-nav__mark { display: block; width: 2rem; height: 2rem; }
/* The wordmark runs UP the spine. `sideways-lr` is the honest way to set vertical
   type; the transform fallback is what actually ships in engines that lack it, and
   both put the reading direction bottom-to-top, which is the convention for a spine
   (and for a book's). */
/* The two lines run in PARALLEL up the spine. `align-items: flex-end` is what puts
   both texts on the same starting line: vertical-rl rotated 180 reads bottom to top,
   so their shared edge is the bottom one. */
.cfc-nav__names { display: flex; flex-direction: row; align-items: flex-end; gap: 0.3rem; flex: none; }
.cfc-nav__word {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  color: inherit; white-space: nowrap; flex: none;
}
.cfc-nav__tag {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: inherit; white-space: nowrap; flex: none;
}
/* The explicit degradation, measured at each step and in the order that loses the
   least. The Sections word goes first because the burger carries the meaning on its
   own and the accessible name moves to the button's aria-label; the whole lockup goes
   next, leaving the device, which is the same argument that made the monogram survive
   as the favicon. Side by side, hiding the tagline alone would save nothing at all,
   because the wordmark is the taller of the two. */
@media (height < 46rem) { .cfc-nav__togglelabel { display: none; } }
@media (height < 42rem) { .cfc-nav__names { display: none; } }

/* THE ROOM LADDER, the signature made navigable. */
.cfc-ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; align-items: center; flex: none; }
.cfc-ladder__item { display: block; }
.cfc-ladder__link {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0;
  color: inherit; text-decoration: none;
  position: relative;
  --cf-sw: 0.75rem; --cf-tip: 0;
}
.cfc-ladder__link:hover, .cfc-ladder__link:focus-visible { --cf-tip: 1; }
/* The current rung grows. Driven by an attribute the JS writes, and READ here, so
   the state is not a feature that does not exist. → kit 03 §7d */
.cfc-ladder__link[data-here="true"] { --cf-sw: 1.5rem; }
.cfc-ladder__swatch {
  display: block; width: var(--cf-sw); height: var(--cf-sw);
  outline: 1px solid currentColor; outline-offset: 2px;
  transition: width 260ms var(--cf-ease), height 260ms var(--cf-ease);
}
.cfc-ladder__swatch--chalk  { background: #F0ECE3; }
.cfc-ladder__swatch--clay   { background: #6B3A2A; }
.cfc-ladder__swatch--indigo { background: #22306B; }
.cfc-ladder__swatch--moss   { background: #374A1C; }
.cfc-ladder__swatch--ink    { background: #15171B; }
.cfc-ladder__name {
  position: absolute; left: 100%; margin-left: 0.5rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; pointer-events: none;
  background: #15171B; color: #F0ECE3; padding: 0.3rem 0.55rem;
  opacity: var(--cf-tip, 0);
  transition: opacity 180ms var(--cf-ease);
}

.cfc-nav__end { display: flex; flex-direction: column; align-items: center; gap: 0.125rem; flex: none; }
.cfc-nav__icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; font-size: 1.05rem;
  color: inherit; text-decoration: none;
}
.cfc-nav__toggle {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0.5rem 0.25rem;
  background: none; border: 0; cursor: pointer;
  color: inherit; font-family: inherit; font-size: 1.05rem;
  --cf-rot: 0deg;
}
.cfc-nav__toggle[aria-expanded="true"] { --cf-rot: 90deg; }
.cfc-nav__togglelabel {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: inherit;
}
.cfc-nav__toggleicon { transform: rotate(var(--cf-rot, 0deg)); transition: transform 240ms var(--cf-ease); }

/* THE PHONE BAR. Below 64rem the spine becomes a slim bar at the TOP, not the
   bottom: the bottom bar is C's answer and repeating it is exactly the shared
   pattern that carry-over rule 15 forbids. */
.cfc-bar {
  position: fixed; z-index: 92; inset: 0 0 auto 0;
  /* The bar deliberately stays UNDER the scrim: below 64rem the panel is full width
     and covers it, so the panel's own close control is the way out there. */
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem clamp(0.6rem, 2.5vw, 1.25rem);
  background: #F0ECE3; color: #15171B;
  border-bottom: 1px solid var(--cf-linechalk);
  transition: transform 260ms var(--cf-ease);
}
@media (width >= 64rem) { .cfc-bar { display: none; } }
.cfc-bar[data-onlight="false"] { background: #15171B; color: #F0ECE3; border-bottom-color: #646463; }

/* ⚠ EVERY GROUP IN THE BAR IS flex: none AND THE WORDMARK NEVER WRAPS. Left to
   wrap, "CHRISTIAN TRENDS" took two lines at 390px, which both doubled the bar's
   height and ate the width the Sections control needed: the label rendered as
   "SECTION" cut at the viewport edge. The page did not overflow and nothing
   collided in the checked list, so only looking at it found it. */
.cfc-bar__logo { display: flex; align-items: center; gap: 0.4rem; color: inherit; text-decoration: none; margin-right: auto; flex: none; min-width: 0; min-height: 2.75rem; }
.cfc-bar__mark { display: block; width: 1.6rem; height: 1.6rem; flex: none; }
.cfc-bar__word { font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: inherit; white-space: nowrap; }
/* The room indicator on a phone: five ticks, the current one filled. Same information
   as the desktop ladder, at the size a phone can give it. */
.cfc-bar__ticks { display: flex; gap: 0.22rem; align-items: center; flex: none; }
/* The narrowest phones give the width to the wordmark and the control instead. The
   ladder is still reachable through the menu, so nothing becomes unavailable. */
@media (width < 26rem) { .cfc-bar__ticks { display: none; } }
.cfc-bar__tick { display: block; width: 0.5rem; height: 0.5rem; outline: 1px solid currentColor; }
.cfc-bar__tick[data-here="true"] { background: currentColor; }

.cfc-bar__toggle {
  display: flex; align-items: center; gap: 0.35rem; flex: none;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.5rem;
  background: none; border: 0; cursor: pointer; color: inherit;
  font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
/* ⚠ MEASURED, NOT GUESSED. Syne at 800 sets "CHRISTIAN TRENDS" 212px wide, which with
   the mark and the labelled control needs 385px of bar before anything else. Below 32rem
   the control keeps its icon and loses its word; the accessible name moves to the
   button's aria-label so nothing is lost to a screen reader. */
.cfc-bar__togglelabel { display: inline; }
@media (width < 32rem) { .cfc-bar__togglelabel { display: none; } }

/* ---------------------------------------------------------------- mega panel --
   Arrives from the LEFT, out of the spine, rather than dropping from a bar that is
   not there. It uses a TRANSFORM rather than a clip-path wipe, which also means the
   §6f-v trap (a clip-path deletes the element's own box-shadow, and that shadow is
   what makes a panel read as an overlay) cannot apply here: a transform does not
   clip. The shadow is real and load-bearing, because on a wide screen there is page
   beside the panel. */
.cfc-mega {
  position: fixed; z-index: 95; left: 0; top: 0; bottom: 0;
  width: min(100%, 62rem);
  /* The panel slides out OF the spine rather than over it, so the ladder stays
     visible and the reader keeps the one piece of furniture that says where they
     are. Below 64rem there is no spine, so it takes the full width. */
  background: #15171B; color: #F0ECE3;
  box-shadow: 0 0 60px -10px rgba(0, 0, 0, 0.7);
  transform: translateX(-101%);
  overflow-y: auto; overflow-x: hidden;
  /* Exit timing on the base rule, entrance timing on the open state: a transition
     runs with the timing declared on the state it is heading TO, so this gets
     "exits at 60% of the entrance" with no JS and no second class. → kit 08 §4a */
  --cf-slide: -1.5rem; --cf-dur: 190ms;
  transition: transform var(--cf-dur) var(--cf-ease);
  scrollbar-width: thin; scrollbar-color: #3FD98E transparent;
}
.cfc-mega[data-open="true"] { transform: translateX(0); --cf-slide: 0rem; --cf-dur: 320ms; }
@media (width >= 64rem) { .cfc-mega { left: var(--cf-spine); width: min(calc(100% - var(--cf-spine)), 62rem); } }

.cfc-mega__close {
  position: absolute; z-index: 2; top: 0.75rem; right: 0.75rem;
  width: 2.75rem; height: 2.75rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid #646463; cursor: pointer;
  color: #F0ECE3; font-size: 1.05rem;
  transition: background-color 180ms var(--cf-ease), color 180ms var(--cf-ease);
}
.cfc-mega__close:hover, .cfc-mega__close:focus-visible { background: #3FD98E; color: #15171B; border-color: #3FD98E; }
.cfc-mega[hidden] { display: none; }

.cfc-mega__inner {
  display: grid; gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-top: 4.5rem;
  transform: translateX(var(--cf-slide, -1.5rem));
  transition: transform var(--cf-dur, 190ms) var(--cf-ease);
}
@media (width >= 64rem) { .cfc-mega__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); } }

.cfc-mega__cols { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: 1fr; }
@media (width >= 34rem) { .cfc-mega__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cfc-mega__col { min-width: 0; }
.cfc-mega__grouptitle {
  font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #3FD98E; margin: 0 0 0.6rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid #646463;
}
.cfc-mega__list { list-style: none; margin: 0; padding: 0; }
.cfc-mega__link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  padding: 0.42rem 0; min-height: 2.2rem;
  font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 1rem; font-weight: 600;
  color: #F0ECE3; text-decoration: none;
}
.cfc-mega__link:hover, .cfc-mega__link:focus-visible { color: #3FD98E; }
.cfc-mega__count { font-family: Literata, Georgia, serif; font-size: 0.75rem; color: #AEACA7; }

.cfc-mega__side { min-width: 0; border-top: 1px solid #646463; padding-top: 1.25rem; }
@media (width >= 64rem) { .cfc-mega__side { border-top: 0; border-left: 1px solid #646463; padding-top: 0; padding-left: clamp(1.25rem, 3vw, 2rem); } }
.cfc-mega__issue { display: block; }
.cfc-mega__issuelabel {
  font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: #3FD98E; margin: 0 0 0.75rem;
}
/* ⚠ The real ratio of the supplied artwork, not 3/4: a magazine cover cropped by 4%
   is a misrepresented cover. → HANDOFF §6f-vii */
.cfc-mega__issueimg { display: block; width: 8.5rem; height: auto; aspect-ratio: 866 / 1110; object-fit: cover; }
.cfc-mega__issueline { font-size: 0.75rem; color: #AEACA7; margin: 0.6rem 0 0.9rem; }
.cfc-mega__issuelinks { list-style: none; margin: 0; padding: 0; }
.cfc-mega__issuelink {
  display: block; padding: 0.3rem 0; min-height: 2rem;
  font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.875rem; font-weight: 600;
  color: #F0ECE3; text-decoration: none;
}
.cfc-mega__issuelink:hover, .cfc-mega__issuelink:focus-visible { color: #3FD98E; }
/* Deliberately the quiet group, per the client's own wording. #AEACA7 on ink is
   7.91:1, so it is muted rather than illegible. */
.cfc-mega__about { list-style: none; margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid #646463; }
.cfc-mega__aboutlink {
  display: block; padding: 0.28rem 0; min-height: 1.9rem;
  font-size: 0.8125rem; color: #AEACA7; text-decoration: none;
}
.cfc-mega__aboutlink:hover, .cfc-mega__aboutlink:focus-visible { color: #F0ECE3; }

.cfc-scrim {
  position: fixed; z-index: 94; inset: 0;
  background: rgba(10, 11, 13, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 190ms var(--cf-ease);
}
.cfc-scrim[data-open="true"] { opacity: 1; transition-duration: 320ms; }
.cfc-scrim[hidden] { display: none; }

/* ---------------------------------------------------------------- shared bits -- */
.cf-head {
  display: grid; gap: 0.5rem 1.5rem; align-items: end;
  grid-template-columns: 1fr; margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
@media (width >= 50rem) { .cf-head { grid-template-columns: minmax(0, 1fr) auto; } }
.cf-head__title {
  font-family: Syne, 'Trebuchet MS', sans-serif; font-weight: 800;
  letter-spacing: -0.02em; line-height: 0.95; margin: 0;
  color: var(--cf-on);
  text-wrap: balance;
}
/* THE TYPE HALF OF THE LADDER: the section title steps down at every rung, so the
   page gets quieter and denser together rather than only denser. */
.cf-head__title--two   { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.cf-head__title--three { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.cf-head__title--four  { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cf-head__title--six   { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cf-head__blurb { grid-column: 1; margin: 0; font-size: 0.9375rem; color: var(--cf-onmuted); }
.cf-head__all {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem;
  font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cf-on); text-decoration: none;
  border-bottom: 2px solid var(--cf-line);
  align-self: end; justify-self: start;
}
@media (width >= 50rem) { .cf-head__all { grid-column: 2; grid-row: 1 / span 2; justify-self: end; } }
.cf-head__all:hover, .cf-head__all:focus-visible { border-bottom-color: var(--cf-on); }

.cf-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--cf-ink); color: var(--cf-chalk); text-decoration: none;
  border: 0;
  --cf-go: 0;
  transition: background-color 200ms var(--cf-ease), color 200ms var(--cf-ease);
}
.cf-btn:hover, .cf-btn:focus-visible { --cf-go: 1; }
.cf-btn__label { display: inline-block; }
/* ⚠ `.cf-btn:hover .cf-btn__arrow` is a descendant selector and would be dropped
   silently at paste time. The state travels down as an inherited custom property
   instead, and both selectors stay flat. → kit 03 §6c */
.cf-btn__arrow { transform: translate(calc(var(--cf-go, 0) * 2px), calc(var(--cf-go, 0) * -2px)); transition: transform 240ms var(--cf-ease); }
/* Jade block, ink label: 9.85:1, and the only legal label the palette allows on it. */
.cf-btn--jade { background: var(--cf-jade); color: var(--cf-ink); }
.cf-btn--jade:hover, .cf-btn--jade:focus-visible { background: var(--cf-chalk); color: var(--cf-ink); }

/* ---------------------------------------------------------------- the card --
   ⚠ A CARD IS NOT ONE LINK, so there is no whole-card hover anywhere on this page.
   The title goes to the article, the category to the category archive and the author
   to the author archive, and a whole-card lift would be a promise that the rectangle
   is one target. Each of the three carries its own affordance instead, and the
   wrapper is a plain element that paints. → HANDOFF §6h-xii, kit 03 §5r */
.cf-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--cf-cardbg); color: var(--cf-ink);
  padding: clamp(0.9rem, 1.8vw, 1.25rem);
}
.cf-card__imglink { display: contents; }
.cf-card__img { display: block; width: 100%; height: auto; object-fit: cover; }

.cf-card__cat { margin: 0 0 0.5rem; }
.cf-card__title { margin: 0 0 0.5rem; font-family: Syne, 'Trebuchet MS', sans-serif; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.cf-card__stand { margin: 0 0 0.9rem; font-size: 0.9375rem; line-height: 1.5; color: var(--cf-mutedink); }

/* The category chip. ⚠ Jade is a BLOCK on chalk and never text on it (1.55:1), so
   the rest state is a jade block with an ink label and the hover swaps the same
   pair the other way. One measured pair, used in both directions. */
.cf-cardchip {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--cf-jade); color: var(--cf-ink); text-decoration: none;
  transition: background-color 200ms var(--cf-ease), color 200ms var(--cf-ease);
}
.cf-cardchip:hover, .cf-cardchip:focus-visible { background: var(--cf-ink); color: var(--cf-jade); }
.cf-cardchip--onchalk { background: var(--cf-jade); color: var(--cf-ink); }
/* On the ink field the chip has no card under it, so jade becomes TEXT (9.85:1) and
   the hover gives it the block. The rule inverts because the ground did. */
.cf-cardchip--onfield { background: none; color: var(--cf-jade); padding-inline: 0; }
.cf-cardchip--onfield:hover, .cf-cardchip--onfield:focus-visible { background: var(--cf-jade); color: var(--cf-ink); padding-inline: 0.55rem; }

/* ⚠ The animated underline is a BACKGROUND on an INLINE SPAN inside the link, not
   `text-decoration` and not on the link itself. Only a background can animate from
   zero width, and only an inline child hugs the text: on a block link the gradient
   spans the whole column, so a short headline gets an underline half again its
   length. `box-decoration-break: clone` is what gives every wrapped line its own
   background at its own width. → kit 03 §5u */
.cf-cardtitle { --cf-u: 0%; color: var(--cf-ink); text-decoration: none; }
.cf-cardtitle:hover, .cf-cardtitle:focus-visible { --cf-u: 100%; }
.cf-cardtitle--onfield { color: var(--cf-on); }
.cf-cardtitle--front { color: var(--cf-ink); }
.cf-cardline {
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%;
  background-size: var(--cf-u) 2px;
  transition: background-size 320ms var(--cf-ease);
}

/* ---------------------------------------------------------------- meta rows --
   ⚠ INLINE FLOW, never flex. Flex aligns BOXES and type wants BASELINES, and one
   flex `gap` cannot tell "icon to its own value" from "one pair to the next", so
   every item ends up the same distance apart and the pairs stop reading as pairs.
   `vertical-align` on the icon does the baseline work for free.
   → HANDOFF §6f-ii, carry-over rule 10 */
.cf-m { margin: auto 0 0; font-size: 0.8125rem; line-height: 1.9; color: var(--cf-mutedink); }
.cf-m--front { font-size: 0.875rem; }
.cf-m--onfield { color: var(--cf-onmuted); }
.cf-ico--meta { margin-right: 0.3rem; }
.cf-m__t { color: inherit; margin-right: 1rem; }
.cf-m__t--who { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; margin-right: 1rem; }
.cf-m__t--who:hover, .cf-m__t--who:focus-visible { text-decoration-style: solid; }
.cf-m__t--whofield { color: inherit; }

/* THE BOOKMARK SITS IN THE FLOW, as the last item of the meta row.
   ⚠ That is a deliberate departure from both other live samples and it is the
   cheapest correct answer. B floats it in an image corner and C cuts an
   inverted-radius notch for it; C's notch made the control protrude 9px, which then
   needed clearance in six container types, cross-axis padding on the scroller, a
   floor under five separate gaps, and four rounds of review to settle (§6h-x, §6h-xi,
   §6h-xvii). A control in normal flow cannot overlap text, cannot be clipped and
   needs no clearance anywhere, because nothing sticks out. It also costs no vertical
   space, which a density ladder cares about. */
/* ⚠ THE HIT AREA IS EXPANDED, NOT THE ICON. A 44px drawn control beside 13px meta
   text would dominate a row whose whole job is to be quiet, so the button stays 30px
   and a transparent pseudo-element carries the target out to 44. Safe here precisely
   because the bookmark is the LAST item in the row and the thing it reaches back over
   is the reading time, which is text rather than a control. → kit 03 §8 */
.cf-bm {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; padding: 0; vertical-align: -0.55rem;
  background: none; border: 1px solid var(--cf-line); cursor: pointer;
  color: var(--cf-mutedink); font-size: 0.875rem;
  transition: background-color 180ms var(--cf-ease), color 180ms var(--cf-ease), border-color 180ms var(--cf-ease);
}
.cf-bm--onfield { color: var(--cf-onmuted); border-color: var(--cf-line); }
.cf-bm:hover, .cf-bm:focus-visible { color: var(--cf-ink); border-color: var(--cf-ink); }
.cf-bm--onfield:hover, .cf-bm--onfield:focus-visible { color: var(--cf-on); border-color: var(--cf-on); }
/* Saved. ⚠ Jade cannot be a glyph colour on chalk (1.55:1), so the saved state is a
   jade BLOCK with an ink glyph, which is the palette's rule and also reads on every
   field without a per-room variant. The fill travels as an inherited custom
   property because `.cf-bm[aria-pressed] .cf-ico` is a descendant selector. */
.cf-bm[aria-pressed="true"] { background: var(--cf-jade); border-color: var(--cf-jade); color: var(--cf-ink); --cf-icofill: currentColor; }
/* ⚠ 44px hit target without growing the drawn control. */
.cf-bm::after { content: ""; position: absolute; inset: -0.5rem; }
/* On a touch pointer the drawn control grows too: there is no cursor to aim with. */
@media (pointer: coarse) { .cf-bm { width: 2.75rem; height: 2.75rem; vertical-align: -0.95rem; } .cf-bm::after { inset: 0; } }

/* ================= RUNG 1 · CHALK · ONE COLUMN ================= */
.cf-front { padding-block: clamp(4.5rem, 10vw, 8rem); }
.cf-front__inner { position: relative; z-index: 1; width: 100%; max-width: 84rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (width >= 64rem) {
  .cf-front__inner { max-width: calc(84rem + var(--cf-spine)); padding-left: calc(var(--cf-spine) + clamp(1.25rem, 4vw, 3rem)); }
}
.cf-front__fig { margin: 0; }
.cf-front__img { display: block; width: 100%; height: auto; aspect-ratio: 24 / 9; object-fit: cover; }
.cf-front__copy { display: grid; gap: 0.75rem; justify-items: start; }
.cf-front__cat { margin: 0; }
/* ⚠ NO MEASURE CAP ON A HEADLINE. Display type is short by nature and a cap invents
   a ragged edge unrelated to the column. → HANDOFF §6f-iii, kit 03 §7b */
.cf-front__title {
  margin: 0;
  font-family: Syne, 'Trebuchet MS', sans-serif; font-weight: 800;
  font-size: clamp(2.15rem, 7vw, 6rem); line-height: 0.94; letter-spacing: -0.03em;
  color: var(--cf-ink); text-wrap: balance;
}
.cf-front__stand { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.375rem); line-height: 1.45; color: var(--cf-mutedink); }

/* THE VERTICAL HALF OF THE LADDER. The rooms tighten as they densify, so the page
   gets closer-packed in its rhythm as well as in its column count. Room 1 is the
   most open thing on the page and room 5 the tightest; without this the ladder is
   only a column count and the rooms all breathe the same. */
.cf-mag   { padding-block: clamp(3.5rem, 8vw, 7rem); }
.cf-think { padding-block: clamp(3rem, 6.5vw, 5.75rem); }
.cf-live  { padding-block: clamp(2.5rem, 5.5vw, 4.75rem); }
.cf-also  { padding-block: clamp(2.25rem, 4.5vw, 4rem); }

/* ================= RUNG 2 · CLAY · TWO COLUMNS ================= */
.cf-mag__grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: 1fr; align-items: start; }
.cf-mag__feature { padding: clamp(1rem, 2vw, 1.4rem); }
.cf-mag__featureimg { aspect-ratio: 16 / 10; height: auto; margin-bottom: 0.9rem; }
/* ⚠ THE FEATURE MATCHES THE LIST BESIDE IT, AND THE IMAGE TAKES THE SLACK.
   `align-items: start` left the feature only as tall as its own content, so the clay
   field showed under it wherever the four rows opposite ran longer. Stretching the row
   fixes the height, but on its own it would just put that space INSIDE the card as a
   band of empty chalk between the standfirst and the byline, which is the same hole
   moved indoors. The image absorbs it instead: `flex: 1 1 0` on a replaced element in
   a column flex container makes it the thing that grows, and `object-fit: cover`
   means growing re-crops rather than distorts. The aspect ratio has to be released in
   this band, because a ratio and a flexed height are two answers to one question. */
@media (width >= 52rem) {
  .cf-mag__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
  .cf-mag__featureimg { aspect-ratio: auto; flex: 1 1 0; min-height: 15rem; object-fit: cover; }
}
.cf-mag__featuretitle { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cf-mag__featurestand { font-size: 1rem; }
.cf-mag__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(1.25rem, 2.5vw, 2rem); }
.cf-mag__row { display: grid; grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); gap: 1rem; align-items: start; background: var(--cf-cardbg); color: var(--cf-ink); padding: clamp(0.75rem, 1.5vw, 1rem); }
.cf-mag__rowimglink { display: block; }
.cf-mag__rowimg { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.cf-mag__rowcopy { min-width: 0; display: flex; flex-direction: column; }
.cf-mag__rowtitle { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

/* ================= the ad slots =================
   ⚠ On chalk, deliberately OUTSIDE the rotating colour system. Kit 03 §7h says a
   full-width horizontal band in a gap reads as a page split, and this is the one
   place on the page where that is the right answer: the slot must not read as
   another room. It is D's version of Newsprint's rule that an ad never carries a
   section number, and it lets the slot be properly visible without shouting.
   NOTHING IN AN AD ANIMATES. */
.cf-ad { display: block; background: var(--cf-chalk); color: var(--cf-ink); padding-block: clamp(2rem, 4vw, 3rem); border-block: 1px solid var(--cf-linechalk); }
.cf-ad__label { margin: 0 0 0.85rem; font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cf-mutedink); }
.cf-ad__unit { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: center; }
@media (width >= 44rem) { .cf-ad__unit { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); } }
.cf-ad__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.cf-ad__copy { min-width: 0; }
.cf-ad__kicker { margin: 0 0 0.3rem; font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cf-mutedink); }
.cf-ad__head { margin: 0 0 0.4rem; font-family: Syne, 'Trebuchet MS', sans-serif; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.15; color: var(--cf-ink); }
.cf-ad__sub { margin: 0 0 1rem; font-size: 0.9375rem; color: var(--cf-mutedink); }
.cf-ad__cta { display: inline-block; }
/* ⚠ Three children in a two-column grid auto-place wrongly, so each child is placed
   explicitly rather than left to auto-placement. → HANDOFF §3.4 */
/* §6c: slot 1 is the billboard and slot 2 the leaderboard, which is the shorter
   shape. NOTHING IN EITHER ANIMATES. */
.cf-ad--leader { padding-block: clamp(1.5rem, 3vw, 2.25rem); }
@media (width >= 44rem) {
  .cf-ad__unit--leader { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; }
  .cf-ad__img--leader { grid-area: 1 / 1; aspect-ratio: 16 / 9; }
  .cf-ad__head--leader { font-size: clamp(1.1rem, 1.9vw, 1.45rem); }
  .cf-ad__sub--leader { margin-bottom: 0; }
}

/* ================= RUNG 3 · INDIGO · THREE ACROSS ================= */
.cf-head--three { align-items: end; }
.cf-think__ctrls { display: flex; gap: 0.5rem; align-self: end; justify-self: start; }
@media (width >= 50rem) { .cf-think__ctrls { grid-column: 2; grid-row: 1 / span 2; justify-self: end; } }
/* ⚠ The state the script writes is READ here, so it is a feature rather than a
   comment describing one. → kit 03 §7d */
.cf-think__ctrls[data-scrollable="false"] { display: none; }
.cf-think__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  background: none; border: 1px solid var(--cf-line); cursor: pointer;
  color: var(--cf-on); font-size: 1rem;
  transition: background-color 180ms var(--cf-ease), color 180ms var(--cf-ease);
}
.cf-think__arrow:hover, .cf-think__arrow:focus-visible { background: var(--cf-on); color: var(--cf-field); }
.cf-think__arrow[disabled] { opacity: 0.35; cursor: default; }

.cf-think__track {
  list-style: none; margin: 0; padding: 0 0 0.5rem;
  display: flex; gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  align-items: stretch;
}
.cf-think__track::-webkit-scrollbar { display: none; }
/* A percentage basis, so roughly three cards are visible at EVERY width, which is
   what makes this rung "three across" rather than "three at one breakpoint". */
.cf-think__cell { flex: 0 0 clamp(15rem, 31%, 23rem); scroll-snap-align: start; }
.cf-think__img { aspect-ratio: 16 / 10; height: auto; margin-bottom: 0.75rem; }
.cf-think__title { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.cf-think__stand { font-size: 0.875rem; }

/* ================= RUNG 4 · MOSS · FOUR ACROSS ================= */
.cf-live__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
@media (width >= 36rem) { .cf-live__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 64rem) { .cf-live__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cf-live__cell { padding: clamp(0.75rem, 1.5vw, 1rem); }
.cf-live__img { aspect-ratio: 4 / 3; height: auto; margin-bottom: 0.7rem; }
.cf-live__title { font-size: clamp(1rem, 1.3vw, 1.12rem); }

/* ================= RUNG 5 · INK · SIX ACROSS ================= */
/* The rows sit DIRECTLY ON THE FIELD rather than on chalk cards, which is the last
   step of the density ladder: the card surfaces fall away and only the type is left. */
.cf-also__list { list-style: none; margin: 0 0 clamp(2.5rem, 5vw, 4rem); padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
@media (width >= 40rem) { .cf-also__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 68rem) { .cf-also__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cf-also__row { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--cf-line); padding-top: 0.85rem; }
.cf-also__imglink { display: block; margin-bottom: 0.7rem; }
.cf-also__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.cf-also__cat { margin: 0 0 0.4rem; }
.cf-also__title { font-size: clamp(0.95rem, 1.2vw, 1.05rem); margin-bottom: 0.5rem; }

.cf-index { border-top: 1px solid var(--cf-line); padding-top: clamp(1.25rem, 3vw, 2rem); }
.cf-index__title { margin: 0 0 1rem; font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cf-onmuted); }
/* The foot of the ladder: six across, the smallest type, the whole magazine at once. */
.cf-index__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (width >= 36rem) { .cf-index__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (width >= 52rem) { .cf-index__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (width >= 72rem) { .cf-index__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cf-index__link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  padding: 0.4rem 0; min-height: 2.2rem;
  font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 0.8125rem; font-weight: 600;
  color: var(--cf-on); text-decoration: none;
  border-bottom: 1px solid var(--cf-line);
}
.cf-index__link:hover, .cf-index__link:focus-visible { color: var(--cf-jade); border-bottom-color: var(--cf-jade); }
.cf-index__count { font-family: Literata, Georgia, serif; font-size: 0.6875rem; color: var(--cf-onmuted); font-variant-numeric: tabular-nums; }

/* ================= subscribe, still in the ink room ================= */
.cf-sub { padding-top: 0; }
.cf-sub__inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: center; border-top: 1px solid var(--cf-line); padding-top: clamp(2.5rem, 5vw, 4rem); }
/* ⚠ The two-column subscribe waits until 64rem. At 56rem it split a page that was
   still narrow, so the quality tiles landed in a 91px track and the longest lead
   overflowed - the pinch was the BREAKPOINT, not the type size, and shrinking the
   type to survive it would have made the tiles illegible on every wider screen. */
@media (width >= 64rem) { .cf-sub__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.cf-sub__copy { min-width: 0; }
.cf-sub__title { margin: 0 0 0.75rem; font-family: Syne, 'Trebuchet MS', sans-serif; font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--cf-on); }
.cf-sub__body { margin: 0 0 1.5rem; font-size: 1rem; color: var(--cf-onmuted); max-width: 48ch; }
.cf-sub__act { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cf-sub__second { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: 0.9375rem; color: var(--cf-on); text-decoration: underline; text-underline-offset: 4px; }
.cf-sub__second:hover, .cf-sub__second:focus-visible { color: var(--cf-jade); }
/* ⚠ A THREE-TRACK GRID THAT HELD NUMERALS WILL NOT HOLD WORDS. "Evangelical" is
   eleven characters and cannot break, so where "409" sat comfortably in a third of a
   narrow column the word simply overflowed its box. Measured, not estimated: one
   column below the breakpoint, three above, and the display size solved so the
   longest lead fits the narrowest track it is ever given. */
.cf-sub__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
/* ⚠⚠ D STACKS ITS THREE QUALITIES INSTEAD OF PUTTING THEM IN A ROW, and the reason
   is a genuine conflict rather than a preference. Its subscribe panel is two columns,
   so the tiles' box is sized by the COLUMN while a vw-based clamp sizes the type by
   the VIEWPORT. The two diverge: at 1600 the type is at its maximum and the track is
   still only ~156px, so the longest lead overflowed across the whole 1024-1600 band
   while being perfectly comfortable at 600. Shrinking the type to survive the widest
   screen is the wrong way round. One per row gives each lead the full column and the
   overflow is impossible by construction, which also reads better: three qualities are
   a list, not a scoreboard. */
.cf-sub__fact { display: flex; flex-direction: column; gap: 0.2rem; border-left: 2px solid var(--cf-jade); padding-left: 0.85rem; }
.cf-sub__lead { font-family: Syne, 'Trebuchet MS', sans-serif; font-size: clamp(0.95rem, 1.15vw, 1.15rem); font-weight: 800; line-height: 1.05; text-wrap: balance; color: var(--cf-on); font-variant-numeric: tabular-nums; }
.cf-sub__label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cf-onmuted); }

/* ================= footer ================= */
.cfc-foot { background: var(--cf-ink); color: var(--cf-chalk); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.cfc-foot__top { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (width >= 44rem) { .cfc-foot__top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.cfc-foot__brand { min-width: 0; }
.cfc-foot__mark { display: block; width: 2rem; height: 2rem; margin-bottom: 0.75rem; }
.cfc-foot__word { margin: 0; font-family: Syne, 'Trebuchet MS', sans-serif; font-size: 1.125rem; font-weight: 800; letter-spacing: 0.02em; color: #F0ECE3; }
.cfc-foot__tag { margin: 0.2rem 0 1rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #AEACA7; }
.cfc-foot__addr { margin: 0 0 0.5rem; font-size: 0.875rem; line-height: 1.6; color: #AEACA7; }
.cfc-foot__mailwrap { margin: 0; }
.cfc-foot__mail { font-size: 0.875rem; color: #3FD98E; text-decoration: none; }
.cfc-foot__mail:hover, .cfc-foot__mail:focus-visible { text-decoration: underline; }
.cfc-foot__links { list-style: none; margin: 0; padding: 0; min-width: 0; }
.cfc-foot__link { display: block; padding: 0.32rem 0; min-height: 2rem; font-size: 0.875rem; color: #F0ECE3; text-decoration: none; }
.cfc-foot__link:hover, .cfc-foot__link:focus-visible { color: #3FD98E; }
.cfc-foot__copy { margin: clamp(2rem, 4vw, 3rem) 0 0; padding-top: 1.25rem; border-top: 1px solid #646463; font-size: 0.8125rem; color: #AEACA7; }

/* ================= back to top ================= */
.cfc-top {
  position: fixed; z-index: 91; right: 1rem; bottom: 1rem;
  width: 2.75rem; height: 2.75rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cf-ink); color: var(--cf-chalk);
  border: 1px solid var(--cf-chalk); cursor: pointer; font-size: 1.05rem;
  transition: background-color 180ms var(--cf-ease), color 180ms var(--cf-ease);
}
.cfc-top:hover, .cfc-top:focus-visible { background: var(--cf-jade); color: var(--cf-ink); border-color: var(--cf-jade); }
.cfc-top[hidden] { display: none; }

/* ================= focus ================= */
/* ⚠ Jade is 1.55:1 on chalk, so it cannot be the focus ring on a light ground. The
   ring takes the room's own foreground, which is legal on every field by
   construction, with a contrasting outer edge so it reads on either. */
:focus-visible { outline: 2px solid var(--cf-on, #15171B); outline-offset: 2px; }
.cf-body:focus-visible { outline: none; }

/* ================= reveals ================= */
/* ⚠ The armed state is added by JS, never in the markup, so no JS means no hidden
   state and the page is simply visible. → kit 08 §4 */
.cf-reveal[data-armed="true"] { opacity: 0; transform: translateY(14px); }
.cf-reveal[data-in="true"] { opacity: 1; transform: none; transition: opacity 620ms var(--cf-ease), transform 620ms var(--cf-ease); }
/* ⚠ RETIRE THE STAGGER IN CSS AS WELL AS IN THE SCRIPT. Clearing the inline
   transition-delay is not enough on its own: if it is ever missed, every later
   transition on that element lags by its entrance delay for the rest of the session,
   which presents as "the hover is broken" and sends you to the hover rule. The
   retiring selector has to match or beat the specificity it retires. */
.cf-reveal[data-in="true"][data-settled="true"] { transition-delay: 0s !important; }

/* ================= reduced motion =================
   Everything that moves stops, and the outcome arrives without the journey. */
@media (prefers-reduced-motion: reduce) {
  .cf-reveal[data-armed="true"] { opacity: 1; transform: none; }
  .cf-reveal[data-in="true"] { transition: none; }
  .cf-bloom { transform: translate3d(-50%, 0, 0) !important; }
  .cfc-mega, .cfc-mega__inner, .cfc-scrim, .cfc-bar { transition: none; }
  .cfc-ladder__swatch, .cfc-ladder__name, .cfc-nav__toggleicon, .cf-btn__arrow, .cf-cardline { transition: none; }
  .cf-think__track { scroll-behavior: auto; }
}
