/* =========================================================
   Inkludeo — main stylesheet
   Tokens mirror the Figma design system (Foundations · Tokens)
   ========================================================= */
:root{
  --graphite:#111111;
  --green:#71C289;            /* color/bg/brand */
  --green-700:#3A7D50;        /* color/text/link (5:1 on white) */
  --green-subtle:#EEF8F1;     /* color/bg/brand-subtle */
  --illustration:#EAF5EE;
  --white:#FFFFFF;
  --ivory:#FAF9F6;            /* color/bg/page */
  --muted:#EAE8E2;            /* color/bg/muted + border/subtle */
  --subtle:#F2F1EC;           /* color/bg/subtle */
  --text-2:#5C5C5C;           /* color/text/secondary */
  --inv-2:#B5B4AF;            /* color/text/inverse-secondary */
  --border-control:#8A8A8A;
  --border-inverse:#3D3D3D;

  --display:"Figtree",system-ui,sans-serif;
  --body:"Atkinson Hyperlegible Next","Atkinson Hyperlegible",system-ui,sans-serif;

  --page-max:1200px;
  --gutter:120px;
  --radius-md:12px;
  --radius-lg:20px;
  --radius-xl:32px;
  --shadow-cover:0 18px 30px -12px rgba(17,17,17,.26),0 3px 6px rgba(17,17,17,.08);
  --shadow-overlay:0 24px 48px -12px rgba(17,17,17,.22),0 4px 10px rgba(17,17,17,.08);
  --header-h:80px;
  /* 0 at a 375px screen, 1 at 1280px: clamp(min, calc(min + (max - min) * var(--fluid)), max)
     scales a font size between its mobile and desktop value. */
  --fluid:calc((100vw - 375px) / 905);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--white);color:var(--graphite);font-family:var(--body);font-size:18px;line-height:28px;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit;background:none;border:0}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--green-700);outline-offset:3px;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:16px;top:-60px;z-index:200;background:var(--graphite);color:#fff;padding:12px 20px;border-radius:999px;font-weight:700}
.skip:focus{top:12px}

/* ---------- type ---------- */
.overline{font-family:var(--body);font-weight:700;font-size:13px;line-height:16px;letter-spacing:1.4px;text-transform:uppercase}
.overline--green{color:var(--green-700)}
.display-xl{font-family:var(--display);font-weight:800;font-size:clamp(42px,calc(42px + 30 * var(--fluid)),72px);line-height:1;letter-spacing:-.031em}
.display-l{font-family:var(--display);font-weight:800;font-size:clamp(32px,calc(32px + 24 * var(--fluid)),56px);line-height:1.07;letter-spacing:-.029em}
.h3{font-family:var(--display);font-weight:700;font-size:26px;line-height:32px;letter-spacing:-.019em}
.h4{font-family:var(--display);font-weight:700;font-size:20px;line-height:26px;letter-spacing:-.015em}
.body-l{font-size:clamp(18px,calc(18px + 2 * var(--fluid)),20px);line-height:1.6}
.body-m{font-size:18px;line-height:28px}
.body-s{font-size:16px;line-height:24px}
.caption{font-size:14px;line-height:20px}
.muted{color:var(--text-2)}

/* ---------- layout ---------- */
.wrap{width:100%;max-width:calc(var(--page-max) + 2 * var(--gutter));margin:0 auto;padding-inline:var(--gutter)}

