/* ============================================================
   COMPENDIUM CLINICUM — Folha de estilos
   Aesthetic: editorial-clínico (bone / ink / ochre)
   ============================================================ */

:root {
  /* Paleta */
  --bone:        #F2EADC;
  --bone-deep:   #E8DFCF;
  --bone-soft:   #EFE6D5;
  --ink:         #1B1611;
  --ink-soft:    #5A4F44;
  --ink-faint:   #8A7E6E;
  --ochre:       #B5894E;
  --ochre-deep:  #8E6A38;
  --rose-dust:   #C28679;
  --seal:        #6F2C2C;
  --rule:        #C9BFA8;
  --rule-faint:  #D9D0BB;

  /* Typography */
  --serif: "Fraunces", "Cormorant Garamond", "Georgia", serif;
  --sans:  "Switzer", "Söhne", "Inter", system-ui, sans-serif;

  /* Escala (modular, ratio 1.333) */
  --fs-12: 0.72rem;
  --fs-14: 0.84rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.4rem;
  --fs-28: 1.75rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-64: 4rem;
  --fs-96: 6rem;

  /* Layout */
  --col: min(640px, calc(100% - 3rem));
  --col-wide: min(820px, calc(100% - 3rem));

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

button { font: inherit; color: inherit; cursor: pointer; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--ochre); color: var(--bone); }

/* ============================================================
   GRÃO DE FUNDO (papel antigo)
   ============================================================ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.106 0 0 0 0 0.086 0 0 0 0 0.067 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   PROGRESSO
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: transparent;
  z-index: 100;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: var(--ochre);
  transition: width 200ms var(--ease-out);
  box-shadow: 0 0 8px rgba(181, 137, 78, 0.35);
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: var(--col-wide);
  margin: 1.75rem auto 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.masthead__brand .masthead__mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-22);
  letter-spacing: 0;
  color: var(--ink);
  text-transform: none;
  font-variation-settings: "SOFT" 80, "WONK" 0, "opsz" 48;
}
.masthead__meta {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}

/* ============================================================
   PAPER (container principal)
   ============================================================ */
.paper {
  position: relative;
  z-index: 2;
  padding-bottom: 6rem;
}

/* ============================================================
   COVER
   ============================================================ */
.cover {
  width: var(--col-wide);
  margin: 0 auto;
  padding: 6rem 0 7rem;
  text-align: left;
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 900ms var(--ease-out) both;
}

.cover__rule {
  width: 64px;
  height: 1px;
  background: var(--ochre);
  margin-bottom: 2.25rem;
}

.cover__overline {
  font-family: var(--sans);
  font-size: var(--fs-12);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.cover__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, var(--fs-96));
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}
.cover__title-line {
  display: block;
}
.cover__title-line--accent {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  margin-left: 1.4em;
}

.cover__subtitle {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, var(--fs-22));
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 0 0 3rem;
  font-variation-settings: "opsz" 36;
}

.cover__abstract {
  max-width: 52ch;
  font-family: var(--sans);
  font-size: var(--fs-16);
  line-height: 1.7;
  color: var(--ink);
}
.cover__abstract p {
  margin: 0 0 1.1rem;
}
.cover__abstract abbr {
  text-decoration: none;
  border-bottom: 1px dotted var(--ochre);
  cursor: help;
  font-variant: small-caps;
  letter-spacing: 0.06em;
}

.cover__ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 0;
  color: var(--ochre);
}
.cover__ornament span:first-child,
.cover__ornament span:last-child {
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 80px;
}
.cover__diamond {
  font-size: 0.6rem;
  color: var(--ochre);
  line-height: 1;
}

.cover__cue {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 3rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-14);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  align-self: flex-start;
  transition: color 250ms, border-color 250ms, gap 350ms var(--ease-out);
}
.cover__cue:hover {
  color: var(--ochre-deep);
  border-color: var(--ochre);
  gap: 1.1rem;
}
.cover__cue-arrow {
  font-size: 1.1rem;
  transition: transform 350ms var(--ease-out);
}
.cover__cue:hover .cover__cue-arrow {
  transform: translateY(3px);
}

