/* ============================================================================
   Sea Cross V2: Blog (the front page at /insights, and every article)
   A small trade journal kept by the operations desk. Quieter than the rest
   of the site on purpose: the quality is in type, measure and rules, not in
   motion or photography.

   One editorial grid serves both pages, three columns that never change
   their job:
     rail    metadata, labels, the contents of a note
     text    the reading column, about 65 characters
     margin  the one photograph, pull quotes, marginal notes
   Headlines may cross from text into the margin; body copy never does.

   Rules carry the structure: a hairline opens the nameplate, a heavy rule
   closes it, hairlines divide everything else. No cards, no pills.
   Everything reads complete with no motion at all.
   ========================================================================== */

.page-notes {
  --pn-paper: #f3f0e8;          /* journal stock: a step lighter than site paper */
  --pn-ink: var(--sx-ink);
  --pn-ink-2: #2f3942;          /* standfirsts and dek (11.6:1)                  */
  --pn-soft: #56626a;           /* metadata and captions (5.5:1)                 */
  --pn-topic: var(--sx-rust);   /* the topic of a note, and nothing else (4.9:1) */
  --pn-rule: var(--sx-ink);
  --pn-hair: rgba(21, 27, 33, .17);

  --pn-rail: clamp(10.5rem, 15vw, 14.5rem);
  --pn-margin: clamp(13rem, 19vw, 19rem);
  --pn-gap: clamp(2rem, 3.6vw, 4rem);
  --pn-block: clamp(3.5rem, 7vw, 6.5rem);

  background: var(--pn-paper);
  color: var(--pn-ink);
}
html:has(.page-notes) { background: var(--pn-paper); }
.page-notes main { overflow-x: clip; }
.page-notes :where(h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote) { margin: 0; }

/* -------------------------------------------------------------- the grid */
.pn-grid {
  display: grid;
  grid-template-columns: [rail] var(--pn-rail) [text] minmax(0, 1fr) [margin] var(--pn-margin) [end];
  column-gap: var(--pn-gap);
}

/* Section labels sit in the rail, set as type, not as decoration. */
.pn-label {
  grid-column: rail;
  font-size: .95rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em;
}

