/* ============================================================
   03 · THE REGISTER
   The curriculum as the school's printed register of instruction.
   Warm paper, rich ink, vermilion stamps, press blue bookkeeping.
   ============================================================ */

:root {
  --paper: #f4f0e4;
  --paper-deep: #e9e3cf;
  --surface: #faf7ed;
  --ink: #211d17;
  --mut: #6a6455;
  --mut2: #a29a86;
  --line: #d8d1bb;
  --verm: #c63b1e;
  --blue: #2e4a6b;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'Cascadia Mono', monospace;

  --maxw: 1288px;
  --gutter: clamp(20px, 4vw, 56px);
  --cellmin: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* paper grain over everything, incl. plates: unifying print fibre */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

::selection { background: var(--verm); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--verm);
  outline-offset: 2px;
}

img { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- registrar micro type ---------- */
.micro,
.boot {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--mut);
  font-synthesis: none;
}

.boot { padding: 48px var(--gutter); }
.load-err { padding: 48px var(--gutter); font-family: var(--mono); color: var(--verm); }

/* ---------- lab chrome ---------- */
.lab-chrome {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 60;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 5px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}
.lab-chrome a { color: inherit; text-decoration: none; padding: 4px 2px; }
.lab-chrome a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- page column ---------- */
.sheet {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.mast { padding-top: clamp(28px, 4vw, 52px); text-align: center; }

.mast-rule { height: 3px; background: var(--ink); }
.mast-rule--thin { height: 1px; margin-top: 3px; }

.mast-micro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
}
.mast-micro > span { white-space: nowrap; }

/* press registration mark */
.regmark {
  flex: none;
  width: 13px; height: 13px;
  border: 1px solid var(--mut2);
  border-radius: 50%;
  position: relative;
}
.regmark::before, .regmark::after {
  content: ''; position: absolute; background: var(--mut2);
}
.regmark::before { left: 50%; top: -4px; bottom: -4px; width: 1px; margin-left: -0.5px; }
.regmark::after { top: 50%; left: -4px; right: -4px; height: 1px; margin-top: -0.5px; }

.mast-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 620;
  font-size: clamp(38px, 6.1vw, 82px);
  line-height: 1.0;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  margin: clamp(18px, 2.6vw, 30px) 0 12px;
  text-wrap: balance;
}

.mast-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
}
.mast-sub b { font-weight: 400; color: var(--verm); }

/* ---------- edition tabs (year switcher) ---------- */
.editions {
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.ed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 15px clamp(18px, 4vw, 52px) 13px;
  min-height: 44px;
  text-decoration: none;
  color: var(--mut);
  position: relative;
}
.ed + .ed { border-left: 1px solid var(--line); }
.ed-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.1;
}
.ed-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut2);
}
.ed:hover { color: var(--ink); }
.ed.is-on { color: var(--ink); }
.ed.is-on .ed-meta { color: var(--mut); }
.ed.is-on::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: -3px;
  height: 3px;
  background: var(--verm);
}

/* ============================================================
   OVERVIEW: year strip + slug case + inks
   ============================================================ */
.ovw { margin-top: clamp(36px, 5vw, 64px); }

.ovw-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

/* ---------- the bound-in year strip ---------- */
.strip-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-top: 44px; /* room for the needle flag */
  padding-bottom: 10px; /* room for the needle tail */
  scrollbar-width: thin;
}
.strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(38, minmax(var(--cellmin), 1fr));
  column-gap: 2px;
  row-gap: 0;
  width: max-content;
  min-width: 100%;
}

.seg {
  grid-row: 1;
  height: 56px;
  border: 0;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  color: var(--mut);
}
.seg--self.is-past { background: var(--paper-deep); }
.seg--self .seg-dot {
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--mut2);
}
.seg--break {
  background:
    repeating-linear-gradient(45deg, transparent 0 5px, var(--line) 5px 6px),
    var(--surface);
}
.seg--break .seg-txt {
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mut);
  background: var(--surface);
  padding: 2px 6px;
}
.seg:focus-visible { outline-offset: -3px; }
.seg--course {
  cursor: pointer;
  background: color-mix(in oklab, var(--ti) 30%, var(--surface));
  color: var(--ti);
  box-shadow:
    inset 0 0 0 1px color-mix(in oklab, var(--ti) 75%, transparent),
    inset 0 -3px 0 color-mix(in oklab, var(--ti) 75%, transparent);
}
.seg--course.is-set {
  background: var(--ti);
  color: var(--paper);
  box-shadow: none;
}
.seg-no { font-size: 11.5px; letter-spacing: 0.06em; }
@media (prefers-reduced-motion: no-preference) {
  .seg--course { transition: transform 0.16s ease, box-shadow 0.16s ease; }
}
.seg--course:hover { transform: translateY(-2px); }
.seg--course:hover::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--ink);
}

