:root {
  --warm-white: #fbfaf6;
  --ivory: #f4efe4;
  --beige: #e8ddcb;
  --olive: #5f6f4f;
  --sage: #9aa889;
  --gold: #c4a465;
  --water: #cddedc;
  --ink: #202820;
  --muted: #6e7569;
  --line: rgba(32, 40, 32, 0.18);
  --soft-line: rgba(95, 111, 79, 0.17);
  --title: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Lato", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --page-w: 210mm;
  --page-h: 297mm;
  --inner: 25mm;
  --outer: 18mm;
  --top: 19mm;
  --bottom: 18mm;
}

* {
  box-sizing: border-box;
}

html {
  background: #d7d0c4;
  color: var(--ink);
  font-family: var(--text);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(196, 164, 101, 0.16), transparent 30rem),
    linear-gradient(180deg, #ede7dc 0%, #d2cabd 100%);
}

.screen {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 0 auto 26px;
  color: rgba(32, 40, 32, 0.75);
}

.toolbar h1 {
  margin: 0 0 5px;
  font-family: var(--title);
  font-size: 31px;
  font-weight: 500;
}

.toolbar p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toolbar a {
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 111, 79, 0.3);
}

.book {
  display: grid;
  gap: 24px;
}

.page {
  position: relative;
  width: var(--page-w);
  height: var(--page-h);
  margin: 0 auto;
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: 0 22px 68px rgba(32, 40, 32, 0.23);
  page-break-after: always;
  break-after: page;
  isolation: isolate;
}

.page:last-child {
  page-break-after: auto;
  break-after: auto;
}

.page:nth-child(even) {
  --inner: 18mm;
  --outer: 25mm;
}

.page::after {
  content: "";
  position: absolute;
  inset: 6mm;
  border: 0.25pt solid rgba(32, 40, 32, 0.045);
  pointer-events: none;
}

.page-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: var(--top) var(--outer) var(--bottom) var(--inner);
}

.folio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 12mm;
  color: rgba(32, 40, 32, 0.45);
  font-size: 7.7pt;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-footer {
  display: flex;
  gap: 12mm;
  justify-content: space-between;
}

.folio-signature {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5mm;
  align-items: center;
}

.folio-logo-img {
  display: block;
  width: 13mm;
  height: auto;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 2.5mm;
}

.footer-logo svg {
  width: 7mm;
  height: 7mm;
}

.content {
  align-self: center;
}

.content.top {
  align-self: start;
  padding-top: 8mm;
}

.content.bottom {
  align-self: end;
  padding-bottom: 14mm;
}

.kicker {
  margin: 0 0 7mm;
  color: var(--gold);
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.quote {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 148mm;
  font-size: 49pt;
  line-height: 0.92;
}

h2 {
  max-width: 140mm;
  font-size: 31pt;
  line-height: 1.02;
}

h3 {
  font-size: 18pt;
  line-height: 1.18;
}

.subtitle {
  max-width: 110mm;
  margin-top: 8mm;
  color: var(--muted);
  font-size: 11pt;
  line-height: 1.65;
}

.body {
  max-width: 128mm;
  margin-top: 8mm;
  font-size: 10.8pt;
  line-height: 1.78;
}

.body p {
  margin: 0 0 4.5mm;
}

.lead {
  max-width: 135mm;
  margin-top: 9mm;
  font-family: var(--title);
  font-size: 17pt;
  line-height: 1.44;
}

.quote {
  max-width: 122mm;
  font-size: 28pt;
  line-height: 1.1;
  color: var(--olive);
}

.quote.small {
  font-size: 23pt;
}

.exercise {
  margin-top: 9mm;
  max-width: 130mm;
  color: var(--muted);
  font-size: 9.6pt;
  line-height: 1.6;
}

.exercise strong {
  display: block;
  margin-bottom: 2mm;
  color: var(--ink);
  font-size: 7.5pt;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.writing {
  margin-top: 8mm;
}

.lines {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 9mm, var(--soft-line) 9.2mm, transparent 9.45mm);
}

.space-small {
  min-height: 32mm;
}

.space-medium {
  min-height: 58mm;
}

.space-large {
  min-height: 92mm;
}

.space-full {
  min-height: 146mm;
}

.field-grid {
  display: grid;
  gap: 4.5mm;
  margin-top: 8mm;
}

.field {
  min-height: 24mm;
  padding-bottom: 3mm;
  border-bottom: 0.5pt solid var(--soft-line);
  color: var(--muted);
  font-size: 8.8pt;
  break-inside: avoid;
  page-break-inside: avoid;
}

.field.large {
  min-height: 28mm;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5mm;
  margin-top: 7mm;
}

.resource-card {
  min-height: 33mm;
  padding: 4mm;
  border: 0.5pt solid var(--line);
  background: rgba(244, 239, 228, 0.32);
  break-inside: avoid;
  page-break-inside: avoid;
}

.resource-card h3 {
  margin-bottom: 3.5mm;
  color: var(--olive);
  font-family: var(--text);
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-page::before,
.cover:not(.cover-light)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  filter: saturate(0.82) contrast(0.92);
}

.photo-page::after,
.cover:not(.cover-light)::after {
  inset: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(22, 28, 23, 0.14), rgba(22, 28, 23, 0.72));
}

