/* Journal (Field Notes): index, article template and every article's figures.
   Article figures used to live in per-article <style> blocks; they are all here now (namespaced fn-*),
   so the browser caches them once and the article modules carry content only. */

/* Reading measure: ≈28em of the article body size, i.e. about 70–74 characters per line of EB Garamond at every width. */
:root { --fn-read: clamp(31.9rem, 29.7rem + 8.96vw, 37.5rem); }

/* Keyboard focus on paper themes: deep gold keeps the ring above 3:1 on bone and sand. */

/* Optional zoom on a cropped image (used where the uncropped photograph would show a face).
   Set on the media wrapper: --zoom (scale) and --zoom-at (the anchor, normally the object-position). */
.article__hero .media img, .note-card__media img, .contents__thumb img { scale: var(--zoom, 1); transform-origin: var(--zoom-at, 50% 50%); }

/* ---------- Article head ---------- */
.article__head { padding-top: calc(var(--header-h) + var(--announce-h) + clamp(56px, 9vw, 130px)); }
.article__head-inner { max-width: calc(var(--fn-read) + 2 * var(--gutter)); display: grid; gap: clamp(22px, 3vw, 34px); padding-bottom: clamp(44px, 6vw, 80px); }
.article__head h1 { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 6rem); }
/* Long, three-sentence headlines (articlePage({ cls: 'article--long-title' })) step down a size. */
.article--long-title .article__head h1 { font-size: clamp(2.3rem, 1rem + 3.5vw, 4.4rem); }
/* The closing clause of every headline is the gold accent; give it its own line. */
.article__head h1 em { display: block; }
/* Wider screens: the headline keeps the column's left edge but runs on into the right margin. */
@media (min-width: 900px) { .article__head h1 { margin-right: max(-280px, calc((var(--fn-read) - 100vw) / 2 + var(--gutter))); } }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px 14px; font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
/* Small phones: keep "Field Notes · Lever · N min read" on one line, so no separator is left dangling at a line end. */
@media (max-width: 400px) { .article__meta { font-size: 0.64rem; letter-spacing: 0.15em; gap: 8px; } }
.article__meta a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.article__meta span { color: var(--muted); }
.article__dek { color: rgba(235, 228, 214, 0.82); }
.article__hero { padding-bottom: 0; }
.article__hero .media { transform: translateY(clamp(40px, 6vw, 90px)); margin-top: calc(clamp(40px, 6vw, 90px) * -1); }
@media (max-width: 700px) {
  .article__hero .media { aspect-ratio: var(--ar-sm, 4 / 3); }
  .article__hero .media img { scale: var(--zoom-sm, var(--zoom, 1)); }
}