.pn-crumbs { font-size: .9rem; color: var(--pn-soft); }
.pn-crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .55rem; margin: 0; padding: 0; list-style: none; }
.pn-crumbs li + li::before { content: "/"; margin-right: .55rem; color: rgba(21, 27, 33, .35); }
.pn-crumbs :is(a, span) { text-decoration: none; display: inline-block; padding-block: .35rem; }
.pn-crumbs a:hover { color: var(--pn-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Links in running text: ink, underlined, teal on hover (navigation role). */
.pn a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.pn a:hover { color: var(--sx-teal); }

.pn-when--draft { color: var(--pn-topic); }

/* ============================================================== MASTHEAD */
.pn-mast { padding-top: calc(var(--header-h) + clamp(1.25rem, 3vw, 2.5rem)); }
.pn-mast .sx-wrap { container-type: inline-size; }
/* The title row: the name, large but not a hero, and the standfirst beside it.
   A hairline opens the row, a heavy rule closes it, a dateline follows. */
.pn-mast__head {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem var(--pn-gap);
  margin-top: clamp(.9rem, 2vw, 1.5rem);
  padding-block: clamp(.7rem, 1.6vw, 1.2rem) clamp(.5rem, 1vw, .8rem);
}
.pn-mast__head::before,
.pn-mast__head::after {
  content: ""; position: absolute; left: 0; right: 0; background: var(--pn-rule); transform-origin: left;
}
.pn-mast__head::before { top: 0; height: 1px; }
.pn-mast__head::after { bottom: 0; height: 3px; }
.pn-mast__title {
  font-size: min(calc(100cqi / 7.4), 11.5rem);
  font-weight: 650; font-stretch: 125%; letter-spacing: -.055em; line-height: .78;
  padding-bottom: .19em;                        /* room for the descender above the rule */
  white-space: nowrap;
}
.pn-mast__stand {
  width: calc(var(--pn-margin) + var(--pn-gap) + 18rem); max-width: 100%;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.45; letter-spacing: -.01em; color: var(--pn-ink-2);
  text-wrap: pretty;
}
.pn-mast__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 2rem;
  padding-block: .8rem; border-bottom: 1px solid var(--pn-hair);
  font-size: .95rem; line-height: 1.4;
}
.pn-mast__id { font-weight: 600; }
.pn-mast__state { color: var(--pn-soft); font-variant-numeric: tabular-nums; }

.pn-preview {
  margin-top: 1.25rem; padding-block: .75rem;
  border-bottom: 1px solid var(--pn-hair);
  font-size: .95rem; line-height: 1.5; color: var(--pn-ink-2);
}
.pn-preview strong { font-weight: 600; color: var(--pn-topic); }

/* ============================================================ LEAD NOTE
   The headline is the dominant object; the photograph is a narrow crop
   in the margin, never a hero. */
.pn-lead { padding-block: var(--pn-block) 0; }
.pn-lead__grid { row-gap: 0; align-items: start; grid-template-rows: auto auto 1fr; }
.pn-lead__label { grid-row: 1; padding-top: .55rem; color: var(--pn-topic); }
.pn-lead__title {
  grid-column: text / end; grid-row: 1;
  font-size: clamp(2.3rem, 1.2rem + 3.3vw, 4.7rem);
  font-weight: 600; font-stretch: 108%; letter-spacing: -.04em; line-height: 1.01;
  text-wrap: balance;
}
.pn-lead__title a { text-decoration: none; }
.pn-lead__title a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.pn-lead__rail { grid-column: rail; grid-row: 2 / span 2; padding-top: 2.2rem; display: grid; gap: 2rem; align-content: start; }
.pn-lead__dek {
  grid-column: text; grid-row: 2; margin-top: 2.2rem;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.45; letter-spacing: -.012em; color: var(--pn-ink-2);
  text-wrap: pretty;
}
.pn-lead__open { grid-column: text; grid-row: 3; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--pn-hair); }
.pn-lead__open p { font-size: 1.125rem; line-height: 1.65; max-width: 62ch; }
.pn-lead__fig { grid-column: margin; grid-row: 2 / span 2; margin-top: 2.2rem; }

/* Facts of a note: one per line, hairline between, sentence case. */
.pn-facts { display: grid; margin: 0; padding: 0; list-style: none; font-size: .95rem; line-height: 1.35; }
.pn-facts li { padding-block: .55rem; border-top: 1px solid var(--pn-hair); font-variant-numeric: tabular-nums; }
.pn-facts li:last-child { border-bottom: 1px solid var(--pn-hair); }

.pn-contents__label { font-size: .95rem; font-weight: 600; margin-bottom: .5rem; }
.pn-contents ol { margin: 0; padding: 0; list-style: none; display: grid; }
.pn-contents a {
  display: block; padding: .4rem 0 .4rem .85rem; border-left: 1px solid var(--pn-hair);
  font-size: .95rem; line-height: 1.35; color: var(--pn-soft); text-decoration: none;
  transition: color .18s var(--sx-ease), border-color .18s var(--sx-ease);
}
.pn-contents a:hover { color: var(--pn-ink); border-left-color: var(--pn-ink); }
.pn-contents a.is-active { color: var(--pn-ink); border-left: 2px solid var(--pn-ink); padding-left: calc(.85rem - 1px); font-weight: 500; }

.pn-more {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; margin-top: .9rem;
  font-weight: 600; font-size: 1.02rem; text-decoration: none;
}
.pn-more svg { width: 1.15em; height: 1.15em; transition: transform .25s var(--sx-ease); }
.pn-more:hover { text-decoration: underline; }
.pn-more:hover svg { transform: translateX(3px); }

