/* Hallmark · shape: Bento Grid (home), Offer (book), Long Document (story) · genre: playful · theme: brand (pinned by the printed covers of the seven books) · redesign: full · draw: 433beb · deal: hum 1/3 for surfaces only
 * paper: #F6F2E7 crema · accent: #B84A29 almagre, one island colour per book page · display: Fraunces · body: Literata · outlier: Pinyon Script (the motto and the byline) · hero: Corridor (/), Counter (/lagomera.html), Settled (/cuento-lagomera.html) · nav: floating pill (swap: draw said banner over a retracting bar; Soft asks for the pill) · footer: index columns · signature: the seven covers on one shelf, each a door to its book
 * axes: light/roman-serif/warm · posture: brand · motion: spring on the primary action only · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a catalogue has little to argue; the argument is that the book and the story are one object, so every book page carries its story band and every story page closes on its book */
/* Hallmark · conflicts: Floor beats Soft (no eyebrow pills, no tracked caps, tokens only); Taste beats Soft (nothing tilted, no scroll fades on cards, no captions under pictures); Soft gives the finish (double-bezel frames, pill buttons with a nested icon circle, diffuse shadows, spring easing on the primary, floating pill nav) */
/* Hallmark · waive 65 · crema paper #F6F2E7, Fraunces display, almagre #B84A29 accent · the printed covers of the seven Raíces del Atlántico books carry exactly this, and the redesign keeps the brand */
/* Hallmark · waive 37 · Fraunces display, Literata body, Pinyon Script outlier · three families: the motto script is printed in every book, Literata carries thirty-minute stories */
/* Hallmark · dropped index.html#como-funciona and index.html#proximamente as hero and nav links · the hero holds two actions and the pill nav two destinations; both sections stay at the same ids */
/* Hallmark · reworded section heads · Siete islas, siete libros to Siete libros, uno por isla; Cómo funciona to Del libro al cuento; En este libro to Lo que se pinta en la isla; Sigue leyendo cut as an eyebrow (54) */
/* Hallmark · answered F7 · the floating pill nav is the Soft finish the brief asks for; the skip link and PDF links are controls */
/* Hallmark · answered F15 · two gaps only: 96px between a text column and its picture, 32px between items in a grid or rail */
@import url("./tokens.css");
@import url("./base.css");

/* ------------------------------------------------------------ base */
body { font-size: var(--text-lg); line-height: 1.6; }
.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-modal); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }
h1, h2, h3 { color: var(--color-ink); }
.lead { color: var(--color-ink-2); }
.num { font-variant-numeric: tabular-nums lining-nums; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; transition: none; }
.section { padding-block: var(--section-gap-s); }
.section + .section { padding-top: var(--section-gap-s); }
.section-paper { background: var(--color-paper-2); }

/* ------------------------------------------------------------ nav: a floating pill */
.nav-wrap { position: sticky; top: var(--space-md); z-index: var(--z-sticky-nav); display: flex; justify-content: center; padding-inline: var(--space-md); pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: var(--space-xl); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-sheet) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-card), inset 0 0 0 var(--rule-hair) var(--color-rule); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav-links { display: flex; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-md); border-radius: var(--radius-pill); font-size: var(--text-md); text-decoration: none; transition: background-color var(--dur-short) var(--ease-soft); }
.nav-links a:hover { background: var(--color-paper-2); }
.nav-links a:active { background: var(--color-paper-3); }