/* ---------- Article body ---------- */
.article__body { padding-top: calc(clamp(40px, 6vw, 90px) + clamp(56px, 8vw, 110px)); padding-bottom: calc(var(--section) * 0.55); }
.prose-article { max-width: calc(var(--fn-read) + 2 * var(--gutter)); font-size: clamp(1.14rem, 1.06rem + 0.32vw, 1.34rem); line-height: 1.68; color: #2c2922; }
.prose-article > * + * { margin-top: 1.15em; }
.prose-article > p { text-wrap: pretty; }
.prose-article > p:first-child::first-letter { float: left; font-family: var(--f-display); font-weight: 300; font-size: 4.6em; line-height: 0.82; padding: 0.06em 0.1em 0 0; color: var(--gold-deep); }
.prose-article h2 { margin-top: 2.2em; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.1; color: var(--fg); text-wrap: balance; }
.prose-article h3 { margin-top: 1.8em; font-family: var(--f-ui); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.prose-article a { color: var(--gold-deep); text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color 0.3s; }
.prose-article a:hover { text-decoration-color: currentColor; }
.prose-article strong { color: var(--fg); font-weight: 600; }
.prose-article ul, .prose-article ol:not([class]) { padding-left: 1.2em; }
.prose-article li + li { margin-top: 0.5em; }
.prose-article li::marker { color: var(--gold-deep); }
.prose-article .pull { margin: 2em 0; padding: 0.4em 0 0.4em clamp(20px, 3vw, 36px); border-left: 1px solid var(--gold); font-family: var(--f-display); font-weight: 300; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.12; color: var(--fg); text-wrap: balance; }
.prose-article .pull em { color: var(--gold-deep); }
.prose-article .pull cite { display: block; margin-top: 16px; font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-style: normal; color: var(--muted); }
@media (min-width: 1100px) { .prose-article .pull--wide { margin-inline: -12%; } }
.prose-article .article__figure { margin: 2.2em 0; }
@media (min-width: 1100px) { .prose-article .article__figure--wide { margin-inline: -18%; } }
.prose-article .article__figure figcaption { margin-top: 12px; font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Inline stat: the figure, the finding, and (optionally) a <cite> */
.prose-article .stat-inline { display: grid; gap: 10px; margin: 2em 0; padding: 28px 0; border-block: 1px solid var(--line); }
.prose-article .stat-inline b { font-family: var(--f-display); font-weight: 300; font-size: clamp(3.6rem, 2.4rem + 3.4vw, 5.8rem); line-height: 0.9; color: var(--fg); white-space: nowrap; }
.prose-article .stat-inline b small { font-size: 0.4em; font-style: italic; color: var(--gold-deep); margin-left: 0.12em; }
.prose-article .stat-inline > span { color: var(--muted); font-size: 1.04rem; line-height: 1.55; }
.prose-article .stat-inline cite { font-style: normal; font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.7; color: var(--muted); }
.prose-article .stat-inline cite em { font-family: var(--f-text); font-style: italic; font-size: 1.32em; letter-spacing: 0.02em; text-transform: none; }
@media (min-width: 640px) {
  .prose-article .stat-inline { grid-template-columns: auto 1fr; column-gap: clamp(24px, 4vw, 44px); align-items: center; }
  .prose-article .stat-inline:has(cite) b { grid-row: span 2; }
  .prose-article .stat-inline:has(cite) span { align-self: end; }
  .prose-article .stat-inline cite { align-self: start; }
}

/* Protocol box ("Try this") */
.protocol { margin-top: 2.6em !important; padding: clamp(28px, 4vw, 56px); display: grid; gap: 18px; border-radius: var(--radius); }
.prose-article .protocol__title { margin-top: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.7rem); line-height: 1.08; color: var(--fg); text-wrap: balance; }
.protocol .eyebrow + .protocol__title { margin-top: -4px; }
.protocol__intro, .protocol__note { color: var(--muted); font-size: 1.04rem; }
.protocol__note { font-style: italic; }
.prose-article .protocol a { color: var(--accent-text); }
.protocol__steps { list-style: none; padding: 0; margin: 6px 0 0; counter-reset: s; display: grid; }
.prose-article .protocol__steps li + li { margin-top: 0; }
.protocol__steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--fg); font-size: 1.06rem; line-height: 1.55; }
.protocol__steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-display); font-style: italic; color: var(--gold); font-size: 1.3rem; line-height: 1.2; }

/* Optional inline pacer inside the protocol (protocol.html) */
.protocol__breath { margin-top: 6px; padding-top: clamp(28px, 3.4vw, 40px); border-top: 1px solid var(--line); gap: 18px; }
.protocol__breath-k { font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.5; color: var(--accent-text); text-wrap: balance; }
.protocol__breath .breath__stage { width: min(100%, 250px); }
.protocol__breath .breath__label { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); max-width: 10ch; }
.protocol__breath + .protocol__note { padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 640px) {
  .protocol__breath {
    grid-template-columns: minmax(190px, 230px) 1fr;
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: 'stage .' 'stage k' 'stage meta' 'stage btn' 'stage .';
    justify-items: start; text-align: left; column-gap: clamp(28px, 4vw, 52px); row-gap: 14px;
  }
  .protocol__breath .breath__stage { grid-area: stage; width: 100%; }
  .protocol__breath-k { grid-area: k; }
  .protocol__breath .breath__meta { grid-area: meta; }
  .protocol__breath .breath__btn { grid-area: btn; margin-top: 6px; }
}