/* The crop: a narrow portrait slice of the photograph's structure. */
.pn-crop { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #1d2a3a; }
.pn-crop picture, .pn-crop img { width: 100%; height: 100%; }
.pn-crop img { object-fit: cover; object-position: 47% 58%; }
.pn figcaption { margin-top: .6rem; font-size: .84rem; line-height: 1.45; color: var(--pn-soft); }

/* ========================================================== MORE NOTES
   Two notes, deliberately unequal: one takes the reading column with its
   dek, the other sits in the margin with its headline only. */
.pn-second { padding-top: var(--pn-block); }
.pn-second__grid { padding-top: 1.1rem; border-top: 1px solid var(--pn-rule); align-items: start; }
.pn-second__grid > .pn-label { padding-top: .2rem; }
.pn-second__note--major { grid-column: text; }
.pn-second__note--minor { grid-column: margin; margin-left: calc(-1 * var(--pn-gap) / 2); padding-left: calc(var(--pn-gap) / 2); border-left: 1px solid var(--pn-hair); align-self: stretch; }
.pn-line { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .92rem; color: var(--pn-soft); font-variant-numeric: tabular-nums; }
.pn-line__topic { color: var(--pn-topic); font-weight: 600; }
.pn-second__title { margin-top: .7rem; font-weight: 600; font-stretch: 106%; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.pn-second__note--major .pn-second__title { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.5rem); }
.pn-second__note--minor .pn-second__title { font-size: clamp(1.2rem, 1rem + .5vw, 1.45rem); letter-spacing: -.02em; line-height: 1.2; }
.pn-second__title a { text-decoration: none; }
.pn-second__title a:hover { color: inherit; text-decoration: underline; text-underline-offset: .12em; }
.pn-second__dek { margin-top: .9rem; font-size: 1.08rem; line-height: 1.55; color: var(--pn-ink-2); max-width: 58ch; }
.pn-second__note--minor .pn-second__dek { margin-top: .7rem; font-size: .98rem; color: var(--pn-soft); }
.pn-second__open { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--pn-hair); font-size: 1.06rem; line-height: 1.65; max-width: 60ch; }

/* ============================================================== ARCHIVE
   A ruled index, filed by month; the month stays in the rail while its
   notes pass. */
.pn-archive { padding-top: var(--pn-block); }
.pn-archive__label { padding-bottom: 1rem; border-bottom: 1px solid var(--pn-rule); }
.pn-month { align-items: start; border-bottom: 1px solid var(--pn-hair); }
.pn-month__label {
  grid-column: rail; position: sticky; top: calc(var(--header-h) + 1rem);
  padding-block: 1.15rem; font-size: .95rem; font-weight: 600; line-height: 1.3;
}
.pn-rows { grid-column: text / end; margin: 0; padding: 0; list-style: none; }
.pn-row {
  position: relative;
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto 3.5rem; column-gap: 1.5rem; align-items: baseline;
  padding-block: 1.15rem; border-bottom: 1px solid var(--pn-hair);
}
.pn-row:last-child { border-bottom: 0; }
.pn-row__day, .pn-row__topic, .pn-row__min { font-size: .92rem; color: var(--pn-soft); font-variant-numeric: tabular-nums; }
.pn-row__topic { color: var(--pn-topic); }
.pn-row__min { text-align: right; }
.pn-row__title {
  font-size: clamp(1.15rem, 1rem + .45vw, 1.4rem); font-weight: 600; font-stretch: 104%; letter-spacing: -.02em; line-height: 1.25;
  text-decoration: none; text-wrap: pretty;
}
.pn-row__title::after { content: ""; position: absolute; inset: 0; }   /* the whole row is the target */
/* The rule under a row extends when it is pointed at or focused. */
.pn-row::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--pn-rule);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--sx-ease);
}
.pn-row:hover::before, .pn-row:focus-within::before { transform: none; }
.pn-row:hover .pn-row__title { color: inherit; }
.pn-row__title:focus-visible { outline: none; }
.pn-row:has(.pn-row__title:focus-visible) { outline: 2px solid var(--sx-focus); outline-offset: 4px; }
.pn-row--kind { grid-template-columns: 9rem minmax(0, 1fr) 3.5rem; }

/* ========================================================== FIRST ISSUE
   Production with nothing published: a statement, the desk, the scope. */