/* ------------------------------------------------------------ buttons: pill with a nested icon circle */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.btn { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 52px; padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-lg); border-radius: var(--radius-pill); font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform var(--dur-short) var(--ease-soft), background-color var(--dur-short) var(--ease-soft), box-shadow var(--dur-short) var(--ease-soft); }
.btn:not(:has(.btn-ico)) { padding-right: var(--space-lg); }
.btn-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); transition: transform var(--dur-long) var(--ease-out); }
.btn-primary .btn-ico { transition-timing-function: var(--ease-spring); }
.btn:hover .btn-ico { transform: translate(2px, -1px) scale(1.05); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--color-accent) 70%, transparent); }
.btn-primary .btn-ico { background: color-mix(in oklab, var(--color-accent-ink) 18%, transparent); }
.btn-primary:hover { background: var(--color-accent-deep); transform: translateY(-1px); transition-timing-function: var(--ease-spring); }
.btn-quiet { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) color-mix(in oklab, var(--color-ink) 35%, transparent); }
.btn-quiet .btn-ico { background: var(--color-paper-2); }
.btn-quiet:hover { background: color-mix(in oklab, var(--color-ink) 6%, transparent); }
.btn-light { background: transparent; color: var(--isla-ink); box-shadow: inset 0 0 0 2px var(--isla-ink); }
.band-isla a:focus-visible { outline-color: var(--isla-ink); }
.btn-light .btn-ico { background: color-mix(in oklab, var(--isla-ink) 16%, transparent); }
.btn-light:hover { background: color-mix(in oklab, var(--isla-ink) 12%, transparent); }
.btn-ghost-light { color: var(--isla-ink); box-shadow: inset 0 0 0 var(--rule-hair) color-mix(in oklab, var(--isla-ink) 45%, transparent); }
.btn-ghost-light .btn-ico { background: color-mix(in oklab, var(--isla-ink) 14%, transparent); }
.btn-ghost-light:hover { background: color-mix(in oklab, var(--isla-ink) 10%, transparent); }

/* ------------------------------------------------------------ double bezel (Soft): a tray holding the cover */
.bezel { display: block; padding: var(--space-xs); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-ink) 5%, var(--color-paper)); box-shadow: inset 0 0 0 var(--rule-hair) color-mix(in oklab, var(--color-ink) 8%, transparent), var(--shadow-card); }
.bezel-core { display: block; overflow: hidden; border-radius: var(--radius-inner); box-shadow: var(--shadow-bezel-in); background: var(--color-sheet); }
.bezel-core img { width: 100%; height: auto; }
.bezel-dark { background: color-mix(in oklab, var(--color-ink) 22%, transparent); box-shadow: inset 0 0 0 var(--rule-hair) color-mix(in oklab, var(--color-sheet) 16%, transparent), var(--shadow-lift); }

/* ------------------------------------------------------------ home hero: Corridor with the shelf */
.hero { position: relative; }
.hero-home { min-height: calc(100svh - var(--space-3xl)); display: grid; align-items: center; padding-block: var(--space-2xl) var(--space-lg); }
.hero-in { display: grid; justify-items: center; text-align: center; gap: var(--space-lg); }
.hero-home h1 { max-width: 16ch; font-size: var(--text-display); }
.hero-home .lead { max-width: 48ch; }
.hero-home .actions { justify-content: center; }
.shelf { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-md); width: min(100%, 1040px); margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.shelf-book { display: block; border-radius: var(--space-sm); overflow: hidden; box-shadow: var(--shadow-card); transition: transform var(--dur-long) var(--ease-soft), box-shadow var(--dur-long) var(--ease-soft); }
.shelf-book:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.shelf-book:active { transform: translateY(-2px); }
.shelf-book img { width: 100%; height: auto; }
.credit { display: flex; flex-direction: column; align-items: center; line-height: 1.15; color: var(--color-muted); }
.credit-by { font-family: var(--font-outlier); font-size: var(--text-xl); color: var(--color-ink-2); }
.credit-kodo { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--text-sm); font-variant-numeric: lining-nums; }
.hero-credit { margin-top: var(--space-md); }

/* entrance: one orchestrated rise, visible without script and under reduced motion */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
[data-enter] h1, [data-enter] .lead, [data-enter] .actions, [data-enter] .shelf li, [data-enter] .offer-cover, [data-enter] .story-cover { animation: rise var(--dur-enter) var(--ease-soft) both; }
[data-enter] .lead { animation-delay: 80ms; }
[data-enter] .actions { animation-delay: 160ms; }
[data-enter] .shelf li { animation-delay: calc(240ms + var(--i, 0) * 60ms); }
[data-enter] .offer-cover, [data-enter] .story-cover { animation-delay: 60ms; }