/* Foot */
.article__foot { margin-top: 3em !important; padding-top: 2em; border-top: 1px solid var(--line); display: grid; gap: 26px; }
.article__sign { font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--fg); }
.prose-article .sources h2 { margin: 0; font-family: var(--f-ui); font-size: var(--fs-ui); font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent-text); line-height: 1.4; }
.sources ol { margin: 14px 0 0; padding-left: 1.3em; font-size: 0.95rem; line-height: 1.5; color: var(--muted); display: grid; gap: 8px; }
.prose-article .sources a { color: var(--muted); }
.prose-article .sources a:hover { color: var(--gold-deep); }
.article__disclaimer { font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* ---------- Article figures (illustrations, not data) ---------- */
.prose-article .fn-fig { margin: 2.6em 0; padding-block: clamp(22px, 3vw, 34px); border-block: 1px solid var(--line); }
@media (min-width: 1100px) { .prose-article .fn-fig--wide { margin-inline: -14%; } }
.fn-fig__k { display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-text); line-height: 1.4; }
.fn-fig__k span + span { color: var(--muted); }
.fn-fig figcaption { margin-top: clamp(18px, 2.4vw, 26px); max-width: 34rem; font-size: 1rem; line-height: 1.55; color: var(--muted); font-style: italic; }
.fn-fig svg { display: block; width: 100%; height: auto; overflow: visible; }

/* The slow drift: two paths from one point, drawn on scroll (data-scrub → --p). Complete just before the figure is centred. */
.fn-drift { --draw: clamp(0, calc((var(--p, 1) - 0.12) * 3), 1); }
.fn-drift__plot { position: relative; margin-top: clamp(34px, 4vw, 48px); margin-bottom: clamp(44px, 5vw, 52px); }
.fn-drift__plot--wide { display: none; }
@media (min-width: 640px) { .fn-drift__plot--wide { display: block; } .fn-drift__plot--compact { display: none; } }
.fn-drift__intent { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.fn-drift__line { fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); }
.fn-drift__gap { fill: none; stroke: var(--fg); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc((var(--draw) - 0.85) * 6.6), 1)); }
.fn-drift__dot { fill: var(--bg); stroke: var(--accent-text); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: clamp(0, calc((var(--draw) - var(--t) + 0.04) * 25), 1); }
.fn-drift__dot--end { fill: var(--accent-text); }
.fn-drift__origin { fill: var(--fg); }
.fn-drift__lbl { position: absolute; font-family: var(--f-ui); font-size: clamp(0.66rem, 0.6rem + 0.15vw, 0.72rem); letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.35; color: var(--muted); white-space: nowrap; }
.fn-drift__lbl--start { transform: translate(-6px, calc(-100% - 14px)); color: var(--fg); }
.fn-drift__lbl--intent { right: 0; transform: translateY(calc(-100% - 12px)); }
.fn-drift__lbl--gap { transform: translate(calc(-100% - 12px), -50%); color: var(--fg); opacity: clamp(0, calc((var(--draw) - 0.9) * 10), 1); }
.fn-drift__lbl--end { right: 0; transform: translateY(18px); color: var(--accent-text); white-space: normal; max-width: 19em; text-wrap: balance; text-align: right; opacity: clamp(0, calc((var(--draw) - 0.9) * 10), 1); }