.pn-first { padding-top: var(--pn-block); }
.pn-first .pn-grid { align-items: start; }
.pn-first .pn-label { padding-top: .5rem; color: var(--pn-soft); font-weight: 500; }
.pn-first__text { grid-column: text; display: grid; gap: 1.4rem; }
.pn-first__title {
  font-size: clamp(2.1rem, 1.2rem + 2.7vw, 3.9rem);
  font-weight: 600; font-stretch: 108%; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance;
}
.pn-first__text p { font-size: 1.125rem; line-height: 1.6; color: var(--pn-ink-2); max-width: 52ch; }
.pn-desk { grid-column: margin; align-self: end; display: grid; gap: .15rem; padding-top: .9rem; border-top: 1px solid var(--pn-rule); }
.pn-desk dt { font-size: .95rem; font-weight: 600; margin-bottom: .35rem; }
.pn-desk dd { margin: 0; }
.pn-desk a { display: inline-block; padding-block: .3rem; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* ============================================================= SUBJECTS */
.pn-subjects { padding-top: var(--pn-block); }
.pn-subjects__head { padding-bottom: 1rem; border-bottom: 1px solid var(--pn-rule); align-items: baseline; }
.pn-subjects__intro { grid-column: text / end; font-size: 1.02rem; color: var(--pn-soft); }
.pn-subjects__list { margin: 0; padding: 0; list-style: none; }
.pn-subject { padding-block: 1.5rem; border-bottom: 1px solid var(--pn-hair); align-items: baseline; scroll-margin-top: calc(var(--header-h) + 1rem); }
.pn-subject__title {
  grid-column: rail / text; grid-row: 1;
  font-size: clamp(1.25rem, 1rem + .7vw, 1.65rem); font-weight: 600; font-stretch: 106%; letter-spacing: -.025em; line-height: 1.15;
}
.pn-subject:last-child { border-bottom: 0; }
.pn-subject__text { grid-column: text; font-size: 1.05rem; line-height: 1.55; color: var(--pn-ink-2); max-width: 46ch; }
.pn-subject__title + .pn-subject__text { grid-row: 1; }
.pn-subject__notes { grid-column: margin; margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: .98rem; line-height: 1.35; }
.pn-subject__notes a { font-weight: 500; }
.pn-subject__draft { color: var(--pn-topic); font-size: .88rem; }

/* ============================================================= COLOPHON */
.pn-colophon { padding-block: calc(var(--pn-block) * .7) calc(var(--pn-block) * 1.1); }
.pn-colophon .pn-grid { padding-top: 1rem; border-top: 1px solid var(--pn-hair); }
.pn-colophon .pn-label { color: var(--pn-soft); font-weight: 500; }
.pn-colophon__text span { white-space: nowrap; }
.pn-colophon__text { grid-column: text; font-size: .98rem; line-height: 1.6; color: var(--pn-soft); max-width: 60ch; }

/* ================================================================= NOTE
   One note: the running head, the headline, then the reading column. */
.pn-note { padding-top: calc(var(--header-h) + clamp(1rem, 2.4vw, 2rem)); }
.pn-run {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem;
  padding-bottom: .8rem;
}
.pn-run::after { content: ""; position: absolute; left: var(--sx-gutter); right: var(--sx-gutter); bottom: 0; height: 3px; background: var(--pn-rule); transform-origin: left; }
.pn-run__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; }
.pn-run__name a {
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.1rem); font-weight: 650; font-stretch: 125%; letter-spacing: -.05em; line-height: 1;
  text-decoration: none;
}
.pn-run__name a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; }
.pn-run__name span { font-size: .95rem; color: var(--pn-soft); }

