/* Easy Language Books. Self-hosted type, paper, rules, and real books. */
@font-face { font-family: Onest; src: url('../fonts/onest.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Unbounded; src: url('../fonts/unbounded.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
/* Noto Kufi Arabic (OFL, the face of the Arabic covers), subset to the letters of the Arabic coming-soon titles. */
@font-face { font-family: 'Noto Kufi Arabic'; src: url('../fonts/noto-kufi-arabic-titles.woff') format('woff'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF; }
:root {
  --paper: #fffbf4; --ink: #17202a; --line: #e8e0d2; --slate: #5b6470;
  --red: #e0352b; --button: #c92a21; --sun: #ffc83d; --white: #fff;
  --text: Onest, system-ui, sans-serif; --display: Unbounded, Onest, system-ui, sans-serif;
  --wrap: 1200px; --gap: 24px;
  --book-shadow: 1px 2px 3px #17202a26, 4px 14px 20px #17202a26, 0 28px 36px -20px #17202a40;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
figure { margin: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3, h4 { margin: 0 0 .65em; overflow-wrap: break-word; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: 36px; line-height: 1.14; }
h2 { font-size: 28px; line-height: 1.22; max-width: 29ch; margin-bottom: 28px; }
h3 { font: 700 21px/1.35 var(--text); letter-spacing: -.015em; }
h4 { font: 700 17px/1.4 var(--text); }
a { color: var(--button); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, summary { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.site-foot :focus-visible, .band-red :focus-visible { outline-color: var(--sun); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap > *, .hero-grid > *, .book-hero-grid > *, .books > *, .feature-row > *, .online > *, .foot-grid > * { min-width: 0; }
[id] { scroll-margin-top: 94px; }
.skip { position: fixed; left: -9999px; top: 10px; padding: 12px 18px; background: var(--ink); color: white; z-index: 20; }
.skip:focus { left: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lead { font-size: 18px; line-height: 1.6; max-width: 64ch; }
.kicker, .pair { display: block; color: var(--button); font: 700 13px/1.4 var(--text); letter-spacing: .075em; text-transform: uppercase; }
.kicker { margin-bottom: 20px; }
.muted, .caption, figcaption { color: var(--slate); }
.caption, figcaption { font-size: 14px; line-height: 1.5; margin-top: 12px; }
.book-title, .book-card h3 { font-family: var(--display); font-weight: 550; letter-spacing: -.025em; line-height: 1.35; text-wrap: balance; }
.text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; padding-block: 8px; font-weight: 600; }
.contact-line { margin-top: 28px; font-size: 14px; overflow-wrap: anywhere; }
.contact-line a { display: inline-block; min-height: 44px; padding-block: 10px; }

/* The existing native details menu also works without JavaScript. */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 72px; position: relative; }
.logo { display: inline-flex; min-height: 44px; align-items: center; flex: none; }
.logo img { width: 214px; height: auto; }
.nav, .head-row > .langs { display: none; }
.menu { margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: white; font-size: 14px; font-weight: 650; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% - 1px); background: white; border: 1px solid var(--line); border-radius: 4px; padding: 12px; width: min(310px, 100%); box-shadow: 0 12px 24px #17202a14; }
.menu-panel > a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel > a:hover { background: var(--paper); }
.langs { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.langs a, .langs span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font: 700 13px/1 var(--text); text-decoration: none; border-radius: 3px; color: var(--ink); }
.langs span { background: var(--ink); color: white; }
.menu-panel .langs { margin-top: 12px; }

/* Sale status is a quiet pill; only a live checkout link is filled red. */
.btn { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 50px; padding: 13px 22px; border: 1px solid transparent; border-radius: 4px; font: 650 16px/1.45 var(--text); text-decoration: none; text-align: center; }
.btn-red, a.btn-buy { color: white; background: var(--button); }
a.btn-red:hover, a.btn-buy:hover { background: #a8221b; }
.btn-soon { color: var(--ink); background: var(--paper); border: 1px solid #17202a4d; border-radius: 999px; gap: 9px; padding: 10px 16px; min-height: 44px; opacity: 1; cursor: default; }
.soon-dot { flex: none; width: 7px; height: 7px; background: var(--sun); border-radius: 50%; }
.btn-line { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: white; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.price { display: inline-block; font-weight: 650; font-size: 22px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.price-amount, .price-tax { white-space: nowrap; }
/* The earlier price, struck through just before the price slot (no sale wording). */
.price-was { color: var(--slate); font-weight: 500; white-space: nowrap; text-decoration-thickness: 1.5px; }
.final .price-was { color: #ffffffd9; }

/* Mobile comes first. Major desktop compositions use twelve equal columns. */
section { padding: 64px 0; }
.band-white { background: white; border-block: 1px solid var(--line); }
.section-rule { border-top: 1px solid var(--line); }
.hero { padding-top: 44px; }
.sec-head { max-width: 850px; margin-bottom: 36px; }
.hero-grid { display: grid; gap: 32px; }
.home-hero h1 { max-width: 15ch; }
.home-hero .lead { margin: 22px 0; }
.hero-note { font-size: 14px; color: var(--slate); margin: 20px 0 0; line-height: 1.7; }
.hero-note .price { font-size: inherit; color: var(--ink); }
.cover-shelf { display: flex; align-items: flex-start; width: 100%; max-width: 620px; margin-inline: auto; padding: 8px 0 24px; filter: drop-shadow(2px 14px 12px #17202a2b); }
.shelf-cover { flex: 0 0 53.19149%; position: relative; border-radius: 3px; }
.shelf-cover + .shelf-cover { margin-left: -6.38298%; }
.shelf-cover:nth-child(2) { margin-top: 24px; }
.shelf-cover:nth-child(3) { margin-top: 48px; }
.shelf-cover:focus-visible { z-index: 1; }
.shelf-cover img { width: 100%; border-radius: 3px; }
.shelf-3 { max-width: 660px; }
/* Three 250px covers occupy 660px at 18% overlap. The stagger exposes the title lines. */
.shelf-3 .shelf-cover { flex-basis: 37.87879%; }
.shelf-3 .shelf-cover + .shelf-cover { margin-left: -6.81819%; }
.shelf-3 .shelf-cover:nth-child(2) { margin-top: 12%; }
.shelf-3 .shelf-cover:nth-child(3) { margin-top: 24%; }
/* Four covers: 30% each, overlapping by 6.67%, the stagger steps by 8%. */
.shelf-4 { max-width: 660px; }
.shelf-4 .shelf-cover { flex-basis: 30%; }
.shelf-4 .shelf-cover + .shelf-cover { margin-left: -6.66667%; }
.shelf-4 .shelf-cover:nth-child(2) { margin-top: 8%; }
.shelf-4 .shelf-cover:nth-child(3) { margin-top: 16%; }
.shelf-4 .shelf-cover:nth-child(4) { margin-top: 24%; }
.trust-bar { border-block: 1px solid var(--line); background: white; }
.trust-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; margin-block: 0; padding: 28px 0; font-size: 14px; line-height: 1.5; }
.trust-strip li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.trust-strip li > span { min-width: 0; max-width: 100%; }
.trust-icon { color: var(--ink); flex: none; }
.trust-icon svg { width: 24px; height: 24px; }
.trust-strip a { display: inline-block; padding-block: 11px; margin-block: -11px; min-height: 44px; overflow-wrap: anywhere; }

/* Catalogue cards fill the content grid. Covers are never cropped. */
.books { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 32px; }
.book-card { border: 1px solid var(--line); border-radius: 6px; background: white; display: flex; flex-direction: column; }
.cover-panel { display: flex; align-items: center; justify-content: center; padding: 34px 24px 42px; background: var(--book-tint); border-radius: 5px 5px 0 0; }
.cover-panel img { width: 240px; border-radius: 3px; box-shadow: var(--book-shadow); }
.book-card .body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.pair { color: var(--slate); font-size: 12px; }
.book-card h3 { font-size: 24px; margin: 0; }
.book-card h3 a { display: inline-block; min-height: 44px; color: var(--ink); text-decoration: none; }
.book-card h3 a:hover { text-decoration: underline; }
.book-card .by { font-size: 14px; color: var(--slate); }
.book-card p { margin: 0; }
.blurb { font-size: 17px; }
.card-specs { font-size: 14px; line-height: 1.6; margin: 4px 0 0; }
.card-specs > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding-block: 3px; }
.card-specs dt { color: var(--slate); }
.card-specs dd { margin: 0; }
.card-purchase { margin-top: auto; padding-top: 18px; }
.card-purchase .price { margin-bottom: 14px; }
.card-purchase .btn-row { gap: 8px 18px; }

/* Read, scan, listen, practise. Screens are real and kept inside their frames. */
.practice-row { display: grid; gap: 36px; margin-top: 40px; align-items: start; }
.practice-step { min-width: 0; width: 100%; }
.step-visual > img { width: 100%; }
.step-1 { max-width: 400px; }
.step-2 { max-width: 700px; }
.step-3 { max-width: 600px; }
.step-4 { max-width: 400px; }
.step-4 .step-visual > img { max-width: 260px; margin-inline: auto; }
.practice-step figcaption { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; margin-top: 22px; color: var(--ink); }
.practice-step figcaption p { font-size: 17px; margin-bottom: 0; }
.practice-step figcaption .caption { font-size: 14px; color: var(--slate); }
.step-number { color: var(--button); font-weight: 650; font-size: 14px; padding-top: 3px; }
.feature-notes { display: grid; gap: 28px; margin-block: 36px; }
.feature-note { display: grid; grid-template-columns: 28px 1fr; gap: 18px; align-items: start; }
.feature-note p { font-size: 16px; margin-bottom: 0; }
.line-icon { color: var(--button); padding-top: 4px; }
.line-icon svg { width: 28px; height: 28px; }
.availability { padding-left: 16px; border-left: 3px solid var(--sun); font-size: 15px; margin-block: 24px; }
.browser-frame { max-width: 1000px; border: 1px solid var(--line); border-radius: 6px; background: white; overflow: hidden; }
.browser-frame > img { width: 100%; }
.browser-bar { display: flex; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #8d867b; }
.phone-frame { width: 240px; max-width: 100%; border: 6px solid var(--ink); border-radius: 24px; overflow: hidden; margin-inline: auto; }
.phone-frame img { width: 100%; }
.feature-row, .online, .device-pair { display: grid; gap: 32px; align-items: center; }
.feature-visual > img { width: 100%; max-width: 400px; }
.feature-visual-audio > img { max-width: 600px; }
.feature-visual-progress > img { max-width: 260px; margin-inline: auto; }
.qr-visual { max-width: 420px; }
.compact-feature { display: grid; grid-template-columns: 40px minmax(0, 760px); gap: 24px; align-items: start; padding-block: 28px; border-top: 1px solid var(--line); }
.compact-feature > span { color: var(--button); }
.compact-feature svg { width: 40px; height: 40px; }
.compact-feature h3 { margin-bottom: 10px; }
.compact-feature p { font-size: 17px; margin-bottom: 0; }
.device-pair { margin-block: 32px; }
.platform-hero .browser-frame { margin-inline: auto; }
.platform-hero .caption { max-width: 1000px; margin-inline: auto; }
.online { align-items: start; }
.practice-preview { min-width: 0; }
.practice-media { position: relative; padding-bottom: 180px; }
.practice-media .phone-frame { position: absolute; right: 0; bottom: 0; width: 130px; border-width: 4px; border-radius: 16px; box-shadow: 0 10px 24px #17202a1a; }

/* Large spread links and scene strips remain scrollable without JS. */
.samples, .sample-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 90%; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 5px 5px 22px; margin: -5px; }
.samples figure, .sample-book { min-width: 0; scroll-snap-align: start; }
.samples a, .sample-book figure a { display: block; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 4px; }
.samples img, .sample-book figure img { width: 100%; }
.open-large { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; min-height: 44px; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); }
.sample-book h3 { font-size: 20px; margin-bottom: 20px; min-height: 54px; }
.sample-book > a { margin-top: 12px; }
.scene-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; }
.scene-strip figure { scroll-snap-align: start; }
.scene-strip img { width: 100%; border-radius: 3px; }
.scene-strip figcaption { color: var(--ink); }

/* People and the teaching approach. */
.authors { display: grid; gap: 40px; margin-top: 32px; }
.author-card { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.author-card > img { width: 160px; aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: 4px; }
.author-card p { font-size: 16px; }
.author-card .line { color: var(--slate); font-size: 14px; }
.editorial-grid { display: grid; gap: 28px; }
.principles { list-style: none; padding: 0; margin: 0; counter-reset: principle; }
.principles li { position: relative; border-top: 1px solid var(--line); padding: 20px 0 20px 44px; font-size: 18px; }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before { counter-increment: principle; content: counter(principle, decimal-leading-zero); position: absolute; left: 0; top: 23px; color: var(--button); font-size: 13px; font-weight: 700; }
.author-hero-grid, .author-block { display: grid; gap: 32px; align-items: center; }
.author-photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: end; }
.author-photos img { width: 100%; border-radius: 4px; }
.author-block > img { width: 200px; border-radius: 4px; }
.translator-block { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.translator-block h3 { margin: 0 0 12px; }
.story { max-width: 68ch; }
.teach { max-width: 68ch; padding-left: 22px; }
.teach li { padding: 14px 0 14px 8px; border-bottom: 1px solid var(--line); }

/* Product hero and purchase box. */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 13px; padding-top: 20px; color: var(--slate); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb [aria-current] { padding-block: 8px; }
.book-hero { padding: 28px 0 48px; }
.book-hero-grid { display: grid; gap: 32px; }
.cover-stage { display: flex; align-items: center; justify-content: center; padding: 32px; border-radius: 4px; background: var(--book-tint); }
.cover-stage img { width: 220px; border-radius: 3px; box-shadow: var(--book-shadow); }
.buy-box { background: white; border: 1px solid var(--line); padding: 24px; border-radius: 6px; }
.buy-box h1 { font-size: 32px; }
.buy-box .subtitle { font-size: 18px; line-height: 1.5; }
.book-purchase > .price-pair, .book-purchase > .price { display: block; margin: 16px 0; }
.book-purchase .price { font-size: 28px; }
.author-chip { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; color: var(--ink); text-decoration: none; }
.author-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.translator-credit { margin: 4px 0 0; font-size: 14px; color: var(--slate); }
.buy-trust { border-top: 1px solid var(--line); margin: 26px 0 0; padding: 22px 0 0; list-style: none; font-size: 14px; }
.buy-trust li { padding-left: 23px; position: relative; margin-bottom: 10px; }
.buy-trust li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.buy-trust a { display: inline-block; min-height: 44px; padding-block: 10px; margin-block: -10px; overflow-wrap: anywhere; }
.download-link { font-size: 14px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.spec-grid > div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); }
.spec-grid dt { color: var(--slate); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.spec-grid dd { font-size: 18px; font-weight: 600; margin: 0; }
.audience-list { list-style: none; padding: 0; margin: 0; }
.audience-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 17px; }
.audience-list svg { width: 24px; height: 24px; color: var(--button); margin-top: 2px; }
.parts { display: grid; gap: 24px; margin-top: 36px; }
.part { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.part > img { width: 110px; border-radius: 3px; }
.part h3 { font-size: 19px; }
.part p { font-size: 16px; }
.part-range { font-size: 14px !important; color: var(--slate); }
.lvl { display: inline-block; font: 700 13px/1.3 var(--text); padding: 4px 8px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 16px; }
.lesson-steps, .how-steps { padding: 0; margin: 0; list-style: none; counter-reset: step; display: grid; gap: 28px; }
.lesson-steps li, .how-steps li { position: relative; padding: 24px 0 0 48px; border-top: 1px solid var(--line); }
.lesson-steps li::before, .how-steps li::before { counter-increment: step; content: '0' counter(step); position: absolute; top: 24px; left: 0; color: var(--button); font: 650 14px/1.6 var(--text); }
.lesson-steps strong { display: block; margin-bottom: 10px; font-size: 20px; }
.lesson-steps span { font-size: 16px; }
.how-steps { max-width: 850px; }
.features { display: grid; gap: 32px; margin-bottom: 36px; }
.feature .icon { color: var(--button); margin-bottom: 20px; }
.feature .icon svg { width: 32px; height: 32px; }
.feature p { font-size: 16px; }
.levels { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.levels li { padding: 8px 12px; border: 1px solid var(--line); font-weight: 650; background: white; }
.note-box { padding: 24px; border: 1px solid var(--line); background: white; border-radius: 4px; max-width: 850px; }
.note-box p:last-child { margin-bottom: 0; }
.contents { max-width: 900px; }
.toc-list { list-style: none; padding: 0; margin: 0 0 32px; }
.toc-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.full-toc { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.full-toc summary { min-height: 52px; padding-block: 14px; cursor: pointer; font-weight: 650; }
.contents > h3 { margin-top: 32px; }
.download-grid { display: grid; gap: 24px; }
.prose { max-width: 68ch; }
.consent-label { font-size: 14px; color: var(--slate); margin-top: 28px; }
blockquote { margin: 0 0 22px; padding: 22px 24px; background: white; border: 1px solid var(--line); border-left: 3px solid var(--ink); font-size: 16px; }

/* Questions use native disclosure controls; JS also opens a fragment-linked answer. */
.faq { max-width: 850px; margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; position: relative; padding: 22px 36px 22px 0; cursor: pointer; font-size: 18px; line-height: 1.5; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 20px; font-size: 24px; color: var(--button); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding-bottom: 24px; }
.faq .answer p { margin-bottom: 16px; }
.faq .answer a { display: inline-block; min-height: 44px; padding-block: 8px; }
.section-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; }
.section-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.faq-hero { padding-bottom: 32px; }
.faq-section { padding-block: 40px; }

/* The red closing band and ink footer are the only strong background colours. */
.final { background: var(--red); color: white; }
.final h2 { max-width: none; }
.final .lead { margin-bottom: 36px; font-size: 24px; line-height: 1.5; }
.final-offers { display: grid; gap: 28px; }
.final-offer { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-top: 24px; border-top: 1px solid #ffffff66; align-items: start; }
.final-offer > img { width: 100%; border-radius: 2px; box-shadow: 2px 5px 10px #17202a33; }
.final-offer-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.final-offer .book-title { display: inline-flex; align-items: center; min-height: 44px; color: white; font-size: 20px; font-weight: 700; }
.final-offer .price { font-size: 20px; font-weight: 700; }
.final-offer .btn-soon { color: white; background: transparent; border-color: #ffffffb3; font-size: 20px; font-weight: 700; }
.final-offer a.btn-buy { background: white; color: var(--button); border-color: white; }
.final-offer a.btn-buy:hover { background: #fff2cc; border-color: #fff2cc; }
.site-foot { background: var(--ink); color: #d6dce2; padding: 64px 0 32px; font-size: 14px; }
.site-foot a { color: white; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 36px; }
.foot-brand img { width: 240px; margin-bottom: 24px; }
.foot-brand .tag { font-size: 17px; font-weight: 650; color: white; }
.foot-brand p { max-width: 38ch; }
.foot-grid h4 { text-transform: uppercase; letter-spacing: .075em; font-size: 12px; margin-bottom: 12px; color: #c7cdd3; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid a { min-height: 44px; display: inline-flex; align-items: center; padding-block: 10px; overflow-wrap: anywhere; }
.foot-bottom { border-top: 1px solid #48515b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; margin-top: 32px; padding-top: 24px; }
.foot-bottom .langs a { color: white; }
.foot-bottom .langs span { background: white; color: var(--ink); }
.notfound { padding-block: 120px; }
.notfound .muted a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* Legal fragments are inserted verbatim. Only their presentation changes. */
.legal { max-width: 760px; padding-top: 48px; overflow-wrap: anywhere; }
.legal h1 { font-size: 32px; margin-block: 32px; }
.legal h2 { font-size: 22px; margin-top: 40px; line-height: 1.4; max-width: none; letter-spacing: -.015em; }
.legal p, .legal li { font-size: 17px; line-height: 1.75; }
.legal li { padding-left: 6px; margin-block: 10px; }
.legal address { font-style: normal; }
.legal a { display: inline-block; min-height: 44px; padding-block: 7px; }
.legal table { border-collapse: collapse; width: 100%; margin-bottom: 24px; font-size: 16px; }
.legal td, .legal th { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal .note { font-size: 14px; padding: 14px 18px; background: white; border: 1px solid var(--line); }
.placeholder { background: #fff2cc; padding: 0 3px; font-size: .92em; }

@media (min-width: 700px) {
  body { font-size: 18px; }
  h1 { font-size: clamp(44px, 4.5vw, 66px); }
  h2 { font-size: 40px; }
  section { padding-block: 104px; }
  .hero { padding-top: 64px; }
  .lead { font-size: 20px; }
  .logo img { width: 250px; }
  .head-row { min-height: 88px; }
  .trust-strip li { flex-direction: row; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-card .body { padding: 32px; }
  .book-card h3 { font-size: 28px; }
  .cover-panel { padding-block: 44px 52px; }
  .cover-panel img { width: 280px; }
  .feature-notes, .authors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-row { gap: 48px; margin-top: 56px; }
  .practice-opening { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .practice-tools { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; row-gap: 22px; align-items: stretch; }
  .practice-tools .practice-step { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
  .practice-tools .step-visual { display: flex; align-items: center; justify-content: center; }
  .practice-tools figcaption { margin-top: 0; }
  .step-4 .step-visual > img, .feature-visual-progress > img { max-width: 320px; }
  .step-1 { justify-self: center; }
  .step-3, .step-4 { justify-self: center; }
  .samples, .sample-shelf { grid-auto-columns: calc(50% - 12px); }
  .samples { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; row-gap: 40px; }
  .scene-strip { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; row-gap: 36px; }
  .authors { gap: 44px; }
  .author-hero-grid, .feature-row, .online { grid-template-columns: 1fr 1fr; gap: 48px; }
  .author-block { grid-template-columns: 220px 1fr; gap: 64px; }
  .author-block > img { width: 220px; }
  .editorial-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .device-pair { grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; }
  .book-hero { padding-block: 36px 56px; }
  .book-hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
  .cover-stage { grid-column: span 5; padding: 32px; }
  .cover-stage img { width: min(100%, 370px); }
  .buy-box { grid-column: span 7; padding: 32px; }
  .buy-box h1 { font-size: clamp(36px, 3.5vw, 48px); }
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .part { grid-template-columns: 130px minmax(0, 1fr); }
  .part > img { width: 130px; }
  .lesson-steps, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .download-grid { grid-template-columns: 4fr 8fr; gap: 64px; }
  .final-offers { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
  .final-offer { grid-template-columns: 80px minmax(0, 1fr); gap: 24px; }
  .final-offer:only-child { max-width: 700px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .legal { padding-top: 64px; }
  .legal h1 { font-size: 44px; }
  .legal h2 { font-size: 26px; }
}
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
  .hero-copy { grid-column: span 5; }
  .cover-shelf { grid-column: span 7; }
  .home-hero { padding-block: 80px; }
  .home-hero h1 { font-size: 64px; }
  :lang(ru) .home-hero h1 { font-size: 56px; max-width: none; }
  .home-hero .lead { max-width: 44ch; }
  .nav { display: flex; gap: 20px; align-items: center; margin-left: auto; }
  .nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
  .nav a:hover, .nav a[aria-current] { color: var(--button); }
  .head-row > .langs { display: inline-flex; }
  .menu { display: none; }
  .trust-strip { grid-template-columns: .9fr 1.3fr 1fr 1.4fr; gap: 0; align-items: stretch; }
  .trust-strip li { padding-inline: 20px; border-left: 1px solid var(--line); }
  .trust-strip li:first-child { border-left: 0; padding-left: 0; }
  .trust-strip li:last-child { padding-right: 0; }
  .books-2 .book-card { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
  .books-2 .cover-panel { border-radius: 5px 0 0 5px; padding: 28px; }
  .books-2 .cover-panel img { width: 100%; max-width: 210px; }
  .books-2 .body { min-width: 0; padding: 28px 24px; }
  .books-2 h3 { font-size: 23px; }
  .books-2 .btn-row { gap: 4px 16px; }
  .books-2 .text-link { font-size: 16px; }
  .books-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .books-3 .body { padding: 28px; }
  .books-3 h3 { font-size: 24px; }
  .books-3 .cover-panel img { width: 240px; }
  .books-4 .book-card { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
  .books-4 .cover-panel { border-radius: 5px 0 0 5px; padding: 28px; }
  .books-4 .cover-panel img { width: 100%; max-width: 210px; }
  .books-4 .body { min-width: 0; padding: 28px 24px; }
  .books-4 h3 { font-size: 23px; }
  .books-4 .btn-row { gap: 4px 16px; }
  .books-4 .text-link { font-size: 16px; }
  .author-card { grid-template-columns: 180px minmax(0, 1fr); }
  .author-card > img { width: 180px; }
  .lesson-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .online { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
  .practice-media { padding-bottom: 270px; }
  .practice-media .phone-frame { width: 220px; border-width: 6px; border-radius: 24px; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .book-hero-grid { gap: 40px; }
  .buy-box { padding: 40px; }
  .cover-stage { padding: 48px; }
  .part { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
  .part > img { width: 180px; }
  .foot-grid { grid-template-columns: 4fr 3fr 2.5fr 2.5fr; gap: 40px; }
}
@media (max-width: 699px) {
  .home-hero .btn-row { gap: 8px 16px; }
  .home-hero .btn { padding-inline: 16px; font-size: 15px; }
  .home-hero .text-link { font-size: 14px; }
  .shelf-3 { padding-inline: 10px; }
  .shelf-3 .shelf-cover { transform-origin: center bottom; }
  .shelf-3 .shelf-cover:first-child { transform: rotate(-3deg); }
  .shelf-3 .shelf-cover:last-child { transform: rotate(3deg); }
  .shelf-4 { padding-inline: 10px; }
  .shelf-4 .shelf-cover { transform-origin: center bottom; }
  .shelf-4 .shelf-cover:first-child { transform: rotate(-3deg); }
  .shelf-4 .shelf-cover:last-child { transform: rotate(3deg); }
  .trust-strip li:nth-child(n+3) { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; }
  .trust-strip li:last-child a { display: block; width: fit-content; white-space: nowrap; overflow-wrap: normal; margin-block: 0; padding-block: 8px; }
  .breadcrumb { padding-top: 8px; column-gap: 8px; }
  .book-hero { padding-top: 16px; }
  .book-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px 16px; align-items: center; }
  .buy-box { display: contents; }
  .book-heading { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  .book-heading .kicker { margin-bottom: 12px; }
  .book-heading h1 { font-size: 36px; margin-bottom: 16px; }
  .book-heading .subtitle { font-size: 17px; margin-bottom: 14px; }
  .cover-stage { grid-column: 1; grid-row: 2; padding: 16px 8px; align-self: stretch; }
  .cover-stage img { width: 160px; }
  .book-purchase { display: contents; }
  .book-purchase > .price-pair, .book-purchase > .price { grid-column: 2; grid-row: 2; align-self: center; margin: 0; }
  .book-purchase .price { display: block; font-size: 30px; line-height: 1.2; }
  .book-purchase .price-was { display: block; margin-bottom: 4px; font-size: 17px; }
  .book-purchase .price-amount { display: block; }
  .book-purchase .price-sep { display: none; }
  .book-purchase .price-tax { display: block; margin-top: 4px; font-size: 15px; color: var(--slate); font-weight: 500; }
  .book-purchase .btn-row { grid-column: 1 / -1; grid-row: 3; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
  .book-purchase .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
  .book-purchase .text-link { font-size: 16px; gap: 5px; }
  .book-assurance { grid-column: 1 / -1; grid-row: 4; min-width: 0; }
  .book-assurance .buy-trust { margin-top: 0; }
  .faq-hero h1 { font-size: 34px; }
}
@media (max-width: 359px) {
  .logo img { width: 180px; }
  .head-row { gap: 8px; }
  h1, .buy-box h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  .part { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Coming soon (site.json coming_soon): cover, title as on the cover, reader line, status pill. No link, price or buy. */
.soon-group { margin-top: 36px; }
.soon-group h3 { margin: 0 0 16px; color: var(--slate); font: 700 13px/1.4 var(--text); letter-spacing: .075em; text-transform: uppercase; }
.soon-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin: 0; padding: 0; list-style: none; }
.soon-card { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.soon-cover { display: flex; justify-content: center; align-self: stretch; margin-bottom: 8px; padding: 18px 14px 22px; background: var(--book-tint); border-radius: 5px; }
.soon-cover img { width: 100%; max-width: 150px; height: auto; border-radius: 3px; box-shadow: var(--book-shadow); }
.soon-title { margin: 0; font: 550 16px/1.35 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.soon-title:lang(ar) { font-family: 'Noto Kufi Arabic', var(--display); font-weight: 600; letter-spacing: 0; line-height: 1.6; }
.soon-for { margin: 0; color: var(--slate); font-size: 14px; line-height: 1.4; }
.soon-by { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.4; }
.soon-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 3px 11px; border: 1px solid #17202a4d; border-radius: 999px; font: 600 12px/1.5 var(--text); }
@media (min-width: 700px) {
  .soon-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (min-width: 1100px) {
  .soon-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