/* ------------------------------------------------------------ head blocks */
.head-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.head-split .lead { justify-self: end; max-width: 44ch; }
.section > .container > h2 { margin-bottom: var(--space-2xl); }

/* ------------------------------------------------------------ rail of books */
.rail-wrap { max-width: var(--container); margin-inline: auto; padding-left: var(--gutter); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: var(--gap-columns); margin: 0; padding: var(--space-xs) var(--gutter) var(--space-xl) 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > li { scroll-snap-align: start; }
.rail-sm { grid-auto-columns: minmax(180px, 210px); }
.book { display: grid; gap: var(--space-md); text-decoration: none; }
.book .bezel { transition: transform var(--dur-long) var(--ease-soft), box-shadow var(--dur-long) var(--ease-soft); }
.book:hover .bezel { box-shadow: inset 0 0 0 var(--rule-hair) color-mix(in oklab, var(--color-ink) 8%, transparent), var(--shadow-lift); }
.book:active .bezel { transform: translateY(0); }
.book-text { display: grid; gap: var(--space-3xs); padding-inline: var(--space-xs); }
.book-isla { font-family: var(--font-display); font-weight: 600; font-size: var(--text-title); line-height: 1.15; }
.book-prot { font-size: var(--text-md); color: var(--color-muted); }
.book:hover .book-isla { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* ------------------------------------------------------------ bento of pages */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 300px; gap: var(--gap-columns); }
.tile { display: grid; place-items: center; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-sheet); box-shadow: var(--shadow-card); overflow: hidden; transition: box-shadow var(--dur-short) var(--ease-soft); }
.tile img { width: 100%; height: 100%; object-fit: contain; }
.tile:hover { box-shadow: inset 0 0 0 2px var(--color-accent), var(--shadow-card); }
.tile:active { box-shadow: inset 0 0 0 3px var(--color-accent-deep), var(--shadow-card); }
.tile-1 { grid-column: 1 / 6; grid-row: span 2; }
.tile-2 { grid-column: 6 / 13; }
.tile-3 { grid-column: 6 / 9; }
.tile-4 { grid-column: 9 / 13; }

/* ------------------------------------------------------------ pinned: from the book to the story */
.pin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.pin-panels { margin: var(--space-2xl) 0 0; padding: 0; list-style: none; counter-reset: step; }
.pin-panel { counter-increment: step; display: grid; align-content: center; gap: var(--space-sm); min-height: 40svh; padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
html.js .pin-panel:not(.is-on) h3, html.js .pin-panel:not(.is-on) p { color: var(--color-muted); }
.pin-panel h3, .pin-panel p { transition: color var(--dur-long) var(--ease-soft); }
.pin-panel h3 { font-size: var(--text-2xl); }
.pin-panel h3::before { content: counter(step) ". "; color: var(--color-accent); }
.pin-panel p { max-width: 46ch; color: var(--color-ink-2); }
.pin-inline { display: none; margin: var(--space-md) 0 0; }
.pin-stage { align-self: stretch; }
.pin-sticky { position: sticky; top: calc(50svh - 300px); height: 600px; display: grid; }
.pin-frame { grid-area: 1 / 1; margin: 0; display: grid; place-items: center; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-sheet); box-shadow: var(--shadow-card); transition: opacity var(--dur-long) var(--ease-soft), transform var(--dur-long) var(--ease-soft); }
html.js .pin-frame { opacity: 0; transform: translateY(12px); }
html.js .pin-frame.is-on { opacity: 1; transform: none; }
html:not(.js) .pin-frame:not([data-step="0"]) { display: none; }
.pin-frame img { max-height: 520px; width: auto; object-fit: contain; border-radius: var(--space-xs); }