/* ---------- buttons & links ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:56px;padding:0 32px;border-radius:999px;font-family:var(--body);font-weight:700;font-size:17px;line-height:20px;text-transform:uppercase;white-space:nowrap;transition:background-color .18s,color .18s,border-color .18s,transform .18s}
.btn svg{flex:none}
.btn--m{height:48px;padding:0 24px;font-size:15px}
.btn--primary{background:var(--green);color:var(--graphite)}
.btn--primary:hover{background:#5FB079}
.btn--ghost-dark{border:2px solid var(--border-inverse);color:#fff}
.btn--ghost-dark:hover{border-color:#fff}
.btn--outline{background:#fff;border:2px solid var(--graphite);color:var(--graphite)}
.btn--outline:hover{background:var(--graphite);color:#fff}
.btn--outline:hover svg path{stroke:#fff}
.btn--dark{background:var(--graphite);color:#fff}
.btn--dark:hover{background:#2b2b2b}
.btn--nav{height:48px;padding:0 24px;font-size:13px;line-height:16px;letter-spacing:1.4px}
.link{display:inline-flex;align-items:center;gap:8px;padding:4px 0;font-weight:700;font-size:15px;line-height:20px;text-transform:uppercase;color:var(--green-700);white-space:nowrap}
.link--u span{text-decoration:underline;text-underline-offset:3px}
.link svg{transition:transform .18s}
.link:hover svg{transform:translateX(3px)}
.link:hover span{text-decoration:underline;text-underline-offset:3px}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);border-bottom:1px solid var(--muted)}
body.home .site-header{border-bottom-color:transparent}
.site-header .wrap{height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo img{width:200px;height:37.9px}
.nav{display:flex;gap:40px}
.nav a{display:flex;flex-direction:column;gap:4px;padding:12px 4px 8px;font-weight:700;font-size:13px;line-height:16px;letter-spacing:1.4px;text-transform:uppercase}
.nav a::after{content:"";height:2px;border-radius:999px;background:transparent;transition:background-color .18s}
.nav a:hover::after{background:var(--muted)}
.nav a[aria-current="page"]{color:var(--green-700)}
.nav a[aria-current="page"]::after{background:var(--green)}
.header-right{display:flex;align-items:center;gap:12px}
.lang{position:relative}
.lang-trigger{display:flex;align-items:center;justify-content:center;width:98px;height:48px;border:1.5px solid var(--border-control);border-radius:24px;background:#fff;font-weight:700;font-size:16px;line-height:16px;letter-spacing:.2px;transition:background-color .18s,border-color .18s}
.lang-trigger:hover{background:var(--subtle);border-color:var(--graphite)}
.lang-trigger svg{transition:transform .18s}
.lang.is-open .lang-trigger svg{transform:rotate(180deg)}
.lang-menu{position:absolute;left:-26px;top:52px;width:151px;padding:8px 0;background:#fff;border:2px solid var(--muted);border-radius:18px;box-shadow:0 6px 20px rgba(0,0,0,.09);list-style:none;display:none}
.lang.is-open .lang-menu{display:block}
.lang-menu a{display:flex;align-items:center;gap:12px;width:100%;height:44px;padding:0 16px 0 20px;font-weight:700;font-size:16px;letter-spacing:.2px;color:var(--text-2);text-align:left}
.lang-menu a:hover{background:var(--subtle)}
.lang-flag{width:21px;height:14px;border-radius:2px;object-fit:cover;flex-shrink:0}
.lang-menu a[aria-checked="true"]{background:var(--subtle);color:#000}
.lang-menu a[aria-checked="true"]::after{content:"✓";margin-left:auto;color:var(--green-700)}
.menu-btn{display:none;width:48px;height:48px;border-radius:999px;background:var(--subtle);align-items:center;justify-content:center}

/* ---------- mobile menu ---------- */
.mnav{position:fixed;inset:0;z-index:120;background:#fff;display:none;flex-direction:column;overflow:auto}
.mnav.is-open{display:flex}
.mnav-bar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;flex:none}
.mnav-bar img{width:160px;height:30.3px}
.mnav-close{width:48px;height:48px;border-radius:999px;background:var(--subtle);display:flex;align-items:center;justify-content:center}
.mnav-menu{display:flex;flex-direction:column;gap:32px;padding:16px 16px 40px}
.mnav-links a{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--muted);font-family:var(--display);font-weight:700;font-size:26px;line-height:32px;letter-spacing:-.019em}
.mnav-links a[aria-current="page"]{color:var(--green-700)}
.mnav .btn{width:100%}
.seg{display:inline-flex;align-items:center;gap:4px;padding:4px 4px 4px 12px;background:var(--subtle);border-radius:999px;align-self:flex-start}
.seg svg{margin-right:4px}
.seg a{display:flex;align-items:center;justify-content:center;width:44px;height:40px;border-radius:999px;font-weight:700;font-size:13px;line-height:16px;letter-spacing:.2px;color:var(--text-2)}
.seg a[aria-checked="true"]{background:var(--graphite);color:#fff}

/* ---------- hero ---------- */
.hero{padding:1px 16px 16px}
.hero-frame{position:relative;height:784px;border-radius:var(--radius-xl);overflow:hidden;background:var(--graphite);color:#fff;display:flex;flex-direction:column;justify-content:space-between}
.hero-frame>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-frame::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,10,10,.78) 0%,rgba(10,10,10,.35) 50%,rgba(10,10,10,0) 100%);z-index:1}
.hero-copy{position:relative;z-index:2;padding:184px 0 0 72px;display:flex;flex-direction:column;gap:16px;max-width:880px}
.hero-title{display:flex;flex-direction:column;gap:24px;align-items:flex-start}
.pill{display:inline-flex;align-items:center;gap:12px;padding:8px 16px;border:1px solid #fff;border-radius:999px;font-weight:700;font-size:13px;line-height:16px;letter-spacing:1.4px;text-transform:uppercase}
.pill{font-size:clamp(10px,calc(10px + 3 * var(--fluid)),13px)}
.pill i{width:8px;height:8px;border-radius:50%;background:var(--green);position:relative}
.pill i::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--green);animation:ping 1.8s ease-out 1}
@keyframes ping{0%{transform:scale(1);opacity:.8}100%{transform:scale(3);opacity:0}}
.hero h1{font-family:var(--display);font-weight:800;font-size:min(10.4vw,clamp(42px,calc(42px + 24 * var(--fluid)),66px));line-height:1;letter-spacing:-.03em}
.hero-support{font-weight:400;font-size:clamp(18px,calc(18px + 6 * var(--fluid)),24px);line-height:1.5;max-width:800px}
.hero-support strong{font-weight:700}
.hero-ctas{display:flex;gap:12px;flex-wrap:wrap}
.marquee{position:relative;z-index:2;overflow:hidden;padding:12px 0;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%)}
.marquee-track{display:flex;width:max-content;animation:marquee 38s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
.marquee ul{display:flex;align-items:center;gap:40px;padding-right:40px;list-style:none}
.marquee li{display:flex;align-items:center;gap:40px;font-family:var(--display);font-weight:700;font-size:clamp(16px,calc(16px + 3.6 * var(--fluid)),19.6px);line-height:1.22;letter-spacing:-.019em;white-space:nowrap}
.marquee li::after{content:"";width:10.5px;height:10.5px;border-radius:50%;background:var(--green)}
.marquee a:hover{text-decoration:underline;text-underline-offset:4px}
@keyframes marquee{to{transform:translateX(-50%)}}

/* ---------- book cards ---------- */
.book-grid{display:grid;gap:64px 32px;grid-template-columns:repeat(4,minmax(0,1fr))}
.book-grid--5{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.book{display:flex;flex-direction:column;gap:24px;min-width:0}
/* Every cover sits in a box of the same height (the standard 720 × 932 format), so titles line up.
   The whole cover in its own proportions: never cropped, stretched or zoomed; resting on the bottom of the box, centred.
   The cover is placed absolutely inside the box: Safari (iPad, iPhone, Mac) ignores max-height:100% on a flex item
   in a box sized by aspect-ratio, so taller covers grew out of the box over the titles and links above them. */
.book-cover{position:relative;display:block;aspect-ratio:720/932}
@supports not (aspect-ratio:1){.book-cover{height:0;padding-top:129.44%}}
.book-cover img{position:absolute;left:0;right:0;bottom:0;margin:0 auto;display:block;width:auto;height:auto;max-width:100%;max-height:100%;border-radius:var(--radius-md);transition:transform .25s ease,box-shadow .25s ease}
/* Lift on hover only with a mouse: on phones and tablets a tap left the cover raised. */
@media (hover:hover){.book:hover .book-cover img{transform:translateY(-4px);box-shadow:var(--shadow-cover)}}
.book-info{display:flex;flex-direction:column;gap:14px;flex:1}
.book-title{font-family:var(--display);font-weight:700;font-size:clamp(17px,calc(17px + 3 * var(--fluid)),20px);line-height:1.3;letter-spacing:-.015em;min-height:2.6em}
/* Subtitle under the title: tells apart books with the same title; two lines at most. */
.book-subtitle{margin-top:-6px;font-size:clamp(14px,calc(14px + 2 * var(--fluid)),16px);line-height:1.4;color:var(--graphite);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.book-meta{font-size:clamp(14px,calc(14px + 2 * var(--fluid)),16px);line-height:1.5;color:var(--text-2)}
.book .link{font-size:clamp(13px,calc(13px + 2 * var(--fluid)),15px);margin-top:auto;align-self:flex-start} /* "Discover the book" lines up across the row */
.empty{grid-column:1/-1;padding:48px 0;color:var(--text-2)}

/* ---------- home sections ---------- */
.latest{padding:64px 0}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:32px}
.section-head .title-group{display:flex;flex-direction:column;gap:16px}

.readers{padding:64px 0}
.readers-intro{display:flex;flex-direction:column;gap:12px;margin-bottom:34px}
.readers-intro p{font-family:var(--display);font-size:clamp(18px,calc(18px + 2 * var(--fluid)),20px);line-height:1.3;letter-spacing:-.015em;max-width:834px}
.reader-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.reader{container-type:inline-size;position:relative;display:flex;flex-direction:column;aspect-ratio:282/460;border-radius:var(--radius-xl);overflow:hidden;background:var(--muted);color:var(--graphite);transition:transform .25s ease}
.reader:hover{transform:translateY(-4px)}
.reader--dark{background:var(--graphite);color:#fff}
.reader--green{background:var(--green)}
.reader-photo{position:relative;flex:none;margin:auto 5.67cqw 5.67cqw;aspect-ratio:250/240;border-radius:7.1cqw;overflow:hidden}
.reader-photo img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.reader:hover .reader-photo img{transform:scale(1.04)}
.reader-details{position:relative;padding:11.35cqw 11.35cqw 5cqw;display:flex;flex-direction:column;gap:4.25cqw}
.reader-name{font-family:var(--display);font-weight:700;font-size:clamp(15px,calc(15px + 11 * var(--fluid)),26px);line-height:1.23;letter-spacing:-.019em;min-height:2.46em;padding-right:18cqw}
.reader-desc{font-size:clamp(11px,calc(11px + 5 * var(--fluid)),16px);line-height:1.5;color:var(--text-2)}
.reader--dark .reader-desc{color:var(--inv-2)}
.reader--green .reader-desc{color:var(--graphite)}
.reader-btn{position:absolute;left:71.6cqw;top:11.35cqw;width:17cqw;height:17cqw;border-radius:999px;background:var(--graphite);display:flex;align-items:center;justify-content:center;transition:background-color .18s}
.reader-btn svg{width:7.8cqw;height:7.8cqw;transition:transform .18s}
.reader-btn path{stroke:#fff}
.reader--dark .reader-btn{background:var(--green)}
.reader--dark .reader-btn path{stroke:var(--graphite)}
.reader:hover .reader-btn svg{transform:translateX(2px)}

.split{padding:64px 0}
.split .wrap{display:flex;align-items:center;gap:96px}
.split-media{flex:none;width:600px;aspect-ratio:1;border-radius:var(--radius-lg);overflow:hidden;background:var(--illustration)}
.split-media img{width:100%;height:100%;object-fit:cover}
.split-text{flex:1;display:flex;flex-direction:column;gap:24px;align-items:flex-start}
.split-text .closing{font-family:var(--display);font-weight:700;font-size:clamp(18px,calc(18px + 2 * var(--fluid)),20px);line-height:1.3;letter-spacing:-.015em;max-width:520px}

.name{background:var(--ivory);padding:64px 0;text-align:center}
.name .display-l{margin-bottom:48px}
.name p.body-l{max-width:720px;margin:0 auto 48px;color:var(--text-2)}
.strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.strip figure{height:290px;border-radius:var(--radius-lg);overflow:hidden}
.strip img{width:100%;height:100%;object-fit:cover}

.newsletter{background:var(--graphite);color:#fff;padding:128px 0;text-align:center}
.news-inner{display:flex;flex-direction:column;align-items:center;gap:24px}
.news-title{display:flex;flex-direction:column;align-items:center;gap:16px}
.news-title p{max-width:510px;color:var(--inv-2)}
.news-form{display:flex;gap:12px;align-items:center;justify-content:center}
.news-form input{width:420px;height:60px;padding:0 24px;border-radius:999px;background:#fff;border:1px solid #fff;color:var(--graphite);font-size:16px}
.news-form input::placeholder{color:#8f8e8a}
.news-form input:focus{outline:none;}
/* Browser autofill (Chrome blue, Safari yellow, system font): keep the field white with the site font */
.news-form input:-webkit-autofill,.news-form input:-webkit-autofill:hover,.news-form input:-webkit-autofill:focus,.news-form input:-webkit-autofill:active{-webkit-box-shadow:0 0 0 1000px #fff inset;box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:var(--graphite);caret-color:var(--graphite);font-family:var(--body);transition:background-color 600000s 0s,color 600000s 0s}
.news-form input:-webkit-autofill::first-line{font-family:var(--body)}
.news-form input:autofill{background:#fff;color:var(--graphite);font-family:var(--body)}
.news-note{font-size:clamp(14px,calc(14px + 2 * var(--fluid)),16px);line-height:1.5;color:var(--inv-2)}
.news-ok{display:none;font-size:18px;line-height:28px;color:var(--green)}
.news-inner.is-done .news-form{display:none}
.news-inner.is-done .news-ok{display:block}

/* ---------- footer ---------- */
.site-footer{background:var(--graphite);color:#fff;border-top:1px solid var(--border-inverse);padding:80px 0 32px}
.footer-top{display:flex;justify-content:space-between;align-items:flex-start;gap:48px}
.footer-brand{display:flex;flex-direction:column;gap:16px}
.footer-brand img{width:220px;height:41.7px}
.footer-logo{display:block;align-self:flex-start;max-width:100%}
.footer-brand p{font-size:16px;line-height:24px;color:var(--inv-2)}
.footer-cols{display:flex;gap:96px}
.footer-col{display:flex;flex-direction:column;gap:12px}
.footer-col .overline{color:var(--inv-2)}
.footer-col a{font-size:16px;line-height:24px;white-space:nowrap}
.footer-col a:hover{text-decoration:underline;text-underline-offset:3px;color:var(--green)}
.footer-rule{height:1px;background:var(--border-inverse);margin:32px 0}
.footer-bottom{display:flex;justify-content:space-between;gap:16px;font-size:14px;line-height:20px;color:var(--inv-2)}

/* ---------- inner pages ---------- */
.page-head{padding:96px 0 64px;display:flex;flex-direction:column;gap:16px}
.page-head--cat{padding-bottom:48px;gap:24px}
.page-head .title-group{display:flex;flex-direction:column;gap:16px}
.page-head .lede{font-size:20px;line-height:32px;color:var(--text-2)}
.chips{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:56px}
.chip{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 20px;border-radius:999px;border:1px solid var(--border-control);background:#fff;font-weight:700;font-size:15px;line-height:20px;text-transform:uppercase;white-space:nowrap;transition:background-color .18s,border-color .18s}
.chip:hover{border-color:var(--graphite);background:var(--subtle)}
.chip svg{display:none}
.chip[aria-current="true"]{background:var(--graphite);border-color:var(--graphite);color:#fff}
.chip[aria-current="true"] svg{display:block}
.catalogue-grid{padding-bottom:128px}

.back{padding-top:48px}
.back a{display:inline-flex;align-items:center;gap:8px;padding:4px 0 4px 4px;font-weight:700;font-size:15px;line-height:20px;text-transform:uppercase;color:var(--text-2)}
.back a svg{transform:rotate(180deg);transition:transform .18s}
.back a:hover{color:var(--graphite)}
.back a:hover svg{transform:rotate(180deg) translateX(3px)}
.book-detail{display:grid;grid-template-columns:400px minmax(0,1fr);align-items:start;column-gap:96px;padding:40px 0 128px}
.book-detail-cover{width:100%;border-radius:16px;overflow:hidden;box-shadow:var(--shadow-cover)}
.book-detail-cover img{display:block;width:100%;height:auto}
.book-detail-cover a{display:block}
.book-detail-info{min-width:0;padding-top:16px;display:flex;flex-direction:column;gap:32px;align-items:flex-start}
/* Full category names (as in the catalogue) + language; on desktop the language stays under the button. */
.book-cats{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.book-cats .book-lang{display:none}
a.tag:hover{background:var(--green-700);color:#fff}
.book-desc.is-clamped{overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 70%,transparent);mask-image:linear-gradient(180deg,#000 70%,transparent)}
.read-more{align-self:flex-start;margin-top:-4px;color:var(--green-700);font-weight:700;font-size:15px;line-height:22px;text-decoration:underline;text-underline-offset:3px}
.tag{display:inline-block;padding:6px 14px;border-radius:999px;background:var(--green-subtle);color:var(--green-700);font-weight:700;font-size:13px;line-height:16px;letter-spacing:.2px}
.book-detail .title-group{display:flex;flex-direction:column;gap:12px}
.book-sub{font-family:var(--display);font-weight:700;font-size:26px;line-height:32px;letter-spacing:-.019em;color:var(--text-2)}
.book-desc{display:flex;flex-direction:column;gap:16px;max-width:640px;font-size:20px;line-height:32px}
.buy{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.related{padding:96px 0 128px}
.related .section-head{margin-bottom:48px}
.related .book-info{gap:8px}

.prose-split{display:flex;gap:96px;align-items:flex-start;padding-bottom:128px}
.prose{width:640px;max-width:100%;display:flex;flex-direction:column;gap:20px}
.prose .quote{font-family:var(--display);font-weight:700;font-size:26px;line-height:32px;letter-spacing:-.019em}
.prose .copy{display:flex;flex-direction:column;gap:32px;font-size:20px;line-height:32px;color:var(--text-2);margin-top:8px}
.prose .the-name{display:flex;flex-direction:column;gap:12px;padding-top:28px}
.prose .the-name p{font-size:20px;line-height:32px;color:var(--text-2)}
.about-photos{position:relative;flex:none;width:464px;height:760px}
.about-photos .big{position:absolute;left:0;top:0;width:464px;height:560px;border-radius:24px;overflow:hidden}
.about-photos .small{position:absolute;left:-64px;top:480px;width:220px;height:280px;border-radius:24px;overflow:hidden;border:8px solid #fff;box-sizing:border-box}
.about-photos img,.contact-photo img{width:100%;height:100%;object-fit:cover}
.contact-photo{flex:none;width:464px;height:520px;border-radius:24px;overflow:hidden}
.mail-link{display:inline-flex;align-items:center;gap:12px;font-family:var(--display);font-weight:700;font-size:36px;line-height:42px;letter-spacing:-.025em;color:var(--green-700);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}
.mail-link:hover{color:var(--graphite)}

.legal{display:flex;gap:96px;align-items:flex-start;padding-bottom:128px}
.toc{flex:none;width:280px;padding-top:4px;position:sticky;top:calc(var(--header-h) + 24px)}
.toc .overline{color:var(--text-2)}
.toc ol{list-style:none;display:flex;flex-direction:column;gap:4px;padding-top:16px}
.toc a{display:block;padding:8px 0 8px 16px;border-left:1px solid var(--muted);font-size:16px;line-height:24px;color:var(--text-2)}
.toc a:hover{color:var(--graphite)}
.toc a.is-current{border-left:3px solid var(--green);padding-left:14px;color:var(--green-700)}
.legal-prose{display:flex;flex-direction:column;gap:48px;max-width:640px}
.legal-prose section{display:flex;flex-direction:column;gap:12px;scroll-margin-top:calc(var(--header-h) + 24px)}
.legal-prose p{font-size:18px;line-height:28px;color:var(--text-2)}
.cookie-table{border:1px solid var(--muted);border-radius:16px;overflow:hidden;margin-top:0}
.cookie-table .row{display:grid;grid-template-columns:120px 1fr 160px;gap:24px;padding:16px 24px;border-top:1px solid var(--muted)}
.cookie-table .row:first-child{border-top:0;background:var(--subtle);font-weight:700;font-size:13px;line-height:16px;letter-spacing:.2px;color:var(--text-2)}
.cookie-table .row strong{font-size:18px;line-height:28px}
.cookie-table .row span{font-size:16px;line-height:24px;color:var(--text-2)}

/* ---------- newsletter popup ---------- */
.modal{position:fixed;inset:0;z-index:130;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(17,17,17,.55);overflow-y:auto}
.modal.is-open{display:flex}
/* Centred on every screen; margin:auto keeps the top reachable by scrolling when the card is taller than the screen. */
.modal-card{position:relative;margin:auto;width:100%;max-width:1166px;background:var(--graphite);color:#fff;padding:128px 24px;text-align:center;box-shadow:var(--shadow-overlay)}
.modal-close{position:absolute;right:20px;top:20px;width:48px;height:48px;border-radius:999px;background:#242424;display:flex;align-items:center;justify-content:center}
.modal-close path{stroke:#fff}
.modal-close:hover{background:#333}

/* ---------- cookie banner ---------- */
.cookie{position:fixed;left:24px;bottom:24px;z-index:110;width:760px;max-width:calc(100% - 48px);background:#fff;border:1px solid var(--muted);border-radius:var(--radius-lg);padding:24px;box-shadow:var(--shadow-overlay);display:none;flex-direction:column;gap:20px}
.cookie.is-open{display:flex}
.cookie-top{display:flex;gap:16px;align-items:flex-start}
.cookie-icon{flex:none;width:48px;height:48px;border-radius:999px;background:var(--green-subtle);display:flex;align-items:center;justify-content:center}
.cookie-text{flex:1;display:flex;flex-direction:column;gap:8px}
.cookie-text p{font-size:16px;line-height:24px;color:var(--text-2)}
.cookie-x{flex:none;width:48px;height:48px;border-radius:999px;display:flex;align-items:center;justify-content:center}
.cookie-x:hover{background:var(--subtle)}
.cookie-actions{display:flex;gap:12px;align-items:center;padding-left:64px;flex-wrap:wrap}
.cookie-actions .link{background:none}
.cookie-prefs{display:none;padding-left:64px;flex-direction:column;gap:12px}
.cookie.is-custom .cookie-prefs{display:flex}
.pref{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid var(--muted);border-radius:14px}
.pref strong{display:block;font-size:16px;line-height:24px}
.pref span{font-size:14px;line-height:20px;color:var(--text-2)}
.switch{position:relative;flex:none;width:52px;height:32px}
.switch input{position:absolute;opacity:0;width:100%;height:100%;cursor:pointer;margin:0}
.switch i{position:absolute;inset:0;border-radius:999px;background:var(--border-control);transition:background-color .18s;pointer-events:none}
.switch i::after{content:"";position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .18s}
.switch input:checked+i{background:var(--green-700)}
.switch input:checked+i::after{transform:translateX(20px)}
.switch input:disabled+i{opacity:.55}
.switch input:focus-visible+i{outline:3px solid var(--green-700);outline-offset:2px}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1279px){
  :root{--gutter:64px}
  .split .wrap{gap:56px}
  .split-media{width:46%}
  .prose-split,.legal{gap:56px}
  .about-photos{width:380px;height:640px}
  .about-photos .big{width:380px;height:470px}
  .about-photos .small{top:400px;left:-40px;width:190px;height:240px}
  .contact-photo{width:380px;height:440px}
  .book-detail{column-gap:56px;grid-template-columns:340px minmax(0,1fr)}
}
/* Tablet: the 4 latest books and the 4 "You might also like" books stay one row, as on PC, not 3 + 1 */
@media (min-width:761px) and (max-width:1100px){
  .latest .book-grid:not(.book-grid--5),.related .book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 20px}
}
@media (max-width:1100px){
  :root{--gutter:40px}
  .nav{gap:24px}
  .book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .book-grid--5{grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 20px}
  .reader-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero-copy{padding:40px 40px 56px}
  /* Same proportions as desktop, so the photo keeps its desktop crop; grows only if the text needs it. */
  .hero-frame{height:auto;min-height:calc((100vw - 32px) * 784 / 1408)}
  .split .wrap{flex-direction:column;align-items:flex-start}
  .split-media{width:100%;max-width:600px;align-self:center}
  .prose-split{flex-direction:column}
  .about-photos{margin-left:64px}
  .legal{flex-direction:column;gap:40px}
  .toc{position:static}
}
@media (max-width:1152px){
  .legal{padding-bottom:64px}
}
/* About, Contact and legal pages on tablets: content centred, with the page title aligned to it. */
@media (min-width:761px) and (max-width:1100px){
  .about-story .prose-split,.contact-section .prose-split{align-items:center}
  .about-story .about-photos{margin-left:40px}
  .ink-block:has(+ .about-story) .page-head,.ink-block:has(+ .contact-section) .page-head,.ink-block:has(+ .ink-block > .legal) .page-head{max-width:640px;margin-inline:auto}
  .legal{max-width:640px;margin-inline:auto}
  .legal .toc{width:100%}
}
/* Book page on tablets: cover on the left; categories + language, title, buy button, then the description. */
@media (min-width:761px) and (max-width:1279px){
  .book-detail-info{padding-top:8px;gap:24px}
  .book-cats{order:1}
  .book-detail .title-group{order:2}
  .buy{order:3}
  .book-desc{order:4}
  .book-cats .book-lang{display:inline}
  .buy .book-lang{display:none}
}
/* Compact header (menu button) up to 1024px: below that the full menu, language and Newsletter button do not fit reliably. */
@media (max-width:1024px){
  .nav,.header-right{display:none}
  .menu-btn{display:flex}
  :root{--header-h:72px}
  .site-header .wrap{padding-inline:16px}
  .logo img{width:160px;height:30.3px}
}
@media (max-width:760px){
  :root{--gutter:20px}
  body{font-size:18px}
  .display-xl{line-height:1.1;letter-spacing:-.029em}
  .display-l{line-height:1.19;letter-spacing:-.025em}
  .page-head{padding:40px 0 32px;gap:12px}
  .page-head--cat{padding:48px 0 32px;gap:16px}
  .ink-block:has(+ .about-story) .page-head{padding-top:48px}
  .ink-block:has(+ .contact-section) .page-head{padding-top:49px;gap:16px}
  .page-head .lede{font-size:18px;line-height:28px}

  .hero{padding:4px 8px 0}
  .hero-frame{height:auto;min-height:0;justify-content:flex-start}
  .hero-frame::before{background:linear-gradient(180deg,rgba(10,10,10,.13) 0%,rgba(10,10,10,.69) 30%,rgba(10,10,10,.96) 100%)}
  .hero-copy{padding:40px 24px 48px;gap:24px}
  .hero-title{gap:24px}
  .pill{letter-spacing:1px;gap:8px}
  .hero h1{line-height:1.1;letter-spacing:-.029em}
  .hero-support{font-family:var(--body);font-weight:400;line-height:1.55;letter-spacing:0}
  .hero-ctas{flex-direction:column}
  .hero-ctas .btn{width:100%}
  .marquee{padding:20px 0 12px;}

  .latest{padding:48px 0}
  .section-head{margin-bottom:28px;flex-direction:column;align-items:flex-start;gap:12px}
  .section-head .title-group{gap:8px}
  .book-grid,.book-grid--5{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 12px} /* clear space between rows of books */
  .book{gap:14px}
  /* Phones: the same fixed cover box as PC and tablet (every cover in full, centred, on the bottom of the box), and the
     cards lined up across each row: titles, subtitles, details and "Discover the book" each start on one line. */
  @supports (grid-template-rows:subgrid){
    .book{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:0;gap:0}
    .book-info{display:contents}
    .book-cover{grid-row:1;align-self:end}
    .book-title{grid-row:2;margin-top:14px}
    .book-subtitle{grid-row:3;margin-top:8px}
    .book-meta{grid-row:4;margin-top:14px}
    .book .link{grid-row:5;margin-top:14px;align-self:start}
  }

  .readers{padding:8px 0 48px}
  .readers-intro{gap:16px;margin-bottom:28px}
  .reader-grid{gap:14px}
  .reader{border-radius:19px}
  .reader-name{min-height:0}
  .reader-btn{left:74.6cqw;width:14cqw;height:14cqw}
  .reader-btn svg{width:6.4cqw;height:6.4cqw}

  .split{padding:16px 0 48px}
  .split .wrap{gap:28px}
  .split-media{max-width:none}
  .split-text .btn{width:100%}

  .name{padding:48px 0;text-align:left}
  .name .display-l{margin-bottom:28px}
  .name p.body-l{margin:0 0 28px}
  .strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .strip figure{height:auto;aspect-ratio:169/218}

  .newsletter{padding:64px 0}
  .news-inner{gap:16px}
  .news-form{flex-direction:column;width:100%}
  .news-form input{width:100%;height:48px;padding:0 16px;font-size:18px}
  .news-form .btn{width:100%}
  .news-title p{font-size:18px;line-height:28px}

  .site-footer{padding:48px 0 32px}
  .footer-top{flex-direction:column;gap:40px}
  .footer-brand{align-items:center;text-align:center;width:100%}
  .footer-brand img{width:297px;height:56px;max-width:100%}
  .footer-logo{align-self:center}
  .footer-cols{flex-direction:column;gap:40px}
  .footer-col a{font-size:18px;line-height:28px}
  .footer-col a.mail{font-size:16px;line-height:24px;text-decoration:underline;text-underline-offset:3px}
  .footer-rule{margin:24px 0}
  .footer-bottom{flex-direction:column;gap:8px}

  .chips{padding-bottom:40px}
  .chip{height:44px;padding:0 16px;font-size:13px}
  .catalogue-grid{padding-bottom:64px}

  .back{padding-top:28px}
  /* Book page on mobile: large cover on top, then title, categories + language, buy button, description. */
  .book-detail{grid-template-columns:minmax(0,1fr);row-gap:24px;padding:24px 0 40px}
  .book-detail-cover{width:min(72%,320px);justify-self:center;border-radius:10px}
  .book-detail-info{padding-top:0;gap:16px}
  .book-detail .title-group{order:1;gap:6px}
  .book-cats{order:2}
  .buy{order:3}
  .book-desc{order:4}
  .read-more{order:5}
  .book-cats .book-lang{display:inline}
  .buy .book-lang{display:none}
  .book-detail .display-l{font-size:22px;line-height:28px;letter-spacing:-.015em}
  .book-sub{font-size:16px;line-height:22px;font-weight:400;font-family:var(--body);letter-spacing:0}
  .book-desc{font-size:15px;line-height:22px;gap:12px}
  .buy{width:100%}
  .buy .btn{width:100%;min-height:48px;height:auto;padding:12px 16px;font-size:15px;white-space:normal;text-align:center}
  .related{padding:24px 0}
  .related .section-head{flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:56px}

  .prose-split{gap:40px;padding-bottom:64px}
  .prose .quote{font-size:24px;line-height:30px}
  .prose .copy,.prose .the-name p{font-size:18px;line-height:28px;gap:28px}
  .about-story .prose .copy{gap:24px;margin-top:4px}
  .about-story .prose-split{gap:32px}
  .contact-section .prose-split,.contact-section .prose{gap:24px}
  .contact-section .prose .quote{font-size:26px;line-height:32px}
  .about-photos{width:auto;height:auto;margin:0 0 0 0;align-self:stretch;padding:0 0 0 12%}
  .about-photos .big{position:relative;width:100%;height:auto;aspect-ratio:464/560}
  .about-photos .small{left:0;top:auto;bottom:-24px;width:44%;height:auto;aspect-ratio:220/280}
  .contact-photo{width:100%;height:auto;aspect-ratio:350/390}
  .mail-link{font-size:clamp(20px,5.6vw,28px);line-height:1.3;width:100%;justify-content:space-between;text-underline-offset:4px}

  .legal{gap:32px;padding-bottom:64px}
  .toc{width:100%}
  .legal-prose{gap:36px}
  .legal-prose p{font-size:17px;line-height:27px}
  .cookie-table .row{grid-template-columns:1fr;gap:4px}
  .cookie-table .row:first-child{display:none}

  .modal{padding:12px}
  .modal-card{padding:48px 24px}
  .modal-close{top:12px;right:12px;width:36px;height:36px}
  .modal-close svg{width:18px;height:18px}
  .modal .news-inner,.modal .news-title{gap:24px}
  .cookie{left:0;right:0;bottom:0;width:100%;max-width:none;border-radius:20px 20px 0 0;padding:20px 16px 24px}
  .cookie-actions,.cookie-prefs{padding-left:0}
  .cookie-actions{flex-direction:column;align-items:stretch}
  .cookie-actions .btn{width:100%}
  .cookie-actions .link{justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* =========================================================
   WordPress
   ========================================================= */
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.admin-bar .site-header{top:32px}
.admin-bar .toc{top:calc(var(--header-h) + 56px)}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
@media (max-width:600px){.admin-bar .site-header{top:0}}

/* Core blocks placed directly on a page (outside the Inkludeo blocks) */
body.page .site-main>:not(.ink-block){width:100%;max-width:calc(var(--page-max) + 2 * var(--gutter));margin-inline:auto;padding-inline:var(--gutter)}
body.page .site-main>:not(.ink-block)+:not(.ink-block){margin-top:24px}
body.page .site-main>:not(.ink-block):last-child{margin-bottom:96px}
.entry-content>*+*{margin-top:20px}
.entry-content h2{font-family:var(--display);font-weight:800;font-size:40px;line-height:46px;letter-spacing:-.025em}
.entry-content h3{font-family:var(--display);font-weight:700;font-size:26px;line-height:32px;letter-spacing:-.019em}
.entry-content a,.book-desc a,.legal-prose a,.prose .copy a{color:var(--green-700);text-decoration:underline;text-underline-offset:3px}
.entry-content ul,.entry-content ol,.legal-prose ul,.legal-prose ol,.book-desc ul,.book-desc ol{padding-left:1.25em;color:var(--text-2)}

/* Rich text inside the legal sections */
.legal-prose section>.legal-body{display:flex;flex-direction:column;gap:12px}
.legal-prose li{font-size:18px;line-height:28px}

/* Split block, image on the right */
.split--reverse .wrap{flex-direction:row-reverse}
@media (max-width:1100px){.split--reverse .wrap{flex-direction:column}}

/* Posts list (blog / search fallback) */
.post-list{display:flex;flex-direction:column;gap:40px;padding-bottom:128px}
.post-list article{display:flex;flex-direction:column;gap:12px;padding-bottom:40px;border-bottom:1px solid var(--muted)}
.post-list .h3 a:hover{color:var(--green-700)}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:96px}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 16px;border-radius:999px;border:1px solid var(--border-control);font-weight:700}
.pagination .page-numbers.current{background:var(--graphite);border-color:var(--graphite);color:#fff}

/* Block editor previews */
.editor-styles-wrapper .reader,.editor-styles-wrapper .book a{pointer-events:none}
.editor-styles-wrapper .ink-block{margin-block:0}

/* Text section */
.text-section{padding-block:48px 96px}
.text-section .entry-content{max-width:760px}
