/* IRREKLAR family design contract / REVIEW 2026-11-05
   Source colors & Inter family from current IRREKLAR V1.4.
   Responsive art direction preserves existing approved image assets.
   This scope explicitly excludes legal document pages from fullscreen hero. */
:root{--ir-navy:#070B1E;--ir-white:#FAFAFF;--ir-magenta:#F93887;--ir-blue:#3568FF;--ir-violet:#7935DA;--ir-hero-header:84px;--ir-family-radius:18px;}
@media(max-width:700px){:root{--ir-hero-header:70px}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto!important}}
/* Cohesive focus, tap, and text behavior across the four independent domains. */
:where(.head a,.head summary,.btn,button,.book-card a,.result-action):focus-visible{outline:3px solid var(--ir-magenta);outline-offset:4px}
:where(h1,h2,h3){text-wrap:balance}
:where(p,li){overflow-wrap:break-word}
/* Four distinct hero stages, one geometry contract. */
main>.v8-world-hero,main>.ir-first-screen.books-hero,main>.more-hero{
 box-sizing:border-box;min-height:calc(100svh - var(--ir-hero-header))!important;
 min-height:calc(100dvh - var(--ir-hero-header))!important;
}
main>.v8-world-hero{display:flex!important;align-items:stretch!important}
main>.v8-world-hero>.v8-world-grid,
main>.v8-world-hero>.wrap.v8-world-grid{
 box-sizing:border-box;min-height:calc(100svh - var(--ir-hero-header))!important;
 min-height:calc(100dvh - var(--ir-hero-header))!important;
}
main>.more-hero{display:flex!important;align-items:center!important;}
main>.ir-first-screen.books-hero{display:flex!important;align-items:center!important;}
/* The four scenes have distinct visual sources; equalize cadence, not imagery. */
@media(min-width:1025px){
 main>.v8-world-hero>.wrap.v8-world-grid{padding-block:clamp(30px,5vh,68px)!important}
 main>.more-hero>.wrap.hero-text{padding-block:clamp(30px,5vh,68px)}
 main>.ir-first-screen.books-hero>.wrap.books-hero-content{padding-block:clamp(30px,5vh,68px)!important}
}
@media(min-width:701px) and (max-width:1024px){
 main>.more-hero>.wrap.hero-text{padding-block:clamp(36px,5vh,64px)!important}
 main>.ir-first-screen.books-hero>.wrap.books-hero-content{padding-bottom:clamp(36px,5vh,64px)!important}
}
/* Mobile: each image remains separately composed, with a common bottom rhythm.
   Text-first on Entdecken/Quiz; cover-first on Lesen; image-first on Mehr. */
