/* naucte-se-anglicky.cz: "Marked in Highlighter".
   The page reads like the book after a reader who finally got it marked it up.
   Light = white book paper, black ink, four highlighters (yellow, sky, pale aqua, plum pen).
   Dark  = the same book under a reading lamp: deep aqua-ink ground, the marks stay readable. */

:root {
  --paper: #ffffff;
  --field: #dceaec;          /* pale aqua: quiet fields (reviews, contents, FAQ, forms) */
  --ink: #141414;
  --ink-2: #4a5557;
  --rule: #d5e1e3;
  --plum: #943867;           /* the pen: every action */
  --plum-hover: #7a2d55;
  --plum-ink: #8a2f5e;
  --on-plum: #ffffff;
  --sky: #6ec1e4;
  --hl: #f6dc6e;             /* yellow highlighter */
  --hl-sky: #a9dcf0;         /* sky highlighter, light enough for black ink */
  --hl-ink: #141414;         /* text on a highlighter mark stays black in both themes */
  --focus: #943867;
  --err: #a8231b;
  --shadow: 0 22px 44px -24px rgb(20 50 56 / 0.45), 0 4px 10px -6px rgb(20 50 56 / 0.18);
  --shadow-soft: 0 14px 30px -20px rgb(20 50 56 / 0.4);

  --font: 'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step--1: clamp(0.94rem, 0.9rem + 0.15vw, 1rem);
  --step-0: clamp(1.08rem, 1.03rem + 0.25vw, 1.2rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.05rem);
  --step-3: clamp(1.95rem, 1.5rem + 2.1vw, 3.15rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.3vw, 4.5rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --wide: 76rem;
  --radius: 14px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0f1a1d;
    --field: #172a2f;
    --ink: #eef5f6;
    --ink-2: #b3c6c9;
    --rule: #26404a;
    --plum: #a8437a;
    --plum-hover: #8c3366;
    --plum-ink: #f2a7cf;
    --hl: #f2d566;
    --hl-sky: #8fd0ea;
    --focus: #f2d566;
    --err: #ff9b8f;
    --shadow: 0 24px 50px -24px rgb(0 0 0 / 0.75);
    --shadow-soft: 0 14px 30px -18px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #0f1a1d;
  --field: #172a2f;
  --ink: #eef5f6;
  --ink-2: #b3c6c9;
  --rule: #26404a;
  --plum: #a8437a;
  --plum-hover: #8c3366;
  --plum-ink: #f2a7cf;
  --hl: #f2d566;
  --hl-sky: #8fd0ea;
  --focus: #f2d566;
  --err: #ff9b8f;
  --shadow: 0 24px 50px -24px rgb(0 0 0 / 0.75);
  --shadow-soft: 0 14px 30px -18px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1.5rem); scrollbar-color: color-mix(in srgb, var(--ink-2) 50%, transparent) var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-ink); text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 3px; text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--hl); color: var(--hl-ink); }
input, select, textarea { caret-color: var(--plum); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 700; }
.accent { color: var(--plum-ink); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--plum); color: var(--on-plum); padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* single-column by default; minmax(0, 1fr) stops images widening the track past the viewport */
.hero, .intro, .life, .audience, .sample__grid, .author, .tiers, .order__grid, .contact, .ready, .foot__inner, .ticks { grid-template-columns: minmax(0, 1fr); }

main > section { padding: var(--section) var(--gutter); }
main > section > * { max-width: var(--wide); margin-inline: auto; }

