/* ==========================================================================
   Angela & Alegría — Recorriendo las Américas
   Theme stylesheet · design tokens inherited from the "angelayalegriav2" template
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    --ink: #18231f;
    --cream: #f4efe4;
    --paper: #fbf8f0;
    --teal: #2f7068;
    --gold: #d69935;
    --gold-soft: #f3bc61;
    --gold-deep: #9b681f;   /* AA on cream (4.5:1) */
    --gold-light: #efb252;  /* AA on ink (8.6:1) */
    --terra: #e66d3e;
    --muted: #50625b;
    --line: #bcb6a8;
    --line-soft: #cfc7b7;

    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;

    --nav-h: 84px;
    --section-y: 110px;
    --gutter: 8vw;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
    outline: 2px solid var(--gold-soft);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: fixed;
    z-index: 200;
    left: 16px;
    top: -80px;
    padding: 12px 18px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   3. Shared primitives
   -------------------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 24px;
}

.section-no,
.eyebrow {
    margin: 0 0 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.section-no { color: var(--teal); }

.section-no--light { color: var(--gold-soft); }

.lead {
    margin-top: 0;
    font-family: var(--serif);
    font-size: 24px;
    font-style: italic;
    line-height: 1.45;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 12px 2px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    transition: gap .2s var(--ease), color .2s var(--ease);
}
.btn-line:hover { gap: 16px; color: var(--teal); }
.btn-line span { font-size: 16px; line-height: 1; }

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 5vw;
    color: var(--cream);
    transition: padding .25s var(--ease), background .25s var(--ease);
}
.nav.is-sticky {
    padding-block: 12px;
    background: rgba(24, 35, 31, .96);
    backdrop-filter: blur(10px);
}

.brand {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
}
.brand:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

.nav-links {
    display: flex;
    gap: 34px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nav-links a { padding: 12px 0; }
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--gold-soft); }

.menu-button {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .6);
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}
.menu-button-bars { display: grid; gap: 4px; }
.menu-button-bars i {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.menu-button[aria-expanded="true"] .menu-button-bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button-bars i:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] .menu-button-bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 6vw 70px;
    text-align: center;
    color: var(--cream);
    background:
        linear-gradient(rgba(16, 42, 39, .31), rgba(16, 42, 39, .49)),
        url("../images/mainbanner.jpg") center 46% / cover no-repeat;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .1;
    background-image: radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 1.5px);
    background-size: 22px 22px;
}

.sun {
    position: absolute;
    z-index: -1;
    width: 38vw;
    height: 38vw;
    min-width: 350px;
    min-height: 350px;
    border-radius: 50%;
    background: var(--gold);
    opacity: .92;
    right: -7vw;
    bottom: -18vw;
}
.road {
    position: absolute;
    z-index: -1;
    left: -6vw;
    bottom: -4vh;
    width: 76vw;
    height: 25vh;
    border-top: 2px solid rgba(244, 239, 228, .45);
    transform: rotate(-5deg);
    border-radius: 50%;
}
.road span {
    display: block;
    width: 65%;
    height: 100%;
    border-top: 1px dashed rgba(244, 239, 228, .4);
    margin: 18px auto 0;
}

.route-line {
    position: absolute;
    top: 50%;
    left: 5vw;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .75;
}
.route-line i { display: block; width: 70px; height: 1px; background: currentColor; }

.hero h1 {
    margin: 14px 0 0;
    font-size: clamp(58px, 10vw, 142px);
    line-height: .78;
    letter-spacing: -.055em;
    text-transform: uppercase;
    text-shadow: 0 3px 18px rgba(16, 42, 39, .66);
}
.hero h1 em { font-weight: 400; font-style: italic; color: var(--gold-soft); }

.journey {
    margin: 24px 0 0;
    font-size: clamp(13px, 1.7vw, 22px);
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    text-shadow: 0 3px 18px rgba(16, 42, 39, .66);
}
.journey span {
    display: block;
    width: max-content;
    margin: 13px auto 0;
    padding: 7px 17px 6px;
    border: 1px solid rgba(243, 188, 97, .8);
    border-radius: 999px;
    color: var(--gold-soft);
    font-size: 13px;
    line-height: 1;
    background: rgba(16, 42, 39, .28);
}

