:root {
  --paper: #F3F0DF;
  --ink: #111111;
  --blue: #0057FF;
  --red: #FF2A1F;
  --acid: #C6FF00;
  --graphite: #72706A;
  --archivo: 'Archivo Black', Impact, sans-serif;
  --chivo: 'Chivo', Arial, sans-serif;
  --fraunces: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--chivo);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.print-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: .28;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(17,17,17,.12) 0 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(114,112,106,.18) 1px, transparent 1px),
    linear-gradient(rgba(114,112,106,.11) 1px, transparent 1px);
  background-size: 7px 7px, 44px 44px, 44px 44px;
  mix-blend-mode: multiply;
}

.timecard {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 90;
  width: 178px;
  padding: 9px;
  background: var(--acid);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(2.2deg);
  font-family: var(--archivo);
  text-transform: uppercase;
}

.timecard::before {
  content: "PUNCHED ACTS";
  display: block;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 3px dashed var(--ink);
  font-size: 12px;
  letter-spacing: .06em;
}

.timecard a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
  padding: 5px 6px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 12px;
  transition: transform .16s ease, background .16s ease;
}

.timecard a span { color: var(--red); }
.timecard a.active, .timecard a:hover { background: var(--blue); color: var(--paper); transform: translateX(-8px) rotate(-1deg); }
.timecard a.active span, .timecard a:hover span { color: var(--acid); }

.day-sheet { width: 100%; background: var(--paper); }

.act {
  position: relative;
  min-height: 100vh;
  padding: clamp(26px, 5vw, 72px);
  overflow: hidden;
  border-bottom: 8px solid var(--ink);
  isolation: isolate;
}

.act::before {
  content: attr(data-act);
  position: absolute;
  left: -1.4vw;
  top: 45%;
  z-index: -1;
  transform: rotate(-90deg);
  transform-origin: left top;
  font-family: var(--archivo);
  font-size: clamp(38px, 8vw, 118px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(17,17,17,.22);
  text-transform: uppercase;
  white-space: nowrap;
}

.ledger-margin {
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(255,42,31,.9) 9% calc(9% + 2px), transparent calc(9% + 2px)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(114,112,106,.32) 39px 41px),
    var(--paper);
}

.registration-mark {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 3px solid var(--ink);
}
.registration-mark::before, .registration-mark::after { content: ""; position: absolute; background: var(--ink); }
.registration-mark::before { height: 3px; left: -18px; right: -18px; top: 50%; }
.registration-mark::after { width: 3px; top: -18px; bottom: -18px; left: 50%; }
.top-left { top: 22px; left: 22px; }
.bottom-right { right: 24px; bottom: 24px; }

.masthead-block {
  width: min(1120px, 92vw);
  margin: 10vh 0 0 7vw;
  padding: 18px 20px 26px;
  border: 7px solid var(--ink);
  background: rgba(243,240,223,.82);
  box-shadow: -18px 18px 0 var(--blue), 18px -14px 0 var(--red);
  transform: rotate(-2.5deg);
}

.edition-label {
  margin: 0 0 10px;
  font-family: var(--chivo);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; font-family: var(--archivo); text-transform: uppercase; letter-spacing: -.075em; }
h1 { font-size: clamp(74px, 16vw, 250px); line-height: .74; }
h1 span { color: var(--red); }
h2 { font-size: clamp(42px, 7.5vw, 112px); line-height: .82; }

.masthead-underprint {
  font-family: var(--archivo);
  font-size: clamp(22px, 4vw, 62px);
  color: var(--graphite);
  opacity: .7;
  transform: translate(2vw, -1vw);
}

.fraunces { font-family: var(--fraunces); font-variation-settings: 'SOFT' 70, 'WONK' 1; }

.dispatch {
  position: absolute;
  left: 11vw;
  bottom: 11vh;
  width: min(520px, 70vw);
  padding: 18px;
  background: var(--paper);
  border-left: 12px solid var(--red);
  font-size: clamp(21px, 2vw, 34px);
  line-height: 1.05;
  box-shadow: 7px 7px 0 var(--ink);
}

