@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/figtree.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/caveat.woff2") format("woff2");
}

:root {
  --paper: #f6f3ea;
  --paper-2: #ece7da;
  --sheet: #fffdf7;
  --grid: rgba(39, 64, 245, 0.075);
  --ink: #16181d;
  --ink-2: #4b4f5a;
  --ink-3: #80838c;
  --line: rgba(22, 24, 29, 0.14);
  --der: #2740f5;
  --die: #e5483b;
  --das: #139158;
  --marker: #e6f76a;
  --postit: #ffe766;
  --margin-red: rgba(229, 72, 59, 0.45);
  --radius: 16px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.08), 0 16px 34px -16px rgba(22, 24, 29, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.notebook {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1.1em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 110;
  margin: 0;
}
h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--der);
}

mark {
  background: linear-gradient(100deg, transparent 2%, var(--marker) 4%, var(--marker) 96%, transparent 98%) 0 62% / 100% 58% no-repeat;
  color: inherit;
  padding: 0 0.08em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}

.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.hand {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  color: var(--der);
}

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--die);
}

/* Article chips der / die / das */
.art {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.42em;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.35em 0.6em 0.4em;
  border-radius: 999px;
  color: #fff;
  vertical-align: middle;
  position: relative;
  top: -0.12em;
}
p .art,
small .art {
  font-size: 13px;
  top: -1px;
}
.art--der { background: var(--der); }
.art--die { background: var(--die); }
.art--das { background: var(--das); }

/* ---------- Ad strip + header ---------- */
.adbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
}
.adbar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 4px 0;
}
.adbar b {
  flex: none;
  color: var(--ink);
  background: var(--marker);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 243, 234, 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.brand__name i {
  font-weight: 400;
  color: var(--der);
}
.brand__tag {
  display: none;
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.nav {
  display: flex;
  gap: 2px;
}
.nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-2);
}
.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--die);
  text-underline-offset: 4px;
}
.nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}
.nav a:not([aria-current]):not(:first-child) {
  display: none;
}
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--das), var(--der) 50%, var(--die));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 14px;
  background: var(--der);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  border: 2px solid var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn::after {
  content: "→";
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn--ink {
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--der);
}
.btn--ink:hover {
  box-shadow: 6px 6px 0 var(--der);
}

/* ---------- Cover ---------- */
.cover {
  padding: 44px 0 56px;
}
.cover__grid {
  display: grid;
  gap: 48px;
}
.stamp {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--die);
  border: 2px solid var(--die);
  padding: 5px 12px;
  border-radius: 6px;
  transform: rotate(-3deg);
}
.cover__issue {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.cover h1 {
  font-size: clamp(40px, 4vw, 76px);
}
.circled {
  position: relative;
  white-space: nowrap;
}
.circled::after {
  content: "";
  position: absolute;
  inset: -0.08em -0.18em -0.02em;
  border: 3px solid var(--die);
  border-radius: 48% 52% 46% 54% / 58% 42% 58% 42%;
  transform: rotate(-3deg);
  pointer-events: none;
}
.hand--cover {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 14px 0 22px;
  color: var(--die);
  font-size: 28px;
  transform: rotate(-2deg);
}
.hand--cover svg {
  display: none;
  width: 90px;
  height: 60px;
  flex: none;
}
.lede {
  font-size: clamp(19px, 1.9vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}
.byline {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  max-width: 46ch;
}

.cover__photo {
  position: relative;
  margin: 0;
  padding-bottom: 150px;
}

/* ---------- Polaroid ---------- */
.polaroid {
  position: relative;
  margin: 0;
  background: #fff;
  padding: 12px 12px 14px;
  box-shadow: var(--shadow);
  border-radius: 3px;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1px;
}
.cover__photo .polaroid img {
  aspect-ratio: 5 / 4;
  object-position: 70% 50%;
}
.polaroid--tilt-r {
  transform: rotate(1.6deg);
}
.polaroid--tilt-l {
  transform: rotate(-1.8deg);
}
.polaroid__hand {
  display: block;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ink);
  padding: 12px 4px 0;
}
.tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 30px;
  margin-left: -55px;
  background: rgba(230, 247, 106, 0.7);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  z-index: 2;
}
.polaroid--tilt-l .tape {
  transform: rotate(5deg);
  background: rgba(255, 231, 102, 0.75);
}

