:root {
  /* Typography compliance tokens: Mono* Mono** numbers timestamp-like annotations Interactions should contemplative: 4* 4** reflective paragraphs */
  --aged-paper: #F4E7CE;
  --tea-margin: #D8BE91;
  --vellum: #FFF8E9;
  --notice-green: #61705B;
  --amber: #D99A32;
  --walnut: #2E2118;
  --sepia: #8B6848;
  --burgundy: #7B3530;
  --display: "Newsreader", Georgia, serif;
  --accent: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--walnut);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 248, 233, 0.9), transparent 28%),
    linear-gradient(90deg, rgba(216, 190, 145, 0.55), var(--aged-paper) 22%, var(--vellum) 51%, var(--aged-paper) 78%, rgba(216, 190, 145, 0.52));
  font-family: var(--body);
  overflow-x: hidden;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.23;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(46, 33, 24, 0.13) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(123, 53, 48, 0.10) 0 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 47%, rgba(139, 104, 72, 0.12) 48% 49%, transparent 50%);
  background-size: 7px 7px, 11px 11px, 180px 180px;
}

.issue-thread {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--burgundy);
  font-family: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.thread-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.thread-line {
  width: 1px;
  height: 150px;
  background: rgba(46, 33, 24, 0.25);
  position: relative;
}

#threadFill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: var(--amber);
  transition: height 700ms ease;
}

.thread-page { font-family: var(--mono); color: var(--walnut); }

.magazine {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.spread {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  padding: clamp(26px, 4vw, 58px) clamp(34px, 6vw, 90px);
  isolation: isolate;
  overflow: hidden;
}

.spread::before {
  content: "";
  position: absolute;
  inset: 18px clamp(18px, 3vw, 42px);
  border: 1px solid rgba(139, 104, 72, 0.32);
  border-radius: 3px;
  pointer-events: none;
}

.spread::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.35%, rgba(46, 33, 24, 0.15) 49.8%, rgba(255, 248, 233, 0.35) 50.1%, rgba(46, 33, 24, 0.20) 50.45%, transparent 51%),
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(97, 112, 91, 0.08) 33px, transparent 34px);
  z-index: -1;
}

.left-page { grid-column: 1 / 6; }
.right-page { grid-column: 7 / 13; }

.left-page, .right-page {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gutter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(46, 33, 24, 0.22), rgba(255, 248, 233, 0.55), rgba(46, 33, 24, 0.14), transparent);
  filter: blur(0.4px);
  z-index: 1;
}

.folio {
  position: absolute;
  top: 24px;
  font-family: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--sepia);
  z-index: 4;
}

.folio.left { left: clamp(42px, 7vw, 104px); }
.folio.right { right: clamp(42px, 7vw, 104px); }