.pn-note__head { padding-top: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.pn-note__topic { grid-column: rail; grid-row: 1; padding-top: .55rem; color: var(--pn-topic); font-weight: 600; font-size: .95rem; }
.pn-note__title {
  grid-column: text / end; grid-row: 1;
  font-size: clamp(2.2rem, 1.25rem + 2.9vw, 4.3rem);
  font-weight: 600; font-stretch: 108%; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance;
}
.pn-note__dek {
  grid-column: text; grid-row: 2; margin-top: 1.6rem;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.45; letter-spacing: -.012em; color: var(--pn-ink-2); text-wrap: pretty;
}
.pn-note__meta {
  grid-column: text / end; grid-row: 3; margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: .4rem clamp(1.5rem, 3vw, 3rem);
  padding-block: .8rem; border-block: 1px solid var(--pn-hair);
  font-size: .95rem; line-height: 1.35; font-variant-numeric: tabular-nums;
}
.pn-note__meta div { display: flex; gap: .5rem; }
.pn-note__meta dt { color: var(--pn-soft); }
.pn-note__meta dd { margin: 0; }

.pn-note__body { padding-top: clamp(2.5rem, 4.5vw, 3.75rem); align-items: start; }
.pn-note__rail { grid-column: rail; grid-row: 1; height: 100%; }
.pn-contents--sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.pn-copy {
  margin-top: 1.4rem; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font-size: .92rem; color: var(--pn-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pn-hair);
}
.pn-copy:hover { color: var(--pn-ink); text-decoration-color: currentColor; }
.pn-copy--end { justify-self: start; margin-top: 0; }

/* The reading column. 19px, about 65 characters, generous leading. */
.pn-prose { grid-column: text; grid-row: 1; font-size: 1.1875rem; line-height: 1.66; }
.pn-prose > * { max-width: 65ch; }
.pn-prose > p + p, .pn-prose > p + ul, .pn-prose > ul + p, .pn-prose > :is(.pull, .note) + p { margin-top: 1.05em; }
.pn-prose > p:first-of-type { font-size: 1.28rem; line-height: 1.58; letter-spacing: -.008em; }
.pn-prose h2 {
  margin-top: 2.4em; margin-bottom: .7em; scroll-margin-top: calc(var(--header-h) + 1.5rem);
  font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); font-weight: 600; font-stretch: 106%; letter-spacing: -.025em; line-height: 1.15;
}
.pn-prose ul { padding: 0; list-style: none; display: grid; gap: .55em; }
.pn-prose ul li { position: relative; padding-left: 1.4em; }
.pn-prose ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: .7em; height: 1px; background: var(--pn-ink); }
.pn-prose strong { font-weight: 600; }

/* The margin: things that hang beside the text without breaking its measure. */
.pn-hang, .pn-prose .pull, .pn-prose .note {
  float: right; clear: right;
  width: var(--pn-margin);
  margin-right: calc(-1 * (var(--pn-margin) + var(--pn-gap)));
  max-width: none;
}
.pn-note__fig { margin-top: .45rem; margin-bottom: 2rem; }
.pn-prose .pull { margin-block: .3rem 1.5rem; padding-top: .9rem; border-top: 3px solid var(--pn-rule); }
.pn-prose .pull p {
  font-size: 1.32rem; font-weight: 500; font-stretch: 106%; letter-spacing: -.02em; line-height: 1.3; text-wrap: balance;
}
.pn-prose .note { margin-block: .3rem 1.5rem; padding-top: .8rem; border-top: 1px solid var(--pn-rule); font-size: .98rem; line-height: 1.55; }
.pn-prose .note p + p { margin-top: .5em; }
.pn-prose .note__title { font-weight: 600; }
.pn-prose .note a[href^="mailto:"] { white-space: nowrap; }

.pn-toc-m { display: none; }

.pn-end { clear: both; margin-top: 3.2rem; padding-top: 1.1rem; border-top: 3px solid var(--pn-rule); display: grid; gap: .9rem; }
.pn-end__sign { font-weight: 600; font-size: 1.02rem; display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.pn-end__sign span { font-weight: 400; color: var(--pn-soft); font-variant-numeric: tabular-nums; }
.pn-end__ask { font-size: 1.02rem; color: var(--pn-ink-2); }
.pn-end__ask a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 600; }
.pn-end__ask svg { width: 1.1em; height: 1.1em; }

.pn-next { padding-block: var(--pn-block) calc(var(--pn-block) * 1.1); }
.pn-next .pn-month { border-top: 3px solid var(--pn-rule); border-bottom: 0; }

/* ================================================================ MOTION
   Restrained and once only: the rules draw, the crop opens, the index
   rules answer the pointer. The page is finished without any of it. */