/* ---------- Chat bubbles ---------- */
.chat {
  display: grid;
  gap: 8px;
}
.chat--cover {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  max-width: 340px;
  z-index: 3;
}
.bubble {
  margin: 0;
  max-width: 88%;
  padding: 11px 16px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.45;
  box-shadow: 0 8px 20px -12px rgba(22, 24, 29, 0.5);
}
.bubble--in {
  justify-self: start;
  background: #fff;
  border-bottom-left-radius: 6px;
}
.bubble--out {
  justify-self: end;
  background: var(--der);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.chat__status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  animation: blink 1.6s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* ---------- Lexicon ---------- */
.lexicon {
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 22px 22px;
  box-shadow: 6px 6px 0 var(--ink);
  margin-bottom: 40px;
}
.lexicon__head {
  display: grid;
  gap: 8px 40px;
  margin-bottom: 22px;
}
.lexicon__head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.lexicon__head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  align-self: end;
}
.lexicon__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: lex;
}
.lexicon__list li {
  counter-increment: lex;
}
.lexicon__list a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 10px;
  padding: 12px 14px 12px 44px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.2s, transform 0.2s;
}
.lexicon__list a::before {
  content: counter(lex, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.lexicon__list a:hover {
  background: #fff;
  transform: translateY(-2px);
}
.lexicon__list .art {
  font-size: 12px;
  top: 0;
}
.lexicon__list b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}
.lexicon__list small {
  grid-column: 2;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.35;
}

/* Side register tabs */
.tabs {
  display: none;
}

/* ---------- Chapters ---------- */
.chapter {
  padding: 56px 0 24px;
}
.chapter__grid {
  display: grid;
  gap: 28px;
}
.entry {
  position: relative;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}
.entry__no {
  display: block;
  font-family: var(--hand);
  font-size: 30px;
  font-weight: 700;
  color: var(--die);
  line-height: 1;
  margin-bottom: 6px;
}
.entry__word {
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: -0.02em;
  line-height: 1;
  word-break: break-word;
}
.entry__word .art {
  margin-right: 0.1em;
}
.entry__meta {
  margin: 12px 0 8px;
  font-size: 14px;
  color: var(--ink-3);
  font-style: italic;
}
.entry__def {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
  max-width: 44ch;
}
.entry__def b {
  color: var(--die);
  font-weight: 600;
}
.entry__def i {
  color: var(--ink-2);
}

.chapter__body {
  max-width: 680px;
  min-width: 0;
}
.chapter__lead {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 20px;
  max-width: 24ch;
}
.first::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 82px;
  line-height: 0.82;
  padding: 8px 12px 0 0;
  color: var(--der);
}
.say {
  margin: 28px 0 8px;
  padding: 0 0 0 22px;
  border-left: 4px solid var(--marker);
}
.say p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  margin-bottom: 12px;
}
.say cite {
  font-style: normal;
  font-size: 14px;
  color: var(--ink-2);
}
.note {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 14px;
}

.margin {
  display: grid;
  gap: 16px;
  align-content: start;
  max-width: 420px;
}
.margin > .hand {
  margin: 0;
  transform: rotate(-2deg);
}
.margin--note .hand {
  font-size: 28px;
}
.margin__cap {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 6px 0 0;
}

/* Clocks */
.clocks {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  margin: 30px 0 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
}
.clock {
  text-align: center;
}
.clock svg {
  width: min(170px, 100%);
  margin: 0 auto 12px;
  color: var(--ink);
}
.clock__face {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 2.5;
}
.clock__ticks {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-dasharray: 1.4 25.83;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}
.clock__slice {
  fill: none;
  stroke-width: 46;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}