/* Loop to line (walk on it) */
.fn-loop { --draw: clamp(0, calc((var(--p, 1) - 0.1) * 2.9), 1); }
.fn-loop__plot { margin-top: clamp(26px, 3.6vw, 40px); }
.fn-loop__plot svg { margin-bottom: clamp(12px, 2vw, 20px); }
.fn-loop__plot--wide { display: none; }
@media (min-width: 640px) { .fn-loop__plot--wide { display: block; } .fn-loop__plot--compact { display: none; } }
.fn-loop__line { fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw)); }
.fn-loop__end { fill: var(--fg); opacity: clamp(0, calc((var(--draw) - 0.96) * 30), 1); }
.prose-article .fn-loop__lbls { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; font-family: var(--f-ui); font-size: clamp(0.66rem, 0.6rem + 0.15vw, 0.72rem); letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.45; color: var(--muted); }
.fn-loop__lbls span { max-width: 14em; text-wrap: balance; }
.fn-loop__lbls span:last-child { color: var(--accent-text); text-align: right; }

/* Two rooms of eight (the room) */
.fn-room figcaption { margin-top: clamp(22px, 3vw, 32px); }
.fn-room__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 72px); margin-top: clamp(26px, 4vw, 44px); }
.fn-room__cell { display: grid; gap: 8px; align-content: start; }
.fn-room__cell svg { max-width: 300px; margin: 0 auto clamp(12px, 2vw, 22px); }
.fn-room__table { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.fn-room__seat { fill: var(--bg); stroke: var(--fg); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.fn-room__seat--you { fill: var(--accent-text); stroke: var(--accent-text); }
.fn-room__talk { fill: none; stroke: var(--accent-text); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .fn-room__talk { transition: stroke-dashoffset 1.3s var(--ease) calc(var(--i) * 110ms + 0.35s); }
.js .fn-room:not(.is-in) .fn-room__talk { stroke-dashoffset: 1; }
.prose-article .fn-room__name { font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg); line-height: 1.4; }
.prose-article .fn-room__desc { font-size: 0.98rem; line-height: 1.5; color: var(--muted); }

/* One decision, three distances (the place that made the problem) */
.prose-article .fn-ladder { margin: 2.4em 0; }
.fn-ladder__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fn-ladder__row { display: grid; gap: 10px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.prose-article .fn-ladder__row + .fn-ladder__row { margin-top: 0; }
.fn-ladder__k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.fn-ladder__k b { font-weight: 500; color: var(--accent-text); }
.fn-ladder__q { font-family: var(--f-display); font-weight: 300; line-height: 1.12; color: var(--fg); text-wrap: balance; }
.fn-ladder__row--1 .fn-ladder__q { font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.3rem); font-family: var(--f-text); font-weight: 400; color: var(--muted); line-height: 1.4; }
.fn-ladder__row--2 .fn-ladder__q { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); }
.fn-ladder__row--3 .fn-ladder__q { font-size: clamp(2rem, 1.45rem + 2.2vw, 3.2rem); line-height: 1.04; }
.fn-ladder__q em { display: block; font-style: italic; color: var(--accent-text); }
.fn-ladder > figcaption { margin-top: 16px; font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
@media (min-width: 768px) {
  .fn-ladder__row { grid-template-columns: 11.5rem 1fr; column-gap: 32px; align-items: baseline; }
  .fn-ladder__k { flex-direction: column; gap: 6px; }
}
.fn-cabins__media { aspect-ratio: 16 / 9; }

/* The one-page decision memo (a plan you own) */
.prose-article .fn-memo { margin: 2.8em 0; }
@media (min-width: 1100px) { .prose-article .fn-memo { margin-inline: -8%; } }
.fn-memo__sheet { position: relative; background: #fbf8f2; color: var(--paper-text); padding: clamp(26px, 5vw, 60px) clamp(20px, 5vw, 64px) clamp(30px, 5vw, 60px); border: 1px solid rgba(27, 25, 20, 0.08); box-shadow: 0 1px 0 rgba(27, 25, 20, 0.04), 0 40px 70px -40px rgba(27, 25, 20, 0.4); }
.fn-memo__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: clamp(18px, 2.4vw, 26px); border-bottom: 1px solid var(--paper-text); }
.prose-article .fn-memo__kicker { font-family: var(--f-ui); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); line-height: 1.4; }
.prose-article .fn-memo__title { margin-top: 10px; text-wrap: balance; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.05; color: var(--paper-text); }
.fn-memo__title em { font-style: italic; color: var(--gold-deep); }
.fn-memo__mark { width: clamp(44px, 6vw, 64px); height: auto; flex: none; opacity: 0.9; }
.fn-memo__rows { margin: 0; display: grid; }
.fn-memo__row { display: grid; gap: 6px; padding: 18px 0 clamp(26px, 3.4vw, 36px); border-bottom: 1px solid rgba(27, 25, 20, 0.14); }
@media (min-width: 700px) { .fn-memo__row { grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr); column-gap: 28px; align-items: baseline; } }
@media (min-width: 1024px) { .fn-memo__row { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); } }
.fn-memo__row dt { display: flex; align-items: baseline; gap: 12px; font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-text); line-height: 1.45; }
.fn-memo__n { flex: none; width: 1.7rem; font-family: var(--f-display); font-style: italic; font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--gold-deep); }
.fn-memo__row dd { margin: 0; padding-left: calc(1.7rem + 12px); font-family: var(--f-display); font-style: italic; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); line-height: 1.35; color: var(--paper-muted); }
@media (min-width: 700px) { .fn-memo__row dd { padding-left: 0; } }
.fn-memo__sign { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 4vw, 48px); margin-top: clamp(44px, 6vw, 72px); }
.fn-memo__sign span { padding-top: 10px; border-top: 1px solid var(--paper-text); font-family: var(--f-ui); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--paper-muted); }
.fn-memo figcaption { margin-top: clamp(18px, 2.4vw, 26px); max-width: 34rem; font-size: 1rem; line-height: 1.55; color: var(--muted); font-style: italic; }