.wage-envelope {
  position: absolute;
  right: 12vw;
  top: 13vh;
  width: 250px;
  padding: 18px;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--graphite), 10px 12px 0 rgba(17,17,17,.9);
  transform: rotate(8deg);
}
.wage-envelope b, .wage-envelope span, .wage-envelope i { display: block; margin: 9px 0; }
.wage-envelope b { font-family: var(--archivo); font-size: 25px; line-height: .9; }

.coin-rubbing {
  position: absolute;
  display: grid;
  place-items: center;
  border: 5px double var(--graphite);
  border-radius: 50%;
  color: var(--graphite);
  font-family: var(--archivo);
  opacity: .36;
}
.coin-a { width: 150px; height: 150px; right: 28vw; bottom: 18vh; font-size: 78px; }
.coin-b { width: 90px; height: 90px; left: 54vw; top: 8vh; font-size: 48px; }

.ticker-tear {
  font-family: var(--archivo);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-top: 4px dashed var(--ink);
  border-bottom: 4px dashed var(--ink);
}
.opening-ribbon {
  position: absolute;
  left: -8vw;
  top: 52vh;
  width: 118vw;
  padding: 14px 0;
  background: var(--acid);
  color: var(--ink);
  font-size: clamp(24px, 4.6vw, 70px);
  white-space: nowrap;
  transform: rotate(-11deg) translateX(var(--ribbon-x, 0));
  box-shadow: 0 10px 0 var(--ink);
  animation: tickerJitter .55s steps(2,end) infinite;
}

.opening-spill { background: linear-gradient(108deg, var(--paper) 0 56%, var(--red) 56% 72%, var(--paper) 72%); }
.rotated-label {
  position: absolute;
  top: 8vh;
  left: 2vw;
  transform: rotate(-9deg);
  font-family: var(--archivo);
  font-size: clamp(58px, 11vw, 172px);
  line-height: .78;
  color: var(--blue);
  text-shadow: 7px 7px 0 var(--ink);
  max-width: 760px;
}

.receipt-snake {
  position: absolute;
  right: 7vw;
  top: 9vh;
  width: min(410px, 82vw);
  padding: 12px;
  background: var(--paper);
  border: 5px solid var(--ink);
  transform: rotate(10deg);
  box-shadow: 16px 16px 0 var(--acid);
}
.receipt-line { display: flex; justify-content: space-between; padding: 14px 9px; border-bottom: 2px dashed var(--ink); font-weight: 900; text-transform: uppercase; }
.receipt-line b { font-family: var(--archivo); }
.receipt-line.danger { background: var(--red); color: var(--paper); }
.receipt-line.acid { background: var(--acid); }

.heat-front {
  position: absolute;
  inset: 44% -10% auto auto;
  width: 72vw;
  height: 24vh;
  background: var(--red);
  clip-path: polygon(0 42%, 12% 10%, 26% 56%, 43% 18%, 58% 68%, 76% 22%, 100% 54%, 100% 100%, 0 100%);
  opacity: .9;
  mix-blend-mode: multiply;
  transform: translateX(var(--front-x, 0));
}
.blue-route { position: absolute; height: 20px; background: var(--blue); transform-origin: left center; box-shadow: 0 0 0 4px var(--paper), 0 0 0 8px var(--ink); }
.route-one { width: 58vw; left: 6vw; bottom: 18vh; transform: rotate(-13deg); }
.route-two { width: 38vw; left: 32vw; bottom: 32vh; transform: rotate(21deg); }
.public-notice {
  position: absolute;
  left: 10vw;
  bottom: 8vh;
  width: min(560px, 78vw);
  padding: 22px;
  background: var(--paper);
  border: 6px solid var(--ink);
  box-shadow: 12px 12px 0 var(--red);
  transform: rotate(-1.5deg);
}
.public-notice p, .rent-notice p, .closing-ledger p { font-size: clamp(17px, 1.5vw, 24px); line-height: 1.16; font-weight: 600; }
.shipping-stamp {
  position: absolute;
  right: 13vw;
  bottom: 10vh;
  padding: 18px 24px;
  border: 7px solid var(--blue);
  color: var(--blue);
  font-family: var(--archivo);
  font-size: 38px;
  line-height: .88;
  transform: rotate(-16deg);
}

