/* The Manifesto: a long-form paper on the site's own tokens (styles.css).
   The site header and footer come from styles.css; this styles the reading. */

.mf {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px clamp(18px, 5vw, 32px) 96px;
}

.mf-hero {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.mf-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.mf-subtitle {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
}

.mf-author {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mf a {
  text-decoration: underline;
  text-decoration-color: var(--line-bright);
  text-underline-offset: 3px;
}

.mf a:hover {
  text-decoration-color: var(--text);
}

.mf-doc {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.75;
}

.mf-doc section {
  padding-top: 48px;
}

.mf-doc h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mf-doc h3 {
  margin: 36px 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.mf-doc p {
  margin: 0 0 20px;
}

.mf-doc pre {
  margin: 8px 0 24px;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--soft);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mf-doc sup a {
  margin-left: 1px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.mf-doc sup a:hover {
  color: var(--text);
}

.mf-abstract {
  margin-top: 40px;
  padding: 24px 26px !important;
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background: var(--panel);
}

.mf-abstract p:last-child {
  margin-bottom: 0;
}

.mf-note {
  margin-top: 48px;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--line-bright);
  color: var(--muted);
  font-style: italic;
}

.mf-refs ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.mf-refs li {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

/* Footnote targets sit below the fixed header when jumped to. */
.mf [id] {
  scroll-margin-top: 100px;
}

.mf-cta {
  margin-top: 72px;
  padding: 40px clamp(20px, 4vw, 40px);
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  background: var(--panel);
  text-align: center;
}

.mf-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.02em;
}

.mf-cta p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--muted);
}

.mf-cta .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.mf-cta a {
  text-decoration: none;
}

/* At 1100px and below styles.css stacks the nav under the brand, so the header grows. */
@media (max-width: 1100px) {
  .mf {
    padding-top: 170px;
  }
}

@media (max-width: 560px) {
  .mf-doc {
    font-size: 16px;
  }
}