/* ------------------------------------------------------------ index of stories */
.index { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.index-head { display: grid; gap: var(--space-md); position: sticky; top: var(--space-3xl); }
.story-list { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.story-row { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) auto auto; gap: var(--space-lg); align-items: center; min-height: 88px; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.story-isla { font-size: var(--text-md); color: var(--color-muted); }
.story-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.2; text-decoration: none; }
.story-title::after { content: ""; position: absolute; inset: 0; }
.story-row:hover .story-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.story-min { font-size: var(--text-md); color: var(--color-muted); white-space: nowrap; }
.story-pdf { position: relative; z-index: var(--z-raised); display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding-inline: var(--space-md); border-radius: var(--radius-pill); font-size: var(--text-md); text-decoration: none; box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule); background: var(--color-sheet); transition: background-color var(--dur-short) var(--ease-soft); }
.story-pdf:hover { background: var(--color-paper); }
.story-pdf:active { background: var(--color-paper-3); }

/* ------------------------------------------------------------ coming soon: rows */
.rows { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); }
.row-list { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.row-list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.row-list p { color: var(--color-ink-2); }

/* ------------------------------------------------------------ book page: the offer */
.page-book, .page-story { --isla: var(--color-accent); --isla-ink: var(--color-accent-ink); }
[data-isla="tenerife"] { --isla: var(--c-tenerife); --isla-ink: var(--c-tenerife-ink); }
[data-isla="grancanaria"] { --isla: var(--c-grancanaria); --isla-ink: var(--c-grancanaria-ink); }
[data-isla="lanzarote"] { --isla: var(--c-lanzarote); --isla-ink: var(--c-lanzarote-ink); }
[data-isla="fuerteventura"] { --isla: var(--c-fuerteventura); --isla-ink: var(--c-fuerteventura-ink); }
[data-isla="lapalma"] { --isla: var(--c-lapalma); --isla-ink: var(--c-lapalma-ink); }
[data-isla="lagomera"] { --isla: var(--c-lagomera); --isla-ink: var(--c-lagomera-ink); }
[data-isla="elhierro"] { --isla: var(--c-elhierro); --isla-ink: var(--c-elhierro-ink); }

.hero-offer { min-height: calc(100svh - var(--space-3xl)); display: grid; align-items: center; padding-block: var(--space-lg); }
.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.offer-cover { justify-self: end; width: min(100%, 460px); }
.offer-text { display: grid; gap: var(--space-lg); justify-items: start; }
.offer-text h1 { font-size: var(--text-display); max-width: 14ch; }
.offer-text .lead { max-width: 46ch; }
.price { font-family: var(--font-display); font-size: var(--text-2xl); font-variant-numeric: tabular-nums lining-nums; }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-xl); margin: var(--space-xs) 0 0; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.facts div { display: grid; gap: var(--space-3xs); }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.facts dd { margin: 0; font-size: var(--text-md); }

.pages-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: start; }
.pages-head { display: grid; gap: var(--space-lg); position: sticky; top: var(--space-3xl); }
.places { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.places li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-md); }
.pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.page { margin: 0; display: grid; place-items: center; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-sheet); box-shadow: var(--shadow-card); }
.page img { width: 100%; height: auto; }
.page-wide { grid-column: span 2; }

.people { display: grid; gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.people-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.person { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-lg) var(--space-lg) var(--space-xl); border-radius: var(--radius-card); background: var(--color-sheet); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule); }
.person-pic { display: grid; place-items: center; height: 300px; margin-bottom: var(--space-sm); }
.person-pic img { width: 100%; height: 300px; object-fit: contain; }
.person h3 { font-size: var(--text-xl); }
.person p { font-size: var(--text-md); color: var(--color-ink-2); }

.band { padding-block: var(--section-gap-s); }
.band-isla { background: var(--isla); color: var(--isla-ink); }
.band-isla h2, .band-isla .lead { color: var(--isla-ink); }
.band-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.band-text { display: grid; gap: var(--space-lg); }
.band-pic { margin: 0; justify-self: center; width: min(100%, 380px); }
.band-paper { background: var(--color-paper-2); }

