/* ─────────────────────────────────────────────────────────────
   THE MARGIN CALL — one sheet of newsprint, two inks.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #f2ece0;
  --desk: #d8cfbc;
  --ink: #14110e;
  --ink-2: #3b342c;
  --ink-3: #6d6356;
  --red: #b0271f;

  --f-black: 'UnifrakturMaguntia', 'Old English Text MT', 'Goudy Text', serif;
  --f-head: 'Libre Baskerville', Baskerville, 'Times New Roman', serif;
  --f-body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-kick: 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;

  --pad: clamp(16px, 3.4vw, 54px);
  --gap: clamp(14px, 1.6vw, 24px);
}

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

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

body {
  margin: 0;
  background-color: var(--desk);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .05 1 0 0 0 -.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.45;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
p { margin: 0; }
img, canvas, svg { max-width: 100%; }

/* ─── The sheet ─────────────────────────────────────────────── */

.sheet {
  position: relative;
  max-width: 1340px;
  margin: clamp(0px, 3.2vw, 56px) auto;
  padding: clamp(18px, 2.6vw, 40px) var(--pad) clamp(24px, 3vw, 44px);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .15 .26 0 0 0 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  box-shadow:
    inset 0 0 140px rgba(122, 88, 38, .13),
    0 1px 1px rgba(40, 30, 15, .12),
    0 40px 80px -40px rgba(40, 30, 15, .55);
  overflow: hidden;
}

/* newsprint grain over everything, ink included. Pinned to the viewport:
   a page-tall overlay becomes a compositor layer too large to raster on phones. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .07 0 0 0 0 .04 1.1 0 0 0 -.47'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .55;
}

.stain {
  position: absolute;
  z-index: 19;
  pointer-events: none;
}
.stain--a { width: 210px; top: 118px; right: -46px; opacity: .22; transform: rotate(18deg); }
.stain--b { width: 170px; bottom: 360px; left: -60px; opacity: .15; transform: rotate(-40deg); }

/* ─── Masthead ──────────────────────────────────────────────── */

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--gap);
  padding-bottom: .35rem;
}

.nameplate {
  margin: 0;
  font-family: var(--f-black);
  font-weight: 400;
  font-size: clamp(2.7rem, 9.6vw, 8.4rem);
  line-height: 1;
  letter-spacing: .004em;
  text-align: center;
  white-space: nowrap;
  padding-top: .04em;
}

.ear {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  max-width: 11.5rem;
  padding: .55rem .7rem;
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 2px;
  text-align: center;
}
.ear--right { justify-self: end; }
.ear__kicker {
  font-family: var(--f-kick);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--ink);
}
.ear__text { font-style: italic; font-size: .82rem; line-height: 1.25; }
.ear__text--quote { font-family: var(--f-head); font-size: .84rem; line-height: 1.35; }

.ear--right { position: relative; }

.stamp {
  position: absolute;
  left: -1.9rem;
  bottom: -1.7rem;
  --stamp-t: rotate(-11deg);
  transform: var(--stamp-t);
  z-index: 2;
  padding: .16em .5em .08em .62em;
  font-family: var(--f-kick);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  border: 4px double var(--red);
  background: rgba(242, 236, 224, .55);
  opacity: .92;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}

.dateline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .42rem 0 .36rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-kick);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
}

/* ─── Ticker ────────────────────────────────────────────────── */

.ticker {
  margin-top: 3px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tape 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticker__set li {
  padding: .5rem 1.6rem;
  font-family: var(--f-kick);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  white-space: nowrap;
  position: relative;
}
.ticker__set li::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 3px; height: 3px;
  background: currentColor;
  opacity: .5;
  transform: translateY(-50%);
}
.ticker__set b { font-weight: 400; font-size: .72em; margin: 0 .2em; opacity: .75; }

@keyframes tape { to { transform: translateX(-50%); } }

/* ─── Banner ────────────────────────────────────────────────── */

.banner { padding: clamp(.9rem, 1.8vw, 1.5rem) 0 clamp(1rem, 1.8vw, 1.6rem); text-align: center; }