.lunch-equilibrium { background: var(--paper); }
.fold-map {
  display: grid;
  grid-template-columns: 1.15fr .85fr .7fr;
  gap: 0;
  min-height: 72vh;
  margin-top: 8vh;
  border: 6px solid var(--ink);
  box-shadow: 18px 18px 0 var(--graphite);
  transform: perspective(900px) rotateY(var(--fold-y, -2deg));
}
.queue-column { position: relative; padding: clamp(20px, 3vw, 44px); border-right: 5px solid var(--ink); background: var(--paper); }
.queue-column:last-child { border-right: 0; }
.grocery { background: linear-gradient(var(--paper), var(--paper)), repeating-linear-gradient(90deg, transparent 0 20px, rgba(0,87,255,.18) 21px 24px); }
.shelf-tag { display: inline-block; padding: 8px 12px; margin-bottom: 18px; background: var(--acid); border: 4px solid var(--ink); font-family: var(--archivo); transform: rotate(-4deg); }
.transit-ticket { background: var(--blue); color: var(--paper); }
.transit-ticket b, .bond-coupon b { font-family: var(--archivo); font-size: clamp(32px, 4vw, 64px); line-height: .85; display: block; }
.punch-row { display: flex; gap: 15px; margin: 24px 0; }
.punch-row i { width: 34px; height: 34px; display: block; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.bond-coupon { background: var(--acid); }
.bond-coupon span { display: block; margin-top: 22px; padding: 14px; border: 3px dashed var(--ink); font-weight: 900; text-transform: uppercase; }
.isobar-chart { position: absolute; left: 4vw; right: 4vw; bottom: 4vh; width: 92vw; height: 35vh; overflow: visible; }
.isobar { fill: none; stroke-width: 9; stroke-linecap: square; stroke-dasharray: 1200; stroke-dashoffset: var(--dash, 1200); transition: stroke-dashoffset .8s steps(5,end); }
.act.in-view .isobar { stroke-dashoffset: 0; }
.isobar.red { stroke: var(--red); }
.isobar.blue { stroke: var(--blue); }
.isobar.black { stroke: var(--ink); stroke-width: 5; }

.afternoon-shock { background: var(--red); color: var(--paper); }
.blackout-strip { position: absolute; left: -8vw; top: 38vh; width: 120vw; height: 22vh; background: var(--ink); transform: rotate(-8deg); box-shadow: 0 18px 0 var(--acid); }
.shock-stamp {
  position: absolute;
  top: 9vh;
  left: 8vw;
  padding: 22px 30px;
  border: 9px solid var(--paper);
  font-family: var(--archivo);
  font-size: clamp(56px, 8vw, 128px);
  line-height: .78;
  color: var(--paper);
  transform: rotate(-7deg) scale(var(--stamp-scale, 1));
}
.auction-paddles { position: absolute; right: 9vw; top: 8vh; display: flex; gap: 18px; transform: rotate(9deg); }
.paddle { width: 120px; height: 160px; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 6px solid var(--ink); border-radius: 58px 58px 10px 10px; font-family: var(--archivo); font-size: 54px; box-shadow: 8px 8px 0 var(--ink); }
.paddle.red { background: var(--red); color: var(--paper); border-color: var(--paper); }
.paddle.acid { background: var(--acid); color: var(--ink); }
.rent-notice {
  position: absolute;
  right: 8vw;
  bottom: 9vh;
  width: min(700px, 80vw);
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  border: 7px solid var(--ink);
  box-shadow: -14px 14px 0 var(--blue);
}
.rent-notice span { font-family: var(--archivo); color: var(--red); }
.conveyor-verbs { position: absolute; left: 0; bottom: 0; display: flex; width: 200%; background: var(--ink); color: var(--acid); animation: conveyor 12s linear infinite; }
.conveyor-verbs span { padding: 16px 42px; font-family: var(--archivo); font-size: 38px; border-right: 4px solid var(--paper); }

.closing-auction {
  background:
    repeating-linear-gradient(90deg, rgba(17,17,17,.09) 0 3px, transparent 3px 46px),
    var(--paper);
}
.auction-slab { margin: 7vh 0 0 5vw; width: min(900px, 78vw); padding: 30px; background: var(--ink); color: var(--paper); box-shadow: 18px 18px 0 var(--blue); transform: rotate(1.5deg); }
.bid-board { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 12px; margin-top: 28px; }
.bid-board div { padding: 16px; background: var(--paper); color: var(--ink); border: 4px solid var(--red); }
.bid-board span, .bid-board b { display: block; text-transform: uppercase; }
.bid-board span { font-family: var(--archivo); font-size: 30px; }
.grain-sack { position: absolute; right: 9vw; top: 17vh; width: 230px; height: 310px; display: grid; place-items: center; text-align: center; background: var(--graphite); color: var(--paper); border: 7px solid var(--ink); border-radius: 48% 52% 42% 58%; font-family: var(--archivo); font-size: 38px; line-height: .9; transform: rotate(-10deg); }
.coupon-tear { position: absolute; left: 4vw; right: 4vw; bottom: 14vh; padding: 18px; background: var(--acid); border-left: 0; border-right: 0; font-size: clamp(28px, 5vw, 72px); white-space: nowrap; transform: rotate(4deg) translateX(var(--tear-x, 0)); }

.afterhours-glow { min-height: 105vh; background: #111111; color: var(--paper); }
.city-grid { position: absolute; inset: 12vh 8vw 9vh 34vw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; transform: rotate(-2deg); }
.city-grid span { background: var(--blue); border: 5px solid var(--paper); box-shadow: 0 0 24px rgba(0,87,255,.75); opacity: .35; animation: windowBlink 3s steps(1,end) infinite; }
.city-grid span:nth-child(3n) { background: var(--acid); box-shadow: 0 0 24px rgba(198,255,0,.75); animation-delay: .7s; }
.city-grid span:nth-child(4n) { background: var(--red); box-shadow: 0 0 24px rgba(255,42,31,.75); animation-delay: 1.1s; }
.moon-clock { position: absolute; left: 6vw; top: 10vh; width: 160px; height: 160px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); border: 7px solid var(--graphite); font-family: var(--archivo); transform: rotate(12deg); }
.closing-ledger { position: absolute; left: 8vw; bottom: 12vh; width: min(720px, 78vw); padding: 26px; background: rgba(17,17,17,.78); border: 5px solid var(--paper); box-shadow: 14px 14px 0 var(--blue); }
.final-stamp { position: absolute; right: 9vw; bottom: 10vh; padding: 20px; border: 7px solid var(--red); color: var(--red); font-family: var(--archivo); font-size: clamp(34px, 5vw, 78px); line-height: .8; transform: rotate(8deg) scale(var(--stamp-scale, 1)); }

.stamp-impact { transition: transform .18s cubic-bezier(.2,1.8,.45,.9), box-shadow .18s ease; }
.act.in-view .stamp-impact { --stamp-scale: .96; filter: contrast(1.12); }
.act.in-view .masthead-block { transform: rotate(-2.5deg) scale(.992); }

@keyframes tickerJitter {
  0%, 100% { margin-left: 0; }
  30% { margin-left: -5px; }
  60% { margin-left: 3px; }
}

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

@keyframes windowBlink {
  0%, 100% { opacity: .22; }
  45% { opacity: .95; }
  70% { opacity: .48; }
}

@media (max-width: 860px) {
  .timecard { position: absolute; width: 150px; transform: rotate(1deg); }
  .masthead-block { margin-left: 2vw; }
  .wage-envelope, .shipping-stamp, .grain-sack { display: none; }
  .fold-map { grid-template-columns: 1fr; transform: none; }
  .queue-column { border-right: 0; border-bottom: 5px solid var(--ink); }
  .auction-paddles { opacity: .38; right: -80px; }
  .paddle { width: 88px; height: 124px; font-size: 36px; }
  .public-notice, .rent-notice, .closing-ledger { left: 6vw; right: auto; width: 86vw; }
  .city-grid { inset: 8vh 5vw 36vh 5vw; }
}