.photo-page .page-inner,
.cover .page-inner {
  z-index: 2;
}

.cover {
  color: var(--ink);
  background: var(--warm-white);
}

.cover .page-inner {
  padding: 24mm 20mm 20mm;
}

.cover .content {
  align-self: end;
  padding-bottom: 7mm;
}

.cover h1 {
  font-size: 56pt;
  color: var(--ink);
}

.cover .subtitle {
  color: var(--muted);
}

.cover-photo {
  width: 100%;
  height: 104mm;
  margin-top: 10mm;
  background-image:
    linear-gradient(180deg, rgba(251, 250, 246, 0.08), rgba(251, 250, 246, 0.28)),
    var(--photo);
  background-size: cover;
  background-position: center;
  filter: saturate(0.72) contrast(0.9);
}

.logo-img {
  position: absolute;
  top: 18mm;
  left: 20mm;
  width: 22mm;
  height: 22mm;
  object-fit: contain;
  z-index: 3;
  opacity: 0.95;
}

.cover-linear-logo {
  position: absolute;
  top: 19mm;
  left: 20mm;
  z-index: 3;
  width: 19mm;
  height: 19mm;
  color: rgba(95, 111, 79, 0.76);
}

.cover .folio {
  color: rgba(32, 40, 32, 0.54);
}

.cover .kicker {
  color: var(--gold);
}

.cover .sabeu {
  color: var(--muted);
  border-top-color: rgba(32, 40, 32, 0.16);
}

.photo-panel-page {
  color: var(--ink);
  background: var(--warm-white);
}

.photo-panel-page::before,
.photo-panel-page::after {
  display: none;
}

.photo-panel {
  width: 100%;
  height: 92mm;
  margin: 0 0 14mm;
  background-image:
    linear-gradient(180deg, rgba(251, 250, 246, 0.04), rgba(251, 250, 246, 0.22)),
    var(--photo);
  background-size: cover;
  background-position: center;
  filter: saturate(0.72) contrast(0.9);
}

.photo-panel-page .body {
  max-width: 124mm;
}

.photo-panel-page h2 {
  color: var(--ink);
}

.sabeu {
  max-width: 105mm;
  margin-top: 9mm;
  padding-top: 5mm;
  border-top: 0.5pt solid rgba(32, 40, 32, 0.16);
  color: var(--muted);
  font-size: 9.2pt;
  line-height: 1.55;
}

.symbol {
  position: absolute;
  z-index: 1;
  color: rgba(95, 111, 79, 0.16);
  pointer-events: none;
}

.symbol.olive {
  right: 7mm;
  bottom: 7mm;
  width: 50mm;
  height: 78mm;
}

.symbol.roots {
  right: 12mm;
  top: 35mm;
  width: 74mm;
  height: 52mm;
  color: rgba(196, 164, 101, 0.18);
}

.infographic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7mm;
  margin-top: 10mm;
}

.planet {
  min-height: 45mm;
  padding: 5mm 5mm 4mm;
  border-top: 0.7pt solid var(--gold);
}

.planet strong {
  display: block;
  margin-bottom: 3mm;
  font-family: var(--title);
  font-size: 18pt;
  font-weight: 500;
  color: var(--olive);
}

.planet span {
  display: block;
  color: var(--muted);
  font-size: 9.1pt;
  line-height: 1.55;
}

.lineage {
  position: relative;
  height: 160mm;
  margin-top: 5mm;
}

.node {
  position: absolute;
  width: 38mm;
  min-height: 35mm;
  padding: 4mm;
  border: 0.5pt solid var(--line);
  border-radius: 50%;
  background: rgba(251, 250, 246, 0.75);
  text-align: center;
}