.banner__hl {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 10.4vw, 9.6rem);
  line-height: .92;
  letter-spacing: .07em;
  margin-right: -.07em;           /* cancel the trailing track */
  text-transform: uppercase;
  white-space: nowrap;
}

.decks { max-width: 50rem; margin: clamp(.8rem, 1.4vw, 1.2rem) auto 0; }
.deck { text-wrap: balance; }
.deck--1 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.02rem, 2vw, 1.55rem);
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.2;
}
.deck--2 {
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  line-height: 1.25;
}
.deck--3 {
  font-family: var(--f-kick);
  font-weight: 500;
  font-size: clamp(.8rem, 1.1vw, .98rem);
  letter-spacing: .3em;
  text-transform: uppercase;
}
.deck-rule {
  display: block;
  width: 4.5rem;
  height: 1px;
  margin: .55rem auto;
  background: var(--ink);
}

/* ─── Rules ─────────────────────────────────────────────────── */

.rule-heavy {
  height: 6px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ─── Grid & columns ────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: clamp(1rem, 1.6vw, 1.4rem) 0;
}
.col {
  min-width: 0;
  padding: 0 var(--gap);
  border-left: 1px solid var(--ink);
}
.col:first-child { padding-left: 0; border-left: 0; }
.col:last-child { padding-right: 0; }

.front .col--lead   { grid-column: span 4; }
.front .col--center { grid-column: span 5; }
.front .col--side   { grid-column: span 3; display: flex; flex-direction: column; gap: 1.3rem; }

.facts .col  { grid-column: span 4; text-align: center; }
.inside .col { grid-column: span 4; }
.lower .col--chronicle { grid-column: span 7; }
.lower .col--prices    { grid-column: span 5; }

/* ─── Type within columns ───────────────────────────────────── */

.kicker {
  font-family: var(--f-kick);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .35rem;
}

.hl {
  margin: 0 0 .6rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.14;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.hl--lead { font-size: clamp(1.6rem, 2.35vw, 2.2rem); line-height: 1.08; }
.hl--fact {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .45rem;
}

.byline {
  display: inline-block;
  margin-bottom: .8rem;
  padding: .22rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-kick);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.body {
  font-size: 1.02rem;
  line-height: 1.46;
  text-align: justify;
  -webkit-hyphens: auto;
          hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}
.body p + p { text-indent: 1.3em; }

.dropcap {
  float: left;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 5.05em;
  line-height: .8;
  margin: .07em .09em 0 -.02em;
}

.jump {
  display: inline-block;
  margin-top: .7rem;
  font-style: italic;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.jump:hover { border-bottom-style: double; border-bottom-width: 3px; }

.body a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.step { font-family: var(--f-head); font-size: .9em; }

/* ─── The misprint: red plate slips on hover ────────────────── */

.misprint { transition: text-shadow .14s steps(3, end); }
.misprint:hover { text-shadow: -2px 1px 0 rgba(176, 39, 31, .88), 1px 0 0 rgba(20, 17, 14, .12); }

/* ─── Engraving ─────────────────────────────────────────────── */

.engraving { margin: 0; }
.engraving__plate {
  padding: 5px;
  border: 1px solid var(--ink);
}
.engraving canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  outline: 1px solid var(--ink);
}
.engraving figcaption {
  margin-top: .5rem;
  font-size: .84rem;
  line-height: 1.35;
  font-style: italic;
  color: var(--ink-2);
}
.cap-lead {
  font-family: var(--f-kick);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.credit { font-style: normal; font-family: var(--f-kick); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }

/* ─── Buy advertisement ─────────────────────────────────────── */

.buy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.9rem 14px 14px;
  padding: 1rem 1rem 1.05rem;
  text-align: center;
  text-decoration: none;
  border: 5px double var(--ink);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--ink);
}
.buy__label {
  font-family: var(--f-kick);
  font-size: .58rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.buy__hl {
  margin-top: .15rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--red);
}
.buy__rule { width: 60%; height: 3px; margin: .6rem 0 .5rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.buy__sub {
  font-family: var(--f-kick);
  font-weight: 500;
  font-size: clamp(.9rem, 1.3vw, 1.08rem);
  letter-spacing: .3em;
  text-transform: uppercase;
}
.buy__fine { margin-top: .35rem; font-style: italic; font-size: .85rem; }
.nowrap { white-space: nowrap; }
.fist { display: inline-block; font-style: normal; font-size: 1.25em; line-height: 0; vertical-align: -.08em; transition: transform .25s cubic-bezier(.3, .7, .3, 1.4); }
.buy:hover .fist { transform: translateX(5px); }
.buy:hover .buy__hl { text-shadow: 2px -1px 0 rgba(20, 17, 14, .18); }
.buy:focus-visible { outline: 2px solid var(--ink); outline-offset: 20px; }

/* marquee bulbs: two interleaved rows of lamps, lit in turn */
.buy__lights {
  position: absolute;
  inset: -15px;
  pointer-events: none;
  --dot: radial-gradient(circle, var(--ink) 0 1.8px, transparent 2.4px);
}
.buy__lights::before,
.buy__lights::after {
  content: '';
  position: absolute;
  inset: 0;
  animation: bulbs .8s steps(1, end) infinite;
}
.buy__lights::before {
  background:
    var(--dot) 0 0 / 12px 12px repeat-x,
    var(--dot) 0 100% / 12px 12px repeat-x,
    var(--dot) 0 0 / 12px 12px repeat-y,
    var(--dot) 100% 0 / 12px 12px repeat-y;
}
.buy__lights::after {
  background:
    var(--dot) 6px 0 / 12px 12px repeat-x,
    var(--dot) 6px 100% / 12px 12px repeat-x,
    var(--dot) 0 6px / 12px 12px repeat-y,
    var(--dot) 100% 6px / 12px 12px repeat-y;
  animation-delay: -.4s;
}
.buy:hover .buy__lights::before,
.buy:hover .buy__lights::after { animation-duration: .3s; }
.buy:hover .buy__lights::after { animation-delay: -.15s; }

@keyframes bulbs { 0% { opacity: 1; } 50% { opacity: .16; } }

/* ─── Sidebar boxes ─────────────────────────────────────────── */

.box-hl {
  margin-bottom: .55rem;
  padding: .3rem 0 .25rem;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-kick);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
}

