@font-face {
  font-family: Libertinus;
  src: url("fonts/LibertinusSerif-Regular.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: Libertinus;
  src: url("fonts/LibertinusSerif-Italic.otf") format("opentype");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("fonts/PTSans-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("fonts/PTSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ivory: #f6f2ea;
  --sand: #e5d8c8;
  --terracotta: #a67b68;
  --olive: #4c5a4e;
  --ink: #292824;
  --forest: #344338;
  --muted: #56534b;
  --rule: #cfc4b4;
  --paper: #fffcf5;
  --serif: Libertinus, Georgia, serif;
  --sans: "PT Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--sans);
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; }
h1 { font-size: clamp(2.9rem, 6.3vw, 6.45rem); letter-spacing: -.05em; }
h2 { font-size: clamp(2.3rem, 4.4vw, 4.55rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); letter-spacing: -.023em; }
h1 em { color: var(--olive); }
p + p { margin-top: .8rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
input:focus-visible, select:focus-visible { outline-color: var(--forest); }
.wrap { width: min(75rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.split { display: grid; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.lead { margin-top: 1.15rem; max-width: 37ch; color: var(--muted); font-size: clamp(1.12rem, 1.55vw, 1.3rem); }
.eyebrow, figcaption {
  font: 700 .81rem/1.4 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 1.5rem; border-top: 2px solid var(--terracotta); }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; top: .75rem; left: 1rem; padding: .65rem; background: var(--paper); }

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.65rem; }
.wordmark { font: 400 2.3rem/.95 var(--serif); letter-spacing: -.055em; text-decoration: none; }
.wordmark span { color: var(--terracotta); }
.header-inner .wordmark, .footer-inner .wordmark { font-size: clamp(1.25rem, 5.75vw, 2.3rem); }
nav { display: flex; gap: clamp(.9rem, 3vw, 2.5rem); align-items: center; }
nav > a { font-size: .98rem; text-decoration: none; }
nav > .nav-secondary { display: none; }
nav > .nav-secondary:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .7rem;
  min-height: 3rem;
  padding: .65rem 1.12rem;
  border: 1px solid var(--olive);
  border-radius: 3px;
  background: var(--olive);
  color: var(--paper);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.button:hover { background: var(--forest); border-color: var(--forest); }
.button:focus-visible { outline-color: var(--ink); }
.button-outline { background: transparent; color: var(--forest); }
.button-outline:hover { color: var(--paper); }
.button:disabled { opacity: .6; cursor: default; }

.hero { padding-block: clamp(2.5rem, 6.5vw, 6.5rem) clamp(3.6rem, 7.8vw, 7rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4.25rem); align-items: center; }
.hero-copy .button { margin-top: 1.55rem; }
.hero-media {
  position: relative;
  padding: 0 clamp(.65rem, 1.9vw, 1.55rem) clamp(.75rem, 2.2vw, 1.75rem) 0;
  isolation: isolate;
}
.hero-media::before { content: ""; position: absolute; inset: .75rem 0 0 .75rem; z-index: -1; border: 1px solid var(--terracotta); }
.hero-media img { width: 100%; aspect-ratio: 1.25; object-fit: cover; object-position: 50% 47%; }
.hero-book {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  align-content: space-between;
  width: clamp(7.3rem, 16vw, 11.5rem);
  aspect-ratio: .72;
  padding: clamp(.65rem, 1.4vw, 1.2rem);
  border-left: 5px solid #b0a18e;
  background: var(--paper);
  box-shadow: 7px 8px 24px #29282438;
  transform: rotate(3deg);
}
.hero-book strong { font: 400 clamp(1.16rem, 2.2vw, 1.8rem)/1 var(--serif); }
.hero-book > span:first-child { font-size: clamp(.65rem, 1vw, .8rem); line-height: 1.2; }
.book-mark { color: var(--terracotta); }
[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; justify-items: center; }
[data-hero="centered"] .hero-copy { text-align: center; max-width: 57rem; }
[data-hero="centered"] .eyebrow { justify-content: center; }
[data-hero="centered"] .lead { margin-inline: auto; }
[data-hero="centered"] .hero-media { width: min(100%, 47rem); }

.film { padding-top: 0; }
.film-frame { position: relative; width: min(100%, 27rem); justify-self: center; box-shadow: 0 15px 35px #29282424; }
.film-frame video { display: block; width: 100%; height: auto; background: var(--sand); }
.film-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.film-play::before, .film-play::after { content: ""; grid-area: 1 / 1; }
.film-play::before {
  width: 5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 8px 24px #29282455;
  transition: background-color .18s;
}
.film-play::after { margin-left: .35rem; border-left: 1.35rem solid var(--paper); border-block: .85rem solid transparent; }
.film-play:hover::before { background-color: var(--forest); }
.film-play:focus-visible { outline-color: var(--paper); outline-offset: -8px; }

.connection { background: var(--sand); }
.editorial-image { width: 100%; aspect-ratio: 1.33; object-fit: cover; }
.connection .lead { color: var(--ink); }
.connection p + p { max-width: 43ch; }
.steps { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: .6rem;
  padding-block: .85rem;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--olive);
  font: 700 .85rem/1.65 var(--sans);
}
.steps h3 { margin-bottom: .25rem; font-size: 1.6rem; }
.steps p { max-width: 46ch; color: var(--muted); }

.chat { width: min(100%, 29rem); justify-self: center; }
.chat figcaption { color: var(--forest); margin-bottom: .7rem; }
.chat-card { overflow: hidden; border: 1px solid var(--rule); border-radius: 11px; box-shadow: 0 15px 35px #29282412; }
.chat-header { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; background: var(--forest); color: var(--paper); line-height: 1.2; }
.chat-header div span { font-size: .9rem; }
.chat-avatar { display: grid; place-items: center; width: 2.55rem; aspect-ratio: 1; border: 1px solid #f6f2ea80; border-radius: 50%; font: 1.5rem var(--serif); }
.chat-thread { display: grid; gap: .85rem; padding: clamp(.85rem, 2.6vw, 1.7rem); background: #ebe5da; }
.bubble { width: fit-content; max-width: 90%; margin: 0; padding: .75rem 1rem; border-radius: 2px 10px 10px; background: var(--paper); }
.bubble.reply { justify-self: end; border-radius: 10px 2px 10px 10px; background: #dce3d4; }
.audio-label { display: block; margin-bottom: .35rem; color: var(--forest); font-size: .88rem; font-weight: 700; }

.specimen { background: var(--forest); color: var(--ivory); }
.specimen .lead { color: var(--ivory); }
.book-intro p + p { max-width: 45ch; color: #e1d8ca; }
.book-preview { width: min(100%, 32rem); justify-self: center; }
.book-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: .9rem; border-bottom: 1px solid #f6f2ea55; }
.book-tabs button, .text-button { min-height: 2.75rem; border: 0; background: transparent; color: inherit; cursor: pointer; }
.book-tabs button { padding: .35rem .1rem; border-bottom: 2px solid transparent; font-size: clamp(.875rem, 2vw, 1.05rem); }
.book-tabs button:hover, .book-tabs button[aria-selected="true"] { border-bottom-color: var(--ivory); }
.book-stage { display: grid; gap: 1rem; }
.book-page {
  min-height: clamp(21rem, 35vw, 28rem);
  padding: clamp(1.25rem, 4.1vw, 3rem);
  border-left: 7px solid #c5b8a2;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 5px 5px 0 #d7c9b7, 8px 15px 25px #17201955;
}
.book-page h3 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.3rem); }
.book-cover, .chapter-opening { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.book-cover h3 { margin-block: 1.25rem .7rem; font-size: clamp(2.3rem, 5vw, 4.45rem); }
.book-cover p { font-size: .92rem; }
.book-cover .book-mark { margin-bottom: 1.25rem; }
.page-running { margin-bottom: 1.1rem; color: var(--olive); font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; }
.contents { margin: 0; padding: 0; list-style: none; }
.contents li { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--rule); padding: .5rem 0; }
.chapter-opening p:not(.page-running), .book-excerpt { font-family: var(--serif); }
.chapter-opening .book-mark { margin-top: 1rem; }
.book-excerpt blockquote { margin: .8rem 0; padding-left: .8rem; border-left: 2px solid var(--terracotta); font-style: italic; }
.book-excerpt.large-print { font-size: 1.28rem; }
.text-button { margin-top: .65rem; padding-inline: .25rem; text-decoration: underline; text-underline-offset: .25em; }
.text-button[aria-pressed="true"] { font-weight: 700; }

.paths { display: grid; gap: 1.5rem; margin-top: 1.8rem; }
.path-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--rule); background: var(--paper); }
.path-card img { width: 100%; aspect-ratio: 1.72; object-fit: cover; object-position: center 40%; }
.path-copy { display: flex; flex-direction: column; align-items: start; gap: .75rem; padding: clamp(1.1rem, 3vw, 2rem); }
.path-copy p { margin-bottom: .5rem; }
.path-copy .button { margin-top: auto; }

.questions { background: var(--sand); }
.questions .split, .interest .split { align-items: start; }
.faq { border-top: 1px solid #b7a996; }
.faq details { border-bottom: 1px solid #b7a996; }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem .2rem; list-style: none; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; color: var(--forest); font-size: 1.2em; line-height: 1; }
.faq details[open] summary::after { content: "−" / ""; }
.faq details p { padding: 0 1.5rem 1rem .2rem; }

.interest { background: var(--forest); color: var(--ivory); }
.interest .lead { color: var(--ivory); }
.interest-form { display: grid; gap: .85rem; padding: clamp(1.15rem, 3.7vw, 2.65rem); background: var(--paper); color: var(--ink); }
.field { display: grid; gap: .22rem; }
.field label { font-weight: 700; }
.field input, .field select { width: 100%; min-height: 2.85rem; padding: .4rem .65rem; border: 1px solid #8c8377; border-radius: 3px; background: white; color: var(--ink); }
.consent { display: flex; gap: .55rem; align-items: start; width: fit-content; padding: .35rem 0; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: .24rem 0 0; accent-color: var(--forest); }
.form-note { margin: 0; color: var(--muted); font-size: .95rem; }
#form-status:empty { display: none; }
.footer-inner { min-height: 5.5rem; }
.footer-inner > a:last-child { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 39rem) {
  nav > .nav-secondary { display: inline; }
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 51rem) {
  .split, .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .process, .questions .split, .interest .split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
}
@media (max-width: 50.99rem) {
  .connection .editorial-image { order: 1; }
  .hero-copy .button, .path-copy .button { width: 100%; }
  .hero-copy .lead { max-width: 40ch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