/* the buy bar appears once the offer has scrolled away */
.buybar { position: sticky; bottom: var(--space-md); z-index: var(--z-sticky); display: flex; justify-content: center; padding-inline: var(--space-md); pointer-events: none; }
.buybar-in { pointer-events: auto; display: flex; align-items: center; gap: var(--space-md); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-xs); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-sheet) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-lift), inset 0 0 0 var(--rule-hair) var(--color-rule); }
.buybar-cover { display: block; width: 40px; border-radius: var(--space-xs); overflow: hidden; }
.buybar-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); white-space: nowrap; }
.buybar-price { font-size: var(--text-md); }
html.js .buybar { transform: translateY(160%); opacity: 0; transition: transform var(--dur-long) var(--ease-soft), opacity var(--dur-long) var(--ease-soft); }
html.js .buybar.is-on { transform: none; opacity: 1; }
html:not(.js) .buybar { position: static; padding-bottom: var(--space-xl); }

/* ------------------------------------------------------------ story page: reading first */
.hero-story { min-height: calc(100svh - var(--space-3xl)); display: grid; align-items: center; padding-block: var(--space-xl); }
.story-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.story-cover { width: min(100%, 420px); justify-self: end; }
.story-intro { display: grid; gap: var(--space-lg); justify-items: start; }
.story-intro h1 { font-size: var(--text-display-s); max-width: 20ch; }

.read-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-3xl); }
.reading { padding-block: var(--space-xl) var(--section-gap-s); }
.toc { position: sticky; top: var(--space-3xl); align-self: start; padding-top: var(--space-lg); }
.toc-h { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); letter-spacing: 0; margin-bottom: var(--space-sm); }
.toc ol { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.toc li a { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); gap: var(--space-xs); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-md); line-height: 1.35; text-decoration: none; color: var(--color-ink-2); transition: color var(--dur-short) var(--ease-soft); }
.toc li a:hover, .toc li a[aria-current="true"] { color: var(--color-ink); }
.toc li a[aria-current="true"] .num { color: var(--isla); }
.read-col { grid-column: 2; max-width: 68ch; }
.chapter { padding-top: var(--space-2xl); }
.chapter + .chapter { margin-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.chapter h2 { max-width: 22ch; margin-bottom: var(--space-xl); font-size: var(--text-section); line-height: 1.08; }
.prose { font-size: var(--text-read); line-height: 1.7; }
.prose p { max-width: 65ch; }
.prose p + p { margin-top: var(--space-md); }
.prose ol, .prose ul { padding-left: var(--space-lg); }
.chapter .prose > p:first-child::first-letter { float: left; font-family: var(--font-display); font-weight: 600; font-size: 3.6em; line-height: 0.85; padding: var(--space-2xs) var(--space-xs) 0 0; color: var(--isla); }
[data-isla="lanzarote"] .chapter .prose > p:first-child::first-letter, [data-isla="fuerteventura"] .chapter .prose > p:first-child::first-letter { color: var(--color-ink); }
.the-end { margin-top: var(--space-2xl); font-family: var(--font-outlier); font-size: var(--text-3xl); color: var(--color-ink-2); }
.nota { padding-block: var(--section-gap-s); }
.nota-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-3xl); }
.nota h2 { font-size: var(--text-section); }
.nota .prose { font-size: var(--text-lg); }
.offer-close { margin-bottom: var(--section-gap-s); }
.offer-close .offer-cover { width: min(100%, 320px); }
.offer-close h2 { font-size: var(--text-section); max-width: 18ch; }
.index-close { display: block; }
.index-sub { margin-bottom: var(--space-lg); }