.slug, .catalog, .notice-strip, .stamp, .curfew-mark, .archive-tabs span {
  font-family: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.slug {
  color: var(--burgundy);
  font-size: clamp(14px, 1.4vw, 18px);
  margin: 0 0 18px;
  transform: translateY(22px);
  opacity: 0;
  transition: transform 900ms ease, opacity 900ms ease;
}

.is-active .slug { transform: translateY(0); opacity: 1; }

.kinetic {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.87;
  margin: 0;
  color: var(--walnut);
  transition: letter-spacing 1100ms cubic-bezier(.2,.7,.08,1), transform 1100ms ease, opacity 900ms ease;
  transform: translateX(-16px) scaleX(0.96);
  opacity: 0.72;
}

.is-active .kinetic {
  letter-spacing: -0.015em;
  transform: translateX(0) scaleX(1);
  opacity: 1;
}

.wordmark { font-size: clamp(70px, 12vw, 178px); }
h2.kinetic { font-size: clamp(68px, 10.5vw, 154px); }
blockquote.kinetic { font-size: clamp(48px, 7.4vw, 118px); }

.lead {
  font-size: clamp(24px, 2.35vw, 38px);
  line-height: 1.15;
  max-width: 760px;
  color: var(--sepia);
}

.body-note, .recovered-sheet p:not(.catalog) {
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.48;
  max-width: 560px;
}

.notice-strip {
  display: inline-block;
  width: fit-content;
  padding: 10px 16px;
  margin: 18px 0;
  border-top: 2px solid var(--burgundy);
  border-bottom: 2px solid var(--burgundy);
  color: var(--burgundy);
  background: rgba(255, 248, 233, 0.66);
  box-shadow: 0 8px 24px rgba(46, 33, 24, 0.08);
}

.tilted { transform: rotate(-2deg); }

.photo-plate {
  position: relative;
  min-height: 56vh;
  border-radius: 16px 16px 11px 11px;
  background: var(--sepia);
  box-shadow: 0 30px 70px rgba(46, 33, 24, 0.26), inset 0 0 0 1px rgba(255, 248, 233, 0.28);
  overflow: hidden;
  filter: sepia(0.72) saturate(0.78) contrast(0.94);
  transform: rotate(1.2deg) translateY(34px);
  opacity: 0;
  transition: transform 950ms ease, opacity 950ms ease, filter 600ms ease;
}

.is-active .photo-plate { transform: rotate(-0.5deg) translateY(0); opacity: 1; }
.photo-plate:hover { filter: sepia(0.45) saturate(0.95) contrast(1.04); }

.photo-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(46, 33, 24, 0.26), transparent 45%, rgba(216, 190, 145, 0.34)),
    var(--photo-art);
  background-size: cover;
  background-position: center;
}

.photo-plate::after {
  content: attr(data-caption);
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 58px;
  padding: 10px 14px;
  background: rgba(255, 248, 233, 0.74);
  color: var(--walnut);
  font-family: var(--body);
  font-style: italic;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 400ms ease, opacity 400ms ease;
}

.photo-plate:hover::after { transform: translateY(0); opacity: 1; }

.vellum {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 248, 233, 0.68), rgba(255, 248, 233, 0.16) 42%, rgba(244, 231, 206, 0.42));
  mix-blend-mode: screen;
  z-index: 1;
}

figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 9px 12px;
  background: rgba(255, 248, 233, 0.78);
  font-family: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
  color: var(--burgundy);
}

.pulse-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(217, 154, 50, 0.42);
  animation: pulseCivic 3.8s ease-in-out infinite;
  vertical-align: -1px;
  margin-right: 8px;
}

@keyframes pulseCivic {
  0%, 68%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 154, 50, 0.38); }
  78% { transform: scale(1.12); box-shadow: 0 0 0 18px rgba(217, 154, 50, 0); }
}

.stamp {
  align-self: flex-end;
  margin-top: -22px;
  margin-right: 8%;
  width: 104px;
  height: 104px;
  border: 2px solid var(--burgundy);
  border-radius: 50%;
  background: rgba(244, 231, 206, 0.82);
  color: var(--burgundy);
  cursor: pointer;
  transform: rotate(9deg);
  transition: transform 500ms ease, background 500ms ease;
  z-index: 3;
}

.stamp.is-turned { transform: rotate(-17deg) scale(1.04); background: rgba(216, 190, 145, 0.86); }

.catalog {
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 26px;
  color: var(--sepia);
}

