/* Between the Lines mockup site. Calm editorial layout on the brand palette: cream page, white cards, Caladea headings,
   Atkinson Hyperlegible text. The exercise-book ruled lines appear only inside the logo and the one hero panel. */

@font-face { font-family: "Caladea"; src: url(/assets/fonts/Caladea-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caladea"; src: url(/assets/fonts/Caladea-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Caladea"; src: url(/assets/fonts/Caladea-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/assets/fonts/AtkinsonHyperlegible-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/assets/fonts/AtkinsonHyperlegible-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/assets/fonts/AtkinsonHyperlegible-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --cream: #FAF5E9;      /* page */
  --paper: #FFFFFF;      /* cards */
  --lilac: #F3F0F8;      /* tinted bands and panels */
  --blue: #EBF2F8;
  --ink: #21122B;        /* body text: 16.3 to 1 on cream */
  --aubergine: #4A2545;  /* headings, dark band */
  --violet: #6E44A8;     /* accent: 6.3 to 1 on cream */
  --violet-dark: #5A3690;
  --violet-soft: #E9E1F4;
  --mid: #6B5A75;        /* secondary text: 5.8 to 1 on cream */
  --line: #E8DFD0;       /* hairlines on cream and white */
  --line-strong: #D9CEBD;
  --rule: #C9D3E3;       /* exercise-book ruled line */
  --highlight: #F4D67B;
  --radius: 4px;   /* crisp cards (brand: crisp cards, soft buttons) */
  --radius-sm: 3px;
  --radius-btn: 6px; /* soft, not pill-shaped */
  --shadow-1: 0 1px 2px rgba(33, 18, 43, .05), 0 2px 10px rgba(33, 18, 43, .04);
  --shadow-2: 0 2px 6px rgba(33, 18, 43, .07), 0 16px 36px rgba(33, 18, 43, .10);
  --page-shadow: 0 0 0 1px rgba(33, 18, 43, .07), 0 6px 20px rgba(33, 18, 43, .12);
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --head: "Caladea", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--aubergine); margin: 0; font-weight: 400; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.3vw, 42px); line-height: 1.14; letter-spacing: -.005em; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 700; }
h4 { font-size: 18px; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
a { color: var(--violet); font-weight: 700; text-decoration: none; }
a:hover { color: var(--violet-dark); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
ul, ol { padding-left: 1.2em; }
.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: 12px; top: -60px; z-index: 50; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: var(--radius-btn); }
.skip:focus { top: 12px; color: #fff; }

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section + .section:not(.tint):not(.dark) { padding-top: 0; }
.section.tint { background: var(--lilac); }
.section.tint + .section:not(.tint):not(.dark) { padding-top: clamp(64px, 8vw, 104px); }
.section-head { max-width: 720px; margin: 0 0 clamp(32px, 4vw, 48px); }
.section-head .lede, .section-head > p { margin-top: 16px; color: var(--mid); font-size: 19px; }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; }
.section-head.split > div { max-width: 720px; }
.eyebrow { display: block; font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--violet); letter-spacing: .01em; margin: 0 0 14px; }
.lede { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.6; max-width: 36em; }
.muted { color: var(--mid); }
.small { font-size: 15px; line-height: 1.55; }

/* mockup notice */
.notice { background: var(--aubergine); color: #F1E9F3; font-size: 14px; line-height: 1.45; text-align: center; padding: 9px var(--gutter); }
.notice strong { color: #fff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header > .wrap { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: none; border-radius: 12px; }
.brand img { width: 52px; height: 52px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line-strong), 0 1px 3px rgba(33, 18, 43, .08); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); font-size: 16px; padding: 10px 14px; border-radius: var(--radius-btn); line-height: 1.2; }
.nav a:hover { color: var(--violet); background: var(--violet-soft); }
.nav a[aria-current="page"] { color: var(--violet); background: var(--violet-soft); }
.header-cta { flex: none; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-btn); border: 1.5px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font: 700 16px/1 var(--body); cursor: pointer; }
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header .nav, .site-header .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { width: 48px; height: 48px; }
  .mobile-nav { border-top: 1px solid var(--line); background: var(--cream); }
  .mobile-nav.open { display: block; }
  .mobile-nav .wrap { padding-top: 4px; padding-bottom: 24px; }
  .mobile-nav nav { display: grid; }
  .mobile-nav nav a { color: var(--ink); font-size: 20px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .mobile-nav nav a[aria-current="page"] { color: var(--violet); }
  .mobile-nav .btn { margin-top: 20px; width: 100%; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-btn); border: 1.5px solid transparent;
  font: 700 17px/1.1 var(--body); white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-dark); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--violet); border-color: #CFC2E4; }
