@import url('/books/palettes.css');
@font-face { font-family:'DM Sans'; src:url('/fonts/dm-sans.ttf') format('truetype'); font-weight:100 1000; font-style:normal; font-display:swap; }
@font-face { font-family:Inter; src:url('/fonts/inter-variable-latin.woff2') format('woff2'); font-weight:100 900; font-display:swap; }
/* Shared typography; each book inherits its published cover palette. */
.book-world { --ink:var(--book-ink); --muted:var(--book-muted); --paper:var(--book-paper); --wash:var(--book-wash); --line:var(--book-line); --accent:var(--book-accent); --burgundy:var(--book-accent); --lilac:var(--book-muted); --cream:var(--book-paper); font-family:Inter,Arial,sans-serif; background:var(--paper); color:var(--ink); }
.book-world :is(h3,.tagline,.notice strong,.world-type,.site-header nav a,.pillars b) { font-family:Inter,Arial,sans-serif; font-style:normal; }
.book-world :is(h1,h2,h3) { font-weight:500; letter-spacing:-.035em; }
.book-world h2 { font-family:'DM Sans',Arial,sans-serif; letter-spacing:0; font-synthesis:none; }
.book-world .eyebrow { color:var(--muted); font-size:.65rem; font-weight:500; letter-spacing:.12em; line-height:1.6; }
.book-world .breadcrumbs { max-width:1180px; margin-top:28px; font-size:.72rem; }
.book-world .book-hero { max-width:1180px; grid-template-columns:1fr 1fr; gap:8%; padding:55px 0 75px; }
.book-world .book-copy h1 { font:400 clamp(2.4rem,3.6vw,3.8rem)/1.2 'DM Sans',Arial,sans-serif; letter-spacing:0; text-wrap:balance; }
.book-world .book-subtitle { font-family:Inter,Arial,sans-serif; display:block; margin-top:15px; font-size:.45em; font-weight:400; line-height:1.3; letter-spacing:-.025em; }
.book-world .book-copy>p:not(.eyebrow) { line-height:1.75; }
.book-world .lead { font-size:1rem; margin:24px 0; color:var(--muted); }
.book-world .cover-stage { min-height:500px; padding:30px; background:none; box-shadow:none; }
.book-world .cover-stage img { width:auto; height:420px; max-width:100%; max-height:100%; object-fit:contain; transform:none; border:0; filter:drop-shadow(8px 16px 15px #17171c28); }
.book-world .facts { border:0; margin:24px 0; gap:8px 24px; }
.book-world .facts li { padding:10px 0; border:0; }
.book-world .facts strong { font-size:.6rem; letter-spacing:.08em; color:var(--muted); font-weight:500; }
.book-world .facts span { font-size:.83rem; line-height:1.5; }
.book-world .button { min-height:50px; padding:12px 0; gap:32px; border-radius:0; border:0; border-bottom:1px solid var(--accent); background:none; color:var(--accent); font-size:.95rem; font-weight:600; letter-spacing:0; text-transform:none; text-align:left; line-height:1.5; box-shadow:none; }
.book-world .button:hover { background:none; color:var(--ink); border-color:currentColor; filter:none; }
.book-world .world-intro { width:min(1180px,calc(100% - 80px)); margin:0 auto 50px; padding:40px 0; display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
.book-world .world-intro h2 { font-size:clamp(2.2rem,3.7vw,3.7rem); font-weight:400; line-height:1.12; margin:0; }
.book-world .world-intro p:not(.eyebrow) { color:var(--muted); line-height:1.8; max-width:550px; font-size:.95rem; }
.book-world .world-type { font-size:clamp(6rem,14vw,13rem); font-weight:300; letter-spacing:-.08em; line-height:1; }
.book-world .world-intro img { width:100%; border-radius:0; }
.book-world .experience { width:min(1180px,calc(100% - 80px)); margin:0 auto; padding:55px 0; background:none; color:var(--ink); }
.book-world :is(.experience h2,.audience h2) { font-size:clamp(2.1rem,3.5vw,3.5rem); font-weight:400; line-height:1.15; text-wrap:balance; }
.book-world .experience>p { max-width:650px; line-height:1.8; color:var(--muted); font-size:.95rem; margin-top:24px; }
.book-world .pillars { margin-top:40px; border:0; gap:40px; }
.book-world .pillars article,.book-world .pillars article+article { padding:20px 0; border:0; }
.book-world .pillars b { font:400 .75rem/1.5 Inter,sans-serif; color:var(--muted); letter-spacing:.08em; }
.book-world .pillars h3 { font-size:1.45rem; font-weight:500; margin:14px 0; }
.book-world .pillars p { color:var(--muted); line-height:1.75; font-size:.9rem; }
.book-world .audience { width:min(1060px,calc(100% - 80px)); margin:0 auto; padding:65px 0; gap:80px; background:none; border:0; }
.book-world .audience p { color:var(--muted); }
.book-world .notice { background:none; padding:24px 0 0; border:0; border-top:1px solid var(--line); margin-top:25px; }
.book-world .notice strong { font-size:1.2rem; font-weight:500; line-height:1.3; }
.book-world .more-books { width:min(1180px,calc(100% - 80px)); margin:20px auto 55px; padding:30px 0 0; background:none; border-top:1px solid var(--line); }
.book-world .more-books h2 { font-size:1.55rem; font-weight:400; margin:0 0 20px; }
.book-world .book-links { gap:12px 25px; }
.book-world .book-links a { padding:8px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; color:var(--muted); font-size:.8rem; font-weight:400; }
.book-world .book-links a[aria-current=page],.book-world .book-links a:hover { background:none; color:var(--ink); border-color:var(--ink); }
.book-world .site-header,.book-world footer { --ink:#2d173e; --muted:#6d597b; --line:#dedee3; color:#2d173e; background:#fafafa; }
.book-world footer { padding-block:30px; }
.book-world .back-button { background:none; border:0; color:var(--muted); padding-inline:0; font-weight:450; box-shadow:none; }
.book-world .back-button:hover,.book-world .back-button:focus-visible { background:none; color:var(--ink); filter:none; text-decoration:underline; text-underline-offset:5px; }
.book-world .back-languages a { color:var(--muted); }
.book-world .consent-banner { background:#2d173e; border-radius:0; }
.book-world .consent-actions .consent-choice { background:none; color:white; border:0; border-bottom:1px solid #ffffff80; border-radius:0; }
/* RASTROS: cinematic introduction, then an illustrated field guide. */
.book-world[data-book-world=rastros] .book-hero { grid-template-columns:1.15fr .85fr; }
.book-world[data-book-world=rastros] .book-copy h1 { font-size:clamp(3.5rem,6vw,6rem); font-weight:400; }
.book-world[data-book-world=rastros] .tagline { color:var(--ink); font-size:clamp(2rem,3.6vw,3.5rem); font-weight:400; }
.book-world[data-book-world=rastros] .cover-stage:before { display:none; }
.book-world[data-book-world=rastros] .cover-stage img { height:470px; }
.book-world[data-book-world=rastros] .rastros-actions { gap:18px 32px; }
.book-world[data-book-world=rastros] .rastros-actions .button:not(:first-child) { background:none; color:var(--ink); border:0; font-weight:450; }
.book-world[data-book-world=rastros] .book-strip { max-width:1180px; margin:0 auto 45px; border:0; gap:35px; }
.book-world[data-book-world=rastros] .book-strip span { background:none; border:0; padding:0; font-size:.85rem; }
.book-world[data-book-world=rastros] .world-intro { position:relative; min-height:430px; padding:60px; color:white; overflow:hidden; border-radius:0; display:block; isolation:isolate; }
.book-world[data-book-world=rastros] .world-intro img { position:absolute; inset:0; height:100%; object-fit:cover; z-index:-2; border-radius:0; }
.book-world[data-book-world=rastros] .world-intro:after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#151219dd,transparent); z-index:-1; }
.book-world[data-book-world=rastros] .world-intro>div { max-width:490px; }
.book-world[data-book-world=rastros] .world-intro .eyebrow,.book-world[data-book-world=rastros] .world-intro p:not(.eyebrow) { color:#dedbe2; }
.book-world[data-book-world=rastros] .rules-examples { display:flex; flex-direction:column; gap:35px; margin-top:45px; }
.book-world[data-book-world=rastros] .rules-examples figure { display:grid; grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr); gap:40px; align-items:center; border:0; background:none; }
.book-world[data-book-world=rastros] .rule-picture { height:220px; background:none; }
.book-world[data-book-world=rastros] .rules-examples figcaption { padding:0; }
.book-world[data-book-world=rastros] .rules-legend>div,.book-world[data-book-world=rastros] .rules-note { background:none; border:0; }
/* ROSTROS: the actual photographic scene takes the narrative lead. */
.book-world[data-book-world=rostros] .book-hero { grid-template-columns:.7fr 1.3fr; }
.book-world[data-book-world=rostros] .book-copy h1 { font-size:clamp(3rem,5.8vw,6rem); }
.book-world[data-book-world=rostros] .book-subtitle { font-size:.32em; }
.book-world[data-book-world=rostros] .cover-stage { min-height:450px; }
.book-world[data-book-world=rostros] .cover-stage img { height:370px; }
.book-world[data-book-world=rostros] .world-intro { position:relative; display:flex; min-height:560px; align-items:center; padding:60px; overflow:hidden; border-radius:0; background:var(--book-panel); color:white; }
.book-world[data-book-world=rostros] .world-scene { position:absolute; inset:0; height:100%; object-fit:cover; border-radius:0; }
.book-world[data-book-world=rostros] .world-intro>div { position:relative; width:36%; z-index:1; }
.book-world[data-book-world=rostros] .world-intro h2 { font-size:clamp(2.2rem,3.5vw,3.5rem); }
.book-world[data-book-world=rostros] .world-intro .eyebrow,.book-world[data-book-world=rostros] .world-intro p:not(.eyebrow) { color:#d1d2d6; }
.book-world[data-book-world=rostros] .pillars { grid-template-columns:1fr; max-width:800px; margin-left:auto; }
.book-world[data-book-world=rostros] .pillars article { display:grid; grid-template-columns:40px 170px 1fr; gap:25px; align-items:baseline; border-bottom:1px solid var(--line); padding:18px 0; }
/* HASHINATO: a visual spread and a sequence of connected investigations. */
.book-world[data-book-world=hashinato] .book-copy h1 { font-size:clamp(2.5rem,4.3vw,4.3rem); }
.book-world .world-gallery { width:min(970px,calc(100% - 80px)); margin:0 auto 50px; }
.book-world .world-gallery img { width:100%; height:auto; border-radius:0; }
.book-world[data-book-world=hashinato] .experience { display:grid; grid-template-columns:1fr 1fr; gap:0 90px; align-items:start; }
.book-world[data-book-world=hashinato] .experience>p { grid-column:1; }
.book-world[data-book-world=hashinato] .pillars { grid-column:2; grid-row:1/3; display:flex; flex-direction:column; gap:10px; margin:0; }
.book-world[data-book-world=hashinato] .pillars article { display:grid; grid-template-columns:35px 1fr; gap:0 20px; }
.book-world[data-book-world=hashinato] .pillars b { grid-row:1/3; padding-top:4px; }
.book-world[data-book-world=hashinato] .pillars h3 { margin:0; }
/* Contradiction is read as a dialogue: the three steps sit beside the premise. */
.book-world[data-book-world=la-version-imposible] .cover-stage { order:2; }
.book-world[data-book-world=la-version-imposible] .experience { display:grid; grid-template-columns:1fr 1fr; column-gap:80px; }
.book-world[data-book-world=la-version-imposible] .experience>p { grid-column:1; }
.book-world[data-book-world=la-version-imposible] .pillars { grid-column:2; grid-row:1/3; grid-template-columns:1fr; margin:0; gap:0; }
.book-world[data-book-world=la-version-imposible] .world-intro { grid-template-columns:.65fr 1.35fr; }
/* A continuous dark stage is reserved for the countdown thriller. */

.book-world[data-book-world=los-ocho-minutos] .book-hero { grid-template-columns:1.3fr .7fr; }
.book-world[data-book-world=los-ocho-minutos] .cover-stage { order:2; }
.book-world[data-book-world=los-ocho-minutos] .world-type { font-family:ui-monospace,monospace; font-size:clamp(5rem,10vw,9rem); font-weight:300; letter-spacing:-.08em; }
.book-world[data-book-world=los-ocho-minutos] .pillars { gap:0; }
.book-world[data-book-world=los-ocho-minutos] .pillars article { border-top:1px solid var(--line); padding:25px 30px 0 0; }
/* Children's editions: the illustration carries the expression, with expressive display titles and readable sans text. */
.book-world:is([data-book-world$=kids],[data-book-world=mi-primer-libro-de-enigmas]) .book-copy h1 { font-weight:400; }
.book-world[data-book-world=mi-primer-libro-de-enigmas] .book-hero { grid-template-columns:1.2fr 1fr; }
.book-world[data-book-world=mi-primer-libro-de-enigmas] .cover-stage { padding:0; }
.book-world[data-book-world=mi-primer-libro-de-enigmas] .cover-stage img { width:100%; height:auto; filter:none; border-radius:0; }
.book-world[data-book-world=mi-primer-libro-de-enigmas] .world-intro { grid-template-columns:.5fr 1.5fr; max-width:980px; }
.book-world[data-book-world=mi-primer-libro-de-enigmas] .world-type { color:var(--book-accent); }
.book-world[data-book-world=la-version-imposible-kids] .cover-stage img { height:auto; }
.book-world[data-book-world=rostros-kids] .cover-stage { order:2; }
.book-world .kids-values { grid-column:1/-1; gap:25px; border:0; margin-top:25px; }
.book-world .kids-values li,.book-world .kids-values li+li { border:0; padding:0; background:none; }
.book-world .kids-values h3 { color:var(--ink); font-size:1.1rem; font-weight:500; }
.book-world .kids-feature-list { gap:15px 25px; }
.book-world .kids-feature-list li { border:0; padding:15px 0; background:none; }
.book-world .kids-feature-number { color:var(--muted); font-family:Inter,sans-serif; background:none; }
@media(max-width:920px) {
 body.book-world .site-header .menu-button,body.book-world .site-header .menu-button[aria-expanded=true],body.book-world .site-header nav,body.book-world .site-header nav.open { background:#2d173e; border-color:#fff; }
 body.book-world .site-header nav a,body.book-world .site-header nav.open a { color:white; }
 .book-world .book-hero { gap:35px; }
 .book-world .cover-stage { padding:20px; min-height:420px; }
 .book-world .cover-stage img { max-height:380px; }
 .book-world[data-book-world=hashinato] .experience { column-gap:45px; }
 .book-world[data-book-world=rostros] .world-intro { padding:40px; min-height:470px; }
}
@media(max-width:760px) {
 .book-world[data-book-world] .book-hero { display:flex; flex-direction:column; width:calc(100% - 40px); gap:35px; padding:30px 0 50px; }
 .book-world h2 { overflow-wrap:break-word; }
 .book-world .book-copy { order:0; width:100%; }
 .book-world[data-book-world] .book-copy h1 { font-size:clamp(1.9rem,7.5vw,3.5rem); }
 .book-world[data-book-world=rastros] .book-copy h1 { font-size:clamp(2.4rem,11vw,4.4rem); }
 .book-world[data-book-world=rostros] .book-copy h1 { font-size:clamp(2.4rem,11vw,4rem); }
 .book-world[data-book-world=hashinato] .book-copy h1 { font-size:clamp(2rem,9.3vw,4rem); }
 .book-world[data-book-world] .cover-stage { order:1; min-height:0; width:100%; max-width:430px; padding:15px; }
 .book-world[data-book-world] .cover-stage img { height:320px; max-height:380px; width:auto; max-width:100%; }
 .book-world[data-book-world=mi-primer-libro-de-enigmas] .cover-stage img,.book-world[data-book-world=la-version-imposible-kids] .cover-stage img { width:100%; height:auto; }
 .book-world .facts { grid-template-columns:1fr 1fr; gap:0 18px; }
 .book-world[data-book-world] .world-intro { width:calc(100% - 40px); grid-template-columns:minmax(0,1fr); gap:25px; padding:25px 0; margin-bottom:20px; }
 .book-world .world-type { font-size:6rem; }
 .book-world[data-book-world=mi-primer-libro-de-enigmas] .world-intro h2 { font-size:clamp(1.85rem,8vw,3rem); }
 .book-world[data-book-world] .experience,.book-world[data-book-world] .audience { display:block; width:calc(100% - 40px); padding:40px 0; }
 .book-world[data-book-world] .pillars { display:grid; grid-template-columns:1fr; gap:8px; margin-top:25px; }
 .book-world[data-book-world] .pillars article { margin:0; }
 .book-world[data-book-world=rostros] .pillars article { grid-template-columns:30px 1fr; gap:0 15px; }
 .book-world[data-book-world=rostros] .pillars p { grid-column:2; }
 .book-world .audience>div+div { margin-top:25px; }
 .book-world .more-books,.book-world .world-gallery { width:calc(100% - 40px); }
 .book-world[data-book-world=rastros] .book-strip { margin:0 20px 30px; gap:25px; flex-wrap:wrap; }
 .book-world[data-book-world=rastros] .world-intro { padding:35px 25px; min-height:350px; }
 .book-world[data-book-world=rastros] .rules-examples figure { grid-template-columns:1fr; gap:20px; }
 .book-world[data-book-world=rostros] .world-intro { min-height:570px; padding:30px 25px; align-items:flex-end; }
 .book-world[data-book-world=rostros] .world-intro>div { width:100%; }
 .book-world[data-book-world=rostros] .world-scene { height:62%; object-position:70% center; }
 .book-world[data-book-world=rostros] .world-intro:after { content:''; position:absolute; inset:25% 0 0; background:linear-gradient(0deg,var(--book-panel) 50%,transparent); }
 .book-world .kids-values,.book-world .kids-feature-list { grid-template-columns:1fr; gap:20px; margin-top:25px; }
 .book-world :is(.kids-learning,.kids-contents) h2 { font-size:clamp(2rem,7vw,3rem); overflow-wrap:anywhere; }
}

.book-world :is(a,button,input,select,dialog,section,article,img,nav) { border-radius:0!important; }

/* Book actions keep each cover's accent without enclosing the label in a box. */
.book-world .button>span:last-child { display:inline-block; transition:transform .2s ease; }
.book-world .button:hover>span:last-child { transform:translateX(5px); }
.book-world :is(.button,.back-button,.hashinato-explore):focus-visible { outline:2px solid currentColor; outline-offset:5px; box-shadow:none; }
@media(max-width:920px) {
 body.book-world .site-header .menu-button { background:none; border:0; box-shadow:none; }
 body.book-world .site-header .menu-button i { background:#2d173e; }
 body.book-world .site-header .menu-button[aria-expanded=true] { background:none; border:0; }
 body.book-world .site-header .menu-button[aria-expanded=true] i { background:white; }
}
@media(prefers-reduced-motion:reduce) { .book-world .button>span:last-child { transition:none; } }

/* Small labels remain readable on every book palette and screen size. */
.book-world :is(.eyebrow,.breadcrumbs,.facts strong,.pillars b) { font-size:.875rem; line-height:1.6; letter-spacing:.04em; }
.book-world :is(.facts span,.world-intro p:not(.eyebrow),.experience>p,.pillars p,.book-links a),
.book-world[data-book-world=rastros] .book-strip span { font-size:1rem; line-height:1.7; }
.book-world .book-subtitle { font-size:max(1rem,.45em); }
.book-world[data-book-world=rostros] .book-subtitle { font-size:max(1rem,.32em); }
