:root {
  --parchment: #FFF4D8;
  --pink: #F7A7C6;
  --mint: #BDEFD3;
  --yellow: #FFE68A;
  --blue: #5A7FE8;
  --raspberry: #C43B6D;
  --brass: #B8843A;
  --ink: #2B2230;
  --shadow: rgba(43, 34, 48, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--parchment);
  font-family: "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background-image: radial-gradient(rgba(184,132,58,.13) 1px, transparent 1px), radial-gradient(rgba(255,244,216,.6), transparent 55%);
  background-size: 18px 18px, 100% 100%;
  mix-blend-mode: multiply;
  opacity: .42;
}

.edition {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 70px);
  display: grid;
  place-items: center;
  isolation: isolate;
  border-bottom: 8px double var(--brass);
}

.edition::before, .edition::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 2px solid var(--raspberry);
  border-radius: 38px 18px 44px 22px;
  pointer-events: none;
  z-index: -1;
}

.edition::after {
  inset: 38px;
  border-color: var(--brass);
  border-style: dashed;
  opacity: .55;
}

h1, h2, .section-label, .mini-mast { font-family: "Fraunces", Georgia, serif; }
p, .excerpt { font-family: "Newsreader", Georgia, serif; }

.edition-index {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: grid;
  gap: 12px;
}

.index-dot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  background: var(--yellow);
  border: 2px solid var(--brass);
  border-radius: 50% 45% 52% 44%;
  box-shadow: 0 8px 0 var(--shadow);
  transition: transform .25s ease, background .25s ease;
}
.index-dot span { font: 900 13px/1 "Nunito", sans-serif; }
.index-dot.active { background: var(--pink); transform: scale(1.14) rotate(-6deg); }

.spring-hover { transition: transform .28s cubic-bezier(.2,1.4,.45,1), box-shadow .28s ease, filter .28s ease; }
.spring-hover:hover, .spring-hover.is-sprung { transform: scale(1.055) rotate(var(--tilt, -1.5deg)); filter: saturate(1.08); }

.ticker {
  position: absolute;
  top: 22px;
  left: 0;
  width: max-content;
  padding: 10px 26px;
  color: var(--ink);
  background: var(--yellow);
  border-block: 2px solid var(--brass);
  font-weight: 900;
  letter-spacing: .12em;
  animation: ticker 24s linear infinite;
}
@keyframes ticker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

.edition-morning { background: radial-gradient(circle at 50% 22%, var(--pink), transparent 28%), linear-gradient(140deg, var(--parchment), var(--mint)); }
.press-stage { width: min(1120px, 92vw); min-height: 720px; position: relative; display: grid; place-items: center; }
.press-illustration { position: absolute; width: min(760px, 85vw); opacity: .88; transform: translateY(76px); }
.press-lines, .wire, .vine { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.wire, .vine { stroke: var(--brass); stroke-width: 4; stroke-dasharray: 8 12; }
.blossoms { fill: var(--pink); stroke: var(--raspberry); stroke-width: 3; transform-origin: center; animation: petals 12s linear infinite; }
.wheel { transform-origin: center; animation: wheel 9s linear infinite; }
@keyframes wheel { to { transform: rotate(360deg); } }
@keyframes petals { 50% { transform: rotate(5deg) scale(1.03); } }

.masthead {
  width: min(760px, 86vw);
  padding: clamp(26px, 5vw, 54px);
  text-align: center;
  background: rgba(255,244,216,.9);
  border: 5px double var(--raspberry);
  border-radius: 34% 34% 14% 14% / 18% 18% 12% 12%;
  box-shadow: 0 22px 0 rgba(184,132,58,.18), 0 0 0 14px rgba(189,239,211,.55);
  z-index: 3;
}
.dateline { margin: 0 0 10px; color: var(--raspberry); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(64px, 12vw, 156px); line-height: .78; color: var(--blue); text-shadow: 3px 3px 0 var(--yellow), 6px 6px 0 var(--pink); }
.dek { max-width: 560px; margin: 22px auto 0; font-size: clamp(19px, 2vw, 26px); }
.sun-medallion, .orbit { position: absolute; z-index: 5; border: 3px solid var(--brass); box-shadow: 0 12px 0 var(--shadow); }
.sun-medallion { top: 72px; right: 12%; width: 92px; height: 92px; display: grid; place-items: center; background: var(--yellow); border-radius: 50%; font-weight: 900; }
.orbit { padding: 12px 18px; max-width: 220px; background: var(--parchment); border-radius: 999px; font-weight: 900; }
.orbit-one { left: 4%; top: 190px; --tilt: 4deg; animation: bob 6s ease-in-out infinite; }
.orbit-two { right: 2%; bottom: 186px; --tilt: -5deg; animation: bob 7s ease-in-out infinite reverse; }
.orbit-three { left: 12%; bottom: 96px; --tilt: 3deg; animation: bob 8s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -16px; } }