@media(max-width:700px){
 main>.v8-world-hero>.wrap.v8-world-grid{padding-bottom:clamp(30px,5vh,56px)!important}
 main>.more-hero{align-items:stretch!important;}
 main>.more-hero>.wrap.hero-text{box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;
  min-height:calc(100dvh - var(--ir-hero-header));padding-top:clamp(280px,43vh,430px)!important;padding-bottom:clamp(36px,6vh,62px)!important;}
 main>.ir-first-screen.books-hero{align-items:stretch!important;}
 main>.ir-first-screen.books-hero>.wrap.books-hero-content{box-sizing:border-box;width:100%;
  padding-bottom:clamp(36px,6vh,68px)!important;margin-top:auto!important;}
 :where(.v8-world-hero,.books-hero,.more-hero) h1{max-width:100%;text-wrap:balance;overflow-wrap:normal}
}
/* Book detail stage: one composed opening before the article, instead of a loose cover+copy stream. */
.book-detail-premium:has(.book-opening){display:block!important;min-width:0}
.book-detail-premium .book-opening{
 min-height:calc(100svh - var(--ir-hero-header));min-height:calc(100dvh - var(--ir-hero-header));
 display:grid;grid-template-columns:minmax(220px,.82fr) minmax(0,1.18fr);align-items:center;
 gap:clamp(34px,6vw,100px);box-sizing:border-box;padding-block:clamp(30px,5vh,80px);
}
.book-detail-premium .book-opening .detail-cover-column{position:relative!important;inset:auto!important;max-width:520px!important;width:100%!important;margin:0 auto!important;}
.book-detail-premium .book-opening .detail-cover-column img{display:block;width:100%;height:auto;object-fit:contain;max-height:min(65vh,560px)}
.book-detail-premium .book-opening .detail-opening{min-width:0;}
.book-detail-premium .detail-main--story{display:block!important;max-width:760px!important;margin:0 auto!important;padding:clamp(44px,7vw,108px) 0 0!important;}
.book-detail-premium .book-opening h1{font-size:clamp(2.2rem,3.6vw,3.8rem)!important;line-height:1.12!important;letter-spacing:-.04em;}
.book-detail-premium .book-opening .detail-hook{font-size:clamp(1.1rem,1.65vw,1.34rem)!important;line-height:1.5!important;}
@media(min-width:701px) and (max-width:1024px){
 .book-detail-premium .book-opening{grid-template-columns:minmax(180px,.75fr) minmax(0,1.25fr);gap:clamp(24px,4vw,44px)}
 .book-detail-premium .book-opening h1{font-size:clamp(2rem,4.4vw,3rem)!important;}
}
@media(max-width:700px){
 .book-detail-premium .book-opening{grid-template-columns:1fr;align-content:center;justify-items:center;gap:12px;
  padding-block:clamp(20px,4vh,34px);min-height:calc(100dvh - var(--ir-hero-header));}
 .book-detail-premium .book-opening .detail-cover-column{width:min(44vw,210px)!important;max-width:210px!important;}
 .book-detail-premium .book-opening .detail-cover-column img{max-height:30dvh;}
 .book-detail-premium .book-opening .detail-opening{width:100%;max-width:540px;text-align:left;}
 .book-detail-premium .book-opening h1{font-size:clamp(1.72rem,6.8vw,2.45rem)!important;line-height:1.13!important;margin-block:9px!important;}
 .book-detail-premium .book-opening .detail-hook{font-size:clamp(.98rem,3.9vw,1.13rem)!important;margin-block:8px!important;}
 .book-detail-premium .book-opening .detail-lede{font-size:.91rem!important;line-height:1.5!important;margin-block:6px 0!important;}
 .book-detail-premium .book-opening .detail-subtitle{font-size:.88rem!important;margin-block:5px!important;}
 .book-detail-premium .book-opening .eyebrow{font-size:.65rem!important;letter-spacing:.12em!important;}
 .book-detail-premium .book-opening .backlink{font-size:.77rem!important;}
 .book-detail-premium .detail-main--story{padding-top:38px!important;}
}
@media(max-height:670px) and (max-width:700px){
 .book-detail-premium .book-opening .detail-cover-column{width:min(31vw,130px)!important;}
 .book-detail-premium .book-opening .detail-lede{display:none}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Production review correction: book detail begins immediately below the shared header. */
.book-detail-premium:has(.book-opening){margin-top:0!important;padding-top:0!important;}
@media(max-width:700px){
 /* Mobile book concept: illustrated first act; readable text on solid navy below. */
 main>.more-hero .hero-image{inset:0 0 auto 0!important;height:54%!important;width:100%!important;opacity:.97!important;}
 main>.more-hero .hero-image img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 46%!important;}
 main>.more-hero .hero-image::after{background:linear-gradient(180deg,rgba(7,11,30,.08) 0%,rgba(7,11,30,.12) 48%,#070B1E 100%)!important;}
 main>.more-hero>.wrap.hero-text{justify-content:flex-end!important;padding-top:clamp(285px,43vh,410px)!important;padding-bottom:clamp(22px,4vh,46px)!important;}
 main>.more-hero .hero-text h1{font-size:clamp(2.18rem,8vw,3rem)!important;line-height:1.08!important;margin-block:8px 14px!important;}
 main>.more-hero .hero-text .lede{font-size:clamp(.92rem,3.8vw,1.03rem)!important;line-height:1.48!important;margin-bottom:18px!important;}
}

/* Narrow-screen art-direction repair 2026-11-05: prioritize meaningful first-screen hook. */
@media (max-width:359px) and (max-height:750px) {
 .v8-world-hero .v8-world-grid{padding-top:22px!important;padding-bottom:12px!important}
 .v8-world-hero .v8-world-copy .v6-kicker{margin-bottom:14px!important}
 .v8-world-hero .v8-world-explainer{display:none!important}
 .v8-world-hero .v8-world-actions{margin-top:14px!important}
 .v8-world-hero .v8-world-visual{height:210px!important}
}