.node.eu {
  width: 40mm;
  min-height: 40mm;
  border-color: rgba(196, 164, 101, 0.55);
}

.node-title {
  display: block;
  margin-bottom: 2mm;
  color: var(--olive);
  font-size: 7.7pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.node-line {
  display: block;
  height: 6.4mm;
  border-bottom: 0.45pt solid var(--soft-line);
}

.node small {
  display: block;
  margin-top: 1mm;
  color: var(--muted);
  font-size: 6.5pt;
}

.connector {
  position: absolute;
  height: 0.5pt;
  transform-origin: left center;
  background: rgba(95, 111, 79, 0.12);
}

.future-list {
  display: grid;
  gap: 8mm;
  margin-top: 10mm;
}

.future-item {
  display: grid;
  grid-template-columns: 28mm 1fr;
  gap: 8mm;
  align-items: baseline;
  padding-bottom: 6mm;
  border-bottom: 0.5pt solid var(--soft-line);
}

.future-item time {
  color: var(--gold);
  font-family: var(--title);
  font-size: 23pt;
}

.future-label {
  display: block;
  margin-bottom: 2mm;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.future-item strong {
  display: block;
  font-family: var(--title);
  font-size: 18pt;
  font-weight: 500;
}

.future-item span {
  color: var(--muted);
  font-size: 9pt;
}

textarea.fillable {
  width: 100%;
  min-height: 34mm;
  margin-top: 3mm;
  padding: 3mm;
  resize: vertical;
  border: 0.5pt solid var(--soft-line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: 10pt/1.5 var(--text);
}

.fillable.large {
  min-height: 88mm;
}

.fillable.full {
  min-height: 140mm;
}

.print-only {
  display: block;
}

.digital-only {
  display: none;
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  html,
  body {
    width: var(--page-w);
    background: #fff;
  }

  .screen {
    width: auto;
    padding: 0;
  }

  .toolbar {
    display: none;
  }

  .book {
    display: block;
    gap: 0;
  }

  .page {
    margin: 0;
    box-shadow: none;
  }

  body.digital .page {
    height: var(--page-h);
    min-height: 0;
  }

  body.digital textarea.fillable {
    min-height: 16mm;
    resize: none;
  }

  body.digital .fillable.large,
  body.digital .fillable.full {
    min-height: 16mm;
  }

  body.digital .resource-card textarea.fillable {
    min-height: 14mm;
  }

  body.digital .field-grid {
    gap: 3mm;
    margin-top: 5mm;
  }

  body.digital .field {
    min-height: 19mm;
    padding-bottom: 2mm;
  }

  body.digital .field.large {
    min-height: 22mm;
  }
}

body.digital .print-only {
  display: none;
}

body.digital .digital-only {
  display: block;
}

@media screen {
  body.digital .page {
    height: auto;
    min-height: var(--page-h);
  }
}

/* Editorial upgrade: book-object system */
.page {
  background:
    linear-gradient(90deg, rgba(95, 111, 79, 0.018), transparent 16mm),
    var(--warm-white);
}

.page::after {
  border-color: rgba(32, 40, 32, 0.032);
}

.folio {
  min-height: 10mm;
  font-size: 6.9pt;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(32, 40, 32, 0.38);
}

.content.top {
  padding-top: 5mm;
}

h1 {
  font-size: 52pt;
  line-height: 0.92;
}

h2 {
  max-width: 126mm;
  font-size: 37pt;
  line-height: 0.98;
}

.subtitle {
  max-width: 112mm;
  margin-top: 6mm;
  color: rgba(32, 40, 32, 0.58);
  font-size: 10pt;
  letter-spacing: 0.01em;
}

.body {
  max-width: 108mm;
  margin-top: 8mm;
  font-size: 10pt;
  line-height: 1.82;
}

.lead {
  max-width: 118mm;
  font-size: 21pt;
  line-height: 1.28;
}

.quote {
  max-width: 126mm;
  font-size: 35pt;
  line-height: 1.02;
}

.quote.small {
  max-width: 112mm;
  font-size: 26pt;
}

.kicker {
  margin-bottom: 7mm;
  font-size: 7pt;
  letter-spacing: 0.22em;
}

.exercise strong {
  font-size: 6.8pt;
  letter-spacing: 0.18em;
}

.cover-book {
  background: var(--warm-white);
}

.cover-book::after {
  display: none;
}

.cover-book .page-inner {
  padding: 18mm 18mm 17mm;
}

.cover-image {
  position: absolute;
  top: 66mm;
  right: 18mm;
  width: 86mm;
  height: 88mm;
  background-image:
    linear-gradient(180deg, rgba(251, 250, 246, 0.04), rgba(251, 250, 246, 0.2)),
    var(--photo);
  background-size: cover;
  background-position: var(--photo-position, center);
  filter: saturate(0.68) contrast(0.92);
}

.page-mandala {
  background:
    radial-gradient(circle at 50% 56%, rgba(205, 222, 220, 0.26), transparent 58mm),
    var(--warm-white);
}

.page-mandala .content.top {
  padding-top: 14mm;
}

.page-mandala h2 {
  max-width: 124mm;
  font-size: 38pt;
  line-height: 0.98;
}

.mandala {
  position: relative;
  height: 150mm;
  margin-top: 11mm;
}

.mandala::before,
.mandala::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 0.5pt solid rgba(95, 111, 79, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.mandala::before {
  width: 102mm;
  height: 102mm;
}

.mandala::after {
  width: 138mm;
  height: 138mm;
}

.mandala-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30mm;
  height: 30mm;
  transform: translate(-50%, -50%);
  color: rgba(95, 111, 79, 0.58);
}

.mandala-icon {
  width: 100%;
  height: 100%;
}

.mandala-item {
  position: absolute;
  width: 62mm;
  color: var(--muted);
  font-size: 7.8pt;
  line-height: 1.5;
}

.mandala-item p {
  margin: 0 0 2mm;
  color: var(--gold);
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mandala-item strong {
  display: block;
  margin-bottom: 2.5mm;
  color: var(--ink);
  font-family: var(--title);
  font-size: 18pt;
  font-weight: 500;
}

.mandala-item em {
  display: block;
  margin-bottom: 2mm;
  color: var(--olive);
  font-style: normal;
}

.m1 { left: 0; top: 8mm; }
.m2 { right: 0; top: 8mm; text-align: right; }
.m3 { left: 0; bottom: 3mm; }
.m4 { right: 0; bottom: 3mm; text-align: right; }

.movement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8mm;
  margin-top: 10mm;
}

.movement-card {
  min-height: 58mm;
  padding: 5mm 4mm;
  border-top: 0.5pt solid rgba(196, 164, 101, 0.62);
}

.movement-icon {
  width: 13mm;
  height: 13mm;
  margin-bottom: 4mm;
  color: rgba(95, 111, 79, 0.62);
}

.movement-card p {
  margin: 0 0 2mm;
  color: var(--gold);
  font-size: 6.7pt;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.movement-card strong {
  display: block;
  margin-bottom: 2mm;
  font-family: var(--title);
  font-size: 20pt;
  font-weight: 500;
  color: var(--ink);
}

.movement-card em,
.movement-card span {
  display: block;
  color: var(--muted);
  font-size: 8.4pt;
  font-style: normal;
  line-height: 1.55;
}

.movement-card em {
  margin-bottom: 2mm;
  color: var(--olive);
}

.cover-official-logo {
  display: block;
  width: 40mm;
  height: auto;
  margin: 0 auto;
}

.cover-logo-wrap {
  position: relative;
  z-index: 3;
  min-height: 44mm;
}

.cover-title {
  align-self: start;
  max-width: 92mm;
  padding-top: 12mm;
}

.cover-brand,
.cover-volume,
.cover-chapter-label,
.cover-note {
  margin: 0;
  color: var(--muted);
  font-size: 8pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cover-brand {
  margin-bottom: 8mm;
  color: var(--gold);
  font-weight: 700;
}

.cover-book h1 {
  max-width: 92mm;
  margin: 0;
  color: var(--ink);
  font-size: 42pt;
  line-height: 0.96;
}

.cover-volume {
  margin-top: 5mm;
}

.cover-series {
  margin-top: 14mm;
  font-family: var(--title);
  font-size: 34pt;
  line-height: 1.04;
}

.cover-series p {
  margin: 0;
}

.cover-chapter-label {
  margin-top: 10mm;
  color: var(--gold);
}

.cover-chapter-title {
  max-width: 108mm;
  margin: 3mm 0 0;
  color: var(--ink);
  font-family: var(--title);
  font-size: 19pt;
  line-height: 1.08;
}

.cover-note {
  margin-top: 12mm;
  letter-spacing: 0.13em;
}

.page-pause {
  background: var(--warm-white);
}

.page-pause::after {
  display: none;
}

.page-owner::after {
  display: none;
}

.owner-card {
  align-self: center;
  width: min(112mm, 100%);
  margin-inline: auto;
}

.owner-card p {
  margin: 0 0 4mm;
  color: var(--muted);
  font-size: 8pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.owner-line {
  height: 18mm;
  margin: 0 0 14mm;
  border-bottom: 0.5pt solid rgba(95, 111, 79, 0.28);
}

.owner-check {
  display: inline-flex;
  gap: 4mm;
  align-items: center;
  margin-top: 2mm;
  color: var(--ink);
  font-family: var(--title);
  font-size: 23pt;
}

.owner-check span {
  display: grid;
  width: 8mm;
  height: 8mm;
  place-items: center;
  border: 0.6pt solid rgba(95, 111, 79, 0.34);
  color: var(--olive);
  font-family: var(--sans);
  font-size: 8pt;
  line-height: 1;
}

.pause-word {
  align-self: center;
  justify-self: center;
  max-width: 90mm;
  font-family: var(--title);
  font-size: 28pt;
  line-height: 1.15;
  color: var(--olive);
  text-align: center;
}

.manifesto-page .page-inner {
  padding-top: 25mm;
  padding-bottom: 22mm;
}

.manifesto-content {
  align-self: center;
}

.watermark {
  right: 11mm;
  bottom: 12mm;
  width: 58mm;
  height: 90mm;
  color: rgba(95, 111, 79, 0.095);
}

.page-symbol {
  background:
    radial-gradient(circle at 50% 40%, rgba(232, 221, 203, 0.55), transparent 56mm),
    var(--warm-white);
}

.page-symbol::after {
  display: none;
}

.symbol-stage {
  align-self: center;
  display: grid;
  gap: 9mm;
  justify-items: center;
  text-align: center;
}

.sabeu-symbol {
  width: 86mm;
  height: 86mm;
  color: rgba(95, 111, 79, 0.68);
}

.sabeu-image {
  position: relative;
  width: 62mm;
  height: 62mm;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(251, 250, 246, 0.06), rgba(251, 250, 246, 0.26)),
    var(--photo);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 0.5pt rgba(95, 111, 79, 0.14);
  filter: saturate(0.62) contrast(0.9);
}

.sabeu-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 42%, rgba(251, 250, 246, 0.18));
}

.symbol-stage h2 {
  max-width: 128mm;
  font-size: 30pt;
  line-height: 1.02;
}

.symbol-stage .subtitle {
  margin-left: auto;
  margin-right: auto;
}

.symbol-phrase {
  max-width: 86mm;
  margin: 6mm auto 0;
  color: var(--muted);
  font-family: var(--title);
  font-size: 14pt;
  line-height: 1.32;
}

.symbol-reflection {
  max-width: 98mm;
  margin: 6mm auto 0;
  color: rgba(32, 40, 32, 0.76);
  font-size: 9.2pt;
  line-height: 1.72;
}

.symbol-question {
  max-width: 86mm;
  margin: 6mm auto 0;
  color: var(--olive);
  font-family: var(--title);
  font-size: 15pt;
  line-height: 1.32;
}

.page-chapter {
  background: var(--warm-white);
}

.page-chapter::after {
  display: none;
}

.chapter-photo {
  position: absolute;
  top: 25mm;
  right: 18mm;
  width: 78mm;
  height: 104mm;
  background-image:
    linear-gradient(180deg, rgba(251, 250, 246, 0.02), rgba(251, 250, 246, 0.18)),
    var(--photo);
  background-size: cover;
  background-position: var(--photo-position, center);
  filter: saturate(0.62) contrast(0.88);
}

.page-chapter .folio,
.page-chapter footer {
  color: rgba(128, 128, 117, 0.72);
}

.chapter-content {
  align-self: end;
  max-width: 104mm;
  padding-bottom: 19mm;
  color: var(--ink);
}

.chapter-number {
  margin: 0 0 12mm;
  font-family: var(--title);
  font-size: 72pt;
  line-height: 0.8;
  color: rgba(95, 111, 79, 0.22);
}

.chapter-content h2 {
  color: var(--ink);
}

.chapter-content .kicker {
  color: var(--gold);
}

.chapter-phrase {
  max-width: 92mm;
  margin: 8mm 0 0;
  color: var(--muted);
  font-size: 10pt;
  line-height: 1.7;
}

.page-contemplative {
  background: var(--warm-white);
}

.page-water-teach {
  background: var(--warm-white);
}

.page-water-teach::after {
  border-color: rgba(205, 222, 220, 0.25);
}

.water-texture {
  position: absolute;
  right: 18mm;
  top: 25mm;
  width: 78mm;
  height: 54mm;
  background-image:
    linear-gradient(180deg, rgba(251, 250, 246, 0.1), rgba(251, 250, 246, 0.32)),
    var(--photo);
  background-size: cover;
  background-position: var(--photo-position, center);
  filter: saturate(0.65) contrast(0.86);
}

.water-teach-content {
  align-self: center;
  max-width: 108mm;
}

.water-teach-content h2 {
  font-size: 44pt;
  color: var(--olive);
}

.water-teach-content p:not(.kicker) {
  max-width: 86mm;
  margin: 9mm 0 0;
  color: var(--muted);
  font-family: var(--title);
  font-size: 18pt;
  line-height: 1.38;
}

.page-passport .watermark {
  width: 82mm;
  height: 82mm;
  color: rgba(95, 111, 79, 0.055);
}

.passport-list {
  display: grid;
  gap: 7mm;
  margin-top: 16mm;
}

.passport-item {
  display: grid;
  grid-template-columns: 1fr 24mm;
  gap: 10mm;
  align-items: center;
  padding-bottom: 6mm;
  border-bottom: 0.5pt solid rgba(95, 111, 79, 0.16);
}

.passport-item span {
  display: block;
  margin-bottom: 1.5mm;
  color: var(--gold);
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.passport-item strong {
  font-family: var(--title);
  font-size: 20pt;
  font-weight: 500;
}

.passport-item i {
  display: block;
  width: 22mm;
  height: 22mm;
  border: 0.6pt solid rgba(95, 111, 79, 0.28);
  border-radius: 50%;
}

.page-thanks::after {
  display: none;
}

.page-thanks section {
  align-self: center;
  justify-self: center;
  text-align: center;
}

.page-thanks h2 {
  max-width: 116mm;
  margin: 0 auto 9mm;
  color: var(--ink);
  font-family: var(--title);
  font-size: 34pt;
  font-weight: 500;
  line-height: 1.08;
}

.page-thanks p {
  max-width: 90mm;
  margin: 0 auto 10mm;
  color: var(--olive);
  font-family: var(--title);
  font-size: 25pt;
  line-height: 1.2;
}

.thanks-body {
  margin: 9mm auto 0;
}

.thanks-body p {
  margin-bottom: 2mm;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8.5pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thanks-logo-img {
  display: block;
  width: 24mm;
  height: auto;
  margin: 0 auto;
}

.page-contemplative::after {
  display: none;
}

.contemplative-photo {
  position: absolute;
  top: 24mm;
  right: 18mm;
  width: 82mm;
  height: 108mm;
  background-image:
    linear-gradient(180deg, rgba(251, 250, 246, 0.04), rgba(251, 250, 246, 0.26)),
    var(--photo);
  background-size: cover;
  background-position: var(--photo-position, center);
  filter: saturate(0.62) contrast(0.88);
}

.page-contemplative .folio {
  color: rgba(128, 128, 117, 0.72);
}

.contemplative-text {
  align-self: end;
  max-width: 108mm;
  padding-bottom: 26mm;
}

.contemplative-text h2,
.contemplative-text .body {
  color: var(--ink);
}

body[data-book="./book-data-capitulo-ii.js"] .cover-image,
body[data-book="./book-data-capitulo-ii.js"] .chapter-photo,
body[data-book="./book-data-capitulo-ii.js"] .contemplative-photo,
body[data-book="./book-data-capitulo-ii.js"] .water-texture {
  background-image: var(--photo);
  filter: saturate(0.82) contrast(1.02);
}

.page-exercise h2 {
  font-size: 34pt;
}

.page-exercise .subtitle {
  max-width: 128mm;
  font-size: 10.4pt;
}

.page-exercise .body {
  max-width: 118mm;
}

.lines {
  background-image: none;
}

.writing-box,
.field,
.resource-card {
  border: 0.45pt solid rgba(95, 111, 79, 0.13);
  background:
    radial-gradient(circle at 18% 12%, rgba(205, 222, 220, 0.12), transparent 36mm),
    linear-gradient(180deg, rgba(251, 250, 246, 0.82), rgba(244, 239, 228, 0.22));
  box-shadow: inset 0 0 0 8mm rgba(251, 250, 246, 0.22);
}

.writing-box {
  margin-top: 8mm;
}

.field {
  padding: 4.5mm 5mm;
  border-bottom: 0.45pt solid rgba(95, 111, 79, 0.13);
}

.field span {
  display: block;
  color: rgba(32, 40, 32, 0.5);
  font-size: 8.2pt;
  letter-spacing: 0.01em;
}

.field.large {
  min-height: 32mm;
}

.resource-card {
  min-height: 37mm;
  padding: 4.8mm 5mm;
}

.resource-space {
  min-height: 18mm;
  margin-top: 0;
  border: 0;
  background: transparent;
}

.resource-fillable {
  min-height: 18mm;
  border: 0;
  background: transparent;
}

.page-journal-questions h2 {
  max-width: 136mm;
  font-size: 33pt;
}

.page-journal-questions .subtitle {
  max-width: 116mm;
  margin-top: 5mm;
}

.journal-question-grid {
  display: grid;
  gap: 3.4mm;
  margin-top: 7mm;
}

.journal-question {
  min-height: 27mm;
  padding: 4mm 5mm;
  border: 0.45pt solid rgba(95, 111, 79, 0.13);
  background:
    radial-gradient(circle at 15% 10%, rgba(205, 222, 220, 0.1), transparent 28mm),
    linear-gradient(180deg, rgba(251, 250, 246, 0.86), rgba(244, 239, 228, 0.2));
  break-inside: avoid;
  page-break-inside: avoid;
}

.journal-question span {
  float: left;
  width: 7mm;
  color: var(--gold);
  font-family: var(--title);
  font-size: 14pt;
  line-height: 1;
}

.journal-question p {
  margin: 0 0 3mm 9mm;
  color: rgba(32, 40, 32, 0.62);
  font-size: 8.6pt;
  line-height: 1.4;
}

.journal-space {
  min-height: 11mm;
  margin-left: 9mm;
}

textarea.journal-fillable {
  min-height: 12mm;
  margin: 0 0 0 9mm;
  width: calc(100% - 9mm);
}

.space-small {
  min-height: 35mm;
}

.space-medium {
  min-height: 64mm;
}

.space-large {
  min-height: 106mm;
}

.space-full {
  min-height: 130mm;
}

.writing-boost .space-large {
  min-height: 114mm;
}

.writing-boost .space-full {
  min-height: 134mm;
}

.wide-fields .field {
  min-height: 31mm;
}

.wide-fields .field.large {
  min-height: 34mm;
}

.infographic {
  gap: 9mm;
}

.planet {
  min-height: 48mm;
  border-top: 0.6pt solid rgba(196, 164, 101, 0.72);
}

.lineage {
  margin-top: 10mm;
}

.future-item {
  border-bottom-color: rgba(95, 111, 79, 0.16);
}

@media print {
  body.digital .field.large {
    min-height: 24mm;
  }

  body.digital .resource-card textarea.fillable {
    min-height: 16mm;
  }
}

.diary-actions,
.reader-actions,
.diary-sidebar-actions,
.mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.diary-actions {
  justify-content: flex-end;
}

.save-state,
#stepState {
  color: rgba(32, 40, 32, 0.58);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiet-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(95, 111, 79, 0.24);
  border-radius: 999px;
  background: var(--olive);
  color: var(--warm-white);
  font-family: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.quiet-button.ghost {
  background: rgba(251, 250, 246, 0.62);
  color: var(--olive);
}

.quiet-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.diary-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.9), rgba(244, 239, 228, 0.72)),
    radial-gradient(circle at 85% 12%, rgba(205, 222, 220, 0.46), transparent 28rem);
}

.diary-web {
  display: grid;
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
  min-height: 100vh;
}

.diary-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 32px 28px;
  border-right: 1px solid rgba(95, 111, 79, 0.14);
  background: rgba(251, 250, 246, 0.76);
}

.diary-mark {
  width: 44mm;
  height: auto;
  margin-bottom: 30px;
}

.diary-sidebar h1,
.mobile-header h1 {
  max-width: 240px;
  margin-bottom: 16px;
  font-size: 43px;
  line-height: 0.95;
}

.diary-intro {
  max-width: 230px;
  margin: 0 0 30px;
  color: rgba(32, 40, 32, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.chapter-nav {
  display: grid;
  gap: 10px;
  margin-bottom: auto;
}

.chapter-card {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(95, 111, 79, 0.16);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.chapter-card.active {
  border-color: rgba(196, 164, 101, 0.56);
  background: rgba(244, 239, 228, 0.86);
}

.chapter-card span,
.chapter-card small {
  display: block;
  color: rgba(32, 40, 32, 0.5);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-card strong {
  display: block;
  margin: 5px 0;
  font-family: var(--title);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.03;
}

.diary-reader {
  min-width: 0;
  padding: 24px;
}

.diary-reader-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto 18px;
}

.diary-reader-bar h2 {
  font-size: 34px;
}

.diary-frame {
  display: block;
  width: min(100%, 1120px);
  height: calc(100vh - 128px);
  margin: 0 auto;
  border: 1px solid rgba(95, 111, 79, 0.14);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 20px 60px rgba(32, 40, 32, 0.14);
}

body.mobile-guided {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(205, 222, 220, 0.54), transparent 25rem),
    linear-gradient(180deg, #fbfaf6 0%, #eee6d9 100%);
}

.mobile-shell {
  width: min(100%, 620px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 34px;
}

.mobile-header {
  padding: 10px 2px 22px;
}

.mobile-header img {
  width: 36mm;
  height: auto;
  margin-bottom: 22px;
}

.mobile-chapter-picker select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(95, 111, 79, 0.18);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.82);
  color: var(--ink);
  font-family: var(--text);
}

.guided-card {
  min-height: 430px;
  margin-top: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(95, 111, 79, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 5%, rgba(205, 222, 220, 0.24), transparent 16rem),
    rgba(251, 250, 246, 0.86);
  box-shadow: 0 20px 54px rgba(32, 40, 32, 0.1);
}

.guided-card.pause {
  display: grid;
  place-content: center;
  text-align: center;
}

.guided-card h2 {
  max-width: none;
  margin-bottom: 18px;
  font-size: 38px;
}

.guided-body,
.guided-exercise {
  color: rgba(32, 40, 32, 0.68);
  font-size: 14px;
  line-height: 1.7;
}

.guided-exercise {
  color: rgba(95, 111, 79, 0.82);
}

.guided-card label span {
  display: block;
  margin: 24px 0 10px;
  color: rgba(32, 40, 32, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.guided-textarea {
  width: 100%;
  min-height: 210px;
  padding: 16px;
  border: 1px solid rgba(95, 111, 79, 0.14);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.62);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
  resize: vertical;
}

.guided-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.guided-controls .quiet-button:last-child {
  justify-self: end;
}

.mobile-actions {
  justify-content: center;
  margin-top: 22px;
}

.guided-print {
  display: none;
}

@media (max-width: 860px) {
  .diary-web {
    grid-template-columns: 1fr;
  }

  .diary-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(95, 111, 79, 0.14);
  }

  .diary-reader {
    padding: 18px 10px;
  }

  .diary-reader-bar {
    display: block;
  }

  .reader-actions {
    margin-top: 12px;
  }

  .diary-frame {
    height: 74vh;
  }
}

@media print {
  .diary-actions,
  .toolbar,
  .diary-sidebar,
  .diary-reader-bar,
  .mobile-header,
  .mobile-chapter-picker,
  .guided-card,
  .guided-controls,
  .mobile-actions {
    display: none !important;
  }

  body.mobile-guided {
    background: var(--warm-white);
  }

  .mobile-shell {
    width: auto;
    min-height: 0;
    padding: 0;
  }

  .guided-print {
    display: block;
  }

  .print-cover,
  .print-answer {
    width: 210mm;
    min-height: 297mm;
    padding: 28mm 24mm;
    page-break-after: always;
    background: var(--warm-white);
    color: var(--ink);
  }

  .print-cover {
    display: grid;
    align-content: center;
    text-align: center;
  }

  .print-cover img {
    width: 42mm;
    margin: 0 auto 18mm;
  }

  .print-cover h1 {
    margin: 0 auto 6mm;
    font-size: 48pt;
  }

  .print-cover h2 {
    margin: 0 auto 6mm;
    font-size: 25pt;
  }

  .print-answer h2 {
    max-width: 150mm;
    font-size: 24pt;
  }

  .print-answer p:last-child {
    margin-top: 12mm;
    font-size: 12pt;
    line-height: 1.8;
    white-space: normal;
  }
}