.section-label { position: absolute; top: 42px; left: 52px; color: var(--raspberry); font-size: clamp(22px, 3vw, 42px); }
.edition-wire { background: linear-gradient(180deg, var(--mint), var(--parchment) 55%, var(--yellow)); grid-template-columns: 1fr 1fr; gap: 24px; }
.wire-column { width: min(460px, 92vw); height: 760px; position: relative; }
.telegraph-vine { position: absolute; inset: 0; width: 100%; height: 100%; }
.ticket { position: absolute; width: 300px; padding: 18px; background: var(--parchment); border: 3px double var(--brass); border-radius: 18px 6px 18px 6px; box-shadow: 10px 12px 0 var(--shadow); }
.ticket b { color: var(--blue); margin-right: 8px; }
.ticket-one { left: 30px; top: 80px; --tilt: -4deg; }
.ticket-two { right: -22px; top: 245px; --tilt: 3deg; }
.ticket-three { left: -8px; top: 425px; --tilt: -2deg; }
.ticket-four { right: 18px; bottom: 80px; --tilt: 5deg; }
.side-copy { max-width: 520px; padding: 44px; background: rgba(255,244,216,.76); border: 4px double var(--raspberry); border-radius: 28px; box-shadow: 18px 18px 0 rgba(247,167,198,.35); }
.side-copy h2, .edition-weather h2 { font-size: clamp(42px, 6vw, 84px); margin: 0 0 20px; line-height: .94; color: var(--blue); }
.side-copy p, .weather-copy { font-size: 24px; line-height: 1.35; }

.edition-parlour { background: radial-gradient(circle at 25% 30%, var(--yellow), transparent 24%), radial-gradient(circle at 78% 70%, var(--pink), transparent 28%), var(--parchment); }
.ornate-frame { width: min(1060px, 90vw); min-height: 690px; position: relative; padding: 92px 50px 50px; border: 8px double var(--brass); border-radius: 70px 26px; background: rgba(189,239,211,.5); box-shadow: inset 0 0 0 12px rgba(255,244,216,.8), 0 28px 0 var(--shadow); }
.ornate-frame h2 { max-width: 600px; margin: 20px auto; text-align: center; color: var(--raspberry); font-size: clamp(44px, 7vw, 92px); line-height: .9; }
.bubble-field { position: relative; min-height: 390px; }
.speech { position: absolute; max-width: 330px; padding: 24px 26px; background: var(--parchment); border: 3px solid var(--blue); border-radius: 38px 38px 38px 8px; font-size: 22px; font-weight: 800; box-shadow: 12px 14px 0 rgba(90,127,232,.18); }
.bubble-a { left: 4%; top: 28px; --tilt: -5deg; }
.bubble-b { right: 8%; top: 18px; border-color: var(--raspberry); --tilt: 4deg; }
.bubble-c { left: 18%; bottom: 32px; border-color: var(--brass); --tilt: 3deg; }
.bubble-d { right: 2%; bottom: 20px; --tilt: -4deg; }
.seal, .bell { display: inline-grid; place-items: center; margin-left: 10px; width: 58px; height: 58px; border-radius: 50%; background: var(--raspberry); color: var(--parchment); font-size: 12px; vertical-align: middle; }
.seal.blue { background: var(--blue); }
.bell { background: var(--yellow); color: var(--ink); border: 2px solid var(--brass); animation: ring 2.8s ease-in-out infinite; }
@keyframes ring { 8%, 18% { transform: rotate(14deg); } 13%, 23% { transform: rotate(-14deg); } 30% { transform: rotate(0); } }