/* Six hours of nothing anyone can see (the unhurried table) */
.fn-table-photo { aspect-ratio: 3 / 2; }
.prose-article .fn-hours { margin: 2.6em 0; padding: clamp(30px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(28px, 4vw, 48px); border-radius: var(--radius); display: grid; gap: clamp(24px, 3.2vw, 38px); }
@media (min-width: 1100px) { .prose-article .fn-hours { margin-inline: -12%; } }
.fn-hours__big { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 1.5rem + 3vw, 4.2rem); line-height: 1.02; letter-spacing: -0.012em; color: var(--fg); text-wrap: balance; }
.fn-hours__big em { font-style: italic; color: var(--gold); }
.fn-hours__track { padding-top: 8px; }
.fn-hours__line { position: relative; height: 1px; background: var(--line); }
.fn-hours__fill { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(clamp(0, calc((var(--p, 1) - 0.16) * 3.4), 1)); }
.fn-hours__line i { position: absolute; top: -6px; left: var(--x); width: 1px; height: 13px; background: var(--fg); opacity: 0.32; }
.fn-hours__line i:first-of-type, .fn-hours__line i:last-of-type { top: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--gold); opacity: 1; }
.fn-hours__scale { display: flex; justify-content: space-between; margin: 16px -0.2em 0; font-family: var(--f-ui); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--muted); }
.fn-hours__ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.5; color: var(--fg); }
.fn-hours__ends span:last-child { text-align: right; }
.fn-hours figcaption { padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--line); font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem); line-height: 1.3; color: var(--muted); }