/* ------------------------------------------------------------ footer: index columns */
.footer { padding-block: var(--space-3xl) var(--space-2xl); background: var(--color-ink); color: var(--color-paper); }
.footer a { color: var(--color-paper); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.footer a:focus-visible { outline-color: var(--color-ocre); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--gap-columns); }
.footer-mark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); line-height: 1.05; }
.footer .motto { margin-top: var(--space-md); font-family: var(--font-outlier); font-size: var(--text-xl); line-height: 1.4; color: var(--color-paper-3); max-width: 28ch; }
.footer-h { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; color: var(--color-paper-3); margin-bottom: var(--space-sm); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); }
.footer-col a { display: inline-flex; min-height: 32px; align-items: center; font-size: var(--text-md); }
.footer-credit { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-paper) 18%, transparent); }
.footer .credit { color: var(--color-paper-3); }
.footer .credit-by { color: var(--color-paper); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 60rem) {
  .nota-grid, .head-split, .pin, .index, .rows, .offer, .pages-wrap, .band-split, .story-hero, .read-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .head-split .lead { justify-self: start; }
  .shelf { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-xs); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; gap: var(--space-md); }
  .tile-1 { grid-column: 1 / 2; grid-row: span 2; } .tile-2 { grid-column: 2 / 3; } .tile-3 { grid-column: 2 / 3; } .tile-4 { grid-column: 1 / -1; }
  .pin-stage { display: none; }
  .pin-panel { min-height: 0; }
  html.js .pin-panel:not(.is-on) h3, html.js .pin-panel:not(.is-on) p { color: inherit; }
  .pin-inline { display: block; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-sheet); box-shadow: var(--shadow-card); }
  .pin-inline img { max-height: 420px; width: auto; margin-inline: auto; }
  .index-head, .pages-head, .toc { position: static; }
  .offer-cover, .story-cover { justify-self: start; width: min(100%, 360px); }
  .read-col { grid-column: 1; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-list li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  body { font-size: var(--text-md); }
  .nav { gap: var(--space-sm); padding-left: var(--space-md); }
  .wordmark { font-size: var(--text-md); }
  .nav-links a { padding-inline: var(--space-sm); font-size: var(--text-sm); }
  .hero-home { min-height: 0; padding-top: var(--space-xl); }
  .hero-story { min-height: 0; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf li:nth-child(n+5) { display: none; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero-home .actions .btn { justify-content: center; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tile-1, .tile-2, .tile-3, .tile-4 { grid-column: 1; grid-row: auto; }
  .tile img { height: auto; max-height: 420px; }
  .pages { grid-template-columns: minmax(0, 1fr); }
  .page-wide { grid-column: auto; }
  .offer-cover { width: min(64%, 260px); justify-self: center; }
  .story-cover { width: min(44%, 170px); justify-self: start; }
  .offer-text h1 { font-size: var(--text-display-s); }
  .hero-offer, .hero-story { padding-top: var(--space-xl); min-height: 0; }
  .people, .people-2 { grid-template-columns: minmax(0, 1fr); }
  .story-row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-md); }
  .story-isla { grid-column: 1 / -1; }
  .story-min { grid-column: 1; }
  .story-pdf { grid-column: 2; grid-row: 2 / 4; }
  .facts { gap: var(--space-lg); }
  .buybar-name { display: none; }
  .chapter h2 { font-size: var(--text-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  [data-enter] h1, [data-enter] .lead, [data-enter] .actions, [data-enter] .shelf li, [data-enter] .offer-cover, [data-enter] .story-cover { animation: none; }
  .pin-frame { transition: none; transform: none; }
  html.js .buybar { transition: none; }
}

/* ------------------------------------------------------------ vídeos */
.video-frame { margin: 0; border-radius: var(--radius-inner); overflow: hidden; background: var(--color-ink); box-shadow: var(--shadow-card); }
.video-frame video { width: 100%; height: auto; display: block; }
.video-wide { margin-block: var(--space-xl) var(--space-2xl); aspect-ratio: 16 / 9; }
.video-wide video { height: 100%; object-fit: cover; }
.video-vert { aspect-ratio: 768 / 1168; }
.video-vert video { height: 100%; object-fit: cover; }
.video-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.video-split .video-frame { justify-self: center; width: min(100%, 360px); }
.video-text { display: grid; gap: var(--space-lg); }
.clips-h { margin-bottom: var(--space-lg); }
.clips { list-style: none; margin: 0; padding: 0 0 var(--space-md); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: var(--space-lg); overflow-x: auto; scroll-snap-type: x mandatory; }
.clip { display: grid; gap: var(--space-sm); scroll-snap-align: start; }
.clip-name { font-family: var(--font-display); font-size: var(--text-lg); text-decoration: none; }
.clip-name:hover { text-decoration: underline; }
@media (max-width: 60rem) { .video-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }
@media (max-width: 40rem) { .nav-videos { display: none; } }