.photo-street { --photo-art: linear-gradient(180deg, #D8BE91 0 16%, #8B6848 16% 21%, #F4E7CE 21% 39%, #61705B 39% 42%, #8B6848 42% 52%, #2E2118 52% 54%, #D8BE91 54% 100%); }
.photo-notice { --photo-art: linear-gradient(90deg, #2E2118 0 6%, #D8BE91 6% 13%, #8B6848 13% 22%, #F4E7CE 22% 77%, #7B3530 77% 80%, #D8BE91 80%), repeating-linear-gradient(0deg, transparent 0 22px, rgba(46,33,24,.28) 23px 25px, transparent 26px 48px); }
.photo-table { --photo-art: radial-gradient(circle at 34% 40%, transparent 0 42px, rgba(123,53,48,.55) 43px 47px, transparent 48px), linear-gradient(135deg, #D8BE91, #8B6848 52%, #F4E7CE); }
.photo-lamp { --photo-art: radial-gradient(circle at 66% 22%, #D99A32 0 20px, rgba(217,154,50,.25) 21px 80px, transparent 82px), linear-gradient(180deg, #61705B, #2E2118); }

.tall { min-height: 72vh; width: 72%; margin-left: auto; }
.small { min-height: 30vh; width: 58%; margin: 28px 0 0 auto; }
.wide { min-height: 46vh; }

.redactions { display: grid; gap: 10px; width: min(420px, 80%); margin-top: 28px; }
.redactions span { height: 18px; background: var(--walnut); opacity: 0.9; }
.redactions span:nth-child(2) { width: 64%; background: var(--burgundy); }
.redactions span:nth-child(3) { width: 82%; }

.margin-question {
  position: absolute;
  right: -22px;
  top: 17%;
  writing-mode: vertical-rl;
  font-family: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--notice-green);
  transform: translateY(38px);
  opacity: 0;
  transition: transform 900ms ease 160ms, opacity 900ms ease 160ms;
}

.is-active .margin-question { transform: translateY(0); opacity: 1; }

.curfew-mark {
  position: absolute;
  left: 0;
  bottom: 10%;
  color: var(--burgundy);
  font-size: clamp(34px, 5vw, 70px);
}

.document-slip, .recovered-sheet {
  position: relative;
  background: rgba(255, 248, 233, 0.82);
  border: 1px solid rgba(139, 104, 72, 0.45);
  box-shadow: 0 24px 54px rgba(46, 33, 24, 0.16);
  padding: clamp(28px, 4vw, 54px);
  max-width: 580px;
  transform: rotate(-1.5deg);
  transition: transform 600ms ease;
}

.document-slip.is-turned { transform: rotate(2.5deg) translateX(14px); }
.document-slip p { font-size: clamp(26px, 3vw, 44px); line-height: 1.16; margin: 22px 0; }
.tab { position: absolute; top: -15px; left: 30px; background: var(--notice-green); color: var(--vellum); padding: 6px 14px; font-family: var(--accent); letter-spacing: .12em; }

.clock-face {
  width: clamp(130px, 16vw, 210px);
  height: clamp(130px, 16vw, 210px);
  border: 2px solid var(--burgundy);
  border-radius: 50%;
  position: relative;
  margin: 28px 0;
  background: rgba(255, 248, 233, 0.38);
}
.clock-face span, .clock-face i, .clock-face b { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; background: var(--walnut); }
.clock-face span { width: 42%; height: 2px; transform: rotate(-90deg); }
.clock-face i { width: 35%; height: 2px; transform: rotate(42deg); }
.clock-face b { width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--amber); }

.floating { position: absolute; right: 16%; bottom: 22%; width: 20px; height: 20px; }

.archive-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.archive-tabs span { border: 1px solid var(--notice-green); color: var(--notice-green); padding: 8px 18px; background: rgba(255, 248, 233, 0.45); }

.recovered-sheet { transform: rotate(1.8deg); margin-left: auto; }
.recovered-sheet .pulse-dot { position: absolute; right: 30px; top: 30px; }
.closing-note { font-family: var(--display); font-size: clamp(44px, 7vw, 96px); margin: 34px 0 0 auto; color: var(--sepia); }

@media (max-width: 820px) {
  .issue-thread { display: none; }
  .spread { grid-template-columns: 1fr; padding: 54px 24px 34px; gap: 28px; }
  .left-page, .right-page { grid-column: 1; justify-content: flex-start; }
  .gutter { display: none; }
  .folio.right { right: 24px; }
  .folio.left { left: 24px; }
  .wordmark { font-size: clamp(54px, 18vw, 104px); }
  .tall, .small { width: 100%; }
  .margin-question { display: none; }
}