.strip-m {
  grid-row: 2;
  margin-top: 7px;
  padding: 3px 0 0 6px;
  border-left: 1px solid var(--mut2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
  white-space: nowrap;
}

/* the NOW needle: anchored to the current week's grid column */
.needle-anchor {
  position: relative;
  grid-row: 1 / 3;
  z-index: 3;
  pointer-events: none;
}
.needle {
  position: absolute;
  left: 50%;
  top: -34px;
  bottom: -8px;
  width: 0;
  text-decoration: none;
  pointer-events: auto;
}
.needle-line {
  position: absolute;
  left: -1px; top: 30px; bottom: 0;
  width: 2px;
  background: var(--verm);
  box-shadow: 0 0 0 1.5px var(--paper);
}
.needle-flag {
  position: absolute;
  bottom: calc(100% - 30px);
  left: -1px;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 9px 4px;
  background: var(--verm);
  color: #fff7ef;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}
.needle-flag b {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.18em;
}
.needle:hover .needle-flag { background: var(--ink); }

.strip-caption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  min-height: 18px;
}
.strip-caption b { font-weight: 400; color: var(--ink); }

/* ---------- overview lower grid: slug case / figure / inks ---------- */
.ovw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(230px, 300px);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--ink);
}

.case-title { margin-bottom: 14px; }
.case-title b { font-weight: 400; color: var(--ink); }

.slugs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.slug-ten { display: flex; gap: 3px; position: relative; }
.slug-ten::after {
  content: attr(data-n);
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--mut2);
  line-height: 1;
}
.slug {
  width: 13px; height: 4px;
  border: 1px solid var(--mut2);
  background: transparent;
}
.slug--done { background: var(--ink); border-color: var(--ink); }

.case-key {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  align-items: center;
}
.case-key .slug { flex: none; }

/* big blue registrar figure */
.figure-box {
  text-align: right;
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 3vw, 44px);
  align-self: center;
}
.big-figure {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.9;
  color: var(--blue);
  font-variant-numeric: lining-nums;
}
.figure-cap {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}
.figure-cap b { font-weight: 400; color: var(--blue); }

/* spot inks + strip key */
.inks {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 18px 14px;
}
.inks-title { margin-bottom: 10px; }
.ink-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.ink-row + .ink-row { border-top: 1px dotted var(--line); }
.ink-swatch { width: 14px; height: 14px; flex: none; }
.ink-code { color: var(--ink); min-width: 76px; }
.ink-count { color: var(--mut); margin-left: auto; }
.inks-div { height: 1px; background: var(--line); margin: 10px 0; }
.key-row {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--mut);
}
.key-cell { width: 18px; height: 12px; flex: none; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.key-cell--set { background: var(--ink); box-shadow: none; }
.key-cell--break {
  background: repeating-linear-gradient(45deg, transparent 0 4px, var(--line) 4px 5px), var(--surface);
}

/* ============================================================
   SEMESTER SECTIONS
   ============================================================ */
.sem { margin-top: clamp(64px, 8vw, 110px); }

.sem-rules { border-top: 3px solid var(--ink); }
.sem-rules::after { content: ''; display: block; height: 1px; background: var(--ink); margin-top: 3px; }

.sem-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, 400px);
  gap: clamp(20px, 3vw, 44px);
  align-items: end;
  padding: 18px 0 10px;
}
.sem-no {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 580;
  font-size: clamp(56px, 6vw, 92px);
  line-height: 0.82;
  letter-spacing: -0.01em;
}
.sem-kicker { margin-bottom: 6px; }
.sem-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sem-prog { padding-bottom: 4px; }
.prog {
  position: relative;
  height: 8px;
  border: 1px solid var(--ink);
  background: var(--surface);
}
.prog-fill {
  position: absolute;
  top: 1px; bottom: 1px; left: 1px;
  width: calc((100% - 2px) * var(--pct) / 100);
  background: var(--blue);
}
.prog-note {
  display: block;
  margin-top: 7px;
  text-align: right;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ============================================================
   LEDGER ENTRIES
   ============================================================ */
.entry {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 4.4fr) minmax(0, 7.6fr);
  grid-template-areas: 'm p b';
  column-gap: clamp(28px, 3.4vw, 52px);
  padding: clamp(40px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}
.sem .entry:first-of-type,
.sem .now-rule + .entry { border-top: 0; }
.entry--major { grid-template-columns: 84px minmax(0, 5.3fr) minmax(0, 6.7fr); }
.entry--verso { grid-template-areas: 'm b p'; grid-template-columns: 84px minmax(0, 7.6fr) minmax(0, 4.4fr); }
.entry--verso.entry--major { grid-template-columns: 84px minmax(0, 6.7fr) minmax(0, 5.3fr); }

.entry-margin { grid-area: m; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.entry-margin::after {
  content: '';
  flex: 1;
  min-height: 24px;
  width: 1px;
  margin-left: 10px;
  margin-top: 8px;
  background: var(--line);
}
.entry-plate { grid-area: p; }
.entry-body { grid-area: b; position: relative; min-width: 0; }

.e-no-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut2);
}
.e-no {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 34px;
  line-height: 0.9;
  font-variant-numeric: oldstyle-nums;
}
@media (prefers-reduced-motion: no-preference) {
  .e-no { transition: color 0.2s ease; }
}
.entry:hover .e-no,
.entry:focus-within .e-no { color: var(--verm); }
.e-type {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ti);
}
.e-type::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--ti);
}

