/* The Grown-Ups' Guide: every school year is an exercise book, explained for the grown-ups. */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("/fonts/kalam-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #1B2440;          /* biro */
  --soft: #3D4A66;
  --muted: #5A6680;
  --shirt: #EAF1F8;        /* school-shirt blue */
  --white: #FFFFFF;
  --rule: #C9DCF0;         /* feint ruled line */
  --grid: #D6E4F2;         /* squared paper */
  --margin: #E04A4F;       /* red margin line */
  --redpen: #C42F2A;
  --sticky: #FFF3B0;
  --cream: #FDF6E3;
  --gold: #FFC72C;
  --gold-edge: #A96F00;
  --line: #C9D6E6;
  --book: #6A3FB5;
  --book-fg: #FFFFFF;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--shirt); color: var(--ink); font: 1.0625rem/1.6 var(--body); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.hand { font-family: var(--hand); font-weight: 700; letter-spacing: 0; }
.label .muted, .name-row .muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 20; border-radius: 6px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lede { font-size: 1.2rem; color: var(--soft); max-width: 58ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 2px solid var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--white); color: var(--ink); }
.btn:hover { background: var(--sticky); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2B3A63; color: var(--white); }
.btn-book { background: var(--book); color: var(--book-fg); border-color: var(--book); }
.btn-book:hover { background: var(--book); filter: brightness(1.08); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 8px; }
.share[data-copied] span::after { content: " (link copied)"; font-weight: 400; }

/* Header */
.site-header { background: var(--white); }
.header-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; padding-top: 14px; }
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-right: auto; padding-bottom: 12px; }
.logo { text-decoration: none; }
.logo-label { position: relative; display: inline-flex; align-items: baseline; gap: 7px; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 3px 40px 4px 12px; box-shadow: 4px 4px 0 var(--book); font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.3; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.logo-the { font-family: var(--hand); font-weight: 700; font-size: .85em; color: var(--soft); }
.tick { position: absolute; right: 6px; top: -10px; width: 30px; height: 24px; fill: none; stroke: var(--redpen); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-6deg); }
.kicker { color: var(--redpen); font-size: 1.35rem; margin: 0 0 4px; }
.strap { color: var(--soft); font-size: .95rem; }
.text-nav { display: flex; gap: 20px; font-weight: 700; padding-bottom: 14px; }
.text-nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.text-nav a:hover, .text-nav a[aria-current] { border-bottom-color: var(--book); }
.spines { display: flex; gap: 5px; align-items: flex-end; }
.spine { display: flex; align-items: flex-end; justify-content: center; width: 42px; height: 42px; padding-bottom: 6px; border-radius: 4px 4px 0 0; background: var(--bg); color: var(--fg); font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-decoration: none; transition: height .15s; }
.spine:hover { height: 50px; }
.spine[aria-current] { height: 60px; }
.book-bar { height: 6px; background: var(--book); }
@media (max-width: 719px) {
  .header-inner { padding-top: 10px; }
  .strap { width: 100%; font-size: .9rem; }
  .text-nav { width: 100%; padding-bottom: 6px; }
  .spines { width: 100%; justify-content: space-between; }
  .spine { flex: 1; width: auto; height: 38px; }
  .spine[aria-current] { height: 50px; }
}

/* Exercise book cover */
.cover { position: relative; background: var(--bg); color: var(--fg); border-radius: 6px 16px 16px 6px; padding: 30px 26px 28px 42px; box-shadow: inset 13px 0 0 rgba(0,0,0,.18), 0 16px 0 -6px rgba(27,36,64,.16); }
.cover-big { max-width: 380px; }
.tilt { transform: rotate(3deg); }
.staple { position: absolute; left: 5px; width: 4px; height: 22px; border-radius: 2px; background: #C9CED8; }
.staple.s1 { top: 22%; } .staple.s2 { bottom: 22%; }
.cover-num { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 13vw, 9rem); line-height: .8; margin: 0 0 26px; }
.label { background: var(--white); color: var(--ink); border-radius: 8px; padding: 10px 16px 12px; box-shadow: inset 0 0 0 2px rgba(27,36,64,.1); font-size: .95rem; }
.lbl-row { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 6px 0 3px; border-bottom: 1px solid var(--rule); }
.lbl-row:last-child { border-bottom: 0; }
.label .hand, .label input { font-family: var(--hand); font-weight: 700; font-size: 1.4rem; line-height: 1.2; }
.label input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; color: var(--ink); }
.label input::placeholder { color: var(--muted); }
.label input:focus { outline: 0; }
.label .lbl-row:focus-within { border-bottom: 2px solid var(--ink); }