.motto {
    margin: 34px 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 34px);
    line-height: 1.25;
    color: var(--gold-soft);
    text-shadow: 0 3px 18px rgba(16, 42, 39, .66);
}

.scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.scroll-cue span { font-size: 20px; line-height: 1; }
.scroll-cue:hover { color: var(--gold-soft); }

/* --------------------------------------------------------------------------
   6. Manifesto
   -------------------------------------------------------------------------- */
.manifesto,
.episodes,
.stops {
    padding: var(--section-y) var(--gutter);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: start;
}
.manifesto-grid h2 { font-size: clamp(42px, 6vw, 78px); line-height: .98; }
.manifesto-grid p:not(.lead) { font-size: 16px; line-height: 1.75; }

.counter {
    margin-top: 80px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-family: var(--serif);
    font-size: clamp(18px, 3vw, 38px);
    font-weight: 700;
}
.counter b { color: var(--gold-deep); font-weight: 400; }

/* --------------------------------------------------------------------------
   7. Proof
   -------------------------------------------------------------------------- */
.proof {
    display: grid;
    grid-template-columns: .8fr 1.15fr .8fr;
    min-height: 610px;
    background: var(--ink);
    color: var(--cream);
}
.proof-image { background-size: cover; background-position: center; }
.angela-image { background-image: linear-gradient(rgba(24, 35, 31, .13), rgba(24, 35, 31, .33)), url("../images/about-angela.jpg"); }
.alegria-image { background-image: linear-gradient(rgba(24, 35, 31, .13), rgba(24, 35, 31, .33)), url("../images/alegria.jpg"); }