/* plates: tipped-in art */
.entry-plate figure { margin: 0; transform: rotate(var(--tilt, -0.45deg)); }
.entry--verso .entry-plate figure { --tilt: 0.4deg; }
@media (prefers-reduced-motion: no-preference) {
  .entry-plate figure { transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .entry:hover .entry-plate figure { transform: rotate(0deg) translateY(-2px); }
}
.plate-mat {
  background: var(--surface);
  border: 1px solid var(--ink);
  padding: 9px;
  box-shadow:
    1px 2px 0 rgba(33, 29, 23, 0.1),
    3px 5px 0 rgba(33, 29, 23, 0.05);
}
.plate-mat img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
}
.plate-cap {
  margin-top: 9px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* body */
.e-date {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 12px;
}
.e-date b { font-weight: 400; color: var(--verm); }
.e-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 590;
  font-size: clamp(26px, 2.8vw, 37px);
  line-height: 1.06;
  letter-spacing: 0.002em;
  text-wrap: balance;
  padding-right: 150px;
}
.e-inst {
  margin-top: 10px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 420;
  font-size: 18px;
  color: var(--mut);
}
.e-inst .blank {
  display: inline-block;
  width: 118px;
  border-bottom: 1px solid var(--mut);
  transform: translateY(-3px);
}
.e-inst .tbd { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--verm); }

.e-blurb {
  margin-top: 18px;
  max-width: 56ch;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  text-wrap: pretty;
}

.e-index {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
}
.e-index .lbl { color: var(--mut2); margin-right: 8px; font-weight: 600; }

/* day punches */
.e-days {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.punches { display: flex; gap: 5px; flex-wrap: wrap; }
.punch {
  width: 13px; height: 13px;
  border: 1px solid var(--mut2);
  background: transparent;
}
.punch--done {
  border-color: var(--ink);
  background-color: var(--ink);
  background-image: radial-gradient(circle at 50% 50%, var(--paper) 0 1.7px, transparent 2px);
}
.punch--today { border: 2px solid var(--verm); }
.e-days-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}
.e-days-note b { font-weight: 400; color: var(--ink); }

/* open affordance */
.e-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.e-open:hover { color: var(--blue); border-color: var(--blue); }
.e-open .arr { font-family: var(--sans); font-weight: 600; display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .e-open .arr { transition: transform 0.18s ease; }
  .e-open:hover .arr { transform: translate(2px, -2px); }
}

/* ---------- stamps ---------- */
.stamp {
  position: absolute;
  top: 8px;
  right: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verm);
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 12px 20px;
  transform: rotate(-6deg);
  mix-blend-mode: multiply;
  opacity: 0.92;
  filter: url(#ink-rough);
  pointer-events: none;
  white-space: nowrap;
}
.stamp::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.stamp--done {
  color: #2b2015;
  border-radius: 2px;
  transform: rotate(-3.2deg);
  padding: 9px 16px;
  font-size: 11.5px;
  opacity: 0.85;
  filter: url(#ink-rough-heavy);
}
.stamp--done::after { border-radius: 1px; inset: 3px; }
.stamp--up {
  color: var(--mut);
  border: 1px dashed var(--mut2);
  border-radius: 2px;
  transform: rotate(0deg);
  padding: 8px 14px;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}
.stamp--up::after { display: none; }
.stamp-date {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-align: center;
  margin-top: 3px;
}

/* ---------- NOW rule + hero entry ---------- */
.now-rule {
  position: relative;
  margin-top: clamp(30px, 4vw, 44px);
  border-top: 2px solid var(--verm);
}
.now-tag {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--verm);
  color: #fff7ef;
  padding: 6px 12px 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.now-tag b { font-family: var(--sans); font-weight: 700; letter-spacing: 0.18em; }

.entry--hero {
  grid-template-areas: 'm b p';
  grid-template-columns: 84px minmax(0, 6.4fr) minmax(0, 5.6fr);
  border-top: 0;
  padding-top: clamp(44px, 5.4vw, 68px);
  padding-bottom: clamp(48px, 6vw, 78px);
}
.entry--hero .thread {
  position: absolute;
  left: -13px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--verm);
}
.entry--hero .e-name {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.02;
  padding-right: 170px;
}
.entry--hero .e-name--long { font-size: clamp(30px, 3vw, 42px); line-height: 1.06; }
.e-name--long:not(.entry--hero .e-name) { font-size: clamp(24px, 2.4vw, 32px); }
.entry--hero .e-blurb { font-size: 19px; max-width: 52ch; }
.entry--hero .plate-mat img { aspect-ratio: 4 / 3.4; }
.entry--hero .stamp { top: 4px; font-size: 14px; padding: 14px 26px; }
.entry--hero .e-inst { font-size: 20px; color: var(--ink); }
.entry--hero .punch { width: 15px; height: 15px; }