/* Paper */
.paper-lined { background-color: var(--white); background-image: linear-gradient(90deg, transparent 47px, var(--margin) 47px, var(--margin) 49px, transparent 49px), repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 36px); }
.paper-squared { background-color: var(--white); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 26px 26px; }
.sticky { background: var(--sticky); border-radius: 4px; box-shadow: 0 8px 0 rgba(27,36,64,.08); }

/* Home */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; padding-top: 56px; padding-bottom: 56px; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.hero-copy .lede { margin-bottom: 28px; }
.hero-book { flex: 1 1 300px; display: flex; justify-content: center; }
.hero-book .cover { width: 320px; }
.form-label { background: var(--white); border-radius: 14px; padding: 20px 22px 24px; box-shadow: inset 0 0 0 2px var(--line), 6px 6px 0 var(--book); max-width: 620px; }
.name-row { display: flex; align-items: baseline; gap: 12px; font-weight: 700; margin-bottom: 16px; }
.name-row input { flex: 1; min-width: 0; border: 0; border-bottom: 2px solid var(--rule); padding: 0 0 2px; font-family: var(--hand); font-weight: 700; font-size: 1.85rem; color: var(--ink); background: transparent; }
.name-row input::placeholder { color: var(--muted); }
.name-row input:focus { outline: 0; border-bottom-color: var(--ink); }
.class-row { font-weight: 700; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; text-decoration: none; background: var(--white); }
.chip:hover { border-color: var(--bg); }
.chip[aria-current] { background: var(--bg); color: var(--fg); border-color: var(--bg); }

.asks { padding-top: 32px; padding-bottom: 56px; }
.asks h2 { max-width: 18ch; }
.ask-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ask { background: var(--white); border-radius: 14px; overflow: hidden; }
.ask-art { height: 190px; padding: 22px 24px; }
.ask-contents { padding-left: 64px; font-family: var(--hand); font-weight: 700; font-size: 1.15rem; line-height: 36px; }
.ask-contents p { margin: 0; }
.ask-sum { display: flex; gap: 22px; align-items: center; }
.sum { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1.15; text-align: right; }
.sum sup { color: var(--redpen); font-size: .7em; }
.sum s { text-decoration-color: var(--redpen); }
.sum-line { border-top: 2px solid var(--ink); }
.sticky-small { padding: 10px 12px; font-family: var(--hand); font-weight: 700; font-size: 1.05rem; line-height: 1.3; transform: rotate(2deg); }
.ask-stars { background: var(--cream); display: flex; flex-wrap: wrap; gap: 12px; align-content: center; justify-content: center; }
.ask-stars .star { width: 56px; height: 56px; }
.ask-body { padding: 20px 24px 26px; }
.ask-body p { margin: 0; color: var(--soft); }

.star { width: 34px; height: 34px; flex: none; fill: none; stroke: #8F7B50; stroke-width: 1.2; stroke-dasharray: 2 2; stroke-linejoin: round; transition: transform .2s; }
.star.on, .goal input:checked ~ .star { fill: var(--gold); stroke: var(--gold-edge); stroke-dasharray: none; }
.goal input:checked ~ .star { transform: rotate(-12deg) scale(1.08); }

.five { background: var(--ink); color: var(--white); border-radius: 20px; padding: 34px 28px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; margin-bottom: 56px; }
.five-copy { flex: 1 1 320px; }
.five-copy p { color: #C9D3E6; margin: 0; }
.five-kicker { color: var(--gold) !important; font-size: 1.35rem; margin-bottom: 4px !important; }
.five h2 { color: var(--white); }
.sticky-big { flex: 1 1 340px; color: var(--ink); padding: 24px 26px; transform: rotate(-1.5deg); box-shadow: 0 10px 0 rgba(0,0,0,.2); }
.five-topic { font-weight: 700; margin-bottom: 4px; }
.five-do { font-size: 1.7rem; line-height: 1.2; margin-bottom: 10px; }
.five-why { margin: 0; font-size: 1rem; }

.fridge-wrap { padding-bottom: 56px; }
.sub { color: var(--soft); margin-bottom: 22px; }
.fridge { list-style: none; margin: 0; padding: 22px; background: var(--white); border-radius: 16px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fridge a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; height: 100%; padding: 4px; border-radius: 8px; }
.fridge a::before { content: ""; height: 8px; border-radius: 4px; background: var(--bg); margin-bottom: 4px; }
.fridge a:hover .f-name { text-decoration: underline; }
.f-when { font-weight: 700; color: var(--soft); font-size: .95rem; }
.f-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.f-note { color: var(--soft); font-size: .95rem; }

.words-strip { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; border-top: 2px dashed var(--line); }
.words-strip h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 6px; }
.words-strip p { margin: 0; color: var(--soft); }
.change { padding-bottom: 64px; max-width: 760px; margin-left: 0; }
@media (min-width: 1248px) { .change { margin-left: calc((100vw - 1200px) / 2); } }
.change h2 { font-size: 1.5rem; }
.change p { color: var(--soft); }

/* Year page */
.year-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-top: 48px; padding-bottom: 48px; }
.year-cover { flex: 0 1 380px; min-width: 260px; }
.year-cover .cover { transform: rotate(-2deg); }
.year-copy { flex: 999 1 480px; min-width: 0; }
.meta { font-weight: 700; color: var(--soft); margin-bottom: 8px; }
.year-copy .lede { margin-bottom: 22px; }