/* ---------- the highlighter mark ---------- */
/* A felt-tip stroke: slightly ragged ends, sits a touch low like a real hand, wraps per line. */
mark, .hl {
  color: var(--hl-ink);
  background-color: transparent;
  background-image: linear-gradient(97deg, transparent 0.1em, var(--hl) 0.32em, var(--hl) calc(100% - 0.4em), color-mix(in srgb, var(--hl) 70%, transparent) calc(100% - 0.22em), transparent calc(100% - 0.06em));
  background-repeat: no-repeat;
  background-size: 100% var(--hl-h, 100%);
  background-position: 0 var(--hl-y, 50%);
  padding: var(--hl-pad, 0.1em 0.3em);
  margin: 0 -0.08em;
  border-radius: 0.7em 0.2em 0.9em 0.3em / 0.3em 0.75em 0.35em 0.8em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl--sky { background-image: linear-gradient(97deg, transparent 0.1em, var(--hl-sky) 0.32em, var(--hl-sky) calc(100% - 0.4em), color-mix(in srgb, var(--hl-sky) 70%, transparent) calc(100% - 0.22em), transparent calc(100% - 0.06em)); }
/* draw-in: JS sets .will-mark on sections below the fold, then .is-marked when they arrive */
@media (prefers-reduced-motion: no-preference) {
  .will-mark .hl { background-size: 0% var(--hl-h, 100%); transition: background-size 0.9s var(--ease); }
  .will-mark.is-marked .hl { background-size: 100% var(--hl-h, 100%); }
}

/* ---------- headings ---------- */
.sub { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sub__cz {
  font-size: var(--step-3);
  font-weight: 780;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.sub__en {
  margin: 0.75rem 0 0;
  font-size: var(--step-0);
  font-style: italic;
  font-weight: 450;
  color: var(--ink-2);
}
.sub__en::before { content: ''; display: inline-block; width: 1.6em; height: 0.32em; margin-right: 0.55em; vertical-align: 0.22em; border-radius: 0.2em 0.1em 0.25em 0.1em; background: var(--sky); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.2rem;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-out, box-shadow 0.25s ease-out, transform 0.2s ease-out, border-color 0.2s, color 0.2s;
}
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--plum); color: var(--on-plum); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--plum) 80%, transparent); }
.btn--primary:hover { background: var(--plum-hover); box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--plum) 85%, transparent); }
.btn--ghost { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, transparent); background: transparent; }
.btn--ghost:hover { border-color: var(--plum); color: var(--plum-ink); }
.btn--light { background: #fff; color: #7a2d55; box-shadow: 0 14px 28px -14px rgb(0 0 0 / 0.45); }
.btn--light:hover { background: var(--hl); color: var(--hl-ink); }
.btn--small { min-height: 2.5rem; padding: 0.45em 1.1em; font-size: var(--step--1); background: var(--plum); color: var(--on-plum); }
.btn--small:hover { background: var(--plum-hover); }
.btn--block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; }

/* ---------- header + reading-progress bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 0.6rem var(--gutter);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; font-weight: 780; font-size: var(--step-0); margin-right: auto; }
.brand__cover { width: 1.75rem; height: auto; border-radius: 2px; box-shadow: 0 3px 8px -2px rgb(0 0 0 / 0.3); }
.nav { display: none; gap: 1.6rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--step--1); padding: 0.1em 0.2em; border-radius: 0.3em; }
.nav a:hover { color: var(--hl-ink); background: var(--hl-sky); }
.top__actions { display: flex; align-items: center; gap: 0.6rem; }
.theme {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme[hidden] { display: none; }
.theme:hover { border-color: var(--sky); }
.theme .icon:last-child { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .theme .icon:first-child { display: none; } :root:not([data-theme='light']) .theme .icon:last-child { display: block; } }
:root[data-theme='dark'] .theme .icon:first-child { display: none; }
:root[data-theme='dark'] .theme .icon:last-child { display: block; }
@media (min-width: 56em) { .nav { display: flex; } }

.scrub { display: none; }
.js .scrub { display: block; position: relative; padding: 0 var(--gutter) 0.4rem; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; }
.scrub__track { position: relative; height: 6px; border-radius: 3px; background: var(--field); }
/* the fill is a highlighter stroke running along the page */
.scrub__fill { position: absolute; inset: 0; background: var(--hl); border-radius: 3px 2px 4px 2px; transform-origin: left; transform: scaleX(0); }
.scrub__ticks { position: absolute; inset: 0; }
.scrub__tick {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--sky);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.scrub__tick.is-past { background: var(--plum); }
.scrub__tick:hover { transform: scale(1.35); }
.scrub__readout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- hero: the book on the desk, bleeding off the right edge ---------- */
main > .hero {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  max-width: none;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}
main > .hero > * { max-width: none; margin: 0; }
.hero__copy { padding-inline: var(--gutter); }
.hero__title { font-size: var(--step-4); font-weight: 800; line-height: 1.16; letter-spacing: -0.03em; max-width: 19ch; }
.hero__en { margin-top: 1.25rem; }
/* display sizes: the line box is tight, so the stroke gets no extra vertical padding */
.hero__title .hl, .pull__quote .hl { --hl-pad: 0 0.2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.hero__photo { margin: 0; }
.hero__caption { margin-top: 0.9rem; padding-inline: var(--gutter); font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.hero__caption::before { content: ''; display: inline-block; width: 1.6em; height: 0.32em; margin-right: 0.55em; vertical-align: 0.22em; border-radius: 0.2em 0.1em 0.25em 0.1em; background: var(--sky); }
@media (min-width: 64em) { .hero__caption { padding-inline: 1.25rem 0; } }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; }
@media (min-width: 64em) {
  main > .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: min(50rem, calc(100svh - var(--header-h) - 1rem)); padding-top: clamp(1.5rem, 3vw, 2.5rem); }
  .hero__copy { padding-left: max(var(--gutter), calc((100vw - var(--wide)) / 2)); padding-right: 0; }
  .hero__photo img { aspect-ratio: 1; max-height: 44rem; border-radius: var(--radius) 0 0 var(--radius); box-shadow: var(--shadow); }
}