.clock__slice--die { stroke: var(--die); }
.clock__slice--der { stroke: var(--der); }
.clock__slice--range {
  stroke: rgba(39, 64, 245, 0.25);
}
.clock p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}
.clock p b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
  margin-bottom: 4px;
}
.clocks__vs {
  align-self: center;
  font-family: var(--hand);
  font-size: 30px;
  color: var(--die);
  margin-top: -40px;
}

/* Conjugation table */
.conj {
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.conj__title {
  margin: 0;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.conj__title span {
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 600;
  color: var(--marker);
  margin-left: 8px;
}
.conj table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}
.conj th,
.conj td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.conj thead th {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 0;
  padding-bottom: 8px;
}
.conj td:first-child {
  font-family: var(--hand);
  font-size: 26px;
  font-weight: 700;
  color: var(--die);
  width: 56px;
  line-height: 1;
}
.conj tbody th {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: var(--der);
  white-space: nowrap;
  line-height: 1.1;
}
.conj tbody tr:last-child {
  background: rgba(230, 247, 106, 0.45);
}
.conj sup {
  color: var(--die);
}

@media (max-width: 639px) {
  .conj thead {
    display: none;
  }
  .conj tr {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }
  .conj th,
  .conj td {
    padding: 0;
    border: 0;
  }
  .conj td:last-child {
    grid-column: 2;
    margin-top: 6px;
    font-size: 15px;
  }
}

/* Worksheet */
.sheet {
  position: relative;
  background: var(--sheet);
  border-radius: 6px;
  padding: 34px 26px 28px 52px;
  box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(transparent 0 35px, rgba(39, 64, 245, 0.12) 35px 36px);
  background-position: 0 20px;
}
.sheet::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 30px;
  bottom: 30px;
  width: 14px;
  background: radial-gradient(circle, var(--paper-2) 6px, transparent 7px) 0 0 / 14px 70px repeat-y;
}
.sheet::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42px;
  width: 2px;
  background: var(--margin-red);
}
.sheet__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--die);
  margin-bottom: 14px;
}
.sheet__task {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.55;
  margin-bottom: 26px;
}
.gap {
  display: inline-block;
  min-width: 3.4em;
  border-bottom: 2px solid var(--ink);
  text-align: center;
  line-height: 1;
}
.gap__answer {
  display: inline-block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.9em;
  color: var(--die);
  transform: rotate(-4deg) translateY(4px);
}
.sheet__bars {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 520px;
}
.sheet__bars div {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.sheet__bars b {
  height: 16px;
  border-radius: 3px;
  background: var(--der);
}
.sheet__bars div:last-child b {
  width: 82%;
  background: repeating-linear-gradient(45deg, var(--ink-3) 0 4px, transparent 4px 8px);
  border: 1px solid var(--ink-3);
}
.sheet__src {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  max-width: 60ch;
}
.hand--check {
  position: absolute;
  right: 22px;
  top: 16px;
  margin: 0;
  color: var(--das);
  font-size: 28px;
  transform: rotate(6deg);
}

/* Post-it */
.postit-row {
  padding: 48px 0 16px;
  display: flex;
  justify-content: center;
}
.postit {
  margin: 0;
  max-width: 560px;
  background: var(--postit);
  padding: 34px 30px 26px;
  transform: rotate(-1.5deg);
  box-shadow: 0 22px 30px -18px rgba(22, 24, 29, 0.45);
  position: relative;
}
.postit::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 90px;
  height: 26px;
  margin-left: -45px;
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(3deg);
}
.postit p {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.15;
  margin-bottom: 14px;
}
.postit cite {
  font-style: normal;
  font-size: 13px;
  color: rgba(22, 24, 29, 0.65);
}