.contents { position: relative; border-radius: 6px; padding: 26px 24px 30px 70px; box-shadow: 0 14px 0 -8px rgba(27,36,64,.12); margin-bottom: 48px; }
@media (min-width: 720px) { .contents { padding: 30px 40px 36px 96px; } }
.contents h2 { font-size: 2rem; line-height: 36px; margin: 0 0 36px; letter-spacing: 0; }
.margin-note { position: absolute; left: 4px; top: 104px; width: 42px; margin: 0; font-size: .85rem; line-height: 1.1; color: var(--redpen); transform: rotate(-8deg); }
.c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 44px; }
.c-col { margin-bottom: 36px; }
.c-col h3 { font-size: 1.2rem; line-height: 36px; margin: 0; letter-spacing: 0; }
.leader { display: flex; gap: 8px; align-items: baseline; text-decoration: none; font-family: var(--hand); font-weight: 700; font-size: 1.2rem; line-height: 36px; }
.leader i { flex: 1; min-width: 16px; border-bottom: 2px dotted #8C9AB4; transform: translateY(-7px); }
.leader:hover span:first-child { text-decoration: underline; }

.subject { margin-bottom: 40px; }
.topic { border-radius: 6px; margin-bottom: 12px; box-shadow: inset 0 0 0 2px var(--line); scroll-margin-top: 16px; }
.topic[open] { box-shadow: inset 0 0 0 2px var(--line), 0 12px 0 -6px rgba(27,36,64,.12); }
.topic summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; min-height: 60px; }
.topic summary::-webkit-details-marker { display: none; }
.topic-title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; background: var(--white); padding: 0 4px; }
.zoom { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); position: relative; }
.zoom::before, .zoom::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.zoom::before { width: 12px; height: 2px; }
.zoom::after { width: 2px; height: 12px; transition: transform .2s; }
.topic[open] .zoom::after { transform: translate(-50%, -50%) scaleY(0); }
.topic-body { padding: 0 18px 22px; }
.paper-lined .topic-body { padding-left: 64px; }
.what { font-size: 1.15rem; background: var(--white); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 4px; line-height: 1.8; }
.how { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 18px 0; }
.how-box { background: var(--white); border-radius: 10px; padding: 14px 16px; box-shadow: inset 0 0 0 2px var(--grid); }
.how-box p { margin: 0; color: var(--soft); }
.how-box .how-h { color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.challenge { padding: 18px 20px; max-width: 560px; transform: rotate(-.6deg); }
.challenge-label { font-weight: 700; margin-bottom: 2px; }
.challenge-q { font-size: 1.6rem; line-height: 1.25; margin-bottom: 14px; }
.challenge-a { margin: 14px 0 0; background: var(--white); border-radius: 6px; padding: 10px 12px; }

.starchart { background: var(--cream); border-radius: 20px; padding: 28px 22px 30px; margin-bottom: 40px; }
@media (min-width: 720px) { .starchart { padding: 34px 36px 38px; } }
.sc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 28px; margin-bottom: 20px; }
.sc-head p { margin: 0; color: var(--soft); max-width: 60ch; }
.sc-head h2 { margin-bottom: 4px; }
.sc-count { font-size: 1.8rem; color: #7A4F00 !important; white-space: nowrap; }
.goal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.goal { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: 12px; padding: 12px 16px; cursor: pointer; min-height: 60px; height: 100%; }
.goal span { flex: 1; }
.goal input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }

.year-bottom { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding-bottom: 48px; }
.card { background: var(--white); border-radius: 16px; padding: 24px 24px 20px; }
.card h2 { font-size: 1.5rem; }
.card dl { margin: 0 0 12px; }
.card dt { font-weight: 700; }
.card dd { margin: 0 0 12px; color: var(--soft); }
.card p { color: var(--soft); }