.proof-copy {
    padding: 80px 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.proof-copy .section-no { color: var(--gold-soft); }
.proof-copy strong {
    font-family: var(--serif);
    font-size: clamp(70px, 9vw, 130px);
    line-height: .85;
    color: var(--gold-light);
}
.proof-copy h2 { margin-bottom: 30px; font-size: clamp(34px, 4vw, 58px); }
.proof-copy p:not(.section-no) {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    line-height: 1.5;
    color: #e6dfd1;
    margin: 10px 0;
}

/* --------------------------------------------------------------------------
   8. Episodes
   -------------------------------------------------------------------------- */
.episodes { background: var(--cream); }

.section-heading {
    display: grid;
    grid-template-columns: .6fr 1.2fr .8fr;
    gap: 5vw;
    align-items: end;
    margin-bottom: 60px;
}
.section-heading .section-no { align-self: start; }
.section-heading h2 { font-size: clamp(42px, 6vw, 78px); line-height: .98; }
.section-heading > p:last-child { font-size: 16px; line-height: 1.75; }

.episode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.episode-card {
    min-height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-top: 0;
    box-shadow: 0 12px 30px rgba(24, 35, 31, .04);
    background: var(--paper);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(24, 35, 31, .12);
}
.episode-card:hover .future-link { color: var(--teal); }
.episode-card:hover .card-body h3 { color: var(--gold-deep); }

.category-band {
    height: 220px;
    padding: 20px 24px 0;
    color: #fff8ea;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.card1 .category-band { background: #19776d; }
.card2 .category-band { background: #cf7a2f; }
.card3 .category-band { background: #347f91; }

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.category-illustration {
    width: 112%;
    height: 170px;
    margin-left: -6%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 8px 10px rgba(16, 42, 39, .22));
}
.card2 .category-illustration { width: 104%; margin-left: -2%; }
.card3 .category-illustration { width: 118%; margin-left: -9%; }

.card-body { padding: 26px; }
.card-body p {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.card-body h3 {
    margin: 12px 0 28px;
    font-size: 25px;
    line-height: 1.08;
    color: var(--teal);
    text-transform: uppercase;
    transition: color .3s var(--ease);
}
.card-body blockquote {
    margin: 0 0 38px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    line-height: 1.4;
}
.future-link {
    display: block;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    color: var(--gold-deep);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color .3s var(--ease);
}

/* --------------------------------------------------------------------------
   9. Stops / map
   -------------------------------------------------------------------------- */
.stops {
    display: grid;
    grid-template-columns: minmax(470px, 1.08fr) minmax(0, .92fr);
    gap: 7vw;
    align-items: center;
}

.stop-map {
    min-height: 650px;
    position: relative;
    overflow: hidden;
    border-radius: 220px 220px 26px 26px;
    background: linear-gradient(160deg, #e9b14f 0 42%, #f7edda 42%);
    box-shadow: 0 18px 45px rgba(24, 35, 31, .12);
}
.stop-map::before,
.stop-map::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    background-size: 28px 28px;
}
.stop-map::before {
    top: 0;
    height: 44%;
    background-image: radial-gradient(circle, rgba(255, 248, 233, .47) 0 2px, transparent 2.7px);
}
.stop-map::after {
    top: 42%;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(214, 153, 53, .27) 0 2px, transparent 2.7px);
}
.stop-map .map-image {
    position: absolute;
    z-index: 1;
    width: 72%;
    height: 82%;
    left: -1%;
    top: 13%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(29%) sepia(20%) saturate(1900%) hue-rotate(121deg) brightness(91%) drop-shadow(0 9px 8px rgba(23, 62, 57, .19));
    opacity: .98;
}
.map-brand {
    position: absolute;
    z-index: 7;
    top: 60px;
    left: 35.5%;
    width: 66%;
    max-width: 330px;
    transform: translateX(-50%);
    margin: 0;
    color: #0f2b27;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .09em;
    white-space: nowrap;
    text-align: center;
    text-transform: uppercase;
}
.map-brand span {
    display: block;
    margin-top: 6px;
    color: #173e39;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
}
.stops-route {
    position: absolute;
    z-index: 2;
    width: 72%;
    height: 82%;
    left: -1%;
    top: 13%;
    overflow: visible;
    fill: none;
    stroke: #fffaf0;
    stroke-width: 11;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 2px rgba(127, 79, 26, .53));
}
.stops-route path { stroke-dasharray: 10 15; }
.stops-route circle { fill: var(--terra); stroke: #fff8e9; stroke-width: 11; }
.stops-route .route-landmark { fill: #f1b64f; stroke: #173e39; stroke-width: 12; }

.key-hole {
    position: absolute;
    z-index: 6;
    right: 60px;
    top: 78px;
    width: 22px;
    height: 22px;
    border: 5px solid #e5c47e;
    border-radius: 50%;
    background: #173e39;
}
.key-cord {
    position: absolute;
    z-index: 4;
    right: 68px;
    top: 96px;
    width: 4px;
    height: 43px;
    border-radius: 4px;
    background: linear-gradient(#d7b56b, #fff1c5, #9a793e);
    transform: rotate(-5deg);
}
.hanging-key {
    position: absolute;
    z-index: 5;
    right: 10px;
    top: 126px;
    width: 116px;
    height: 183px;
    object-fit: contain;
    filter: drop-shadow(0 10px 8px rgba(24, 35, 31, .4));
    transform: rotate(5deg);
}.stop-badge {
    position: absolute;
    z-index: 4;
    right: 14px;
    bottom: 78px;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background: #24736a;
    color: #fff8e9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(4deg);
    box-shadow: 0 0 0 7px #f6e8c9, 0 0 0 9px #24736a, 0 14px 24px rgba(23, 62, 57, .19);
}
.stop-badge small {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
    color: #fff8e9;
    text-transform: uppercase;
}
.stop-badge strong {
    margin-top: 7px;
    font-family: var(--serif);
    font-size: 25px;
    line-height: .92;
}
.map-legend {
    position: absolute;
    z-index: 3;
    left: 28px;
    bottom: 24px;
    margin: 0;
    color: #31534d;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.stop-copy h2 { margin-bottom: 30px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; }
.stop-copy > p { font-size: 16px; line-height: 1.75; }
.hierarchy {
    margin-top: 30px;
    padding-left: 22px;
    border-left: 4px solid var(--gold);
    color: var(--teal);
}

/* --------------------------------------------------------------------------
   10. Map statement
   -------------------------------------------------------------------------- */
.map-statement {
    min-height: 560px;
    padding: 100px var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--gold);
    position: relative;
    overflow: hidden;
}
.map-statement > p {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink);
}
.map-statement h2 { font-size: clamp(42px, 6vw, 78px); line-height: .98; color: var(--ink); }
.map-dots { margin-top: 55px; display: flex; gap: 55px; }
.map-dots i {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--ink);
    border-radius: 50%;
    position: relative;
}
.map-dots i:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 8px;
    width: 55px;
    border-top: 1px dashed var(--ink);
}

/* --------------------------------------------------------------------------
   11. Archive
   -------------------------------------------------------------------------- */
.archive {
    padding: var(--section-y) var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9vw;
}
.archive h2 { font-size: clamp(42px, 6vw, 78px); line-height: .98; }
.archive-links { border-top: 1px solid var(--line); }
.archive-links a {
    display: grid;
    grid-template-columns: 38px 1fr 30px;
    align-items: center;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.archive-links span { color: var(--gold-deep); font-size: 10px; font-weight: 700; }
.archive-links strong { font-family: var(--serif); font-size: 22px; }
.archive-links i {
    font-style: normal;
    color: var(--teal);
    font-size: 24px;
    transition: transform .2s var(--ease);
}
.archive-links a:hover i { transform: translateX(6px); }
.archive-links a:hover strong { color: var(--gold-deep); }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    min-height: 430px;
    padding: 80px var(--gutter) 40px;
    background: var(--ink);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 30px;
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(244, 239, 228, .16);
    width: 100%;
    max-width: 760px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.footer-nav a { padding: 8px 0; }
.footer-nav a:hover { color: var(--gold-light); }

.footer-brand {
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.happy {
    margin: 28px 0;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(54px, 9vw, 120px);
    line-height: 1;
    letter-spacing: -.04em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 42px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.social a { padding: 8px 0; }
.social a:hover { color: var(--gold-light); }
.footer-meta {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .7;
}

/* --------------------------------------------------------------------------
   13. Inner page scaffolding
   -------------------------------------------------------------------------- */
.page-banner {
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 70px) var(--gutter) 70px;
    color: var(--cream);
    text-align: center;
    background: var(--ink);
    isolation: isolate;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .1;
    background-image: radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 1.5px);
    background-size: 22px 22px;
}
.page-banner h1 {
    font-size: clamp(42px, 7vw, 92px);
    line-height: .95;
    text-transform: uppercase;
}
.page-banner p {
    max-width: 62ch;
    margin: 22px auto 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.45;
    color: #e6dfd1;
}
.page-banner .section-no { color: var(--gold-soft); }

.breadcrumb {
    padding: 16px var(--gutter);
    background: var(--cream);
    border-bottom: 1px solid var(--line-soft);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

.page-body { padding: var(--section-y) var(--gutter); }
.page-body > .wrap > * + * { margin-top: 28px; }

.prose { max-width: 72ch; }
.prose p { font-size: 17px; line-height: 1.8; }
.prose h2 { margin: 48px 0 18px; font-size: clamp(28px, 3.4vw, 44px); }
.prose h3 { margin: 36px 0 14px; font-size: clamp(22px, 2.4vw, 30px); }
.prose ul, .prose ol { padding-left: 22px; font-size: 17px; line-height: 1.8; }
.prose img { border-radius: 12px; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-deep); }
.prose blockquote {
    margin: 32px 0;
    padding-left: 24px;
    border-left: 4px solid var(--gold);
    font-family: var(--serif);
    font-style: italic;
    font-size: 21px;
    line-height: 1.5;
}

.empty-state {
    padding: 70px 30px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    text-align: center;
    background: var(--cream);
}
.empty-state h2 { margin-bottom: 14px; font-size: clamp(26px, 3vw, 38px); }
.empty-state p { max-width: 56ch; margin-inline: auto; color: var(--muted); font-size: 16px; line-height: 1.7; }
.empty-state .section-no { margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   14. Content grids & listings
   -------------------------------------------------------------------------- */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.entry-grid--wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.entry-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(24, 35, 31, .05);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.entry-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(24, 35, 31, .12); }
.entry-card-media {
    aspect-ratio: 16 / 10;
    background-color: var(--cream);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--line-soft);
}
.entry-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px; }
.entry-card-body p.meta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.entry-card-body h3 {
    margin: 10px 0 14px;
    font-size: 22px;
    line-height: 1.12;
    color: var(--teal);
}
.entry-card-body p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.entry-card-body .future-link { margin-top: auto; }

.chapter-list { border-top: 1px solid var(--line); }
.chapter {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}
.chapter-index {
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--gold-deep);
    text-transform: uppercase;
}
.chapter h3 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; }
.chapter p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.chapter .btn-line { margin-top: 0; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.filter-bar a:hover { border-color: var(--teal); color: var(--teal); }
.filter-bar a[aria-current="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}

/* --------------------------------------------------------------------------
   15. Detail pages
   -------------------------------------------------------------------------- */
.detail-header {
    position: relative;
    overflow: hidden;
    min-height: 58vh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--nav-h) + 60px) var(--gutter) 60px;
    color: var(--cream);
    background-color: var(--ink);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}