/* ============================================================
   INSTRUMENT (form)
   ============================================================ */
.instrument {
  display: block;
}

/* Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ============================================================
   CHAPTER (cada seção)
   ============================================================ */
.chapter {
  width: var(--col-wide);
  margin: 0 auto;
  padding: 5rem 0 4rem;
  border-top: 1px solid var(--rule);
  position: relative;
  animation: rise 700ms var(--ease-out) both;
  animation-timeline: view();
  animation-range: cover 0% cover 30%;
}
.chapter:first-of-type {
  border-top: 1px solid var(--rule);
}

.chapter__header {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 2.25rem;
  align-items: start;
  margin-bottom: 3rem;
}

.chapter__numeral {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.85;
  color: var(--ochre);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -0.02em;
  align-self: start;
  user-select: none;
}

.chapter__heading {
  padding-top: 0.6rem;
}
.chapter__kicker {
  font-family: var(--sans);
  font-size: var(--fs-12);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  font-weight: 500;
  margin: 0 0 0.6rem;
}
.chapter__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.6rem, 3.4vw, var(--fs-36));
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-variation-settings: "SOFT" 80, "WONK" 0, "opsz" 60;
}
.chapter__title-sub {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-faint);
  font-size: 0.78em;
  margin-left: 0.25em;
}
.chapter__rule {
  width: 56px;
  height: 1px;
  background: var(--ochre);
}

.chapter__body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: calc(120px + 2.25rem);
}

/* ============================================================
   UTTERANCE (citação do chatbot)
   ============================================================ */
.utterance {
  position: relative;
  margin: 0;
  padding: 2.25rem 2rem 2rem;
  background: var(--bone-deep);
  border-left: 1px solid var(--ochre);
  font-family: var(--serif);
  font-size: var(--fs-18);
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  font-variation-settings: "SOFT" 80, "WONK" 0, "opsz" 30;
}
.utterance::before,
.utterance::after {
  content: "";
  position: absolute;
  left: 1.6rem;
  width: 24px;
  height: 1px;
  background: var(--rule);
}
.utterance::before { top: 0.9rem; }
.utterance::after { bottom: 0.9rem; }

.utterance__attr {
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  display: inline-block;
  padding: 0 0.6rem;
  background: var(--bone);
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--fs-12);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  font-weight: 500;
}

.utterance__text {
  margin: 0 0 0.8rem;
}
.utterance__text:last-child { margin-bottom: 0; }

.utterance__dropcap {
  float: left;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 3.4em;
  line-height: 0.85;
  margin: 0.05em 0.12em 0 0;
  color: var(--ochre-deep);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.utterance__wave {
  font-style: normal;
  margin: 0 0.1em;
}

.utterance__list {
  margin: 0.6rem 0 0;
  padding-left: 1.4rem;
  list-style: none;
  counter-reset: utterance-list;
}
.utterance__list li {
  counter-increment: utterance-list;
  position: relative;
  padding: 0.18rem 0 0.18rem 0;
  font-style: italic;
}
.utterance__list li::before {
  content: counter(utterance-list) ".";
  position: absolute;
  left: -1.4rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ochre);
  letter-spacing: 0.05em;
}

.utterance__answers {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.1em 0.6em;
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--fs-14);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  border: 1px solid var(--rule);
  background: var(--bone);
}

.utterance--brief .utterance__text {
  font-size: var(--fs-22);
  line-height: 1.4;
}

/* ============================================================
   FIELDS
   ============================================================ */
.field {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
}

.field__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-family: var(--sans);
  cursor: default;
}

.field__index {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-22);
  color: var(--ochre);
  line-height: 1;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 30;
  letter-spacing: 0;
}