/* ---------- intro + pull quote ---------- */
.intro { display: grid; gap: clamp(2.5rem, 6vw, 5rem); padding-top: 0 !important; padding-bottom: clamp(3rem, 6vw, 5rem) !important; }
main > .intro { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; }
main > .intro > * { max-width: none; margin: 0; }
@media (min-width: 64em) { .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .pull { position: sticky; top: calc(var(--header-h) + 3rem); } }
.prose { max-width: 64ch; }
.prose p { margin-bottom: 1.1em; }
.intro__more { margin: 0.5rem 0 0; }
.pull { margin: 0; }
.pull__quote { font-size: var(--step-3); font-weight: 760; line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.pull__by { color: var(--ink-2); font-size: var(--step--1); max-width: 52ch; }
.pull__by strong { color: var(--ink); }

/* ---------- life: photo hard to the left edge, the lines take the mark in turn ---------- */
main > .life { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: none; padding-inline: 0; }
main > .life > * { max-width: none; margin: 0; }
.life__photo { margin: 0; }
.life__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.life__copy { padding-inline: var(--gutter); }
@media (min-width: 64em) {
  main > .life { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); }
  .life__photo img { aspect-ratio: 4 / 4.4; max-height: 46rem; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
  .life__copy { padding-left: 0; padding-right: max(var(--gutter), calc((100vw - var(--wide)) / 2)); }
}
.captions { list-style: none; margin: 0 0 2.25rem; padding: 0; display: grid; gap: 1.1rem; }
.captions p { margin: 0; font-size: var(--step-1); font-weight: 650; line-height: 1.5; }
.captions span {
  background-image: linear-gradient(97deg, transparent 0.1em, var(--hl) 0.32em, var(--hl) calc(100% - 0.4em), color-mix(in srgb, var(--hl) 70%, transparent) calc(100% - 0.22em), transparent calc(100% - 0.06em));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 50%;
  padding: 0.1em 0.25em;
  border-radius: 0.7em 0.2em 0.9em 0.3em / 0.3em 0.75em 0.35em 0.8em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.8s var(--ease), color 0.4s;
}
.captions.is-live span { color: var(--ink-2); }
.captions.is-live li.is-current span { color: var(--hl-ink); background-size: 100% 100%; }

/* ---------- benefits: a ticked list in two columns, titles marked in sky ---------- */
.benefits__sub { font-size: var(--step-2); font-weight: 760; color: var(--plum-ink); margin-bottom: clamp(1.5rem, 3vw, 2.25rem) !important; }
.ticks { list-style: none; padding: 0; display: grid; gap: clamp(2rem, 4vw, 2.75rem) clamp(2rem, 6vw, 5rem); }
@media (min-width: 52em) { .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ticks li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.ticks .icon { width: 2.2rem; height: 2.2rem; color: var(--plum-ink); stroke-width: 2.4; margin-top: 0.05rem; }
.ticks__title { font-size: var(--step-1); font-weight: 760; margin-bottom: 0.5rem; }
.ticks p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.benefits__cta { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; }

/* ---------- reviews: on the pale aqua field, no boxes ---------- */
.reviews { background: var(--field); }
.reviews__cols .review { margin: 0; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0 0 1.25rem; }
.review figcaption { display: flex; align-items: center; gap: 0.9rem; }
.review__img { width: 3.6rem; height: 3.6rem; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--paper); }
.review figcaption > span { display: grid; }
.review__name { font-weight: 760; }
.review__role { color: var(--ink-2); font-size: var(--step--1); line-height: 1.4; }
.review--lead { margin-bottom: clamp(3rem, 6vw, 4.5rem) !important; display: grid; gap: 1.5rem 4rem; align-items: end; }
@media (min-width: 64em) { .review--lead { grid-template-columns: minmax(0, 1fr) 18rem; } .review--lead figcaption { flex-direction: column; align-items: flex-start; } .review--lead .review__img { width: 5rem; height: 5rem; } }
.review--lead blockquote p { font-size: var(--step-2); font-weight: 650; line-height: 1.38; letter-spacing: -0.01em; max-width: 48ch; margin: 0; }
.review--lead blockquote p::before { content: '„'; color: var(--plum-ink); }
.review--lead blockquote p::after { content: '“'; color: var(--plum-ink); }
.reviews__cols { columns: 1; column-gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 52em) { .reviews__cols { columns: 2; } }
.reviews__cols .review { break-inside: avoid; padding: 0 0 3rem; }

/* ---------- audience: photo hard to the right edge ---------- */
main > .audience { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: none; padding-inline: 0; }
main > .audience > * { max-width: none; margin: 0; }
.audience__copy { padding-inline: var(--gutter); }
.audience__photo { margin: 0; }
.audience__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 64em) {
  main > .audience { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .audience__copy { padding-right: 0; padding-left: max(var(--gutter), calc((100vw - var(--wide)) / 2)); }
  .audience__photo img { border-radius: var(--radius) 0 0 var(--radius); box-shadow: var(--shadow); }
}
.audience .sub__cz { max-width: 24ch; }

/* ---------- sample: form beside one big open spread, the rest below ---------- */
.sample__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem) !important; }
@media (min-width: 64em) { .sample__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.sample__feature { min-width: 0; }

.signup {
  background: var(--field);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.signup__title { font-size: var(--step-2); font-weight: 780; margin-bottom: 0.6rem; }
.signup__lead { color: var(--ink-2); }
.signup__note { margin: 1rem 0 0; font-size: var(--step--1); color: var(--ink-2); }
.signup__captcha:empty { display: none; }
.signup__captcha { margin: 0.5rem 0 1rem; }
.signup.is-sending button[type='submit'], .order__form.is-sending button[type='submit'] { opacity: 0.7; pointer-events: none; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
input[type='email'], input[type='text'], select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 10px;
  padding: 0.8em 0.95em;
  min-height: 3.3rem;
}
input:hover, select:hover { border-color: var(--sky); }
input::placeholder { color: var(--ink-2); opacity: 1; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
input[aria-invalid='true'] { border-color: var(--err); }
.field__help { margin: 0.45rem 0 0; font-size: var(--step--1); color: var(--ink-2); }
.field__err { margin: 0.45rem 0 0.6rem; color: var(--err); font-weight: 700; font-size: var(--step--1); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.4rem 0 0.8rem; }
.check input { width: 1.35rem; height: 1.35rem; margin: 0.18rem 0 0; accent-color: var(--plum); flex: none; }
.check label { font-size: var(--step--1); line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup button[type='submit'] { margin-top: 0.4rem; }

/* a spread keeps the real two-page proportion (1358 x 961), lying open on the page */
.spread { display: block; text-decoration: none; color: var(--ink); }
.spread img { width: 100%; aspect-ratio: 1358 / 961; border-radius: 3px; background: #fff; box-shadow: var(--shadow-soft); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.spread:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.spread--big img { box-shadow: var(--shadow); }
.spread__label { display: block; margin-top: 0.75rem; font-size: var(--step--1); line-height: 1.4; color: var(--ink-2); }
.spread__pages { font-weight: 760; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 0.35em; padding: 0 0.15em; border-radius: 0.3em; }
.spread:hover .spread__pages { background: var(--hl); color: var(--hl-ink); }
.spreads { list-style: none; padding: 0 0 0.5rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 20rem); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.spreads li { scroll-snap-align: start; padding-bottom: 1rem; }
@media (min-width: 64em) { .spreads { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; overflow: visible; } }
.sample__cta { margin-top: clamp(2rem, 4vw, 3rem) !important; }

/* ---------- table of contents: a real book's contents page ---------- */
.toc { background: var(--field); }
.toc__key { color: var(--ink-2); margin-top: -1.25rem !important; margin-bottom: 2rem !important; }
.toc__list { list-style: none; padding: 0; columns: 1; column-gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 56em) { .toc__list { columns: 2; } }
.toc__list li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.42rem 0; break-inside: avoid; }
.toc__title { flex: 0 1 auto; color: var(--ink); }
a.toc__title { font-weight: 700; text-decoration: none; }
a.toc__title:hover mark { background-image: linear-gradient(97deg, transparent 0.1em, var(--hl-sky) 0.32em, var(--hl-sky) calc(100% - 0.4em), color-mix(in srgb, var(--hl-sky) 70%, transparent) calc(100% - 0.22em), transparent calc(100% - 0.06em)); }
.toc__dots { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted color-mix(in srgb, var(--ink-2) 55%, transparent); transform: translateY(-0.3em); }
.toc__page { font-weight: 700; color: var(--plum-ink); font-variant-numeric: tabular-nums; min-width: 2.5ch; text-align: right; }

/* ---------- author ---------- */
.author { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; isolation: isolate; }
main > .author { max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; }
main > .author > * { max-width: none; margin: 0; }
@media (min-width: 64em) { .author { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.author__photo { margin: 0; max-width: 26rem; width: 100%; }
.author__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); box-shadow: var(--shadow); }
.author__text p { max-width: 62ch; }

/* ---------- pricing: one edition stands forward ---------- */
.pricing__head { display: grid; gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.5rem) !important; }
.pricing__head .sub { margin: 0; }
@media (min-width: 64em) { .pricing__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pricing__lead { font-size: var(--step-1); line-height: 1.5; margin: 0; }
.tiers { display: grid; gap: 1.25rem; }
@media (min-width: 60em) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; } }
.tier {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
}
.tier--best { background: var(--field); }
.tier__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; }
.tier__head h3 { font-size: var(--step-2); font-weight: 780; }
.tier__tag { margin: 0; font-weight: 700; font-size: var(--step--1); line-height: 1.2; }
/* badges: the stroke covers the whole label with room around it */
.tier__tag .hl { --hl-pad: 0.2em 0.55em; display: inline-block; margin: 0; }
.tier__price { margin: 0; font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; color: var(--plum-ink); }
.tier__price strong { font-weight: 800; }
.tier__price del { font-size: var(--step-0); color: var(--ink-2); font-weight: 500; }
.tier__lines { margin: 0 0 0.5rem; flex: 1; }
.tier__lines div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--rule); font-size: var(--step--1); }
.tier--best .tier__lines div { border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.tier__lines dt { color: var(--ink-2); }
.tier__lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

.guarantee { display: flex; gap: 1rem; align-items: flex-start; max-width: 44rem !important; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0 !important; }
.guarantee .icon { width: 2.4rem; height: 2.4rem; color: var(--plum-ink); }
.guarantee h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.guarantee p { margin: 0; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { background: var(--field); }
.faq__list { max-width: 50rem; margin: 0; }
.faq details { border-bottom: 2px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 700;
  font-size: var(--step-1);
}
.faq summary:hover { color: var(--plum-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 1rem; height: 1rem; margin-top: 0.35em; color: var(--plum-ink); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; color: var(--ink-2); max-width: 62ch; }
.faq > .faq__list { margin-inline: auto; }
@media (min-width: 64em) { .faq > .faq__list { margin-left: max(0px, calc((100% - var(--wide)) / 2)); } }

/* ---------- links ---------- */
.links__list { list-style: none; padding: 0; display: grid; gap: 0 3rem; }
@media (min-width: 48em) { .links__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.links__list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); font-weight: 650; font-size: var(--step-1); text-decoration: none; color: var(--ink); }
.links__list a:hover { color: var(--plum-ink); }
.links__list .icon { color: var(--plum-ink); }

/* ---------- closing: the one full plum field ---------- */
main > .closing { background: #943867; color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.5rem; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
main > .closing > * { margin: 0; }
.closing__cover { width: 6.5rem; border-radius: 3px; box-shadow: 0 18px 30px -14px rgb(0 0 0 / 0.55); transform: rotate(-4deg); }
.closing .btn { font-size: var(--step-1); padding: 0.9em 1.8em; }

/* ---------- footer ---------- */
.foot { background: var(--paper); border-top: 1px solid var(--rule); padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem; font-size: var(--step--1); color: var(--ink-2); }
.foot__inner { max-width: var(--wide); margin: 0 auto; display: grid; gap: 2rem; }
@media (min-width: 56em) { .foot__inner { grid-template-columns: 1.2fr 1.2fr 1fr; } }
.foot__title { font-weight: 780; color: var(--ink); font-size: var(--step-0); margin-bottom: 0.2rem; }
.foot__social { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 1rem 0 0; }
.foot__social a { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--field); color: var(--ink); }
.foot__social a:hover { background: var(--hl-sky); color: var(--hl-ink); }
.foot__nav { display: grid; gap: 0.6rem; align-content: start; }
.foot__note { max-width: var(--wide); margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* ---------- sticky buy bar (phones) ---------- */
.sticky { display: none; }
@media (max-width: 47.99em) {
  .js .sticky:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -10px 24px -14px rgb(20 50 56 / 0.35);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
  }
  .sticky p { margin: 0; line-height: 1.3; font-size: var(--step--1); }
  .sticky p span { display: block; color: var(--ink-2); }
  .sticky.is-on { transform: none; }
  .page-home .foot { padding-bottom: 6rem; }
}

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--field) 96%, transparent);
  color: var(--ink);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: color-mix(in srgb, var(--field) 80%, transparent); }