@media (prefers-reduced-motion: no-preference) {
  .js .pn-mast__head::before { animation: pn-draw .9s var(--sx-ease) .05s both; }
  .js .pn-mast__head::after { animation: pn-draw 1.1s var(--sx-ease) .25s both; }
  .js .pn-run::after { animation: pn-draw 1s var(--sx-ease) .1s both; }
  @keyframes pn-draw { from { transform: scaleX(0); } }

  .js [data-pn-reveal] .pn-crop { clip-path: inset(9% 0 9% 0); transition: clip-path 1.2s var(--sx-ease); }
  .js [data-pn-reveal] .pn-crop img { transform: scale(1.06); transition: transform 1.6s var(--sx-ease); }
  .js [data-pn-reveal].is-in .pn-crop { clip-path: inset(0); }
  .js [data-pn-reveal].is-in .pn-crop img { transform: none; }

  /* Headline carries from the journal front into the note (progressive; browsers
     without cross-document view transitions simply navigate). Two pages of text must
     never double-expose: the old page leaves before the new one arrives, and only the
     headline travels, as one image. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: pn-out .14s ease-in both; }
  ::view-transition-new(root) { animation: pn-in .26s var(--sx-ease) .12s both; }
  ::view-transition-group(*.pn-title) { animation-duration: .42s; animation-timing-function: var(--sx-ease); }
  ::view-transition-old(*.pn-title) { animation: none; opacity: 0; }
  ::view-transition-new(*.pn-title) { animation: none; }
  @keyframes pn-out { to { opacity: 0; } }
  @keyframes pn-in { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .pn-row::before, .pn-more svg { transition: none; }
}

/* =============================================================== TABLET
   Two columns: the rail keeps its job, the margin folds into the text. */
@media (max-width: 1099px) {
  .page-notes { --pn-rail: clamp(9rem, 20vw, 11.5rem); --pn-gap: clamp(1.5rem, 3.5vw, 2.5rem); }
  .pn-grid { grid-template-columns: [rail] var(--pn-rail) [text] minmax(0, 1fr) [margin end]; }
  .pn-lead__title { grid-column: text / end; }
  .pn-lead__grid { grid-template-rows: auto auto auto 1fr; }
  .pn-lead__fig { grid-column: text; grid-row: 3; margin-top: 2rem; max-width: 24rem; }
  .pn-lead__fig .pn-crop { aspect-ratio: 4 / 3; }
  .pn-lead__open { grid-row: 4; }
  .pn-lead__rail { grid-row: 2 / span 3; }
  .pn-second__note--minor { grid-column: text; margin: 2rem 0 0; padding: 1.4rem 0 0; border-left: 0; border-top: 1px solid var(--pn-hair); }
  .pn-desk { grid-column: text; margin-top: 2rem; justify-self: start; min-width: 16rem; }
  .pn-subject__notes { grid-column: text; margin-top: .9rem; }
  .pn-note__title { grid-column: text / end; }
  .pn-note__meta { grid-column: text; }
  .pn-hang, .pn-prose .pull, .pn-prose .note { float: none; width: auto; margin-right: 0; max-width: 65ch; }
  .pn-note__fig { margin: 0 0 2.2rem; max-width: 30rem; }
  .pn-note__fig .pn-crop { aspect-ratio: 3 / 2; }
  .pn-prose .pull, .pn-prose .note { margin-block: 2rem; }
}

/* ================================================================ PHONE
   A publication, not a collapsed grid: titles first, metadata readable,
   one column, no sticky rail. */
@media (max-width: 759px) {
  .page-notes { --pn-block: 3.25rem; }
  .pn-grid { display: block; }

  .pn-mast__head { display: block; padding-bottom: 1.1rem; }
  .pn-mast__title { font-size: calc(100cqi / 3.7); }
  .pn-mast__stand { width: auto; margin-top: 1.1rem; }
  .pn-mast__foot { display: grid; gap: .15rem; }

  .pn-lead__grid { display: flex; flex-direction: column; align-items: stretch; }
  .pn-lead__label { order: 0; padding-top: 0; margin-bottom: .8rem; }
  .pn-lead__title { order: 1; font-size: clamp(2rem, 1.2rem + 4.4vw, 2.6rem); line-height: 1.05; }
  .pn-lead__dek { order: 2; margin-top: 1.1rem; }
  .pn-lead__rail { order: 3; padding-top: 1.4rem; gap: 0; }
  .pn-lead__rail .pn-facts { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .pn-lead__rail .pn-facts li:last-child { grid-column: 1 / -1; }
  .pn-lead__rail .pn-contents { display: none; }      /* the note carries its own contents */
  .pn-lead__fig { order: 4; margin: 1.6rem calc(-1 * var(--sx-gutter)) 0; max-width: none; }
  .pn-lead__fig .pn-crop { aspect-ratio: 3 / 2; }
  .pn-lead__fig figcaption { padding-inline: var(--sx-gutter); }
  .pn-lead__open { order: 5; margin-top: 1.4rem; padding-top: 0; border-top: 0; }
  .pn-lead__open p { font-size: 1.08rem; }
  .pn-more { width: 100%; justify-content: space-between; min-height: 52px; margin-top: 1.1rem; padding-block: .8rem; border-block: 1px solid var(--pn-rule); }

  .pn-second__grid > .pn-label { margin-bottom: 1.2rem; }
  .pn-second__note--minor { margin-top: 1.6rem; }

  .pn-archive__label { padding-bottom: .8rem; }
  .pn-month__label { position: static; padding: 1.1rem 0 .2rem; color: var(--pn-soft); }
  .pn-row, .pn-row--kind { grid-template-columns: minmax(0, 1fr) auto; row-gap: .35rem; padding-block: 1rem; }
  .pn-row__day { grid-column: 1; grid-row: 1; }
  .pn-row__min { grid-column: 2; grid-row: 1; }
  .pn-row__title { grid-column: 1 / -1; grid-row: 2; font-size: 1.2rem; }
  .pn-row__topic { grid-column: 1 / -1; grid-row: 3; }

  .pn-first .pn-label { margin-bottom: 1rem; }
  .pn-desk { min-width: 0; }

  .pn-subjects__intro { margin-top: .5rem; }
  .pn-subject__title { font-size: 1.35rem; }
  .pn-subject__text { margin-top: .5rem; }
  .pn-subject__notes { margin-top: .9rem; }

  .pn-colophon .pn-label { margin-bottom: .5rem; }

  .pn-run { align-items: center; }
  .pn-run .pn-crumbs { display: none; }               /* the running head already links back */
  .pn-note__head { display: flex; flex-direction: column; align-items: stretch; padding-top: 1.8rem; }
  .pn-note__topic { padding-top: 0; margin-bottom: .8rem; }
  .pn-note__title { font-size: clamp(1.95rem, 1.15rem + 4.3vw, 2.5rem); line-height: 1.06; }
  .pn-note__dek { margin-top: 1rem; }
  .pn-note__meta { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; }
  .pn-note__meta div { display: grid; gap: .1rem; }
  .pn-note__meta div:first-child { grid-column: 1 / -1; }

  .pn-note__body { padding-top: 1.6rem; }
  .pn-note__rail { display: none; }
  .pn-prose { font-size: 1.125rem; line-height: 1.64; }
  .pn-prose > p:first-of-type { font-size: 1.19rem; }
  .pn-note__fig { margin: 0 calc(-1 * var(--sx-gutter)) 1.6rem; max-width: none; }
  .pn-note__fig figcaption { padding-inline: var(--sx-gutter); }
  .pn-toc-m { display: block; margin-bottom: 1.8rem; border-block: 1px solid var(--pn-rule); }
  .pn-toc-m summary {
    display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer;
    font-size: 1rem; font-weight: 600; list-style: none;
  }
  .pn-toc-m summary::-webkit-details-marker { display: none; }
  .pn-toc-m summary span { font-weight: 400; color: var(--pn-soft); font-size: .95rem; }
  .pn-toc-m summary span::after { content: "+"; margin-left: .6rem; font-size: 1.2rem; color: var(--pn-ink); }
  .pn-toc-m[open] summary span::after { content: "\2212"; }
  .pn-toc-m ol { margin: 0 0 .8rem; padding: 0; list-style: none; }
  .pn-toc-m a { display: block; padding: .6rem 0; border-top: 1px solid var(--pn-hair); font-size: 1rem; text-decoration: none; }
  .pn-prose .pull p { font-size: 1.22rem; }
  .pn-end { margin-top: 2.6rem; }
}