.detail-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(16, 42, 39, .42), rgba(16, 42, 39, .78));
}
.detail-header h1 {
    max-width: 18ch;
    font-size: clamp(38px, 6vw, 76px);
    line-height: .98;
    text-transform: uppercase;
}

.detail-body { padding: var(--section-y) var(--gutter); }
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-bottom: 34px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.map-links { display: grid; gap: 10px; margin-top: 34px; }
.map-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    font-weight: 600;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.map-links a:hover { border-color: var(--teal); color: var(--teal); }
.map-links svg { flex: 0 0 auto; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.gallery a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--cream);
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}
.gallery a:hover img { transform: scale(1.05); }

.person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.person {
    text-align: center;
}
.person img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
}
.person span {
    display: block;
    margin-top: 12px;
    font-family: var(--serif);
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   16. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    .proof { grid-template-columns: .8fr 1.2fr; }
    .proof .alegria-image { display: none; }
}

@media (max-width: 800px) {
    :root { --section-y: 80px; --gutter: 7vw; --nav-h: 72px; }

    .menu-button { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% - 4px);
        right: 5vw;
        flex-direction: column;
        gap: 0;
        min-width: 210px;
        padding: 8px 18px;
        background: rgba(24, 35, 31, .97);
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 0 0 14px 14px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 0; }

    .hero h1 { font-size: 18vw; }
    .route-line { display: none; }

    .manifesto-grid,
    .stops,
    .archive,
    .section-heading,
    .episode-grid { grid-template-columns: 1fr; }
    .manifesto-grid { gap: 30px; }
    .lead { font-size: 20px; }
    .counter { flex-wrap: wrap; }
    .section-heading { gap: 20px; }

    .episode-card { min-height: 370px; }

    .proof { grid-template-columns: 1fr; }
    .proof-image { min-height: 420px; }

    .stop-map { width: min(100%, 520px); min-height: 600px; justify-self: center; }
    .stop-map .map-image,
    .stops-route { width: 69%; height: 78%; left: -2%; top: 16%; }
    .map-brand { top: 56px; left: 34.5%; font-size: 12px; }
    .key-hole { right: 43px; }
    .key-cord { right: 51px; }
    .hanging-key { right: -5px; width: 104px; }
    .stop-badge { right: 12px; bottom: 68px; width: 126px; height: 126px; }

    .map-dots { gap: 28px; }
    .map-dots i:not(:last-child)::after { width: 28px; }

    .chapter { grid-template-columns: 1fr auto; gap: 12px 18px; }
    .chapter-index { grid-column: 1 / -1; }

    .footer-nav { gap: 10px 20px; }
}

@media (max-width: 480px) {
    .nav { padding-inline: 20px; }
    .counter { font-size: 20px; }
    .map-dots { gap: 18px; }
    .map-dots i:not(:last-child)::after { width: 18px; }
}

/* --------------------------------------------------------------------------
   18. Motion & print preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .nav, .site-footer, .skip-link, .scroll-cue { display: none; }
    body { background: #fff; }
}
