/* Values follow the Paper design "M1 — Manifesto · Desktop" (672px reading column). */
.essay {
  max-width: 736px;
  margin: 0 auto;
  padding: 32px 32px 0;
}

.essay p,
.essay h1,
.essay h2,
.essay figure,
.essay dl,
.essay dd,
.essay address { margin: 0; }

/* Faded domain and PDF link */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
  color: #a3a3a3;
}

.masthead a { display: inline-flex; align-items: center; gap: 6px; }
.masthead a:hover { color: #000; }

/* Title block */
.title { padding: 88px 0 48px; }

.title h1 {
  font-size: 44px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -0.02em;
}

.byline { padding-top: 16px; font-size: 14px; line-height: 20px; color: #a3a3a3; }

/* Essay */
.body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 18px;
  line-height: 30px;
  color: #1a1a1a;
}

.body strong { font-weight: 600; color: #000; }

.body h2 {
  padding-top: 32px;
  font-size: 26px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: -0.01em;
  color: #000;
}

/* Chart */
.chart { display: flex; flex-direction: column; gap: 16px; padding: 24px 0 16px; }

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: #000;
}

.chart-head span + span { white-space: nowrap; font-size: 13px; font-weight: 400; color: #6b6b6b; }

.plot { position: relative; height: 260px; }
.plot svg { position: absolute; inset: 0 0 auto; width: 100%; height: 230px; }

.band-label {
  position: absolute;
  left: 61.2%;
  top: 8px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.pt {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #000;
}

.pt.open { background: #fff; box-shadow: inset 0 0 0 2px #000; }

/* Value above the point, year on the axis */
.pt::before,
.pt::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
}

.pt::before { content: attr(data-v); bottom: 10px; font-weight: 600; color: #000; }
.pt::after { content: attr(data-year); top: calc(238px - var(--y)); font-size: 12px; color: #6b6b6b; }

.pt.side::before { left: 14px; bottom: auto; top: -4px; transform: none; }
.pt.last::before,
.pt.last::after { left: auto; right: -4px; transform: none; }

.source { font-size: 13px; line-height: 20px; color: #6b6b6b; }

/* Stats */
.stats { display: flex; gap: 32px; padding: 16px 0; border-top: 2px solid #000; }
.stats div { flex: 1; padding-top: 16px; }

.stats dt {
  font-size: 56px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: -0.03em;
  color: #000;
}

.stats dd { padding-top: 4px; font-size: 15px; line-height: 22px; color: #6b6b6b; }

/* Close and sign-off */
.body .closing {
  padding-top: 24px;
  font-size: 44px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.02em;
  color: #000;
}

.signoff {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 40px;
  font-size: 15px;
  line-height: 22px;
}

/* The signature's last stroke carries on up into the homepage's launch curve. */
.signed { width: 320px; max-width: 100%; }
.signed svg { display: block; width: 100%; height: auto; overflow: visible; }
.signoff .name { padding-top: 12px; font-size: 18px; line-height: 26px; font-weight: 500; color: #000; }
.signoff .role { color: #6b6b6b; }

.signoff address { display: flex; flex-direction: column; align-items: flex-end; font-style: normal; }
.signoff address a:first-child { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.signoff address a + a { color: #6b6b6b; }

/* Easter egg: flag on the frontier and "We cannot fail" in Morse */
.frontier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 200px 0 96px;
}

.flagscape { display: block; width: 100%; height: auto; }
.flag { transform-box: fill-box; transform-origin: left center; }
.flagscape:hover .flag { animation: stir 1.6s ease-in-out infinite alternate; }

@keyframes stir { to { transform: skewY(-3deg) scaleX(0.97); } }


.morse {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(520px, 100%);
  padding: 22px 0 8px;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.morse svg { display: block; width: 100%; height: auto; }
.morse:focus-visible { outline: 2px solid #000; outline-offset: 8px; }

.morse-key {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #a3a3a3;
  opacity: 0;
  transition: opacity 0.4s;
}

.morse:hover .morse-key,
.morse:focus-visible .morse-key { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .flagscape:hover .flag { animation: none; }
  .morse-key { transition: none; }
}

@media (max-width: 720px) {
  .essay { padding: 20px 20px 0; }
  .masthead { padding-top: 24px; }
  .title { padding: 56px 0 36px; }
  .title h1 { font-size: 34px; line-height: 38px; }
  .byline { font-size: 13px; line-height: 18px; }
  .body { gap: 20px; font-size: 17px; line-height: 28px; }
  .body h2 { padding-top: 24px; font-size: 22px; line-height: 28px; }
  .band-label { display: none; }
  .pt.drop::before { left: auto; right: 6px; top: 6px; }
  .stats dt { font-size: 40px; line-height: 44px; }
  .body .closing { font-size: 36px; line-height: 40px; }
  .signoff { flex-direction: column; align-items: flex-start; }
  .signoff address { align-items: flex-start; }
  .frontier { gap: 40px; padding: 140px 0 64px; }
}

/* The PDF is printed from this page (scripts/manifesto-pdf.mjs); it doesn't need a link to itself. */
@media print {
  .masthead a[download] { display: none; }
}