/* The waterfall, and water against birdsong (the sound of water) */
.prose-article .fn-falls { margin: 1.8em auto 2em; width: min(62vw, 240px); }
.fn-falls__media { aspect-ratio: 9 / 16; border-radius: var(--radius); }
.fn-falls__media img { transform: scale(1.06); }
.fn-falls figcaption { margin-top: 12px; font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-align: center; }
@media (min-width: 768px) {
  .prose-article .fn-falls { float: right; width: 220px; margin: 0.4em 0 1.2em 2.2rem; }
  .fn-falls figcaption { text-align: left; }
}
@media (min-width: 1100px) { .prose-article .fn-falls { width: 240px; margin-right: -9%; } }
.prose-article .fn-compare { clear: both; margin: 2.2em 0; }
.fn-compare dl { margin: 0; display: grid; border-block: 1px solid var(--line); }
.fn-compare__item { display: grid; gap: 6px; align-content: start; padding: 24px 0; }
.fn-compare__item + .fn-compare__item { border-top: 1px solid var(--line); }
.fn-compare dt { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(2.6rem, 2rem + 2.4vw, 4rem); line-height: 1; color: var(--fg); }
.fn-compare__item:first-child dt { color: var(--accent-text); }
.fn-compare dd { margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.5; max-width: 22rem; }
.fn-compare figcaption { margin-top: 14px; font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
@media (min-width: 640px) {
  .fn-compare dl { grid-template-columns: 1fr 1fr; }
  .fn-compare__item { padding: 30px 28px 24px 0; }
  .fn-compare__item + .fn-compare__item { border-top: 0; border-left: 1px solid var(--line); padding-left: 28px; }
}

/* Ten minutes, held for you: the listening timer inside the sound protocol */
.fn-listen { display: grid; gap: 26px; align-items: center; margin-top: 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.no-js .fn-listen { display: none; }
.fn-listen__dial { position: relative; width: min(54vw, 190px); aspect-ratio: 1; display: grid; place-items: center; justify-self: center; }
.fn-listen__dial svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.fn-listen__track { fill: none; stroke: var(--line); stroke-width: 1; }
.fn-listen__arc { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.3s linear; }
.fn-listen__time { position: relative; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 2rem + 1.4vw, 3rem); line-height: 1; color: var(--fg); font-variant-numeric: lining-nums tabular-nums; }
.fn-listen.is-running .fn-listen__dial::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(224, 199, 133, 0.16), transparent 70%); animation: fnListenBreath 11s ease-in-out infinite; }
.fn-listen.is-done .fn-listen__arc { stroke: var(--gold-2); }
@keyframes fnListenBreath { 0%, 100% { transform: scale(0.82); opacity: 0.5; } 45% { transform: scale(1); opacity: 1; } }
.fn-listen__copy { display: grid; gap: 14px; justify-items: start; }
.fn-listen__k { font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-text); }
.fn-listen__status { color: var(--muted); font-size: 1.04rem; line-height: 1.55; max-width: 28rem; min-height: 3.1em; }
.fn-listen__btn { margin-top: 6px; min-width: 220px; }
/* Touch screens keep no hover, so Stop and Begin again look like the same control as Begin. */
@media (hover: none) {
  .fn-listen__btn:hover:not(:focus-visible) { color: var(--ink); border-color: var(--gold); }
  .fn-listen__btn:hover:not(:focus-visible)::before { transform: scaleY(0); }
}
@media (max-width: 639px) {
  .fn-listen__copy { justify-items: center; text-align: center; }
  .fn-listen__status { margin-inline: auto; }
}
@media (min-width: 640px) {
  .fn-listen { grid-template-columns: auto 1fr; gap: 36px; }
  .fn-listen__dial { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .fn-drift, .fn-loop { --draw: 1; }
  .js .fn-room__talk, .js .fn-room:not(.is-in) .fn-room__talk { transition: none; stroke-dashoffset: 0; }
  .fn-hours__fill { transform: none; }
  .fn-listen__arc { transition: none; }
  .fn-listen.is-running .fn-listen__dial::before { animation: none; opacity: 0.7; }
}

/* ---------- Cards (index "Start here" + continue reading) ---------- */
.more-notes { padding-top: calc(var(--section) * 0.6); }
.more-notes__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.note-grid { display: grid; gap: clamp(40px, 5vw, 64px) clamp(20px, 2.4vw, 36px); }
@media (min-width: 640px) { .note-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .note-grid { grid-template-columns: repeat(3, 1fr); } }
.note-card { display: grid; gap: 14px; align-content: start; text-decoration: none; color: var(--fg); }
.note-card__media { aspect-ratio: 16 / 10; }
.note-card__media img { transition: transform 1.4s var(--ease); }
.note-card:hover .note-card__media img { transform: scale(1.04); }
.note-card__meta { font-family: var(--f-ui); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); }
.note-card__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); line-height: 1.1; text-wrap: balance; }
.note-card__title em { color: var(--accent-text); }
.note-card__dek { color: var(--muted); max-width: 36rem; }
.note-card__go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.note-card__go .i-arrow { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.note-card:hover .note-card__go { color: var(--accent-text); }
.note-card:hover .note-card__go .i-arrow { transform: translateX(5px); }
/* Continue reading on tablets: two notes side by side, then the third closes the row full width, image beside text. */
@media (min-width: 640px) and (max-width: 1023px) {
  .note-grid > .note-card:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: clamp(20px, 2.4vw, 36px); align-items: start; }
  .note-grid > .note-card:last-child:nth-child(odd):not(:first-child) .note-card__media { grid-column: 1; grid-row: 1 / span 3; }
  .note-grid > .note-card:last-child:nth-child(odd):not(:first-child) > :not(.note-card__media) { grid-column: 2; }
  .note-grid > .note-card:last-child:nth-child(odd):not(:first-child) .note-card__meta { margin-top: 4px; }
}

