#manifesto { color: #29382b; background: #faf6eb; }
#manifesto [hidden], #manifesto[hidden] { display: none; }

/* These controls only appear on the design preview URLs. */
.study-bar { position: sticky; top: 0; z-index: 3; border-block: 1px solid #d3d7cf; background: #fcfcf8; color: #25352c; }
.study-tools, .study-options { display: flex; align-items: center; }
.study-tools { min-height: 3.85rem; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.study-tools > span { font-size: .94rem; font-weight: 600; }
.study-tools small { margin-inline-start: .45rem; padding-inline-start: .65rem; border-inline-start: 1px solid #bdc5b8; font-size: .78rem; font-weight: 450; color: #565f52; }
.study-options { gap: .25rem; }
.study-options a { border-radius: 2rem; padding: .5rem .9rem; font-size: .88rem; line-height: 1.25; }
.study-options a:hover { background: #edf0e8; text-decoration: none; }
.study-options a[aria-current] { background: #263b31; color: white; }
.manifesto-page { padding-block: clamp(3rem, 7vw, 7rem); }
.manifesto-kicker { font-size: .88rem; font-weight: 550; letter-spacing: .035em; }
.manifesto-cover h2 { font-size: clamp(3.5rem, 6.8vw, 7.2rem); line-height: .96; letter-spacing: -.07em; }
.manifesto-cover h2 em { display: block; }
.manifesto-part h3 { margin: 0; font-weight: 520; letter-spacing: -.04em; line-height: 1.08; }
.manifesto-text p { max-width: 59ch; text-wrap: pretty; }
.manifesto-text p + p { margin-top: .85em; }
.manifesto-signature { display: grid; gap: .85rem; justify-items: start; }
.manifesto-signature img { width: 6rem; height: auto; }

/* Open letter: a quiet margin and a single continuous manuscript. */
[data-layout="letter"] .manifesto-page { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
[data-layout="letter"] .manifesto-cover { position: sticky; top: 6.5rem; }
[data-layout="letter"] .manifesto-kicker { display: flex; align-items: center; gap: .75rem; color: #715342; }
[data-layout="letter"] .manifesto-kicker::before { content: ""; width: 2.1rem; height: 1px; background: currentColor; }
[data-layout="letter"] .manifesto-cover h2 { margin-top: 1.8rem; }
[data-layout="letter"] .manifesto-cover h2 em { color: #86513d; }
[data-layout="letter"] .manifesto-text { max-width: 43rem; }
[data-layout="letter"] .manifesto-text p { font: clamp(1.16rem, 1.5vw, 1.45rem)/1.58 Georgia, serif; }
[data-layout="letter"] .manifesto-part + .manifesto-part { margin-top: 2.4rem; }
[data-layout="letter"] .manifesto-part h3 { font-size: 1rem; letter-spacing: 0; color: #76513f; margin-bottom: .75rem; }
[data-layout="letter"] .manifesto-part:first-child p:first-child::first-letter { float: left; font-size: 3.9em; line-height: .85; margin: .08em .08em 0 0; color: #86513d; }
[data-layout="letter"] .manifesto-signature { margin-top: 2rem; font: italic 1.17rem Georgia, serif; }

/* Poster: headlines read down one side, with the full argument beside them. */
#manifesto[data-layout="poster"] { background: #203b31; color: #faf5e7; }
[data-layout="poster"] .manifesto-page { padding-block: clamp(2.75rem, 5vw, 6rem); }
[data-layout="poster"] .manifesto-kicker { color: #d2e59c; }
[data-layout="poster"] .manifesto-cover h2 { margin: 1.4rem 0 clamp(2.5rem, 5vw, 5rem); line-height: .91; font-size: clamp(3.6rem, 10.7vw, 11.5rem); font-weight: 560; }
[data-layout="poster"] .manifesto-cover em { padding-left: 12%; color: #d7eba3; }
[data-layout="poster"] .manifesto-part { padding-block: clamp(1.8rem, 3.25vw, 3.8rem); display: grid; grid-template-columns: .94fr 1fr; gap: clamp(1.5rem, 7vw, 7rem); border-top: 1px solid #829586; }
[data-layout="poster"] .manifesto-part h3 { max-width: 14ch; color: #d7eba3; font-size: clamp(2rem, 3.9vw, 4.3rem); }
[data-layout="poster"] .manifesto-text p { font-size: clamp(1.04rem, 1.32vw, 1.32rem); line-height: 1.6; }
[data-layout="poster"] .manifesto-signature { display: none; }

/* Chapters: photographic cover and contents face a single reading page. */
#manifesto[data-layout="chapters"] { background: #e5e9dd; }
[data-layout="chapters"] .manifesto-page { display: grid; grid-template-columns: .86fr 1.14fr; align-items: stretch; padding-block: clamp(2rem, 5.6vw, 6rem); }
[data-layout="chapters"] .manifesto-cover { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 3.75rem); border-radius: 4px 0 0 4px; color: #fff9ea; background: linear-gradient(0deg, #172921f8 5%, #192920c9 46%, #18241d82), url("assets/olive-hillside-poster.jpg") 9% 50% / cover; }
[data-layout="chapters"] .manifesto-cover h2 { font-size: clamp(2.8rem, 4.65vw, 5.5rem); margin: 1.3rem 0 3.3rem; }
.chapter-index { margin-top: auto; display: grid; }
.chapter-index button { color: #fff9ea; text-align: left; background: transparent; border: 0; border-top: 1px solid #b3c1ab60; padding: .78rem .4rem; font-size: .98rem; cursor: pointer; }
.chapter-index button:hover { text-decoration: underline; }
.chapter-index button[aria-pressed="true"] { color: #e3eeae; font-weight: 650; box-shadow: inset 3px 0 #d7eba3; padding-left: .8rem; }
[data-layout="chapters"] .manifesto-text { display: flex; flex-direction: column; padding: clamp(1.8rem, 4vw, 5rem); border-radius: 0 4px 4px 0; background: #fffdf4; }
[data-layout="chapters"] .manifesto-part h3 { font: 400 clamp(2.3rem, 3.8vw, 4.3rem)/1.02 Georgia, serif; letter-spacing: -.058em; margin-bottom: 1.45rem; scroll-margin-top: 7.5rem; }
[data-layout="chapters"] .manifesto-part p { font: clamp(1.1rem, 1.45vw, 1.36rem)/1.56 Georgia, serif; }
.chapter-pager { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid #d9dfce; padding-top: 1rem; margin-top: auto; }
[data-layout="chapters"] .manifesto-part { padding-bottom: 2.25rem; }
.chapter-pager span { font-size: .85rem; color: #465344; }
.chapter-pager button { border: 1px solid #a5b0a0; border-radius: 2rem; background: transparent; color: #263b31; padding: .55rem 1rem; cursor: pointer; }
.chapter-pager button:hover:enabled { background: #e6eddc; }
.chapter-pager button:disabled { opacity: .4; cursor: default; }
[data-layout="chapters"] .manifesto-signature { display: none; }

@media (max-width: 720px) {
  .study-tools { flex-wrap: wrap; gap: .25rem .75rem; padding-block: .5rem; }
  .study-options { flex-wrap: wrap; }
  .study-options a { padding: .5rem .75rem; }
  [data-layout="letter"] .manifesto-page, [data-layout="poster"] .manifesto-part, [data-layout="chapters"] .manifesto-page { grid-template-columns: 1fr; }
  [data-layout="letter"] .manifesto-cover { position: static; }
  [data-layout="letter"] .manifesto-cover h2 { margin-top: 1rem; }
  [data-layout="poster"] .manifesto-part { gap: 1.15rem; }
  [data-layout="poster"] .manifesto-part h3 { max-width: 20ch; }
  [data-layout="chapters"] .manifesto-cover { border-radius: 4px 4px 0 0; }
  [data-layout="chapters"] .manifesto-text { border-radius: 0 0 4px 4px; padding-inline: clamp(1.2rem, 4vw, 2rem); }
  [data-layout="chapters"] .manifesto-cover h2 { margin-bottom: 1.6rem; }
  .chapter-index button { padding-block: .67rem; }
}
@media (max-height: 600px) { [data-layout="letter"] .manifesto-cover { position: static; } }

@font-face {
  font-family: 'Inter Tight';
  src: url('assets/inter-tight-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
#healthcare-edited {
  background: #fafaf7;
  color: #0b1220;
  font-family: Host, system-ui, sans-serif;
  font-weight: 460;
}
.redline {
  max-width: 74rem;
  margin-inline: auto;
  padding: clamp(4rem, 11.12vw, 10rem) max(clamp(1rem, 4vw, 2rem), var(--safe-edge));
}
.redline-copy { font: 500 clamp(1.875rem, 3.8vw, 3.375rem)/1.15 'Inter Tight', system-ui, sans-serif; letter-spacing: -.03em; }
.redline-copy p + p { margin-top: 1.75rem; }
.redline-copy .redline-close { margin-top: 1.5rem; border-top: 1px solid #e2e4e0; padding-top: clamp(1.5rem, 3.34vw, 3rem); font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 1.05; letter-spacing: -.04em; }
.redline-pair {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: .22em;
  max-width: 100%;
}
.redline-copy del, .redline-copy ins { text-decoration: none; }
.redline-copy del { position: relative; color: #a3a8b0; }
.redline-copy del::after { content: ''; position: absolute; left: -2px; right: -2px; top: 56%; height: 3px; background: #0b1220; transform-origin: left center; }
.redline-copy ins { font: italic 400 1.14em/1 'Instrument Serif', Georgia, serif; letter-spacing: -.01em; }
@media (max-width: 700px) {
  .redline-copy { font-size: clamp(1.125rem, 4.8vw, 1.875rem); }
  .redline-copy .redline-close { font-size: clamp(1.625rem, 7vw, 2.75rem); }
  .redline-copy p + p { margin-top: 1.25rem; }
}
#health-companion {
  background: #000;
  color: #fff;
}
.companion-stage {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vh, 4rem) max(clamp(1.25rem, 5vw, 6rem), var(--safe-edge));
  background: inherit;
}
.companion-statement {
  width: min(100%, 100rem);
  margin: 0;
  display: grid;
  align-items: center;
  gap: .65em;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1.75rem, min(7.6vw, 16svh), 9rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.companion-statement span { text-wrap: balance; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .companion-statement { font-size: clamp(1.75rem, min(10.8vw, 14svh), 4.5rem); }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .redline-copy del { color: color-mix(in srgb, #a3a8b0 calc(var(--strike-progress, 1) * 100%), #0b1220); }
  .redline-copy del::after { transform: scaleX(var(--strike-progress, 1)); }
  .redline-copy ins { opacity: var(--replacement-progress, 1); }
  .companion-pinned .companion-stage { position: sticky; top: 0; }
  .companion-pinned::after { content: ""; display: block; height: calc(var(--phrase-steps) * var(--phrase-distance, 65svh)); }
  .companion-pinned .companion-statement span { grid-area: 1 / 1; opacity: var(--phrase-opacity, 0); }
}
@media (max-width: 700px), (orientation: landscape) and (max-height: 500px) {
  #health-companion { --phrase-distance: 40svh; }
}
