/* ---------- Manifesto page (loaded after style.css) ---------- */

.site-nav a[aria-current="page"]{ color:var(--gold); }

/* Hero */
.mf-hero{ max-width:760px; padding:calc(var(--header-h) + 72px) 24px 28px; }
.mf-hero h1{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2.25rem, 6.4vw, 3.625rem);
  letter-spacing:0.03em;
  color:var(--ink);
  text-align:center;
  margin:6px 0 24px;
}
.mf-hook{
  font-family:var(--serif);
  font-style:italic;
  font-size:var(--voice-size);
  line-height:var(--voice-leading);
  color:var(--gold-bright);
  max-width:620px;
  margin:0 auto 22px;
  text-wrap:balance;
}
.mf-reading{
  font-size:0.6875rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0;
}

/* Body column: width set explicitly (`ch` units overshoot the real character count). */
.mf-body{ max-width:668px; margin:0 auto; padding:0 24px 24px; }

.mf-index{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px 30px;
  margin:28px 0 64px;
  padding:18px 0;
  border-top:1px solid var(--gold-faint);
  border-bottom:1px solid var(--gold-faint);
}
.mf-index a{
  font-size:0.75rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--muted);
  transition:color .2s ease;
}
.mf-index a:hover{ color:var(--gold-bright); }

/* Chapters */
.mf-chapter{ padding:16px 0 56px; scroll-margin-top:calc(var(--header-h) + 24px); }
.mf-chapter-head{ text-align:center; margin:0 0 44px; }
.mf-num{
  display:block;
  font-family:var(--serif);
  font-size:0.9375rem;
  letter-spacing:0.32em;
  color:var(--gold);
  margin-bottom:10px;
}
.mf-chapter-head h2{ margin:0; font-size:clamp(1.875rem, 4.6vw, 2.625rem); }

/* Reading text follows the guide: Jost carries body copy, Cormorant is kept for
   voice and titles. Long-form sits a notch below full ink (guide: body is never
   pure ink) while staying comfortably readable on the dark ground. */
.mf-p,
.mf-stanza{
  font-family:var(--sans);
  font-weight:400;
  font-size:clamp(1rem, 2vw, 1.125rem);
  line-height:1.7;
  color:var(--ink);
  color:color-mix(in srgb, var(--ink) 78%, var(--muted));
  text-align:left;
}
/* Paragraph gap = 1.5 x the 1.7 line spacing (WCAG 1.4.8 AAA), read strictly as the
   empty space itself, so it passes under any reading of the criterion. */
.mf-p{ margin:0 0 2.55em; }

/* Justified at every width, always with automatic hyphenation (each language block
   carries its own lang). Phone columns hold only ~35-45 characters, so hyphenation
   is made more willing there (shorter words, shorter fragments) to keep word gaps small. */
.mf-p,
.mf-stanza{
  text-align:justify;
  text-justify:inter-word;
  hyphens:auto;
  -webkit-hyphens:auto;
  hyphenate-limit-chars:6 3 3;
  text-wrap:pretty;
}
@media (max-width:699px){
  .mf-p,
  .mf-stanza{ hyphenate-limit-chars:5 2 2; }
}

/* Highlights: the text speaking in its own voice. Same register as the "Y qué si"
   refrain -- gold Cormorant italic -- set a touch larger to match Jost's x-height, with a
   fixed line height so a highlighted line doesn't grow, and no hyphenation inside. */
.mf-hl{
  font-family:var(--serif);
  font-style:italic;
  font-weight:500;
  font-size:1.2em;
  line-height:1;
  color:var(--gold);
  hyphens:manual;
  -webkit-hyphens:manual;
}
.mf-hl--word{ letter-spacing:0.05em; white-space:nowrap; }

/* Pasado: the four words, then the four distortions */
.mf-words{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 26px;
  margin:0 0 44px;
  padding:0;
}
.mf-words li{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(1rem, 2.6vw, 1.25rem);
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold);
}
.mf-pairs{
  list-style:none;
  display:grid;
  gap:14px;
  margin:52px 0 0;
  padding:28px 0;
  border-top:1px solid var(--gold-faint);
  border-bottom:1px solid var(--gold-faint);
}
.mf-pairs li{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:baseline;
  gap:16px;
}
.mf-pairs .w{
  text-align:right;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(0.875rem, 2.4vw, 1.125rem);
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--gold);
}
.mf-pairs .arrow{ color:var(--gold-soft); }
.mf-pairs em{
  font-family:var(--serif);
  font-size:clamp(1.125rem, 2.8vw, 1.375rem);
  color:var(--ink);
}

/* Futuro: one stanza per "Y qué si…" */
.mf-stanza{
  margin:0 0 2.55em;
  padding-left:20px;
  border-left:1px solid var(--gold-faint);
}
.mf-refrain{
  font-family:var(--serif);
  font-style:italic;
  font-weight:500;
  font-size:1.28em;
  line-height:1;
  color:var(--gold);
  margin-right:0.3em;
  white-space:nowrap;
}
.mf-refrain.tight{ margin-right:0; }
.mf-stanza.mf-lead{
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  font-size:var(--voice-size);
  line-height:var(--voice-leading);
  color:var(--gold-bright);
  text-align:center;
  text-wrap:balance;
  hyphens:manual;
  -webkit-hyphens:manual;
  border-left:none;
  padding-left:0;
  margin-bottom:2.6em;
}
.mf-lead .mf-refrain{
  font:inherit;
  color:inherit;
  margin-right:0;
  white-space:normal;
}

/* Closing */
.mf-closing{ text-align:center; max-width:560px; padding-top:32px; padding-bottom:110px; }
.mf-closing-line{
  font-family:var(--serif);
  font-style:italic;
  font-size:clamp(1.25rem, 3vw, 1.5rem);
  line-height:1.6;
  color:var(--ink);
  margin:0 0 28px;
}
.mf-back{ margin:38px 0 0; }

/* Thin reading-progress line: pure CSS, decorative, skipped when motion is reduced
   or scroll timelines are unsupported. */
.mf-progress{ display:none; }
@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: scroll()){
    @keyframes mfProgress{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
    .mf-progress{
      display:block;
      position:fixed;
      top:0; left:0; right:0;
      height:2px;
      z-index:60;
      background:var(--gold);
      opacity:0.7;
      transform-origin:0 50%;
      transform:scaleX(0);
      animation:mfProgress linear both;
      animation-timeline:scroll(root);
    }
  }
}

@media (max-width:900px){
  .mf-hero{ padding:calc(var(--header-h) + 40px) 22px 20px; }
  .mf-body{ padding:0 22px 16px; }
  .mf-closing{ padding:24px 22px 80px; }
  .mf-index{ margin:24px 0 48px; }
  .mf-stanza{ padding-left:16px; }
}