/* Week plan */
.week {
  margin-top: 28px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.week__title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 15px;
}
.week__title span {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--der);
  margin-left: 8px;
  font-weight: 600;
}
.week__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.week__grid > div {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  min-height: 132px;
  border-radius: 8px;
  background: var(--paper);
  padding: 6px 4px;
}
.week__grid b {
  font-size: 12px;
  text-align: center;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.slot {
  display: block;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  padding: 6px 4px;
  text-align: center;
}
.slot--kurs {
  background: var(--ink);
  color: #fff;
  min-height: 92px;
}
.slot--talk {
  align-self: start;
  background: var(--der);
  color: #fff;
  box-shadow: 2px 2px 0 var(--marker);
}

/* Offer card (index card) */
.card-offer {
  position: relative;
  display: grid;
  gap: 32px;
  margin: 48px 0 24px;
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--der);
  padding: 30px 22px 30px;
  background-image: linear-gradient(var(--die), var(--die)), repeating-linear-gradient(transparent 0 33px, rgba(39, 64, 245, 0.1) 33px 34px);
  background-size: 100% 2px, 100% 100%;
  background-position: 0 70px, 0 70px;
  background-repeat: no-repeat, repeat;
}
.card-offer__photo {
  max-width: 320px;
  justify-self: center;
  width: 100%;
}
.card-offer__photo img {
  aspect-ratio: 4 / 5;
}
.card-offer__body h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 18px;
}
.card-offer__body > p {
  color: var(--ink-2);
}
.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 30px;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.checks li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--das);
  border-radius: 6px;
  color: var(--das);
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.fine {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 18px 0 0;
}

/* Story chat */
.chat--story {
  margin-top: 26px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 16px 14px;
}
.chat--story .bubble {
  font-size: 17px;
}
.chat--story .bubble--out {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  padding: 16px 20px;
}
.chat__meta {
  justify-self: end;
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
}

/* FAQ thread */
.thread {
  display: grid;
  gap: 26px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 16px;
}
.qa {
  display: grid;
  gap: 8px;
}
.bubble--q {
  justify-self: end;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-bottom-right-radius: 6px;
}
.bubble--a {
  justify-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  color: var(--ink-2);
  max-width: 92%;
  position: relative;
  padding-left: 52px;
}
.bubble--a::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--der)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 11.2A5.2 5.2 0 0 1 11.2 6h4.6a5.2 5.2 0 0 1 0 10.4h-3.4L8.6 19.4v-3.6A5.2 5.2 0 0 1 6 11.2z' fill='%23fff'/%3E%3Cpath d='M26 20.8a5.2 5.2 0 0 0-5.2-5.2h-4.6a5.2 5.2 0 0 0 0 10.4h3.4l3.8 3v-3.6a5.2 5.2 0 0 0 2.6-4.6z' fill='%23ddf45b'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}
.outro {
  margin: 36px 0 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.5;
}

/* Flashcard CTA */
.flash {
  padding: 64px 0 80px;
  display: flex;
  justify-content: center;
}
.flash__card {
  position: relative;
  width: min(760px, 100%);
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 44px 26px 36px;
  text-align: center;
  box-shadow: 8px 8px 0 var(--ink), 16px 16px 0 var(--marker);
}
.flash__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--marker);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.flash__word {
  font-size: clamp(46px, 8vw, 92px);
  letter-spacing: -0.02em;
}
.flash__meta {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-3);
  margin: 10px 0 16px;
}
.flash__def {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
  max-width: 40ch;
  margin: 0 auto 28px;
}
.flash__def i {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
  font-size: 14px;
  line-height: 1.6;
}
.foot .brand__name {
  color: #fff;
}
.foot .brand__name i {
  color: var(--marker);
}
.foot__grid {
  display: grid;
  gap: 28px;
}
.foot__note {
  max-width: 62ch;
  margin: 18px 0 0;
}
.foot__note strong {
  color: #fff;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.foot__links a:hover {
  color: var(--marker);
}
.foot__copy {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Consent ---------- */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.consent[hidden] {
  display: none;
}
.consent strong {
  font-family: var(--serif);
  font-size: 19px;
}
.consent p {
  color: var(--ink-2);
  margin: 8px 0 16px;
}
.consent__row {
  display: flex;
  gap: 10px;
}
.consent button {
  flex: 1;
  min-height: 46px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 14px var(--sans);
  cursor: pointer;
}
.consent button.is-yes {
  background: var(--ink);
  color: #fff;
}

/* ---------- Legal pages ---------- */
.page {
  width: min(780px, 100% - 32px);
  margin: 0 auto;
  padding: 56px 0 80px;
}
.page h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 14px;
}
.page h2 {
  font-size: 26px;
  margin: 44px 0 14px;
}
.page h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}
.page ul {
  padding-left: 22px;
}
.page a {
  color: var(--der);
}
.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 8px;
  margin-bottom: 14px;
}
.card p {
  margin-bottom: 14px;
}