.weather { text-align: center; }
.weather__icon { width: 84px; height: auto; color: var(--ink); margin: .1rem auto .2rem; display: block; }
.weather__text { font-size: .95rem; line-height: 1.38; font-style: italic; text-wrap: pretty; }
.weather__odds {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: .6rem;
  padding-top: .5rem;
  border-top: 1px dotted var(--ink);
}
.weather__odds span { font-family: var(--f-kick); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.weather__odds strong {
  font-family: var(--f-head);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 2.7rem;
  line-height: 1;
  margin-top: .1rem;
  color: var(--red);
}

.leverage {
  position: relative;
  padding: 1.1rem .9rem 1rem;
  text-align: center;
  border: 2px solid var(--ink);
}
.leverage::before,
.leverage::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.leverage::before { inset: 5px; border: 1px solid var(--ink); }
.leverage::after  { inset: 9px; border: 1px dashed var(--ink); opacity: .55; }
.corner {
  position: absolute;
  z-index: 1;
  width: 11px; height: 11px;
  background: var(--ink);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px var(--ink);
}
.corner--tl { top: -6px; left: -6px; }
.corner--tr { top: -6px; right: -6px; }
.corner--bl { bottom: -6px; left: -6px; }
.corner--br { bottom: -6px; right: -6px; }

.leverage__stars { font-size: .7rem; letter-spacing: .6em; margin-right: -.6em; }
.leverage__hl {
  font-family: var(--f-kick);
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  transform: scaleY(1.12);
  margin: .25rem 0 .05rem;
}
.leverage__ratio {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.6vw, 3.3rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.leverage__sub {
  margin-top: .35rem;
  font-family: var(--f-head);
  font-style: italic;
  font-size: 1rem;
}
.leverage__fine {
  margin-top: .6rem;
  font-size: 5.4px;
  line-height: 1.22;
  text-align: justify;
  color: var(--ink-2);
  letter-spacing: -.01em;
}

.index ol { margin: 0; padding: 0; list-style: none; }
.index li + li { margin-top: .12rem; }
.index a {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  text-decoration: none;
  font-size: .92rem;
}
.index a span { white-space: nowrap; }
.index a i { flex: 1; border-bottom: 1px dotted var(--ink); transform: translateY(-.25em); }
.index a b { font-family: var(--f-kick); font-weight: 500; font-size: .8rem; }
.index a:hover span { font-style: italic; }

/* ─── Bulletins ─────────────────────────────────────────────── */

.facts .kicker { letter-spacing: .34em; }
.fact__text {
  max-width: 24rem;
  margin: 0 auto;
  font-size: .98rem;
  line-height: 1.4;
  text-wrap: pretty;
}

/* ─── Folio / fold ──────────────────────────────────────────── */

.folio {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  padding: .4rem 0 .32rem;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: 1rem;
}
/* the crease */
.folio::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--pad));
  right: calc(-1 * var(--pad));
  top: calc(-1 * clamp(1.6rem, 3vw, 2.6rem) / 2 - 7px);
  height: 14px;
  background: linear-gradient(180deg, rgba(80, 60, 30, 0) 0%, rgba(80, 60, 30, .08) 45%, rgba(255, 252, 240, .5) 52%, rgba(80, 60, 30, 0) 100%);
  pointer-events: none;
}
.folio__name { font-family: var(--f-black); font-size: 1.45rem; line-height: 1; }
.folio__date, .folio__page {
  font-family: var(--f-kick);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ─── Obituaries ────────────────────────────────────────────── */

.memoriam { text-align: center; }
.inside .memoriam { padding-top: 0; }
.memoriam__hl {
  padding: .55rem 0 .45rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-black);
  font-size: clamp(1.9rem, 2.6vw, 2.35rem);
  line-height: 1;
}
.memoriam__sub {
  margin: .4rem 0 .2rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-kick);
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.obit { padding: .7rem 0 .75rem; font-size: .96rem; line-height: 1.38; text-wrap: pretty; }
.obit + .obit { position: relative; }
.obit + .obit::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 2.2rem; height: 3px;
  transform: translateX(-50%);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.obit__name {
  margin-bottom: .2rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.memoriam__foot {
  padding-top: .5rem;
  border-top: 3px solid var(--ink);
  font-style: italic;
  font-size: .9rem;
}

/* ─── Letters ───────────────────────────────────────────────── */

.letter { padding: .15rem 0 .75rem; font-size: .98rem; line-height: 1.4; }
.letter + .letter { padding-top: .7rem; border-top: 1px solid var(--ink); }
.letter__to { font-style: italic; margin-bottom: .1rem; }
.letter__sig {
  margin-top: .25rem;
  text-align: right;
  font-family: var(--f-kick);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.letter__sig::before { content: '— '; }
.letter__reply {
  margin-top: .45rem;
  padding: .35rem .5rem;
  border-left: 3px solid var(--ink);
  font-style: italic;
}
.letter__reply b { font-style: normal; font-family: var(--f-head); font-size: .85em; }

/* ─── Chronicle ─────────────────────────────────────────────── */

.chronicle { margin: .2rem 0 0; padding: 0; list-style: none; }
.chronicle li {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) auto;
  gap: .4rem 1rem;
  align-items: baseline;
  padding: .6rem 0;
  border-top: 1px solid var(--ink);
}
.chronicle li:last-child { border-bottom: 1px solid var(--ink); }
.chronicle__date {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.chronicle__text { font-size: 1rem; line-height: 1.38; text-wrap: pretty; }
.chronicle__status {
  font-family: var(--f-kick);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .15rem .45rem .1rem;
  border: 1px solid var(--ink);
  white-space: nowrap;
}
.chronicle li.is-done .chronicle__status { background: var(--ink); color: var(--paper); }
.chronicle li.is-done .chronicle__text { color: var(--ink-2); }

/* ─── Closing prices ────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }
.prices {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: .98rem;
}
.prices th, .prices td { padding: .3rem .4rem; text-align: right; }
.prices th:first-child { text-align: left; padding-left: 0; }
.prices td:last-child { padding-right: 0; width: 2.5rem; }
.prices thead th {
  font-family: var(--f-kick);
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.prices tbody th {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.prices tbody tr { border-bottom: 1px dotted rgba(20, 17, 14, .55); }
.prices tbody tr:last-child { border-bottom: 1px solid var(--ink); }
.prices tbody tr:hover { background: rgba(20, 17, 14, .045); }
.prices__note { margin-top: .4rem; font-size: .78rem; font-style: italic; color: var(--ink-3); }

/* ─── Classifieds ───────────────────────────────────────────── */

.classifieds { padding-top: .3rem; }
.classifieds__hl {
  padding: .45rem 0 .35rem;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
  border-bottom-width: 4px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: .24em;
  text-align: center;
  text-transform: uppercase;
}
.classifieds__cols {
  columns: 4 13rem;
  column-gap: calc(var(--gap) * 2);
  column-rule: 1px solid var(--ink);
  padding: 1rem 0 .9rem;
}
.ad {
  break-inside: avoid;
  margin-bottom: .75rem;
  font-size: .9rem;
  line-height: 1.36;
  text-align: justify;
  -webkit-hyphens: auto;
          hyphens: auto;
}
.ad b { font-family: var(--f-head); font-size: .84em; letter-spacing: .03em; }
.ad a { text-decoration-thickness: 1px; text-underline-offset: 2px; font-style: italic; }
.ad a:hover { text-decoration-style: double; }
.ad--boxed {
  padding: .55rem .6rem .65rem;
  border: 2px solid var(--ink);
  text-align: left;
}
.contract {
  display: block;
  margin: .45rem 0 .5rem;
  padding: .35rem .4rem;
  background: rgba(20, 17, 14, .06);
  font-family: 'Courier New', Courier, monospace;
  font-size: .8rem;
  line-height: 1.3;
  word-break: break-all;
}
.copy {
  appearance: none;
  display: block;
  width: 100%;
  padding: .42rem .5rem .36rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-kick);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.copy:hover { background: var(--paper); color: var(--ink); }
.copy:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.imprint {
  padding-top: .6rem;
  border-top: 3px solid var(--ink);
  font-family: var(--f-kick);
  font-size: .64rem;
  letter-spacing: .16em;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ─── Dog-eared corner and the page turn ────────────────────── */

.page-end { position: relative; height: 0; }

.turn {
  --size: clamp(52px, 5vw, 72px);
  position: absolute;
  z-index: 21;
  right: calc(-1 * var(--pad));
  bottom: calc(-1 * clamp(1.6rem, 3vw, 2.6rem) / 2);
  width: var(--size);
  height: var(--size);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 100% 100%;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3);
  animation: peel 6s ease-in-out 3s infinite;
}
/* what lies under the lifted corner */
.turn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, #b6aa90 50%, #d8cfbc 80%);
}
/* the folded-over flap: the back of the paper */
.turn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fbf7ee 0%, #eee5d2 30%, #d6c9ae 50%, transparent 50%);
  filter: drop-shadow(-2px -2px 3px rgba(40, 30, 15, .3));
}
.turn:hover,
.turn:focus-visible { transform: scale(1.4); animation: none; }
.turn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.turn__label {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 10px;
  white-space: nowrap;
  font-family: var(--f-head);
  font-style: italic;
  font-size: .72rem;
  color: var(--ink);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.turn:hover .turn__label,
.turn:focus-visible .turn__label { opacity: 1; transform: none; }
@media (hover: none) {
  .turn__label { opacity: .85; transform: none; font-size: .8rem; }
}

@keyframes peel {
  0%, 86%, 100% { transform: none; }
  90% { transform: scale(1.22); }
  94% { transform: scale(1.06); }
}

/* the leaf that turns over the screen */
.leaf {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 45;
  pointer-events: none;
  perspective: var(--persp, 2200px);
}
.leaf__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 17, 14, .45), rgba(20, 17, 14, 0) 70%);
  opacity: 0;
  animation: leaf-shade 1.15s ease forwards;
}
.leaf__page {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  animation: leaf-turn 1.15s linear forwards;
}
.leaf__front,
.leaf__back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.leaf__front { background: var(--paper); }
.leaf__front > .sheet { position: absolute; margin: 0; box-shadow: none; }
.leaf__back {
  transform: rotateY(180deg);
  background-color: #ece4d3;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 14px), #ece4d3 calc(25% - 14px) 25%),
    repeating-linear-gradient(180deg, rgba(20, 17, 14, .08) 0 3px, transparent 3px 11px);
}
.leaf__front::after,
.leaf__back::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.leaf__front::after {
  background: linear-gradient(90deg, rgba(20, 17, 14, 0) 35%, rgba(20, 17, 14, .38));
  opacity: 0;
  animation: leaf-dim-front 1.15s ease-in forwards;
}
.leaf__back::after {
  background: linear-gradient(270deg, rgba(20, 17, 14, 0) 35%, rgba(20, 17, 14, .32));
  animation: leaf-dim-back 1.15s ease-out forwards;
}