.lightbox figure { margin: 0; display: grid; gap: 1rem; justify-items: center; padding: 4.5rem 1rem 2rem; }
.lightbox img { max-width: min(92vw, 84rem); max-height: 78dvh; width: auto; background: #fff; border-radius: 3px; box-shadow: var(--shadow); }
.lightbox figcaption { font-size: var(--step--1); font-weight: 600; text-align: center; color: var(--ink-2); }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.lightbox__btn:hover { background: var(--hl); color: var(--hl-ink); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }

/* ---------- campaign banner ---------- */
.campaign { background: #943867; color: #fff; text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem) !important; }
.campaign__title { font-size: var(--step-3); font-weight: 800; max-width: 30ch; margin: 0 auto 1.75rem; }
.countdown { margin: 0 auto 1.75rem; }
.countdown__intro { margin: 0 0 0.75rem; font-weight: 700; }
.countdown__units { display: none; justify-content: center; gap: clamp(0.5rem, 2vw, 1.25rem); }
.countdown.is-live .countdown__units { display: flex; }
.countdown.is-live .countdown__static { display: none; }
.countdown:not(.is-live) .countdown__intro { display: none; }
.countdown__unit { display: grid; min-width: 4.75rem; padding: 0.75rem 0.5rem; background: #fff; color: #141414; border-radius: 12px; box-shadow: 0 14px 26px -16px rgb(0 0 0 / 0.5); }
.countdown__num { font-size: var(--step-3); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: #7a2d55; }
.countdown__label { font-size: 0.85rem; font-weight: 600; color: #4a5557; }
.countdown__static, .countdown__over { font-weight: 700; margin: 0; }
.campaign .btn--primary { background: #fff; color: #7a2d55; }
.campaign .btn--primary:hover { background: var(--hl); color: var(--hl-ink); }

/* ---------- inner pages ---------- */
.page { padding: clamp(3rem, 7vw, 6rem) var(--gutter) var(--section); }
.page > * { max-width: 52rem; margin-inline: auto; }
.narrow { max-width: 42rem; }
.mailcard { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: 12px; background: var(--field); }
.mailcard div { display: flex; flex-wrap: wrap; gap: 0 0.6rem; padding: 0.3rem 0; }
.mailcard dt { color: var(--ink-2); }
.mailcard dd { margin: 0; font-weight: 700; }
.callout { padding: 0.9rem 1.1rem 0.9rem 1.4rem; border-radius: 10px; background: linear-gradient(var(--hl), var(--hl)) left / 6px 100% no-repeat, var(--field); }
.signature { margin-top: 2rem; }

.contact { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 48em) { .contact { grid-template-columns: 14rem minmax(0, 1fr); } }
.contact__photo { margin: 0; }
.contact__photo img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; box-shadow: var(--shadow-soft); }
.contact h2 { font-size: var(--step-1); margin: 1.5rem 0 0.5rem; }

.ready { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48em) { .ready { grid-template-columns: 12rem minmax(0, 1fr); } }
.ready figure { margin: 0; }
.ready img { box-shadow: var(--shadow); border-radius: 3px; }

.legal { font-size: var(--step--1); }
.legal h2 { font-size: var(--step-1); margin: 2.25rem 0 0.8rem; }
.legal ol, .legal ul { padding-left: 1.4rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal ol.alpha { list-style-type: lower-alpha; }
.legal ol.roman { list-style-type: lower-roman; margin-top: 0.4rem; }

.post .prose { margin: 2rem 0; }
.video { margin: 2rem auto; }
.video__facade { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.video__facade img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s var(--ease); }
.video__facade:hover img { transform: scale(1.02); }
.video__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.5rem; font-weight: 700; text-shadow: 0 2px 8px rgb(0 0 0 / 0.6); }
.video__play .icon { width: 4.5rem; height: 4.5rem; padding: 1.1rem; border-radius: 50%; background: #943867; color: #fff; box-shadow: 0 12px 24px -10px rgb(0 0 0 / 0.6); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video__note { font-size: var(--step--1); color: var(--ink-2); margin-top: 0.6rem; }
.post__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.notfound .sub__cz { max-width: 18ch; }

/* ---------- order page ---------- */
.order { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) var(--section); }
.order > * { max-width: 62rem; margin-inline: auto; }
.order__grid { display: grid; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 52em) { .order__grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); } }
.order__book { margin: 0; width: 100%; max-width: 18rem; justify-self: center; }
.order__book img { filter: drop-shadow(0 18px 24px rgb(20 50 56 / 0.25)); }

.order__form { background: var(--field); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.order__product { font-size: var(--step-2); font-weight: 780; margin-bottom: 1.25rem; }
.order__sum { margin: 0 0 1.5rem; }
.order__sum div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.order__sum dt { color: var(--ink-2); }
.order__sum dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.order__total { border-bottom: 0 !important; padding-top: 0.9rem !important; font-size: var(--step-1); }
.order__total dt { color: var(--ink) !important; font-weight: 700; }
.order__total dd { font-size: var(--step-2); color: var(--plum-ink); }
.order__note { margin: 0 0 1rem; font-size: var(--step--1); font-weight: 700; }
.order__back { margin: 1.25rem 0 0; text-align: center; font-size: var(--step--1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