.pager { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 56px; }
.pager-link { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 6px; border-radius: 8px; }
.pager-link.next { text-align: right; flex-direction: row-reverse; }
.pager-label { display: block; color: var(--soft); font-size: .95rem; }
.pager-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.pager-link:hover .pager-name { text-decoration: underline; }
.mini-book { display: inline-block; flex: none; width: 34px; height: 46px; border-radius: 3px 7px 7px 3px; background: var(--bg); box-shadow: inset 5px 0 0 rgba(0,0,0,.16); vertical-align: middle; }

/* Prose pages: guides, glossary, about */
.sheet-card { background: var(--white); border-radius: 18px; padding: 28px 20px 36px; margin: 36px 0 40px; box-shadow: 0 14px 0 -8px rgba(27,36,64,.1); }
@media (min-width: 720px) { .sheet-card { padding: 44px 56px 52px; } }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.crumbs { color: var(--soft); font-size: .95rem; }
.facts { margin: 20px 0 28px; background: var(--cream); border-radius: 12px; padding: 6px 18px; }
.facts div { display: grid; gap: 2px 16px; padding: 10px 0; border-bottom: 1px dashed #D9CBA6; }
.facts div:last-child { border-bottom: 0; }
@media (min-width: 560px) { .facts div { grid-template-columns: 130px 1fr; } }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.faq dl { margin: 0 0 24px; }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--soft); }
.guide-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.guide-card { display: flex; flex-direction: column; gap: 2px; height: 100%; text-decoration: none; background: var(--white); border-radius: 12px; padding: 14px 16px 16px; box-shadow: inset 0 6px 0 var(--bg), inset 0 0 0 2px var(--line); }
.guide-card:hover .gl-title { text-decoration: underline; }
.gl-year { color: var(--soft); font-weight: 700; font-size: .92rem; padding-top: 4px; }
.gl-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.guide-list-tall { grid-template-columns: 1fr; max-width: 560px; margin-top: 8px; }
.more-guides { padding-bottom: 56px; }
.more-guides h2 { font-size: 1.5rem; }

.term-index { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 32px; }
.term-index a { color: var(--soft); }
.term-group { margin-bottom: 32px; }
.term-group h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.term-group h2 .mini-book { width: 24px; height: 32px; }
.term-group dl { margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.term { background: var(--shirt); border-radius: 10px; padding: 14px 16px; scroll-margin-top: 16px; }
.term:target { box-shadow: 0 0 0 3px var(--book); }
.term dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.term dd { margin: 0; }
.term dd p { margin: 0 0 6px; }
.term-eg { color: var(--soft); font-style: italic; }

/* Practice tools */
.tool { margin: 32px 0; background: var(--sticky); border-radius: 14px; padding: 22px 20px 24px; }
@media (min-width: 720px) { .tool { padding: 28px 30px; } }
.tool h2 { margin-top: 0; }
.mtc-count, .phon-count { color: var(--soft); font-weight: 700; margin-bottom: .2em; }
.mtc-q, .phon-word { font-size: clamp(2.8rem, 10vw, 4.4rem); line-height: 1.05; margin: 6px 0 14px; }
.phon-word { font-family: var(--body); font-weight: 700; letter-spacing: .03em; }
.mtc-timer { height: 10px; background: rgba(27,36,64,.12); border-radius: 5px; overflow: hidden; margin-bottom: 16px; }
.mtc-timer span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; }
.mtc form { display: flex; gap: 10px; }
.mtc input { font: inherit; font-size: 1.6rem; font-weight: 700; width: 7ch; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); color: var(--ink); }
.mtc-score { font-size: 2.2rem; margin-bottom: .2em; }
.phon-badge { min-height: 1.6em; margin: 0; font-weight: 700; }
.phon-badge.is-alien { color: #6A3FB5; }

/* Footer */
.site-footer { background: var(--white); border-top: 6px solid var(--book); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 48px; padding-top: 28px; padding-bottom: 32px; color: var(--soft); font-size: .95rem; }
.footer-inner > div { max-width: 60ch; }
.footer-brand { margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.footer-links a { color: var(--ink); }
.paper-lined > summary { padding-left: 64px; }
.sum { flex: none; white-space: nowrap; }
.sum div { white-space: nowrap; }
@media (max-width: 719px) {
  .year-hero { padding-top: 28px; gap: 28px; }
  .year-cover { flex-basis: 100%; min-width: 0; }
  .year-cover .cover { max-width: 280px; padding: 20px 18px 18px 34px; }
  .year-cover .cover-num { font-size: 5rem; margin-bottom: 16px; }
  .hero { padding-top: 32px; }
  .hero-book .cover { width: 260px; }
  .text-nav { gap: 18px; padding-bottom: 4px; }
}
.nowrap { white-space: nowrap; }