/* the leaf pivots on the left edge, so past 90° it is off screen:
   spend most of the time on the visible lift, then let it go quickly */
@keyframes leaf-turn {
  0%   { transform: rotateY(0deg); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  74%  { transform: rotateY(-96deg); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  100% { transform: rotateY(-180deg); }
}
@keyframes leaf-shade { 0% { opacity: 0; } 62% { opacity: .9; } 100% { opacity: 0; } }
@keyframes leaf-dim-front { 0% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes leaf-dim-back { 0%, 74% { opacity: 1; } 100% { opacity: 0; } }

/* ─── Below the sheet: a clipping left on the desk ──────────── */

.desk {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  padding: clamp(48px, 9vw, 130px) 16px clamp(96px, 14vw, 200px);
  overflow: hidden;
  overflow: clip;
}
/* a ring from the editor's cup */
.desk::before {
  content: '';
  position: absolute;
  top: 14%;
  right: max(-40px, 10vw);
  width: clamp(120px, 16vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid rgba(110, 70, 30, .12);
  box-shadow: inset 0 0 18px rgba(110, 70, 30, .08);
  pointer-events: none;
}
@media (max-width: 720px) {
  .desk::before { top: auto; bottom: 6%; right: 8%; }
}
.desk__hint {
  margin-bottom: clamp(20px, 3vw, 32px);
  font-family: var(--f-kick);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.scrap {
  --tear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cfilter id='t' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='4' seed='11'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='15' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='12' y='12' width='376' height='276' fill='%23fff' filter='url(%23t)'/%3E%3C/svg%3E");
  --tear-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cfilter id='t' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.07' numOctaves='4' seed='12'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='17' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect x='12' y='12' width='376' height='276' fill='%23fff' filter='url(%23t)'/%3E%3C/svg%3E");
  position: relative;
  width: min(580px, 100%);
  margin: 0;
  transform: rotate(-2.5deg);
  filter: drop-shadow(0 2px 1px rgba(40, 30, 15, .22)) drop-shadow(0 14px 22px rgba(40, 30, 15, .22));
  /* flight is driven by scroll in script.js; hover only nudges it once it has landed */
  transition: translate .4s cubic-bezier(.2, .8, .3, 1), rotate .4s cubic-bezier(.2, .8, .3, 1);
}
.scrap.is-down:hover { translate: 0 -5px; rotate: 1.3deg; }

.scrap__fiber {
  position: absolute;
  inset: -6px;
  background: #fbf8f0;
  -webkit-mask: var(--tear-fiber) center / 100% 100% no-repeat;
          mask: var(--tear-fiber) center / 100% 100% no-repeat;
}
.scrap__paper {
  position: relative;
  padding: clamp(34px, 6vw, 54px) clamp(26px, 6vw, 56px) clamp(40px, 6vw, 60px);
  background: var(--paper);
  text-align: center;
  -webkit-mask: var(--tear) center / 100% 100% no-repeat;
          mask: var(--tear) center / 100% 100% no-repeat;
}

/* the tail of another story, cut through by the tear */
.scrap__remnant {
  height: calc(2.64em + .6rem);
  margin: calc(-1 * clamp(34px, 6vw, 54px) + 8px) 0 1.1rem;
  padding-bottom: .6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  columns: 2;
  column-gap: 1.2rem;
  column-rule: 1px solid rgba(20, 17, 14, .6);
  font-size: .74rem;
  line-height: 1.32;
  text-align: justify;
  -webkit-hyphens: auto;
          hyphens: auto;
  color: var(--ink-2);
}
.scrap__kicker {
  font-family: var(--f-kick);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.scrap__hl {
  margin: .5rem 0 .7rem;
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.scrap__ticker {
  display: block;
  font-size: clamp(2.9rem, 11.5vw, 5.1rem);
  letter-spacing: .01em;
}
.scrap__live {
  display: block;
  margin-top: .5rem;
  padding: .45rem 0 .32rem .24em;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(1.15rem, 4.2vw, 2.05rem);
  letter-spacing: .24em;
}
.scrap__deck {
  margin-bottom: 1rem;
  font-style: italic;
  font-size: clamp(1.02rem, 2.4vw, 1.25rem);
  line-height: 1.3;
  text-wrap: balance;
}
.scrap__cta {
  font-style: italic;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.scrap__cta:hover { border-bottom: 3px double currentColor; }

.scrap .stamp {
  position: absolute;
  display: inline-block;
  left: auto; bottom: auto;
  top: clamp(40px, 8vw, 62px);
  right: clamp(8px, 3vw, 24px);
  --stamp-t: rotate(9deg);
  font-size: clamp(.78rem, 2.2vw, 1.02rem);
  border-width: 3px;
}
.js .scrap:not(.is-down) .stamp { opacity: 0; }
.scrap.is-down .stamp { animation: slam .5s cubic-bezier(.2, .9, .3, 1.25) .45s both; }

.tape {
  position: absolute;
  z-index: 2;
  width: clamp(84px, 18vw, 124px);
  height: 30px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .2), transparent 30%, rgba(255, 255, 255, .12) 70%, transparent),
    rgba(233, 222, 190, .78);
  box-shadow: 0 1px 2px rgba(40, 30, 15, .15);
  clip-path: polygon(3% 0, 97% 0, 100% 20%, 96% 40%, 100% 60%, 96% 80%, 100% 100%, 3% 100%, 0 80%, 4% 60%, 0 40%, 4% 20%);
  transition: opacity .2s ease .12s, transform .4s cubic-bezier(.2, .9, .3, 1.3) .12s;
}
.tape--l { top: -12px; left: 8%; transform: rotate(-8deg); }
.tape--r { bottom: -10px; right: 7%; transform: rotate(-5deg); transition-delay: .28s; }
.js .scrap:not(.is-down) .tape { opacity: 0; transform: rotate(-8deg) scale(1.5); }

/* ─── Printing-in on scroll ─────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-printed) { opacity: .08; }
  .js .reveal.is-printed { animation: press 1.25s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms) both; }

  /* chronicle statuses are stamped one by one */
  .js .reveal.is-printed .chronicle__status { animation: stamp-in .45s cubic-bezier(.2, .9, .3, 1.3) both; }
  .js .reveal.is-printed li:nth-child(1) .chronicle__status { animation-delay: .5s; }
  .js .reveal.is-printed li:nth-child(2) .chronicle__status { animation-delay: .68s; }
  .js .reveal.is-printed li:nth-child(3) .chronicle__status { animation-delay: .86s; }
  .js .reveal.is-printed li:nth-child(4) .chronicle__status { animation-delay: 1.04s; }
  .js .reveal.is-printed li:nth-child(5) .chronicle__status { animation-delay: 1.22s; }
}

@keyframes stamp-in {
  0%   { transform: scale(2.4) rotate(-6deg); opacity: 0; }
  65%  { transform: scale(.95) rotate(-1deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* ─── Intro: a gentleman on Wall Street opens the paper ─────── */

body { transition: background-color .9s ease; }
.intro-back, .intro-front, .intro-hint { display: none; }

html.intro-lock { overflow: hidden; }

html.intro .intro-back,
html.intro .intro-front {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  transform-origin: 0 0;
  opacity: 0;
}
html.intro .intro-back { z-index: 40; }
html.intro .intro-front { z-index: 46; }
html.intro .sheet { z-index: 45; }

html.intro-lock .sheet { height: 100vh; height: 100svh; }
html.intro-lock:not(.is-scene) .sheet { opacity: 0; }

.intro-flap {
  position: absolute;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  box-shadow: 0 2px 8px rgba(20, 17, 14, .28);
}
.intro-shade {
  position: absolute;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 17, 14, .5), rgba(20, 17, 14, .1));
}

html.intro .intro-hint {
  display: block;
  position: fixed;
  left: 0; right: 0;
  bottom: max(14px, 2.5vh);
  z-index: 48;
  width: max-content;
  margin: 0 auto;
  padding: .4em 1em .35em;
  background: rgba(242, 236, 224, .88);
  font-family: var(--f-kick);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0;
  pointer-events: none;
}

html.is-landed .stamp { animation: slam .5s cubic-bezier(.2, .9, .3, 1.25) .08s both; }

@keyframes slam {
  0%   { transform: var(--stamp-t) scale(3.4); opacity: 0; }
  60%  { transform: var(--stamp-t) scale(.9); opacity: .95; }
  100% { transform: var(--stamp-t) scale(1); opacity: .92; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .ticker__track { animation: none; }
  .misprint, .fist { transition: none; }
  .buy__lights::before, .buy__lights::after { animation: none; }
  .scrap, .scrap .tape { transition: none; }
  .turn { animation: none; transition: none; }
  .scrap.is-down .stamp { animation: none; }
}

/* ─── Tablet ────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .front .col--lead   { grid-column: span 6; }
  .front .col--center { grid-column: span 6; padding-right: 0; }
  .front .col--side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    margin-top: 1.4rem;
    padding: 1.3rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .inside .col { grid-column: span 6; }
  .inside .letters {
    grid-column: 1 / -1;
    margin-top: 1.4rem; padding: 1.3rem 0 0;
    border-left: 0; border-top: 1px solid var(--ink);
    columns: 2; column-gap: calc(var(--gap) * 2); column-rule: 1px solid var(--ink);
  }
  .inside .letters .kicker, .inside .letters .hl { column-span: all; }
  .inside .letters .letter { break-inside: avoid; }
  .lower .col--chronicle { grid-column: span 12; padding-right: 0; }
  .lower .col--prices {
    grid-column: span 12;
    margin-top: 1.4rem; padding: 1.3rem 0 0;
    border-left: 0; border-top: 1px solid var(--ink);
  }
  .ear { max-width: 9.5rem; }
  .stamp { font-size: 1.05rem; left: -1.3rem; }
}

/* ─── Phone ─────────────────────────────────────────────────── */

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .sheet { margin: 0; box-shadow: inset 0 0 80px rgba(122, 88, 38, .12); }

  .masthead { grid-template-columns: 1fr; gap: .25rem; padding-top: 1rem; }
  .ear--left { display: none; }
  .ear--right {
    position: absolute;
    right: -.2rem; top: -.55rem;
    padding: 0; border: 0; outline: 0;
    max-width: none;
  }
  .ear--right .ear__text { display: none; }
  .stamp { position: static; display: block; font-size: .78rem; border-width: 3px; --stamp-t: translateY(55%) rotate(-10deg); }

  .dateline { flex-wrap: wrap; justify-content: space-between; font-size: .6rem; letter-spacing: .12em; row-gap: .1rem; }
  .dateline__mid { order: 3; flex-basis: 100%; text-align: center; padding-top: .2rem; border-top: 1px solid var(--ink); }

  .ticker__set li { padding: .45rem 1.1rem; font-size: .72rem; }

  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid > .col,
  .front .col--side,
  .inside .letters,
  .lower .col--prices {
    grid-column: 1 / -1;
    padding: 0;
    border-left: 0;
  }
  .grid > .col + .col {
    margin-top: 1.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--ink);
  }
  .front .col--side { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .inside .letters { columns: 1; }
  .inside .memoriam { padding-top: 1.3rem; }

  .body { font-size: 1rem; }
  .facts .col + .col { border-top-style: dotted; }
  .facts { padding-bottom: 2.8rem; }

  .folio__date { display: none; }
  .chronicle li { grid-template-columns: 4.6rem minmax(0, 1fr); column-gap: .8rem; }
  .chronicle__date { font-size: .8rem; white-space: nowrap; }
  .chronicle__status { grid-column: 2; justify-self: start; }

  .stain--a { width: 150px; top: 70px; right: -50px; }
  .stain--b { display: none; }
}