/* Large card: the lead note */
.note-card--large { gap: 18px; }
.note-card--large .note-card__title { font-weight: 300; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.6rem); line-height: 1.04; }
.note-card--large .note-card__title em { display: block; }
.note-card--large .note-card__dek { font-size: 1.1rem; line-height: 1.55; }
@media (min-width: 1024px) {
  .note-card--large { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto auto 1fr; column-gap: clamp(40px, 5vw, 80px); row-gap: 22px; align-items: start; }
  .note-card--large .note-card__media { grid-row: 1 / span 5; }
  .note-card--large .note-card__meta { align-self: end; margin-top: 20px; }
  .note-card--large .note-card__dek { font-size: 1.16rem; }
}

@media (prefers-reduced-motion: reduce) {
  .note-card__media img, .note-card__go .i-arrow { transition: none; }
  .note-card:hover .note-card__media img, .note-card:hover .note-card__go .i-arrow { transform: none; }
}

/* ---------- Index ---------- */
.journal-hero h1 { max-width: none; }
.journal-hero h1 em { display: block; }
.journal-start { padding-bottom: calc(var(--section) * 0.7); }
.journal-index__featured--solo { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

/* Theme filter */
.lever-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(30px, 3.6vw, 48px); }
.lever-filter .chip { min-height: 44px; padding: 10px 16px; background: transparent; cursor: pointer; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.lever-filter .chip:hover { border-color: var(--accent); color: var(--fg); }
.lever-filter .chip[aria-pressed='true'] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.no-js .lever-filter { display: none; }
@media (max-width: 639px) {
  /* One swipeable row instead of three cramped ones. */
  .lever-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
  .lever-filter::-webkit-scrollbar { display: none; }
  .lever-filter .chip { flex: none; }
}

/* Contents: the index as the contents page of a printed journal */
.contents__head { margin-bottom: clamp(40px, 5vw, 72px); }
.contents__list { border-top: 1px solid var(--line); }
.contents__item { border-bottom: 1px solid var(--line); }
.contents__row {
  display: grid; grid-template-columns: auto 1fr 96px; grid-template-areas: 'n meta thumb' 'body body thumb';
  column-gap: 14px; row-gap: 10px; align-items: baseline; padding: 24px 0;
  color: var(--fg); text-decoration: none; transition: opacity 0.5s var(--ease), padding 0.6s var(--ease);
}
.contents__n { grid-area: n; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.contents__meta { grid-area: meta; font-family: var(--f-ui); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.5; color: var(--muted); }
.contents__thumb { grid-area: thumb; align-self: start; aspect-ratio: 16 / 10; margin-top: 4px; }
.contents__body { grid-area: body; display: grid; gap: 12px; }
.contents__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.9rem); line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; transition: color 0.4s; }
.contents__title em { color: var(--accent-text); }
.contents__dek { display: none; max-width: 40rem; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.contents__go { display: none; color: var(--accent); }
.contents__go .i-arrow { width: 24px; height: 24px; transition: transform 0.5s var(--ease); }
.contents__empty { padding-block: 28px; }
@media (min-width: 640px) {
  .contents__row { grid-template-columns: 64px 1fr 168px; grid-template-areas: 'n meta thumb' '. body thumb'; column-gap: clamp(18px, 3vw, 32px); padding: 30px 0; }
  .contents__n { font-size: 1.7rem; }
  .contents__dek { display: block; }
}
/* Desktop with a mouse: plates rest in muted monochrome; the entry under the cursor (or keyboard focus) comes into colour while the rest of the list steps back. */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .contents__row {
    grid-template-columns: clamp(64px, 7vw, 110px) minmax(0, 1.6fr) minmax(220px, 1fr) 40px;
    grid-template-areas: 'n body thumb go' '. meta thumb go';
    column-gap: clamp(24px, 2.6vw, 40px); row-gap: 16px; padding: clamp(30px, 3vw, 44px) 0;
  }
  .contents__n { font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.6rem); }
  .contents__thumb { align-self: center; justify-self: end; width: min(100%, 300px); margin: 0; opacity: 0.38; transform: scale(0.9); transform-origin: right center; transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
  .contents__thumb img { filter: grayscale(1); transform: scale(1.08); transition: transform 1.2s var(--ease), filter 0.9s var(--ease); }
  .contents__go { display: block; align-self: center; opacity: 0.6; transition: opacity 0.3s; }
  .contents__list:hover .contents__row { opacity: 0.4; }
  .contents__list:hover .contents__row:hover, .contents__row:focus-visible { opacity: 1; }
  .contents__row:hover .contents__title, .contents__row:focus-visible .contents__title { color: var(--accent-text); }
  .contents__row:hover .contents__thumb, .contents__row:focus-visible .contents__thumb { opacity: 1; transform: none; }
  .contents__row:hover .contents__thumb img, .contents__row:focus-visible .contents__thumb img { transform: none; filter: none; }
  .contents__row:hover .contents__go, .contents__row:focus-visible .contents__go { opacity: 1; }
  .contents__row:hover .contents__go .i-arrow { transform: translateX(6px); }
}
/* Re-entrance when the filter changes */
.contents__list.is-filtered .contents__item:not([hidden]) { animation: fnRowIn 0.7s var(--ease) both; }
.contents__list.is-filtered .contents__item:nth-child(2) { animation-delay: 0.05s; }
.contents__list.is-filtered .contents__item:nth-child(3) { animation-delay: 0.1s; }
.contents__list.is-filtered .contents__item:nth-child(n + 4) { animation-delay: 0.15s; }
@keyframes fnRowIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .contents__row, .contents__go .i-arrow, .contents__title { transition: none; }
  .contents__list.is-filtered .contents__item:not([hidden]) { animation: none; }
  .contents__thumb, .contents__thumb img { transition: none; }
  .contents__row:hover .contents__thumb, .contents__row:focus-visible .contents__thumb { transform: none; }
}
