@font-face {
  font-family: Book Display;
  src: url("../assets/display-demi.otf") format("opentype");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: Book Text;
  src: url("../assets/text-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Book Text;
  src: url("../assets/text-semibold.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --paper: #f6f5ee;
  --ink: #172923;
  --muted: #4c5e53;
  --rule: #c9d0c3;
  --card: #eeefe7;
  --forest: #172d28;
  --accent: #dcedad;
  --accent-ink: #192e21;
  --link: #315c43;
  --display: Book Display, Futura, "Trebuchet MS", sans-serif;
  --sans: Book Text, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 2.45vw, 2.15rem); letter-spacing: -.036em; }
h3 { font-size: 1.12rem; letter-spacing: -.024em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #3c825e; outline-offset: 4px; }
.shell { width: min(100% - 7rem, 1320px); margin-inline: auto; }
.skip { position: absolute; z-index: 2; padding: .65rem 1rem; inset: .5rem auto auto .5rem; background: var(--accent); color: var(--accent-ink); transform: translateY(-150%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.eyebrow { font-size: .8125rem; line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .125em; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 48px; border: 1px solid transparent; padding: .65rem 1.15rem; border-radius: 5px; font-size: .9rem; font-weight: 700; text-decoration: none; line-height: 1.3; text-align: center; transition: background-color .16s, color .16s, border-color .16s; }
.btn-primary { background: var(--forest); color: #f7f7ef; }
.btn-primary:hover { background: #2d513f; }
.btn-outline { color: inherit; border-color: currentColor; background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:disabled { border-color: var(--rule); color: var(--muted); background: transparent; }
.quiet-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .9rem; }
.quiet-link:hover { color: var(--link); }

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .68rem; width: fit-content; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1; letter-spacing: -.04em; text-decoration: none; }
.wordmark-period { color: var(--link); }
.wordmark-mark { width: 29px; height: 29px; flex: none; display: grid; grid-template-columns: repeat(2, 4px); grid-template-rows: repeat(2, 4px); place-content: center; gap: 4px; border-radius: 5px; background: var(--forest); }
.wordmark-mark i { background: var(--accent); border-radius: 50%; }
.wordmark-mark i:nth-child(2) { background: none; box-shadow: inset 0 0 0 1px var(--accent); }
.masthead-nav { display: flex; gap: 2.2rem; }
.masthead-nav a, .masthead-order { font-size: .85rem; font-weight: 700; }
.masthead-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
.masthead-nav a:hover { color: var(--ink); text-decoration: underline; }
.masthead-order { justify-self: end; min-height: 44px; }

.hero-band {
  --hero-surface: #13231b;
  --hero-text: #f7f5e9;
  --hero-muted: #cbd4c9;
  --hero-highlight: #deef78;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--hero-surface);
  color: var(--hero-text);
}
.hero-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 43% -17% 0;
  background: url("../assets/contour-field.svg") no-repeat center bottom / cover;
  opacity: .105;
  pointer-events: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(520px, 46vw, 680px);
}
.hero-copy {
  align-self: center;
  position: relative;
  z-index: 1;
  padding-block: 3.25rem;
}
.hero h1 {
  font-size: clamp(3.25rem, 6.65vw, 6.55rem);
  line-height: .88;
  letter-spacing: -.066em;
  margin: 0 0 1.3rem -.045em;
}
.headline:not(.editorial) { display: none; }
.hero-emphasis { color: var(--hero-highlight); }
.hero-dek {
  max-width: 43ch;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.65;
  color: var(--hero-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.3rem;
  margin-top: 1.65rem;
}
.hero .btn-primary { background: var(--hero-highlight); color: #182d21; }
.hero .btn-primary:hover { background: #edf7d0; }
.hero .btn-outline { color: var(--hero-text); }
.hero .btn-outline:hover { background: var(--hero-text); color: var(--hero-surface); border-color: var(--hero-text); }

.hero :focus-visible { outline-color: var(--hero-highlight); }
.hero-meta { margin-top: .85rem; color: var(--hero-muted); font-size: .85rem; line-height: 1.55; }
.campaign-stage {
  position: relative;
  margin-inline: clamp(-125px, -8vw, -40px) calc(-1 * max(3.5rem, (100vw - 1320px) / 2));
  min-width: 0;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  mask-image: linear-gradient(90deg, transparent, #000 31%);
}
.findings { padding-top: clamp(2rem, 4.25vw, 4rem); }
.findings h2, .contents h2 { font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.05; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: .65rem 1rem; margin-bottom: .75rem; }
.carousel-actions { display: flex; gap: 6px; }
.carousel-actions button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--ink); line-height: 1; }
.carousel-actions button span { font: 1.7rem/1 system-ui, sans-serif; margin-top: -.17em; }
.carousel-actions button:not(:disabled):hover { background: var(--accent); color: var(--accent-ink); }
.carousel-actions button:disabled { opacity: .46; }
.research-list { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; padding: 0; margin: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.research-list::-webkit-scrollbar { display: none; }
.research-tile {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .45rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 2px solid #6d8a74;
  border-radius: 0 0 5px 5px;
  padding: 1.15rem 1.1rem .5rem;
  scroll-snap-align: start;
}
.research-subject {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.research-tile p { font-size: 1rem; line-height: 1.53; }
.research-tile strong { color: var(--link); font-weight: 700; }
.research-tile a { width: fit-content; display: flex; align-items: center; min-height: 44px; font-size: .8rem; line-height: 1.35; color: var(--muted); }
.research-tile a:focus-visible { outline-offset: 1px; }
.section-note { color: var(--muted); font-size: .81rem; line-height: 1.5; margin-top: .6rem; }
.section-note a { display: inline-flex; align-items: center; min-height: 44px; margin: -.35rem 0 -.35rem .15rem; font-weight: 700; }

.reading { margin-block: clamp(2.1rem, 5.2vw, 4.5rem); }
#chapter-list { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1rem; align-items: start; }
.contents .section-head p { color: var(--muted); font-size: .81rem; text-align: right; }
.chapter-part { border: 1px solid var(--rule); padding-inline: 1rem; border-radius: 4px; }

.chapter-part summary, .sources summary, .policy-placeholder summary { min-height: 54px; cursor: pointer; display: flex; align-items: center; gap: .75rem; list-style: none; font-weight: 700; font-size: .89rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font: 1.2rem/1 system-ui, sans-serif; }
details[open] > summary::after { content: "−"; }
.chapter-part summary span { flex: none; color: var(--muted); font-size: .78rem; font-weight: 600; }
.chapter-part ol { margin: 0 0 .7rem; padding-left: 1.35rem; color: var(--muted); font-size: .9rem; }
.chapter-part li { padding: .1rem 0 .1rem .25rem; }

.order { scroll-margin-top: 1rem; }
.order-card { border-radius: 7px; color: #f7f6ef; background: var(--forest); padding: clamp(1.3rem, 4vw, 3.25rem); }
.order-top { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: clamp(1rem, 4vw, 4rem); }
.order-copy { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.order-cover { width: clamp(56px, 9vw, 110px); height: auto; flex: none; box-shadow: 4px 6px 12px #0a160f80; }
.order-copy .eyebrow { color: var(--accent); margin: 0 0 .65rem; }
.order-copy h2 { font-size: clamp(2.3rem, 4.3vw, 4rem); }
.order-copy [data-order-delivery] { max-width: 32ch; margin-top: .35rem; color: #e1e8da; }
.order-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border: 1px solid #60766b; border-radius: 5px; padding: 3px; }
.order-switch button { min-height: 44px; color: #f7f6ef; background: transparent; border: 0; padding: .25rem .35rem; line-height: 1.2; border-radius: 3px; font-size: .85rem; font-weight: 700; }
.order-switch button:hover { background: #2b4b3c; }
.order-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.order-card :focus-visible { outline-color: var(--accent); }
#paid-order { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .35rem .6rem; margin-top: .7rem; }
.order-price { font-size: 1rem; font-weight: 700; }
.order-card .btn-primary { background: var(--accent); color: var(--accent-ink); }
.order-card .btn-primary:hover { background: #f0f8d3; }
.order-payment { grid-column: 1 / -1; font-size: .81rem; line-height: 1.5; color: #e1e8da; }
.order-refund { margin-top: .55rem; }
#waitlist-order { margin-top: .8rem; color: #e1e8da; }
.order-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; margin: 1rem 0 0; padding: .75rem 0 0; list-style: none; border-top: 1px solid #60766b; }
.order-steps li { display: flex; align-items: center; gap: .5rem; color: #e1e8da; font-weight: 600; font-size: .82rem; }
.order-steps li span { display: grid; flex: none; width: 1.35rem; height: 1.35rem; place-items: center; border: 1px solid #73897d; border-radius: 50%; font-size: .72rem; }
.free-chapter { margin-top: .75rem; padding: 1rem 1.15rem; border: 1px solid var(--rule); border-radius: 5px; display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; gap: .65rem 2rem; scroll-margin-top: 1rem; }
.free-chapter h3 { font-size: 1.24rem; margin: .15rem 0 .3rem; }
.free-chapter p { font-size: .85rem; line-height: 1.45; color: var(--muted); }
.input-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.input-line input { min-width: 0; min-height: 48px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 5px; padding: .55rem .7rem; }
.input-line input::placeholder { color: var(--muted); opacity: 1; }
.input-line input:disabled { opacity: .7; }
.consent { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.consent input { inline-size: 1.1rem; block-size: 1.1rem; flex: none; accent-color: var(--link); }
.consent label { padding-block: .65rem; }

.footer { padding-block: 1rem 1.6rem; color: var(--muted); font-size: .81rem; line-height: 1.55; }
.sources { border-bottom: 1px solid var(--rule); margin-bottom: .65rem; }
.sources summary, .policy-placeholder summary { color: var(--ink); }
.sources ol { margin: .25rem 0 .9rem; padding-left: 1.25rem; }
.sources li { margin: .35rem 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem 1.2rem; min-height: 44px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 .85rem; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.policy-placeholder { border-top: 1px solid var(--rule); }
.policy-placeholder p { padding-bottom: .75rem; }

[data-layout="clinical"] { --paper: #f3f7f3; --card: #fcfdfb; --rule: #b4c5b7; --ink: #142b24; --muted: #3e5b4f; --link: #1e614c; --forest: #14382d; --accent: #d0edd9; }
[data-layout="clinical"] .editorial { display: none; }
[data-layout="clinical"] .clinical { display: inline; }
[data-layout="clinical"] .masthead-inner { grid-template-columns: 1fr auto auto; }
[data-layout="clinical"] .hero-band { --hero-surface: #e5ede3; --hero-text: #142b24; --hero-muted: #365549; --hero-highlight: #376849; }
[data-layout="clinical"] .hero-band::before { opacity: .24; }
[data-layout="clinical"] .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(1.7rem, 4.5vw, 5rem); align-items: center; }
[data-layout="clinical"] .hero h1 { font-size: clamp(3.4rem, 5.1vw, 5.1rem); max-width: 15ch; line-height: .98; }
[data-layout="clinical"] .hero .btn-primary { background: #14382d; color: #f7f6ef; }
[data-layout="clinical"] .hero .btn-primary:hover { background: #2d513f; }
[data-layout="clinical"] .campaign-stage { aspect-ratio: 1.2; margin-inline: 0; overflow: hidden; border-radius: 4px; }
[data-layout="clinical"] .hero-photo { mask-image: none; }
[data-layout="clinical"] .research-list { gap: 0; grid-auto-columns: calc(100% / 3); }
[data-layout="clinical"] .research-tile { border-radius: 0; }
[data-layout="clinical"] .chapter-part { background: var(--card); }

[data-layout="dark"] { color-scheme: dark; --paper: #121e19; --ink: #f3f4e9; --muted: #c1cdbd; --rule: #4e6053; --card: #1d2e25; --forest: #243c30; --accent: #e0f394; --accent-ink: #192e21; --link: #dcedad; }
[data-layout="dark"] :focus-visible { outline-color: var(--accent); }
[data-layout="dark"] .editorial { display: none; }
[data-layout="dark"] .dark { display: inline; }
[data-layout="dark"] .masthead-order { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
[data-layout="dark"] .hero-band { --hero-surface: #0c1914; --hero-highlight: #e0f394; }
[data-layout="dark"] .hero { grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); }
[data-layout="dark"] .hero h1 { font-size: clamp(3.3rem, 5.3vw, 5.45rem); max-width: 15ch; line-height: .98; }
[data-layout="dark"] .order-card { border: 1px solid #7b916f; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 4.25rem); }
  .hero h1 { font-size: clamp(2.9rem, 6.5vw, 4.7rem); }
  .campaign-stage { margin-inline-end: -2.125rem; }
  #chapter-list { grid-template-columns: 1fr; gap: .45rem; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner, [data-layout="clinical"] .masthead-inner { min-height: 64px; grid-template-columns: 1fr auto; gap: .65rem; }
  .masthead-nav { display: none; }
  .wordmark { gap: .5rem; }
  .masthead-order { padding-inline: .85rem; }
  .hero, [data-layout] .hero { width: 100%; grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-copy { grid-row: 2; padding: .75rem 1rem 1.65rem; }
  .hero-band::before { inset: 0 -18% 30% -20%; opacity: .09; }
  .hero h1 { font-size: clamp(2.9rem, 11.8vw, 5.1rem); line-height: .93; margin-block: 0 .85rem; }
  [data-layout] .hero h1 { font-size: clamp(2.7rem, 11.1vw, 4.8rem); }
  .hero-dek { max-width: 43ch; }
  .hero-actions { margin-top: .9rem; gap: .3rem .9rem; }
  .hero-meta { margin-top: .45rem; }
  .campaign-stage, [data-layout="clinical"] .campaign-stage { grid-row: 1; margin: 0; aspect-ratio: auto; height: clamp(185px, 52vw, 280px); }
  .hero-photo { object-position: 58% 52%; mask-image: linear-gradient(180deg, #000 86%, transparent); }
  [data-layout="clinical"] .campaign-stage { margin: .7rem 1rem 0; }
  .findings { padding-top: 1.9rem; }
  .section-head { margin-bottom: .65rem; }
  .research-list, [data-layout="clinical"] .research-list { grid-auto-columns: 82%; gap: 9px; }
  .research-tile { padding: .85rem .8rem .35rem; }
  .research-tile p { line-height: 1.48; }
  .order-top, .free-chapter { grid-template-columns: 1fr; }
  .order-card { padding: 1.1rem; }
  .order-steps { gap: .45rem .8rem; }
  .free-chapter { padding: .75rem; }
  .input-line .btn { padding-inline: .65rem; }
  .footer-bottom { margin-top: .45rem; }
}
@media (max-width: 365px) {
  #paid-order { grid-template-columns: 1fr; }
  .input-line { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
