:root {
  --paper: #f9f7f3;
  --paper-deep: #efeadf;
  --ink: #111111;
  --muted: #6e6a63;
  --rule: #c9c2b4;
  --accent: #111111;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --fraktur: "UnifrakturMaguntia", "Newsreader", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* faint paper grain */
  background-image: radial-gradient(
    rgba(17, 17, 17, 0.02) 0.5px,
    transparent 0.6px
  );
  background-size: 4px 4px;
}

.sheet {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) clamp(22px, 6vw, 56px) 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Masthead ---------- */
.masthead {
  text-align: center;
}

.dateline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: clamp(10px, 2.6vw, 13px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  gap: 8px;
}
.dateline__mid {
  white-space: nowrap;
}

.rule {
  height: 1px;
  background: var(--ink);
  width: 100%;
}
.rule--thick {
  height: 3px;
}
.rule--thick + .mark {
  margin-top: 26px;
}

.mark {
  width: clamp(52px, 12vw, 72px);
  height: auto;
  display: inline-block;
  margin: 26px auto 10px;
}

.wordmark {
  font-family: var(--fraktur);
  font-weight: 400;
  font-size: clamp(56px, 15vw, 132px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 3.6vw, 24px);
  color: #3a372f;
  margin: 16px 0;
}

/* ---------- Lead ---------- */
.lead {
  text-align: center;
  margin: clamp(34px, 7vh, 60px) auto 0;
  max-width: 60ch;
}
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.deck {
  font-size: clamp(18px, 4vw, 23px);
  line-height: 1.55;
  color: #2b2822;
  margin: 0;
}

/* ---------- Footer ---------- */
.foot {
  margin-top: clamp(46px, 9vh, 72px);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot__sep {
  margin: 0 12px;
  opacity: 0.6;
}

/* ---------- Ticker ---------- */
.ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
  overflow: hidden;
  padding: 9px 0;
  z-index: 10;
}
.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 42s linear infinite;
}
.ticker__item {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  padding: 0 26px;
}
.ticker__item b {
  font-weight: 500;
}
.ticker__item .up {
  color: #7fd39b;
}
.ticker__item .dn {
  color: #e7907f;
}
.ticker__item .dot {
  opacity: 0.4;
  margin-left: 26px;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Entrance motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
  .ticker__track {
    animation: none;
  }
}