:focus-visible {
  outline: 3px solid var(--der);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .lexicon {
    padding: 34px 32px 30px;
  }
  .lexicon__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .chat--cover {
    left: -12px;
    right: auto;
    width: 340px;
  }
  .week__grid {
    gap: 8px;
  }
  .slot {
    font-size: 12px;
  }
  .card-offer {
    padding: 36px 36px;
  }
  .flash__card {
    padding: 56px 48px 44px;
  }
  .consent {
    left: auto;
    max-width: 420px;
    right: 24px;
    bottom: 24px;
  }
}

@media (min-width: 900px) {
  .brand__tag {
    display: inline;
  }
  .nav a:not([aria-current]):not(:first-child) {
    display: inline-block;
  }
  .cover {
    padding: 64px 0 72px;
  }
  .cover__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .hand--cover {
    margin: -6px 0 18px 36%;
  }
  .hand--cover svg {
    display: block;
    order: -1;
  }
  .cover__photo {
    padding: 20px 0 150px;
  }
  .chat--cover {
    left: -48px;
  }
  .lexicon__head {
    grid-template-columns: 1fr 1fr;
  }
  .lexicon__list {
    grid-template-columns: repeat(4, 1fr);
  }
  .lexicon__list li:nth-child(n + 5) a {
    background: var(--paper);
  }

  /* notebook: red margin line between text and margin column */
  .chapter {
    padding: 88px 0 32px;
  }
  .chapter__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 72px;
    row-gap: 40px;
    position: relative;
  }
  .entry {
    grid-column: 1 / -1;
  }
  .chapter__body--wide {
    grid-column: 1 / -1;
    max-width: 880px;
  }
  .margin {
    position: relative;
    padding-left: 32px;
  }
  .margin::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--margin-red);
  }
  .card-offer {
    grid-template-columns: 300px 1fr;
    gap: 56px;
    padding: 48px 56px 48px 48px;
    align-items: center;
  }
  .card-offer__photo {
    margin-top: 20px;
  }

  .tabs {
    display: grid;
    gap: 6px;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }
  .tabs a {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    min-width: 46px;
    padding: 7px 12px 7px 10px;
    border-radius: 10px 0 0 10px;
    background: var(--c, var(--ink));
    color: #fff;
    font-size: 0;
    font-weight: 700;
    text-decoration: none;
    opacity: 0.55;
    transform: translateX(6px);
    transition: opacity 0.2s, transform 0.2s, font-size 0.2s;
  }
  .tabs a span {
    font-size: 12px;
  }
  .tabs a:hover,
  .tabs a.is-active {
    opacity: 1;
    transform: none;
    font-size: 13px;
  }
  .t-der { --c: var(--der); }
  .t-die { --c: var(--die); }
  .t-das { --c: var(--das); }

  .foot__grid {
    grid-template-columns: 1.6fr 1fr;
  }
  .foot__links {
    justify-content: flex-end;
    align-content: start;
  }
  .foot__copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .lexicon__list {
    grid-template-columns: repeat(7, 1fr);
  }
  .lexicon__list a {
    grid-template-columns: 1fr;
    padding: 40px 14px 14px;
    min-height: 150px;
    align-content: start;
  }
  .lexicon__list a::before {
    left: 14px;
    top: 14px;
  }
  .lexicon__list .art {
    justify-self: start;
  }
  .lexicon__list small {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