/* flash after strip jump */
@media (prefers-reduced-motion: no-preference) {
  .entry.flash .e-no { animation: flash-no 1.4s ease-out 1; }
  @keyframes flash-no {
    0%, 60% { color: var(--verm); }
    100% { color: var(--ink); }
  }
}

/* ---------- break notice ---------- */
.notice-break {
  position: relative;
  margin: clamp(36px, 4.4vw, 52px) 0;
  padding: clamp(30px, 4vw, 44px) 24px;
  text-align: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background:
    repeating-linear-gradient(45deg, transparent 0 9px, rgba(33, 29, 23, 0.05) 9px 10px);
  scroll-margin-top: 84px;
}
.nb-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--serif);
  font-size: 27px;
  color: var(--mut);
  line-height: 1;
  margin-bottom: 14px;
}
.nb-orn::before, .nb-orn::after {
  content: '';
  width: 64px;
  height: 1px;
  background: var(--mut2);
}
.nb-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mut2);
  margin-bottom: 8px;
}
.nb-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 480;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}
.nb-date {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mut);
}
.nb-blurb {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--mut);
}

/* ============================================================
   FOLIO FOOTER
   ============================================================ */
.folio {
  margin-top: clamp(72px, 9vw, 120px);
  padding-bottom: 40px;
}
.folio-rules { border-top: 1px solid var(--ink); }
.folio-rules::after { content: ''; display: block; height: 3px; background: var(--ink); margin-top: 3px; }
.folio-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mut);
}
.folio-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .e-name { padding-right: 0; }
  .entry--hero .e-name { padding-right: 0; }
  .stamp { position: static; display: inline-block; margin-top: 14px; }
  .entry--hero .stamp { margin-top: 16px; }
  .ovw-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .inks { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .entry,
  .entry--major,
  .entry--verso,
  .entry--verso.entry--major,
  .entry--hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'm' 'p' 'b';
    row-gap: 22px;
  }
  .entry-margin {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
  }
  .entry-margin::after { display: none; }
  .mm-paris { display: none; }
  .ovw-label { flex-direction: column; gap: 4px; }
  .ovw-label-right { display: none; }
  .e-no { font-size: 28px; }
  .e-type { margin-top: 0; }
  .entry--hero .thread { left: -10px; }
  .entry-plate figure, .entry--verso .entry-plate figure { --tilt: 0deg; }

  .ovw-grid { grid-template-columns: minmax(0, 1fr); }
  .figure-box { border-left: 0; padding-left: 0; text-align: left; }

  .sem-row { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  .sem-no { font-size: 56px; }
  .sem-prog { max-width: 420px; }

  .strip-scroll { margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  :root { --cellmin: 44px; }
  .seg { height: 62px; }

  .mast-micro { justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
  .regmark { display: none; }
}

@media (max-width: 560px) {
  .ed { padding: 12px 8px 10px; flex: 1; }
  .ed-name { font-size: 13.5px; letter-spacing: 0.04em; white-space: nowrap; }
  .ed-meta { font-size: 8.5px; white-space: nowrap; }
  .ed-meta .ed-count { display: none; }
  .e-blurb { font-size: 16px; }
  .entry--hero .e-blurb { font-size: 17px; }
  .folio-row { flex-direction: column; gap: 6px; }
  .folio-row span { white-space: normal; }
  .big-figure { font-size: 72px; }
  .lab-chrome { top: auto; bottom: 12px; right: 12px; }
}
