﻿/* Sustituir none por url('/images/...') para cada fondo definitivo.
   Las fotografías de las tarjetas son independientes de estos fondos. */
:root { --cover-background-desktop: none; --cover-background-mobile: none; --ink: #443a2e; --muted: #776b58; --paper: #fffaf0; }
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; color: var(--ink); background: #f3e9d6; font-family: Georgia, 'Times New Roman', serif; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--cover-background-desktop), radial-gradient(ellipse at 51% 18%, #fffdf3 0%, transparent 58%), radial-gradient(ellipse at 2% 76%, #c5b88b66, transparent 47%), radial-gradient(ellipse at 98% 86%, #c9a86d55, transparent 44%), linear-gradient(140deg, #e9dfca, #f9efda 53%, #e5d5b8);
  background-size: cover; background-position: center;
}
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .2; background: repeating-linear-gradient(0deg, #8e774208 0 1px, transparent 1px 4px); }
/* Fondo exclusivo de la portada; la imagen original se muestra sin capas ni efectos. */
body:has(.cover) {
  --cover-background-desktop: url('../images/fondos/FondoWeb.png');
  --cover-background-mobile: var(--cover-background-desktop);
}
body:has(.cover)::before {
  background-image: var(--cover-background-desktop);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body:has(.cover)::after { content: none; }
a { color: inherit; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-180%); z-index: 20; padding: 12px 20px; background: var(--paper); }
.skip-link:focus { transform: none; }
.cover { max-width: 1500px; margin: auto; padding: 65px 52px 35px; }
.cover-heading { text-align: center; }
/* Desplazamiento conjunto en escritorio, reducido al estrechar la ventana. */
@media (min-width: 1051px) {
  .cover-heading { transform: translateX(clamp(-120px, calc(525px - 50vw), 0px)); }
}
.eyebrow { font-family: 'Segoe UI', sans-serif; font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 21px 0 12px; font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 5.5vw, 5.3rem); line-height: .99; letter-spacing: .055em; }
.cover-heading h1 span { display: block; }
.motto { margin: 19px 0 12px; font-size: clamp(1.05rem, 1.7vw, 1.5rem); font-style: italic; }
/* Se conserva el flujo original para mantener la posición de las Polaroids. */
.cover-mottos { position: relative; }
.motto-primary {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 560px); margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 400;
  font-style: italic; line-height: 1.35; text-wrap: pretty;
  color: #302016; text-shadow: 0 1px 3px rgba(255, 245, 220, .65);
}
.cover-mottos .motto-script { top: 60px; font-size: .85em; }
.cover-mottos .heading-flourish { transform: translateY(48px) scale(.65); }
/* La altura de línea original conserva la posición del título y de la navegación. */
.cover-heading .eyebrow { font-size: .9rem; line-height: 0; font-weight: 600; }
.cover-heading .eyebrow, .motto-script { position: relative; isolation: isolate; }
.cover-heading .eyebrow::before, .motto-script::before, .motto-primary::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -10px -18px;
  background: radial-gradient(ellipse, rgba(255, 245, 220, .8) 25%, rgba(255, 245, 220, .45) 58%, transparent 75%);
}
.motto-script {
  /* Fuentes del dispositivo, sin descargas; sustituir aquí la familia si se desea. */
  font-family: 'Segoe Print', 'Bradley Hand', 'Chalkboard SE', cursive;
  font-style: normal;
  line-height: 0;
  top: -6px;
}
.motto-script::before { inset: -14px -55px; }
/* Una única iluminación cálida cubre los dos lemas, sin alterar su geometría. */
.motto-primary::before { inset: -23px calc(-9% - 64.9px) -70px; }
.cover-mottos .motto-script::before { content: none; }
.motto-script::after {
  content: ''; position: absolute; pointer-events: none;
  left: -48px; right: -48px; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, #806346) left center / 32px 1px no-repeat,
              linear-gradient(90deg, #806346, transparent) right center / 32px 1px no-repeat;
}
.cover-heading .eyebrow, .cover-heading h1, .cover-heading .motto {
  color: #302016;
  text-shadow: 0 1px 3px rgba(255, 245, 220, 0.65);
}
.heading-flourish { display: flex; align-items: center; justify-content: center; gap: 15px; color: #aa8c55; font-size: 18px; }
.heading-flourish::before, .heading-flourish::after { content: ''; width: 55px; height: 1px; background: linear-gradient(90deg, transparent, #b29b70); }
.heading-flourish::after { transform: rotate(180deg); }
.memory-wall { display: flex; align-items: flex-start; gap: 23px; padding: 56px 0 45px; }
.polaroid { --angle: -5deg; flex: 1; min-width: 0; position: relative; padding: 11px 11px 0; background: var(--paper); background-image: repeating-linear-gradient(17deg, transparent 0 3px, #a18b5a06 3px 4px); text-decoration: none; transform: translateY(var(--offset, 0px)) rotate(var(--angle)); box-shadow: 2px 5px 8px #5e492c18, 6px 17px 22px #65523425; transition: transform .3s ease, box-shadow .3s ease; cursor: pointer; }
.polaroid:hover, .polaroid:focus-visible { z-index: 2; transform: translateY(calc(var(--offset, 0px) - 9px)) rotate(0deg); box-shadow: 3px 9px 12px #5e492c20, 8px 24px 30px #65523430; }
.polaroid:focus-visible { outline: 3px solid #8a693a; outline-offset: 6px; }
.polaroid:nth-child(2) { --angle: 5deg; --offset: 36px; }
.polaroid:nth-child(3) { --angle: -6deg; --offset: 58px; }
.polaroid:nth-child(4) { --angle: 4deg; --offset: 31px; }
.polaroid:nth-child(5) { --angle: -3deg; --offset: 53px; }
.polaroid:first-child::before, .polaroid:nth-child(4)::before { content: ''; position: absolute; z-index: 1; width: 65px; height: 23px; background: #ddc99a88; top: -10px; left: calc(50% - 32px); transform: rotate(-7deg); border-left: 1px dashed #fff8; border-right: 1px dashed #fff8; }
.polaroid-image { aspect-ratio: 1 / 1.13; position: relative; overflow: hidden; background: #e5d7b9; }
.polaroid-image > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.image-note { position: absolute; bottom: 14px; left: 8px; right: 8px; text-align: center; z-index: 2; font-style: italic; font-size: .7rem; line-height: 1.4; color: #3e3b2c; }
.polaroid-caption { position: relative; padding: 19px 4px 24px; text-align: center; }
.polaroid-caption h2 { font-size: clamp(1.05rem, 1.65vw, 1.65rem); margin: 0 0 9px; font-weight: 400; font-style: italic; white-space: nowrap; }
.polaroid-long-title { font-size: .72em; }
.polaroid-caption p { max-width: 145px; min-height: 2.9em; font-size: .84rem; line-height: 1.45; color: var(--muted); margin: 0 auto; }
.landscape { background: linear-gradient(#e2d5b8, #f7e7bc 55%, #c0c2a6); }
.sun { position: absolute; width: 42px; height: 42px; background: #fff3ca; border-radius: 50%; left: 58%; top: 22%; box-shadow: 0 0 40px 16px #fff1bc88; }
.hill { position: absolute; width: 170%; height: 60%; left: -30%; border-radius: 50% 50% 0 0; }
.hill-back { bottom: -2%; background: #a9b19b; transform: rotate(-17deg); }
.hill-front { bottom: -28%; background: #889780; transform: rotate(22deg); }
.path { position: absolute; height: 50%; width: 20%; background: #e7d8b6; bottom: -10%; left: 44%; transform: rotate(24deg); border-radius: 90% 0 0 0; }
.reflections { background: linear-gradient(#e0e2d4, #f0e6cb 65%, #c6c5ac); }
.stone { position: absolute; background: linear-gradient(160deg, #aeac97, #7e8171); border-radius: 48%; left: 50%; transform: translateX(-50%); box-shadow: 1px 4px 5px #55543a26; }
.stone-one { width: 43%; height: 15%; bottom: 27%; }
.stone-two { width: 32%; height: 12%; bottom: 42%; }
.stone-three { width: 20%; height: 10%; bottom: 54%; }
.ripple { position: absolute; width: 80%; height: 12%; border: 1px solid #969d8e66; border-radius: 50%; bottom: 22%; left: 10%; }
.gallery { background: linear-gradient(120deg, #d6c6a6, #ece0c6); }
.mini-print { position: absolute; width: 52%; height: 48%; background: linear-gradient(155deg, #dce0cb 25%, #a9b498 26% 55%, #e2cb9e 56%); border: 6px solid #fff8e7; border-bottom-width: 18px; box-shadow: 2px 3px 6px #76613c33; }
.print-one { left: 10%; top: 11%; transform: rotate(-15deg); }
.print-two { right: 7%; top: 22%; transform: rotate(13deg); background: linear-gradient(25deg, #a8b9ad 30%, #e4d8bb 31% 65%, #c6cfc8 66%); }
.print-three { left: 19%; top: 38%; transform: rotate(-5deg); background: linear-gradient(155deg, #e8d8b7 35%, #b8ae8f 36% 60%, #879a8b 61%); }
.book-scene { background: radial-gradient(ellipse at top right, #f8eccc, transparent), #cbbb9b; }
.book { position: absolute; width: 65%; height: 71%; left: 18%; top: 9%; background: #e6d4b0; border-radius: 2px 5px 5px 2px; border-left: 5px solid #b09a70; box-shadow: 5px 7px 0 #b8a682, 9px 13px 15px #6f593339; transform: rotate(-12deg); text-align: center; padding-top: 28%; font-size: clamp(.55rem, .85vw, .8rem); letter-spacing: .08em; }
.book-branch { display: block; font-size: 32px; margin-top: 12px; }
.author-scene { background: linear-gradient(#d8dcd4, #efdbb8 62%, #d3c4a4); }
.author-scene .hill-back { background: #b0b4a7; bottom: -13%; }
.author-scene .hill-front { background: #8c9c91; bottom: -30%; }
.author-scene .path { display: none; }
.closing-note { text-align: center; margin: 73px 0 15px; font-size: 1.06rem; font-style: italic; color: #827151; }
.section-page { max-width: 720px; margin: 0 auto; min-height: 100svh; padding: 15vh 25px 70px; text-align: center; }
.section-page h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.2; margin: 22px 0 30px; }
.back-link { display: inline-block; text-underline-offset: 6px; padding: 12px; }
.back-link:hover { color: #8b6a37; }
/* Variaciones de posición solo en escritorio; tamaños y animaciones intactos. */
@media (min-width: 1051px) {
  .polaroid:nth-child(2) { --offset: 61px; left: -4px; }
  .polaroid:nth-child(3) { --offset: 33px; left: 5px; }
  .polaroid:nth-child(4) { --offset: 61px; left: -3px; }
  .polaroid:nth-child(5) { --offset: 33px; left: -8px; }
}
@media (min-width: 1500px) { .cover { padding-top: 85px; } .memory-wall { padding-top: 75px; } }
@media (min-width: 641px) and (max-width: 1050px) {
  .cover { max-width: 850px; padding: 50px 45px 30px; }
  .memory-wall { flex-wrap: wrap; justify-content: center; gap: 42px 28px; padding-top: 45px; }
  .polaroid { flex: 0 0 calc((100% - 70px) / 3); }
  .polaroid:nth-child(3) { --offset: 8px; }
  .polaroid:nth-child(4) { --offset: 12px; }
  .polaroid:nth-child(5) { --offset: 28px; }
  .polaroid-caption h2 { font-size: 1.15rem; }
  .book { font-size: .65rem; }
  .closing-note { margin-top: 40px; }
}
@media (max-width: 640px) {
  body::before { background-image: var(--cover-background-mobile), radial-gradient(ellipse at 50% 5%, #fffbeb, transparent 65%), linear-gradient(135deg, #e7ddc5, #f6e9cf 60%, #dfceb0); }
  /* Cuando exista, asignar a --cover-background-mobile: url('../images/fondos/FondoMovil.png'). */
  body:has(.cover)::before { background-image: var(--cover-background-mobile); }
  .cover { padding: 44px 26px 25px; }
  .eyebrow { font-size: .56rem; letter-spacing: .23em; }
  .cover-heading .eyebrow { font-size: .768rem; }
  h1 { font-size: clamp(2rem, 8.6vw, 3.4rem); margin-top: 24px; }
  .motto { font-size: 1.08rem; line-height: 1.5; }
  .motto-primary { font-size: .92rem; line-height: 1.3; }
  .motto-primary::before {
    inset: -17px auto -55px 50%;
    width: min(calc(118% + 28.32px), calc(100vw - 2px));
    transform: translateX(-50%);
  }
  .cover-mottos .motto-script { top: 60px; font-size: .85rem; }
  .cover-mottos .heading-flourish { transform: translateY(37px) scale(.45); }
  .motto-script { overflow-wrap: anywhere; }
  .motto-script::before { inset: -10px -8px; }
  .motto-script::after { content: none; }
  .memory-wall { flex-direction: column; align-items: center; gap: 38px; padding: 37px 8px 12px; }
  .polaroid:nth-child(n) { flex: none; width: min(100%, 290px); --offset: 0px; --angle: -3deg; }
  .polaroid:nth-child(even) { --angle: 3deg; }
  .polaroid-caption h2 { font-size: 1.8rem; }
  .polaroid-caption p { font-size: .95rem; max-width: 190px; }
  .image-note { font-size: .8rem; }
  .book { font-size: .9rem; }
  .closing-note { max-width: 260px; margin: 40px auto 10px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) { .polaroid { transition: none; } }

/* Voces del camino: una superficie de papel independiente del paisaje. */
html:has(#voces-del-camino) { scroll-behavior: smooth; }
.voices-access { text-align: center; margin-top: 22px; }
.voices-access a { display: inline-block; padding: 9px 16px; border-radius: 50%; background: radial-gradient(ellipse, #fff5dce6 35%, #fff5dc66 65%, transparent 75%); text-underline-offset: 4px; font-size: .9rem; color: #302016; }
.voices-access span { margin-left: 8px; }
.voices {
  position: relative; margin-top: 90px; padding: 70px 30px 85px; scroll-margin-top: 20px;
  background: repeating-linear-gradient(12deg, transparent 0 4px, #9b815b04 4px 5px), #f3e9d6;
}
.voices::before { content: ''; position: absolute; inset: -90px 0 auto; height: 90px; pointer-events: none; background: linear-gradient(transparent, #f3e9d6); }
.voices-inner { max-width: 1000px; margin: auto; }
.voices-heading { text-align: center; }
.voices-heading h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: #302016; }
.voices-heading p { max-width: 590px; margin: 0 auto; font-style: italic; line-height: 1.7; font-size: 1.1rem; }
.voices-count { margin: 24px auto; text-align: center; color: #806346; font-size: .95rem; line-height: 1.7; }
.voices-count span { display: inline-block; margin: 0 8px; font-size: .65em; vertical-align: middle; }
.voices-example-notice { margin: 23px auto 36px; max-width: 550px; text-align: center; font-family: 'Segoe UI', sans-serif; font-size: .8rem; line-height: 1.6; color: #776b58; }
.reader-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding: 10px 8px; }
.voices .reader-notes-1 { grid-template-columns: minmax(0, 1fr); max-width: 530px; margin: auto; }
.voices .reader-notes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.voices-welcome { max-width: 570px; margin: 32px auto; text-align: center; font-style: italic; font-size: 1.1rem; line-height: 1.8; color: #776b58; }
.reader-note {
  margin: 0; padding: 30px 32px; border-radius: 3px 5px 4px 2px;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #a18b5a05 3px 4px), #fffaf0;
  box-shadow: 2px 5px 8px #5e492c10, 4px 12px 20px #65523418; transform: rotate(-1.5deg);
}
.reader-note:nth-child(even) { transform: translateY(12px) rotate(1.2deg); }
.note-example { font-family: 'Segoe UI', sans-serif; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: #776b58; }
.reader-note blockquote { margin: 18px 0 20px; }
.reader-note blockquote p { margin: 0; font-size: 1.08rem; line-height: 1.8; }
.voices .reader-note blockquote p { white-space: pre-wrap; overflow-wrap: anywhere; }
.voices .reader-note figcaption { overflow-wrap: anywhere; }
.reader-note figcaption { margin-top: 20px; font-size: .8rem; line-height: 1.6; color: #776b58; }
.note-read-more { font-size: .85rem; text-underline-offset: 4px; }
.voices-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 52px; }
.paper-link { padding: 13px 25px; border: 1px solid #baa785; border-radius: 3px; background: #fffaf080; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.paper-link:hover { background: #fffaf0; border-color: #806346; }
.voices a:focus-visible, .voices-access a:focus-visible { outline: 2px solid #806346; outline-offset: 5px; }
.voices-preparation p { line-height: 1.8; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .voices { padding: 45px 25px 60px; }
  .voices .reader-notes-3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .reader-notes { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 8px 0; }
  .reader-note { padding: 25px 23px; overflow-wrap: anywhere; }
  .reader-note:nth-child(even) { transform: rotate(1.2deg); }
  .voices-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 38px; text-align: center; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .voices .reader-notes-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .voices .reader-notes-3 .reader-note:last-child { grid-column: 1 / -1; width: min(100%, 470px); justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(#voces-del-camino) { scroll-behavior: auto; }
  .paper-link { transition: none; }
}

/* El proyecto: lectura continua, con estilos limitados a esta página. */
body:has(.project-page)::before {
  background-image: radial-gradient(ellipse at 50% 0%, #faf4e8 0%, transparent 68%),
                    linear-gradient(90deg, #e5d9c5, #eee4d3 22%, #eee4d3 78%, #e5d9c5);
}
body:has(.project-page)::after { content: none; }
.project-page {
  max-width: 1040px; margin: 35px auto; padding: 25px 65px 60px;
  background-color: #fcf7eb;
  background-image: url('../images/texturas/papel-marfil.png');
  background-repeat: repeat;
  background-size: auto;
  color: #443a2e;
  box-shadow: 0 3px 9px #65523408, 0 15px 40px #65523414, inset 1px 0 2px #ffffff66;
}
/* Invitaciones de portada: posición independiente de la composición existente. */
.cover:has(> .hero-invitations) { position: relative; }
.hero-invitations {
  /* Compensar el margen de .cover en escritorio ancho; reservar espacio para la rotación. */
  position: absolute; top: 12px;
  left: calc(18px - max(0px, (100vw - 1500px) / 2));
  right: calc(18px - max(0px, (100vw - 1500px) / 2)); z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  pointer-events: none;
}
.hero-speech {
  --speech-angle: 3deg;
  --speech-lift: -6px;
  position: relative; isolation: isolate; display: block; width: 205px; min-height: 48px;
  padding: 12px 20px; border: 1.7px solid #302016;
  border-radius: 48% 52% 45% 55% / 48% 42% 58% 52%;
  background: #f5ecd9; color: #302016;
  font-family: 'Segoe Print', 'Bradley Hand', 'Chalkboard SE', cursive;
  font-size: .82rem; line-height: 1.45; text-align: center; text-decoration: none;
  box-shadow: 0 7px 18px rgba(75, 49, 30, .28), 0 2px 4px rgba(75, 49, 30, .16);
  /* Escalar conjuntamente texto, relleno y cola, anclando la esquina exterior. */
  transform: rotate(var(--speech-angle)) scale(1.2); transform-origin: top left;
  pointer-events: auto; cursor: pointer;
  animation: hero-speech-float 4s ease-in-out infinite;
}
.hero-speech::after {
  content: ''; position: absolute; z-index: -1; bottom: -8px; left: 25%;
  width: 15px; height: 15px; background: #f5ecd9;
  border-right: 1.7px solid #302016; border-bottom: 1.7px solid #302016;
  border-radius: 0 0 3px 0; transform: skew(-15deg) rotate(45deg);
}
.hero-speech-contact {
  --speech-angle: -3deg; transform-origin: top right;
  animation-duration: 4.5s; animation-delay: -.8s;
}
.hero-speech-contact::after { left: auto; right: 25%; transform: skew(15deg) rotate(45deg); }
.hero-speech:hover, .hero-speech:active { text-decoration: underline; text-underline-offset: 3px; }
.hero-speech:is(:hover, :focus-visible, :active) { animation-play-state: paused; }
.hero-speech:focus-visible { outline: 3px solid #302016; outline-offset: 5px; }
/* translate es independiente de transform: la rotación y la escala permanecen intactas. */
@keyframes hero-speech-float {
  0%, 100% {
    translate: 0 0;
    box-shadow: 0 7px 18px rgba(75, 49, 30, .28), 0 2px 4px rgba(75, 49, 30, .16);
  }
  50% {
    translate: 0 var(--speech-lift);
    box-shadow: 0 10px 22px rgba(75, 49, 30, .28), 0 3px 5px rgba(75, 49, 30, .16);
  }
}
@media (max-width: 1050px), (max-aspect-ratio: 4/3) {
  /* Usar la separación existente antes de Voces, sin aumentar la altura del hero. */
  .hero-invitations { top: auto; bottom: -74px; left: 18px; right: 18px; gap: 14px; }
  .hero-speech {
    --speech-lift: -3px;
    width: calc((100% - 14px) / 2); max-width: 205px; padding: 10px 12px;
    line-height: 1.4;
    /* Conservar el tamaño compacto y el espacio disponible en móvil. */
    transform: rotate(var(--speech-angle)); transform-origin: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-speech { animation: none; }
}

.project-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.project-navigation .back-link { padding-left: 0; font-size: .9rem; }
.project-navigation .eyebrow { font-size: .6rem; text-align: right; }
.project-heading { max-width: 660px; margin: 48px auto 36px; text-align: center; }
.project-ornament { display: block; color: #a28d64; font-size: 28px; }
.project-heading h1 { margin: 17px 0 22px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; text-transform: none; letter-spacing: .015em; color: #302016; }
.project-heading p { max-width: 490px; margin: 0 auto; font-size: clamp(1.05rem, 2vw, 1.25rem); font-style: italic; line-height: 1.7; color: #776b58; }
.project-reading { max-width: 650px; margin: 0 auto; }
.project-chapter { position: relative; padding: 0 0 48px; }
.project-chapter + .project-chapter { padding-top: 45px; }
.project-chapter + .project-chapter::before { content: ''; position: absolute; top: 0; left: 0; width: 90px; height: 1px; background: linear-gradient(90deg, #baa785, transparent); }
.project-chapter:nth-child(even)::before { left: auto; right: 0; transform: rotate(180deg); }
.project-chapter h2 { margin: 0 0 24px; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 400; line-height: 1.35; color: #302016; }
.project-chapter p { margin: 0 0 20px; font-size: 1.08rem; line-height: 1.95; }
.project-chapter p:last-child { margin-bottom: 0; }
.project-themes { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.project-themes li { position: relative; padding-left: 14px; font-size: .95rem; font-style: italic; line-height: 1.6; color: #776b58; }
.project-themes li::before { content: '·'; position: absolute; left: 0; color: #a28d64; }
.project-next { text-align: center; padding-top: 12px; }
.project-next a { display: inline-block; padding: 15px 0; font-size: 1.1rem; text-underline-offset: 6px; }
.project-next a span { margin-left: 8px; }
.project-page a:focus-visible { outline: 2px solid #806346; outline-offset: 5px; }
@media (max-width: 1100px) {
  .project-page { margin: 24px; padding: 25px 40px 50px; }
}
@media (max-width: 640px) {
  .hero-speech { font-size: 1.066rem; }
  .project-page { margin: 12px; padding: 15px 22px 35px; box-shadow: 0 4px 16px #65523410; }
  .project-navigation { flex-wrap: wrap; gap: 10px; }
  .project-navigation .eyebrow { text-align: left; font-size: .55rem; }
  .project-heading { margin: 35px auto 28px; }
  .project-chapter { padding-bottom: 32px; }
  .project-chapter + .project-chapter { padding-top: 32px; }
  .project-chapter p { font-size: 1rem; line-height: 1.85; }
  .project-themes { gap: 10px 18px; }
}