.edition-weather { background: linear-gradient(180deg, var(--parchment), #fffaf0 45%, var(--mint)); text-align: center; align-content: start; padding-top: 130px; }
.edition-weather h2 { max-width: 980px; }
.weather-copy { max-width: 760px; margin: 0 auto 30px; }
.sky-machine { width: min(1040px, 92vw); height: 470px; position: relative; }
.cloud { position: absolute; padding: 26px 36px; min-width: 220px; background: var(--parchment); border: 4px solid var(--blue); border-radius: 60px 70px 48px 60px; box-shadow: 0 14px 0 rgba(90,127,232,.15); font-weight: 900; font-size: 22px; animation: drift 9s ease-in-out infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; border: inherit; z-index: -1; }
.cloud::before { width: 72px; height: 72px; left: 38px; top: -38px; }
.cloud::after { width: 92px; height: 92px; right: 28px; top: -52px; }
.cloud-one { left: 6%; top: 82px; }
.cloud-two { right: 8%; top: 30px; border-color: var(--raspberry); animation-delay: -2s; }
.cloud-three { left: 36%; top: 190px; border-color: var(--brass); animation-delay: -4s; }
@keyframes drift { 50% { transform: translateY(-18px) translateX(14px); } }
.gear-ring { position: absolute; left: 50%; top: 48px; width: 138px; height: 138px; margin-left: -69px; border: 16px dotted var(--brass); border-radius: 50%; animation: wheel 16s linear infinite; }
.antenna { position: absolute; left: 50%; top: 240px; width: 4px; height: 110px; background: var(--ink); }
.antenna::before { content: ""; position: absolute; left: -38px; top: -42px; width: 80px; height: 80px; border: 3px solid var(--raspberry); border-bottom: 0; border-radius: 80px 80px 0 0; }
.charm-row { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; gap: 16px; padding: 16px 24px; background: var(--pink); border: 3px solid var(--brass); border-radius: 999px; }
.charm { border: 3px solid var(--blue); background: var(--mint); color: var(--ink); padding: 14px 18px; border-radius: 999px; font-weight: 900; font-family: "Nunito", sans-serif; cursor: pointer; --tilt: 6deg; }

.edition-reprint { background: radial-gradient(circle at 50% 40%, rgba(255,230,138,.85), transparent 32%), linear-gradient(180deg, var(--mint), var(--parchment)); }
.broadsheet { width: min(980px, 88vw); display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border: 6px double var(--raspberry); border-radius: 18px; background: var(--parchment); box-shadow: 0 32px 0 var(--shadow), 0 0 80px rgba(255,230,138,.8); transform-style: preserve-3d; }
.broadsheet.unfolded { animation: unfold .9s cubic-bezier(.2,1,.3,1) both; }
@keyframes unfold { from { transform: perspective(900px) rotateX(12deg) scale(.94); } to { transform: perspective(900px) rotateX(0) scale(1); } }
.fold { padding: clamp(28px, 5vw, 58px); position: relative; }
.fold-left { border-right: 4px double var(--brass); }
.fold h2 { margin: 0 0 24px; color: var(--blue); font-size: clamp(38px, 5vw, 72px); line-height: .92; }
.fold p { font-size: 22px; line-height: 1.35; }
.mini-mast { color: var(--raspberry); font-size: clamp(44px, 6vw, 88px); line-height: .85; text-align: center; padding-bottom: 28px; border-bottom: 4px double var(--brass); }
.type-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 34px 0; }
.type-blocks span { height: 66px; background: linear-gradient(135deg, var(--pink), var(--yellow)); border: 3px solid var(--brass); border-radius: 12px; }
.excerpt { padding: 22px; background: var(--mint); border: 2px dashed var(--blue); border-radius: 18px; }

.draw-line { stroke-dasharray: 12 10; animation: dash 4s linear infinite; }
.draw-line.delay { animation-delay: -1.5s; }
@keyframes dash { to { stroke-dashoffset: -88; } }

.stamp-once .masthead, .stamp-once .section-label { animation: stamp .56s cubic-bezier(.2,1.7,.4,1); }
@keyframes stamp { 0% { transform: scale(1.16) rotate(-2deg); filter: blur(1px); } 100% { transform: scale(1) rotate(0); } }
.queue-ticket { animation: queue .72s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes queue { from { transform: translateY(28px) scale(.94); opacity: .35; } to { transform: translateY(0) scale(1); opacity: 1; } }

@media (max-width: 850px) {
  .edition { padding: 76px 18px 34px; }
  .edition-index { right: 8px; gap: 8px; }
  .index-dot { width: 34px; height: 34px; }
  .edition-wire { grid-template-columns: 1fr; }
  .wire-column { height: 700px; }
  .side-copy { padding: 28px; }
  .speech { position: relative; inset: auto; margin: 16px auto; }
  .bubble-field { min-height: auto; }
  .cloud { min-width: 170px; font-size: 16px; padding: 20px; }
  .charm-row { flex-wrap: wrap; justify-content: center; width: 92%; }
  .broadsheet { grid-template-columns: 1fr; }
  .fold-left { border-right: 0; border-bottom: 4px double var(--brass); }
}