.field__name {
  font-family: var(--sans);
  font-size: var(--fs-18);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.field__hint {
  font-family: var(--sans);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
  margin-left: auto;
}

/* Input texto curto */
.field__input {
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--serif);
  font-size: var(--fs-22);
  font-style: italic;
  color: var(--ink);
  outline: none;
  transition: border-color 250ms, padding-left 250ms var(--ease-out);
  font-variation-settings: "opsz" 30, "SOFT" 80;
}
.field__input::placeholder {
  color: var(--ink-faint);
  font-style: italic;
  opacity: 0.7;
}
.field__input:focus {
  border-color: var(--ochre);
  padding-left: 0.5rem;
}

/* Textarea */
.field__textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px dashed var(--rule);
  background: transparent;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-18);
  line-height: 1.55;
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color 250ms, padding-left 250ms var(--ease-out);
}
.field__textarea::placeholder {
  color: var(--ink-faint);
  font-style: italic;
  opacity: 0.7;
}
.field__textarea:focus {
  border-bottom-style: solid;
  border-color: var(--ochre);
  padding-left: 0.5rem;
}

/* ============================================================
   CHOICES (radio refinado)
   ============================================================ */
.choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.choices--horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--fs-18);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__mark {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  background: transparent;
  transition: background 200ms var(--ease-out), border-color 200ms;
  flex-shrink: 0;
}
.choice__mark::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 6px;
  height: 6px;
  background: var(--ochre);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 280ms var(--ease-out);
}

.choice__text {
  position: relative;
  transition: color 200ms;
}
.choice__text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 350ms var(--ease-out);
}

.choice:hover .choice__text::after { transform: scaleX(1); }
.choice:hover .choice__mark { border-color: var(--ochre); }

.choice input[type="radio"]:focus-visible + .choice__mark {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

.choice input[type="radio"]:checked + .choice__mark {
  border-color: var(--ochre);
}
.choice input[type="radio"]:checked + .choice__mark::after {
  transform: translate(-50%, -50%) scale(1);
}
.choice input[type="radio"]:checked ~ .choice__text {
  color: var(--ochre-deep);
}
.choice input[type="radio"]:checked ~ .choice__text::after {
  transform: scaleX(1);
}

/* ============================================================
   EVALUATION (avaliação + sugestões dentro do capítulo)
   ============================================================ */
.evaluation {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule-faint);
}

/* ============================================================
   OUTCOMES (seção IX)
   ============================================================ */
.outcomes__intro {
  font-family: var(--serif);
  font-size: var(--fs-18);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: -0.5rem 0 0.5rem;
}

.outcomes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-faint);
}

.outcome {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule-faint);
}

.outcome__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.outcome__tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-family: var(--sans);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bone);
  background: var(--ink);
  border-radius: 1px;
}
.outcome__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-22);
  color: var(--ink);
  font-variation-settings: "SOFT" 80, "opsz" 30;
}
.outcome__text {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-18);
  line-height: 1.55;
  color: var(--ink);
}

.outcome--alert .outcome__tag { background: var(--seal); }
.outcome--keep .outcome__tag { background: var(--ochre-deep); }
.outcome--thanks .outcome__tag { background: var(--ink-soft); }
.outcome--condolence .outcome__tag {
  background: transparent;
  color: var(--seal);
  border: 1px solid var(--seal);
}

/* ============================================================
   COLOPHON (submit)
   ============================================================ */