.btn-secondary:hover { border-color: var(--violet); color: var(--violet-dark); }
.btn-light { background: var(--cream); color: var(--aubergine); }
.btn-light:hover { background: #fff; color: var(--aubergine); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-text { padding: 0 2px; min-height: 44px; color: var(--violet); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.btn-text:hover { color: var(--violet-dark); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 18px; }
.btn .size { font-weight: 400; font-size: 13px; opacity: .78; font-variant-numeric: tabular-nums; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions.tight { gap: 8px; }

/* cards and grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 + p, .card h3 + .meta { margin-top: 8px; }
.card .meta { color: var(--mid); font-size: 15px; margin-bottom: 12px; }
a.card { display: block; color: inherit; font-weight: 400; transition: border-color .15s ease; }
a.card:hover { border-color: var(--violet); color: inherit; }
.icon { width: 44px; height: 44px; margin-bottom: 18px; }
.page-img { background: #fff; border-radius: 4px; box-shadow: var(--page-shadow); }
.tag { display: inline-block; background: var(--violet-soft); color: var(--violet); font-size: 13px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 3px; white-space: nowrap; }
.price { font-family: var(--head); font-size: 28px; line-height: 1; color: var(--aubergine); }
.price small { font-family: var(--body); font-size: 14px; color: var(--mid); margin-left: 6px; }

/* hero */
.hero { padding: clamp(40px, 5.5vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 3.9vw, 54px); line-height: 1.1; margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }
.hero .note { margin-top: 24px; color: var(--mid); font-size: 15px; }
.paper { position: relative; aspect-ratio: 1 / .92; border-radius: 4px; background-color: var(--lilac); overflow: hidden;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, var(--rule) 43px, var(--rule) 44.5px); background-position: 0 30px;
  box-shadow: inset 0 0 0 1px rgba(110, 68, 168, .08); }
.paper::before { content: ""; position: absolute; top: 0; bottom: 0; left: 11%; width: 2px; background: var(--violet); opacity: .85; }
.paper a { position: absolute; display: block; border-radius: 4px; }
.paper img { width: 100%; border-radius: 4px; box-shadow: var(--page-shadow); background: #fff; }
.paper .p1 { left: 17%; top: 9%; width: 41%; transform: rotate(-3deg); }
.paper .p2 { left: 47%; top: 6%; width: 44%; transform: rotate(1.5deg); }
.paper .p3 { left: 30%; top: 58%; width: 62%; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .paper { max-width: 560px; }
}

/* the parts of the scheme: heading on the left, the list on the right */
.split-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.split-intro .section-head { margin-bottom: 20px; }
.parts-list { list-style: none; margin: 0; padding: 0; }
.parts-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.parts-list li:first-child { border-top: 0; padding-top: 2px; }
.parts-list li:last-child { padding-bottom: 2px; }
.parts-list .icon { margin: 2px 0 0; }
.parts-list h3 { font-size: 20px; margin-bottom: 4px; }
.parts-list p { font-size: 17px; }
@media (max-width: 900px) { .split-layout { grid-template-columns: minmax(0, 1fr); } .split-intro { position: static; } }

/* three levels */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.level a.shot { display: block; border-radius: 2px; overflow: hidden; aspect-ratio: 595 / 560; background: #fff; box-shadow: var(--page-shadow); }
.level a.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.level h3 { font-size: 24px; margin-top: 24px; }
.level .aim { color: var(--violet); font-weight: 700; font-size: 16px; margin: 4px 0 10px; }
.level p { font-size: 17px; }
@media (max-width: 820px) { .levels { grid-template-columns: minmax(0, 1fr); max-width: 520px; } .level a.shot { aspect-ratio: 595 / 420; } }

/* how a lesson runs: ruled lists, like the lines of an exercise book */
.lesson-shape { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; }
.lesson-shape h2 { margin-bottom: 14px; }
.lesson-shape .whw { grid-column: 2; }
.ruled { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 28px; }
.ruled dt, .ruled dd { padding: 16px 0; border-top: 1px solid var(--rule); margin: 0; }
.ruled dt { font-family: var(--head); font-size: 22px; color: var(--aubergine); line-height: 1.3; }
.ruled dd { font-size: 17px; }
.ruled dt:first-of-type, .ruled dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.ruled.two dt { font-family: var(--body); font-weight: 700; font-size: 17px; }
.whw { margin-top: 8px; padding: 20px 0 0; border-top: 2px solid var(--violet); }
.whw p { margin-bottom: 14px; }
.whw dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.whw dt { color: var(--violet); font-weight: 700; }
.whw dd { margin: 0; }
.contents-note { margin-top: clamp(40px, 5vw, 64px); max-width: 860px; }
.contents-note h3 { margin-bottom: 16px; }
@media (max-width: 820px) { .lesson-shape { grid-template-columns: minmax(0, 1fr); } .lesson-shape .whw { grid-column: 1; } .ruled { grid-template-columns: minmax(0, 1fr); } .ruled dd { border-top: 0; padding-top: 0; } }

/* look inside */
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; }
.gallery a { color: inherit; font-weight: 400; display: block; }
.gallery .frame { display: flex; align-items: flex-start; justify-content: center; aspect-ratio: 3 / 4; padding: 14px; border-radius: var(--radius-sm); background: var(--lilac); overflow: hidden; transition: background-color .2s ease; }
.section.tint .gallery .frame { background: var(--paper); }
.gallery a:hover .frame { background: var(--violet-soft); }
.gallery img { max-height: 100%; width: auto; border-radius: 3px; box-shadow: var(--page-shadow); background: #fff; }
.gallery .frame.wide { align-items: center; }
.gallery .frame.wide img { width: 100%; height: auto; }
.gallery b { display: block; margin-top: 12px; font-size: 16px; line-height: 1.35; color: var(--aubergine); }
.gallery small { display: block; color: var(--mid); font-size: 14px; line-height: 1.4; margin-top: 2px; }
@media (max-width: 1080px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } .gallery .frame { padding: 10px; } }

/* two-column feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature .media { border-radius: 4px; background: var(--lilac); padding: clamp(24px, 4vw, 48px); display: flex; justify-content: center; }
.section.tint .feature .media { background: var(--paper); }
.feature .media img { max-width: 360px; width: 100%; }
.feature .media a { display: block; }
.feature h2 { margin-bottom: 18px; }
.feature .actions { margin-top: 28px; }
@media (max-width: 820px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature .media { order: -1; } }

/* products */
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product .cover { display: flex; align-items: flex-start; justify-content: center; padding: 28px 28px 0; background: var(--lilac); height: 236px; overflow: hidden; }
.product .cover img { width: 46%; max-width: 168px; border-radius: 3px 3px 0 0; box-shadow: var(--page-shadow); background: #fff; }
.product .cover img + img { margin-left: -14%; transform: translateY(14px); }
.product .body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.product .body h3 { margin-bottom: 4px; }
.product .body > p { font-size: 16px; line-height: 1.55; }
.product .foot { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.product.featured { flex-direction: row; }
.product.featured .cover { flex: 0 0 44%; height: auto; min-height: 380px; align-items: center; padding: 40px; overflow: hidden; }
.product.featured .cover img { width: 44%; max-width: 220px; border-radius: 3px; }
.product.featured .cover img + img { margin-left: -12%; transform: translateY(28px) rotate(2deg); }
.product.featured .body { padding: 40px; }
.product.featured .body h3 { font-family: var(--head); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; }
@media (max-width: 860px) { .product.featured { flex-direction: column; } .product.featured .cover { min-height: 0; height: 280px; padding: 32px 28px 0; align-items: flex-start; } .product.featured .body { padding: 28px; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.5; }
.checks li::before { content: "–"; position: absolute; left: 6px; top: 0; color: var(--violet); font-weight: 700; }
.licences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.licence { border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px 18px; }
.licence.main { border-color: var(--violet); background: #FBF9FD; }
.licence span { display: block; font-size: 15px; color: var(--mid); margin-bottom: 8px; }
@media (max-width: 480px) { .licences { grid-template-columns: minmax(0, 1fr); } }

/* free resources */
.free .card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.free .thumb { display: block; background: var(--blue); padding: 24px 24px 0; height: 190px; overflow: hidden; }
.free .thumb img { width: 62%; margin: 0 auto; border-radius: 3px 3px 0 0; box-shadow: var(--page-shadow); background: #fff; }
.free .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.free .body p { font-size: 16px; }
.free .body .actions { margin-top: auto; padding-top: 16px; }

/* questions */
.faq { max-width: 860px; margin: 0; }
.faq dt { font-family: var(--head); font-weight: 700; font-size: 21px; color: var(--aubergine); line-height: 1.35; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.faq dt:first-of-type { border-top: 0; padding-top: 0; }
.faq dd { margin: 8px 0 24px; max-width: 46em; }

/* closing band and footer */
.dark { background: var(--aubergine); color: #F1E9F3; }
.dark h2, .dark h3 { color: #fff; }
.cta-band { padding: clamp(56px, 7vw, 88px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-band h2 { max-width: 15em; }
.cta-band p { margin-top: 14px; max-width: 36em; color: #E7DCEA; }
.site-footer { background: var(--aubergine); color: #E7DCEA; border-top: 1px solid rgba(255, 255, 255, .12); padding: 56px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; }
.site-footer .logo-full { width: 400px; height: auto; }
.site-footer .logo-mark { display: none; width: 64px; height: 64px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.site-footer nav a { color: #fff; }
.site-footer nav a:hover { color: var(--highlight); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 24px; color: #CDBFD2; line-height: 1.6; }
.site-footer .legal p { margin: 0 0 8px; max-width: 68em; }
.site-footer .legal p:last-child { margin: 0; }
.site-footer .legal .company { color: #E7DCEA; }
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .site-footer .logo-full { display: none; }
  .site-footer .logo-mark { display: block; }
  .site-footer nav { justify-content: flex-start; }
}

/* page headers */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { margin-bottom: 20px; }
.page-head .actions { margin-top: 28px; }
.crumbs { font-size: 15px; color: var(--mid); margin: 0 0 18px; }
.crumbs a { font-weight: 700; }
.kind { color: var(--mid); font-size: 16px; margin: -8px 0 20px; }
.facts { margin-top: 28px; color: var(--mid); font-size: 16px; }
.jump { position: sticky; top: var(--header-h); z-index: 20; background: var(--cream); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jump a { flex: none; color: var(--ink); font-size: 15px; padding: 8px 14px; border-radius: var(--radius-btn); border: 1px solid var(--line-strong); background: var(--paper); }
.jump a:hover { color: var(--violet); border-color: var(--violet); }

/* lessons */
.sequence { padding: 0; overflow: hidden; }
.sequence + .sequence { margin-top: 20px; }
.sequence h3 { font-size: 19px; padding: 18px 24px; background: #FCFAF5; border-bottom: 1px solid var(--line); }
.sequence h3 span { color: var(--mid); font-family: var(--body); font-weight: 400; font-size: 15px; margin-left: 8px; }
.sequence ol { list-style: none; margin: 0; padding: 0; }
.sequence li { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px 20px; padding: 16px 24px; border-top: 1px solid var(--line); align-items: baseline; }
.sequence li:first-child { border-top: 0; }
.sequence .n { font-family: var(--head); font-size: 22px; color: var(--violet); line-height: 1.2; }
.sequence .t a { color: var(--aubergine); }
.sequence .t a:hover { color: var(--violet); }
.sequence .t .tag { margin-left: 8px; vertical-align: 2px; }
.sequence .q { color: var(--mid); font-size: 16px; line-height: 1.5; }
@media (max-width: 760px) { .sequence li { grid-template-columns: 40px minmax(0, 1fr); } .sequence .q { grid-column: 2; } }

/* folders list */
.folders { list-style: none; margin: 0; padding: 0; }
.folders li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.folders li:first-child { border-top: 0; padding-top: 4px; }
.folders .num { font-family: var(--head); font-size: 24px; color: var(--violet); }
.folders b { display: block; color: var(--aubergine); }
.folders span { color: var(--mid); font-size: 16px; }
@media (max-width: 600px) { .folders li { grid-template-columns: 40px minmax(0, 1fr); } .folders li > a { grid-column: 2; justify-self: start; } }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; }
.plan { display: flex; flex-direction: column; }
.plan.main { border: 2px solid var(--violet); }
.plan .price { font-size: 48px; margin: 18px 0 6px; }
.plan .checks { margin-bottom: 28px; }
.plan .actions { margin-top: auto; }
@media (max-width: 760px) { .pricing { grid-template-columns: minmax(0, 1fr); } }

/* library */
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.files li:first-child { border-top: 0; padding-top: 0; }
.files li:last-child { padding-bottom: 0; }
.files .thumb { width: 56px; border-radius: 2px; box-shadow: var(--page-shadow); background: #fff; }
.files .name { font-weight: 700; color: var(--aubergine); line-height: 1.35; }
.files .name small { display: block; font-weight: 400; color: var(--mid); font-size: 15px; line-height: 1.45; margin-top: 3px; }
.files .actions { justify-content: flex-end; }
.files .actions .btn .size { display: inline-block; min-width: 46px; text-align: right; }
.group + .group { margin-top: 24px; }
.group h3 { font-size: 19px; margin-bottom: 18px; }
.group .zip { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .files li { grid-template-columns: 48px minmax(0, 1fr); }
  .files .thumb { width: 48px; }
  .files .actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.decks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.deck { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.deck a.shot { display: block; background: var(--lilac); padding: 16px 16px 0; }
.deck a.shot img { border-radius: 3px 3px 0 0; box-shadow: var(--page-shadow); }
.deck .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.deck .body small { color: var(--violet); font-weight: 700; font-size: 14px; }
.deck .body b { color: var(--aubergine); line-height: 1.35; margin: 2px 0 14px; }
.deck .actions { margin-top: auto; }
@media (max-width: 1080px) { .decks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .decks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .deck .actions .btn { padding: 0 12px; } }
@media (max-width: 420px) { .decks { grid-template-columns: minmax(0, 1fr); } }

/* simple pages */
.message { padding: clamp(64px, 10vw, 140px) 0; }
.message h1 { margin-bottom: 20px; }

/* viewer: the resource's own pages on a pale desk */
body.viewer { background: var(--lilac); }
.vhead { position: sticky; top: 0; z-index: 10; background: var(--cream); border-bottom: 1px solid var(--line); }
.vhead .wrap { max-width: none; height: 60px; display: flex; align-items: center; gap: 16px; }
.vhead .home img { width: 36px; height: 36px; display: block; }
.vhead .back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 16px; white-space: nowrap; }
.vhead .doc-title { flex: 1; min-width: 0; font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--aubergine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vhead .tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#page-status { color: var(--mid); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zoom { display: inline-flex; align-items: center; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-btn); padding: 2px; }
.zoom button { border: 0; background: transparent; color: var(--violet); font: 700 20px/1 var(--body); width: 38px; height: 34px; border-radius: var(--radius-btn); cursor: pointer; }
@media (hover: hover) { .zoom button:hover { background: var(--violet-soft); } }
.zoom button:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; }
.zoom span { min-width: 50px; text-align: center; font-size: 14px; color: var(--violet); font-weight: 700; font-variant-numeric: tabular-nums; }
.vintro { max-width: calc(900px * var(--zoom, 1) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 16px; }
.slides-doc .vintro { max-width: calc(1120px * var(--zoom, 1) + 2 * var(--gutter)); }
.vintro h1 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 8px; }
.vintro p { color: var(--mid); font-size: 16px; margin-bottom: 16px; }
#pages { padding: 8px var(--gutter) 72px; overflow-x: auto; }
.pv { scroll-margin-top: 76px; position: relative; width: calc(min(100%, var(--page-w, 900px)) * var(--zoom, 1)); aspect-ratio: var(--page-ratio, 595 / 842);
  margin: 0 auto 24px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(33, 18, 43, .08), 0 4px 18px rgba(33, 18, 43, .10); }
.pv canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 2px; }
.pv .pn { position: absolute; left: -48px; top: 6px; width: 36px; text-align: right; color: var(--mid); font-size: 13px; }
.slides-doc .pv { --page-w: 1120px; }
.viewer-error { text-align: center; padding: 48px 16px; }
.vfoot { border-top: 1px solid var(--line); padding: 24px var(--gutter) 32px; color: var(--mid); font-size: 14px; line-height: 1.6; }
.vfoot p { max-width: 68em; margin: 0 auto; text-align: center; }
@media (max-width: 1100px) { .pv .pn { display: none; } }
@media (max-width: 760px) { .vhead .doc-title { display: none; } }
@media (max-width: 560px) {
  .vhead .wrap { gap: 10px; height: 56px; }
  .vhead .home img { width: 32px; height: 32px; }
  .zoom span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #page-status { font-size: 14px; }
  .pv { margin-bottom: 14px; }
}

@media print { .notice, .site-header, .mobile-nav, .jump, .site-footer, .cta-band { display: none; } body { background: #fff; } }

/* review Library login */
.login { margin-top: 32px; }
.login label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--aubergine); }
.login-row { display: flex; gap: 12px; flex-wrap: wrap; }
.login input { flex: 1 1 260px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1.05rem; }
.login input:focus { outline: 3px solid var(--violet-soft); border-color: var(--violet); }
.login-error { margin-top: 20px; padding: 12px 16px; border-radius: var(--radius-sm); background: #FBEAEA; color: #8A1F1F; font-weight: 700; }
/* knowledge hub: articles for teachers (added 4 October 2026). A reading column of about 70 characters; figures that
   need room (the three levels) run wider. Block quotes carry the violet margin rule of the exercise book. */
.kh-index { padding-bottom: clamp(64px, 8vw, 104px); }
.kh-list { list-style: none; margin: 0; padding: 0; }
.kh-list li { padding: 28px 0 30px; border-top: 1px solid var(--rule); }
.kh-list li:first-child { border-top: 0; padding-top: 0; }
.kh-list h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; margin-bottom: 10px; }
.kh-list h2 a { color: var(--aubergine); font-weight: 400; }
.kh-list h2 a:hover { color: var(--violet); }
.kh-list p { color: var(--mid); font-size: 17px; max-width: 42em; margin-bottom: 10px; }
.kh-meta { color: var(--mid); font-size: 15px; }
.kh-list .kh-meta { margin: 0; }
.prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); }
.prose > * { grid-column: 2; }
.prose > .kh-wide { grid-column: 1 / -1; }
.kh-head { padding-top: clamp(40px, 6vw, 80px); }
.kh-head h1 { font-size: clamp(36px, 4.4vw, 54px); margin-bottom: 20px; }
.kh-head .kh-meta { margin: 24px 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.kh-body { padding-top: 36px; padding-bottom: 8px; font-size: 19px; line-height: 1.7; }
.kh-body h2 { font-size: clamp(26px, 2.6vw, 32px); margin: 48px 0 16px; }
.kh-body h3 { margin: 32px 0 12px; }
.kh-body > p, .kh-body > ul, .kh-body > ol { margin: 0 0 20px; }
.kh-body > ul, .kh-body > ol { padding-left: 1.3em; }
.kh-body li { margin-bottom: 8px; }
.kh-body li::marker { color: var(--violet); }
.kh-body a { font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(110, 68, 168, .45); }
.kh-body a:hover { text-decoration-color: currentColor; }
.kh-body blockquote { margin: 8px 0 28px; padding: 2px 0 2px 24px; border-left: 3px solid rgba(110, 68, 168, .85);
  font-family: var(--head); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--aubergine); }
.kh-body blockquote p { margin: 0; }
.kh-body figure { margin: 12px 0 36px; }
.kh-body figcaption { color: var(--mid); font-size: 15px; line-height: 1.5; margin-top: 14px; }
.kh-model { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 22px; }
.kh-model .ruled dd { font-size: 18px; line-height: 1.6; }
.kh-model figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.kh-levels .levels { max-width: 1040px; margin: 0 auto; }
.kh-levels figcaption { max-width: 700px; margin-left: auto; margin-right: auto; }
.kh-fade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1040px; width: 100%; margin: 4px auto 32px; }
.kh-level { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; font-size: 16px; line-height: 1.55; }
.kh-level h3 { font-size: 22px; margin: 0; }
.kh-level .aim { color: var(--violet); font-weight: 700; font-size: 15px; margin: 2px 0 16px; }
.kh-level .kh-label { font-weight: 700; font-size: 14px; color: var(--mid); margin: 0 0 8px; }
.kh-level dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 12px; }
.kh-level dt { font-weight: 700; color: var(--aubergine); }
.kh-level dd { margin: 0; }
.kh-level p { margin: 0 0 10px; }
.kh-statement { font-family: var(--head); font-style: italic; font-size: 19px; line-height: 1.45; color: var(--aubergine); }
.kh-page { background: var(--lilac); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); display: flex; justify-content: center; }
.kh-page img { max-width: 420px; width: 100%; }
.kh-body ul.sources { list-style: none; padding: 0; margin: 0; font-size: 16px; line-height: 1.55; color: var(--mid); }
.kh-body ul.sources li { padding: 10px 0; margin: 0; border-top: 1px solid var(--line); }
.kh-body ul.sources li:first-child { border-top: 0; padding-top: 0; }
.kh-body h2#sources { font-size: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.kh-more { padding-top: 40px; padding-bottom: clamp(64px, 8vw, 104px); }
.kh-more h2 { font-size: 24px; margin-bottom: 12px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.kh-more ul { list-style: none; margin: 0; padding: 0; }
.kh-more li { padding: 6px 0; font-size: 18px; }
@media (max-width: 900px) { .kh-fade { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
@media (max-width: 600px) { .kh-body { font-size: 18px; } .kh-body blockquote { font-size: 20px; padding-left: 18px; } .kh-model { padding: 20px 18px 18px; } }