.colophon {
  width: var(--col-wide);
  margin: 4rem auto 0;
  padding: 5rem 0 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.colophon__rule {
  width: 1px;
  height: 56px;
  background: var(--ochre);
  margin: 0 auto 2rem;
}
.colophon__overline {
  font-family: var(--sans);
  font-size: var(--fs-12);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.colophon__title {
  font-family: var(--serif);
  font-weight: 350;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, var(--fs-36));
  line-height: 1.2;
  color: var(--ink);
  margin: 0 auto 1.25rem;
  max-width: 22ch;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 60;
}
.colophon__body {
  font-family: var(--sans);
  font-size: var(--fs-16);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 2.5rem;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.submit {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 2.4rem;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 250ms var(--ease-out), color 250ms, gap 350ms var(--ease-out), transform 250ms;
  border-radius: 0;
}
.submit:hover {
  background: var(--ochre-deep);
  border-color: var(--ochre-deep);
  gap: 1.3rem;
}
.submit:active { transform: translateY(1px); }
.submit:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 4px;
}
.submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.submit__arrow { font-size: 1.1rem; }

.actions__note {
  margin: 0.5rem 0 0;
  min-height: 1.4rem;
  font-family: var(--sans);
  font-size: var(--fs-14);
  color: var(--seal);
  text-align: center;
}

/* ============================================================
   FINIS (mensagem após sucesso)
   ============================================================ */
.finis {
  width: var(--col-wide);
  margin: 0 auto;
  padding: 8rem 0 6rem;
  text-align: center;
  animation: rise 1100ms var(--ease-out) both;
}
.finis__inner {
  max-width: 36rem;
  margin: 0 auto;
}
.finis__numeral {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--ochre);
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.finis__overline {
  font-family: var(--sans);
  font-size: var(--fs-12);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  font-weight: 500;
  margin: 0 0 1.5rem;
}
.finis__title {
  font-family: var(--serif);
  font-weight: 350;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, var(--fs-48));
  line-height: 1.15;
  color: var(--ink);
  margin: 0 auto 1.5rem;
  max-width: 18ch;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
}
.finis__body {
  font-family: var(--sans);
  font-size: var(--fs-18);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 auto 2.5rem;
}
.finis__sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-18);
  color: var(--ink);
  margin: 0 0 2rem;
  font-variation-settings: "opsz" 30;
}
.finis__phone {
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--ochre-deep);
}
.finis__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--ochre);
}
.finis__ornament span:first-child,
.finis__ornament span:last-child {
  flex: 0 0 80px;
  height: 1px;
  background: var(--rule);
}
.finis__diamond {
  font-size: 0.6rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  width: var(--col-wide);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  position: relative;
  z-index: 5;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Stagger children */
.cover > * { animation: rise 800ms var(--ease-out) both; }
.cover__rule          { animation-delay: 0ms; }
.cover__overline      { animation-delay: 80ms; }
.cover__title         { animation-delay: 180ms; }
.cover__subtitle      { animation-delay: 320ms; }
.cover__abstract      { animation-delay: 460ms; }
.cover__ornament      { animation-delay: 600ms; }
.cover__cue           { animation-delay: 720ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .masthead__meta { gap: 1rem; }

  .cover { padding: 4rem 0 5rem; min-height: 80vh; }

  .chapter { padding: 3.5rem 0 3rem; }
  .chapter__header {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  .chapter__numeral { font-size: 4rem; }
  .chapter__heading { padding-top: 0; }
  .chapter__body { padding-left: 0; gap: 2rem; }

  .utterance {
    padding: 1.75rem 1.25rem 1.5rem;
    font-size: var(--fs-16);
  }
  .utterance--brief .utterance__text { font-size: var(--fs-18); }
  .utterance__attr { left: 1rem; }

  .field__label { gap: 0.6rem; }
  .field__hint { margin-left: 0; }

  .choices--horizontal { gap: 1rem 2rem; }

  .colophon { padding: 3.5rem 0 0; }
  .finis { padding: 5rem 0 4rem; }
  .footer { padding: 1.5rem 0; flex-direction: column; gap: 0.4rem; }
}

@media (max-width: 480px) {
  .cover__title { font-size: 2.6rem; }
  .cover__title-line--accent { margin-left: 0.5em; }
  .field__name { font-size: var(--fs-16); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .grain, .progress, .cover__cue, .submit, .masthead { display: none !important; }
  body { background: white; color: black; }
  .chapter { break-inside: avoid; }
}
