/* vim.pro — the design system.
 *
 * Two typefaces (IBM Plex Mono for everything terminal, IBM Plex Serif for
 * prose that has to be read), two accents (green for strings/links/success,
 * amber used sparingly for the secondary note), and a warm near-black / cream
 * pair of themes. Two accents, no rainbow.
 *
 * The vim canvas is themed separately, in vimpro.vim, because CSS cannot reach
 * inside a <canvas>. The tokens here and the highlight groups there are a
 * hand-maintained mirror of each other: change a colour in one, change it in
 * the other. */

/* --- fonts (self-hosted; no CDN, keeps the zero-runtime-dependency bar) ----
 * latin subset only. The COEP header the site sends would block a cross-origin
 * font anyway, so these must be same-origin. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/plex-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/plex-mono-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/plex-mono-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/plex-serif-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/plex-serif-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/plex-serif-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/plex-serif-600.woff2') format('woff2'); }

/* --- tokens ---------------------------------------------------------------- */
:root {
  --bg: #0e100e;
  --bg-recessed: #0c0e0c;
  --panel: #141712;
  --border: #242923;
  --border-lift: #2e332b;
  --gutter: #4e534a;
  --dim: #7f847c;
  --dim-bright: #8f948b;
  --prose: #c9cabf;
  --prose-2: #a9aaa0;
  --fg: #d7d7cf;
  --heading: #eceadf;
  --target-fg: #b7b8b0;

  /* accents, defined in oklch (the design's source of truth); the vim side
     carries the hex fallbacks these resolve to */
  --green: oklch(0.74 0.16 148);
  --green-target: oklch(0.64 0.13 148);
  --amber: oklch(0.79 0.13 76);
  --on-fill: #0b0d0b;

  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;

  --radius: 10px;
  --radius-inner: 8px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* the cream theme — applied by the OS preference, or forced with data-theme */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #f5f4ee;
    --bg-recessed: #efeee6;
    --panel: #efeee6;
    --border: #deddd3;
    --border-lift: #d3d2c6;
    --gutter: #a8a89c;
    --dim: #7c7d73;
    --dim-bright: #8a8b7f;
    --prose: #33352d;
    --prose-2: #4a4c42;
    --fg: #1a1b17;
    --heading: #1a1b17;
    --target-fg: #4a4c42;
    --green: oklch(0.5 0.14 150);
    --green-target: oklch(0.5 0.13 150);
    --amber: oklch(0.48 0.13 74);
    --on-fill: #f5f4ee;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f4ee;
  --bg-recessed: #efeee6;
  --panel: #efeee6;
  --border: #deddd3;
  --border-lift: #d3d2c6;
  --gutter: #a8a89c;
  --dim: #7c7d73;
  --dim-bright: #8a8b7f;
  --prose: #33352d;
  --prose-2: #4a4c42;
  --fg: #1a1b17;
  --heading: #1a1b17;
  --target-fg: #4a4c42;
  --green: oklch(0.5 0.14 150);
  --green-target: oklch(0.5 0.13 150);
  --amber: oklch(0.48 0.13 74);
  --on-fill: #f5f4ee;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* the cursor block — the one bit of motion in the product. vim draws the real
   cursor on the canvas; this is only for HTML chrome (the : prompt marks). */
@keyframes cur { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.cur {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  vertical-align: -0.16em;
  background: var(--green);
  animation: cur 1.1s step-end infinite;
}
@media (prefers-reduced-motion: reduce) { .cur { animation: none; } }

/* the wordmark, everywhere */
.brand { font-family: var(--mono); font-weight: 600; text-decoration: none; color: var(--fg); }
.brand .dot { color: var(--green); }

/* =========================================================================
   PLAY  (/p/{id}) — the puzzle as an editor
   ========================================================================= */

.play { min-height: 100vh; display: flex; flex-direction: column; }

/* tabline: wordmark · #id · title · sign in */
.tabline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.tabline .sep { color: var(--gutter); }
.tabline .pid { color: var(--dim); }
.tabline .ptitle { color: var(--fg); }
.tabline .spacer { flex: 1; }
.tabline .who a { color: var(--dim); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tabline .who a:hover { color: var(--fg); }
.avatar { border-radius: 3px; vertical-align: middle; }

/* winbar: technique name · non-spoiling shape · demoted keystroke count */
.winbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.winbar .label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.winbar .tname { font-size: 14px; font-weight: 600; color: var(--green); }
.winbar .shape { font-size: 13px; color: var(--dim-bright); white-space: nowrap; }
.winbar .shape .cap { color: var(--amber); }
.winbar .shape-note { font-size: 12px; color: var(--dim); }
.winbar .spacer { flex: 1; }
.winbar .keys { font-size: 12px; color: var(--dim); white-space: nowrap; }
.winbar .keys b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }

/* note bar */
.notebar {
  padding: 9px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  color: var(--dim-bright);
  font-size: 12.5px;
}

/* the canvas — vim draws both windows (buffer + target) into this one surface.
   Absolute fill: a plain height:100% would not resolve against the flex parent
   (no definite height), and the canvas would collapse to its intrinsic aspect
   ratio — leaving vim painting only the top of the pane. */
.vim-wrap { flex: 1; position: relative; min-height: 360px; background: var(--bg); }
#vim-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#vim-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; padding: 0; border: 0; }

/* command / message line */
.cmdline {
  padding: 8px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--dim-bright);
  font-size: 13px;
}
.cmdline .cur { background: var(--amber); width: 0.55em; margin-left: 2px; }

/* =========================================================================
   THE VERDICT  (overlay on play) — solved / not solved / only works here
   ========================================================================= */

.verdict {
  position: fixed;
  inset: 0;
  display: flex;
  overflow-y: auto;
  padding: 2rem 1rem;
  background: rgba(8, 10, 8, 0.82);
  z-index: 10;
}
.verdict.hidden { display: none; }

.verdict-card {
  margin: auto;
  width: 100%;
  max-width: 470px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
}

/* the statusline that heads each verdict */
.v-status {
  display: flex;
  justify-content: space-between;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 600;
}
.v-status.ok { background: var(--green); color: var(--on-fill); }
/* not-solved is deliberately NEUTRAL — a redirect, not a warning */
.v-status.neutral { background: var(--panel); color: var(--dim-bright); font-weight: 400; border-bottom: 1px solid var(--border); }

.v-body { padding: 18px 20px; }
.v-line { font-size: 13.5px; line-height: 1.6; color: var(--prose); }
.v-line .ok { color: var(--green); font-weight: 600; }
.v-line .caveat { color: var(--amber); font-weight: 600; }
.v-line .redirect { color: var(--heading); font-weight: 600; }
.v-line .drill { color: var(--prose); font-weight: 600; }
.v-typed { font-size: 12px; color: var(--dim); margin-top: 8px; overflow-wrap: anywhere; }
.v-typed code { color: var(--target-fg); font-family: var(--mono); }

/* the loud thing on a solve: the door to the lesson */
.v-door {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--green);
  border-radius: 0 var(--radius-inner) var(--radius-inner) 0;
  text-decoration: none;
}
.v-door:hover { background: var(--panel); }
.v-door .d-label { font-size: 11px; color: var(--dim); }
.v-door .d-title { font-size: 14px; color: var(--green); }
.v-door .d-arrow { font-size: 18px; color: var(--green); }

/* not-solved: two quiet actions */
.v-actions { display: flex; gap: 10px; margin-top: 16px; }
.v-actions a {
  flex: 1;
  text-align: center;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12.5px;
  text-decoration: none;
}
.v-actions .primary { color: var(--fg); }
.v-actions .primary:hover { border-color: var(--green); }
.v-actions .secondary { color: var(--dim); }
.v-actions .secondary:hover { color: var(--fg); }

/* only-works-here: the replayed-on-an-unseen-file diff */
.v-broke-label { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 16px 0 8px; }
.v-diff {
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.85;
  background: var(--panel);
  overflow-x: auto;
}
.v-diff .wanted { color: var(--green); }
.v-diff .got { color: var(--amber); }
.v-diff .tag { color: var(--dim); }
.v-see { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--green); text-decoration: none; }
.v-see:hover { text-decoration: underline; }

/* =========================================================================
   DOC PAGES  (lesson, profile) — a centred reading column
   ========================================================================= */

.site {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
}
.site .brand { font-size: 14px; }
.site .spacer { flex: 1; }
.site .site-right { font-size: 11.5px; color: var(--dim); letter-spacing: 0.04em; }
.site .site-right a { color: var(--dim); text-decoration: none; }
.site .site-right a:hover { color: var(--fg); }

/* =========================================================================
   LESSON  (/l/{id}) — the product. Prose, not a reference card.
   ========================================================================= */

.lesson-doc {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 32px 40px 56px;
}
.lesson-kicker { font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.lesson-title { margin: 0 0 8px; font: 500 33px/1.14 var(--serif); letter-spacing: -0.01em; color: var(--heading); }
.lesson-shape { font: 500 15px var(--mono); color: var(--green); margin-bottom: 6px; }
.lesson-cold { font: italic 400 14px/1.5 var(--serif); color: var(--dim); margin: 0 0 28px; }
.lesson-cold a { color: var(--green); text-decoration: none; }

.lesson-body { font: 400 16.5px/1.72 var(--serif); color: var(--prose); }
.lesson-body p { margin: 0 0 18px; }
.lesson-body p:last-child { margin-bottom: 0; }
/* inline code: calm green tokens, no box — so the paragraph stays whole */
.lesson-body code { font: 500 13.5px var(--mono); color: var(--green); }
/* the one counter-example gets amber, to flag "this is the wrong one" */
.lesson-body code.warn { color: var(--amber); }
.lesson-body em { font-style: italic; }

.one-way {
  margin-top: 30px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--green);
  border-radius: 0 var(--radius-inner) var(--radius-inner) 0;
  padding: 15px 18px;
  background: var(--panel);
}
.one-way .label { font: 600 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.one-way code { font: 500 15px var(--mono); color: var(--fg); }
.one-way code .cap { color: var(--green); }
.one-way code .lit { color: var(--amber); }
.lesson-back { display: inline-block; margin-top: 22px; font: 500 13px var(--mono); color: var(--green); text-decoration: none; }
.lesson-back:hover { text-decoration: underline; }

/* =========================================================================
   PROFILE  (/u/{login}) — the catalogue as an index; gaps lit, not scolded
   ========================================================================= */

.profile-doc {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 40px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}
.identity .id-avatar {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  font: 600 16px var(--mono); color: var(--dim);
  border-radius: 4px; overflow: hidden;
}
.identity .id-avatar img { width: 100%; height: 100%; }
.identity .id-login { font: 500 18px var(--serif); color: var(--heading); }
.identity .id-since { font: 12px var(--mono); color: var(--dim); }
.identity .spacer { flex: 1; }
.identity .id-count { text-align: right; }
.identity .id-count b { font: 600 15px var(--mono); color: var(--fg); }
.identity .id-count b span { color: var(--gutter); }
.identity .id-count .cap { font: 10px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

.section { padding: 20px 26px; }
.section-label { font: 600 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }

.catalogue { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; align-items: baseline; }
.catalogue .rule { grid-column: 1 / 3; height: 1px; background: var(--border); }
.cat-name { font: 500 18px var(--serif); color: var(--fg); padding: 11px 0; }
.cat-name.gap { color: var(--heading); }
.cat-name .shape { font: 12px var(--mono); color: var(--dim); margin-left: 6px; }
.cat-name.gap .shape { color: var(--green); }
.cat-status { font: 12px var(--mono); color: var(--dim); text-align: right; }
.cat-status .tried { color: var(--amber); }
.cat-status a { color: var(--green); text-decoration: none; font-weight: 500; }
.cat-status a:hover { text-decoration: underline; }

.recent { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.recent-list { display: flex; flex-direction: column; gap: 9px; font: 12.5px var(--mono); }
.recent-row { display: flex; gap: 12px; }
.recent-row .r-name { color: var(--prose); min-width: 130px; }
.recent-row .r-keys { color: var(--dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-row .r-keys .tried { color: var(--amber); }
.recent-row .r-when { color: var(--gutter); }
.empty { color: var(--dim); font-family: var(--serif); }

/* =========================================================================
   HOMEPAGE  (/)
   ========================================================================= */

.home { width: 100%; max-width: 1180px; margin: 0 auto; }

.home-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
}
.home-nav .brand { font-size: 16px; }
.home-nav .spacer { flex: 1; }
.home-nav a:not(.btn) { font-size: 13px; color: var(--dim-bright); text-decoration: none; }
.home-nav a:not(.btn):hover { color: var(--fg); }
.btn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--on-fill);
  background: var(--green);
  padding: 12px 20px;
  text-decoration: none;
  display: inline-block;
  border-radius: 3px;
}
.btn:hover { filter: brightness(1.08); }
.btn.sm { font-size: 13px; padding: 7px 14px; }
.btn.ghost { color: var(--fg); background: none; border: 1px solid var(--border-lift); }
.btn.ghost:hover { filter: none; border-color: var(--green); }

.hero {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 52px;
  align-items: center;
  padding: 64px 40px 60px;
}
.hero-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.06em; color: var(--dim-bright); margin-bottom: 26px; }
.hero-kicker .cur { width: 0.5em; vertical-align: -0.12em; }
.hero h1 { margin: 0; font: 500 52px/1.08 var(--serif); letter-spacing: -0.015em; color: var(--heading); max-width: 15ch; }
.hero .lede { margin: 24px 0 0; font: 400 18px/1.6 var(--serif); color: var(--prose-2); max-width: 46ch; }
.hero .lede em { font-style: italic; color: var(--prose); }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.hero-meta { margin-top: 26px; font-size: 12.5px; color: var(--dim); line-height: 1.6; }

/* the buffer proof — an HTML stand-in for the real vim canvas, on marketing */
.proof {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.proof-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.proof-head .pid { color: var(--dim); }
.proof-head .ptitle { color: var(--fg); }
.proof-head .spacer { flex: 1; }
.proof-head .tname { color: var(--green); font-weight: 600; }
.proof-split { display: grid; grid-template-columns: 1fr 1fr; }
.proof-win.left { border-right: 1px solid var(--border); }
.proof-rows { display: grid; grid-template-columns: 30px 1fr; padding: 12px 0; font: 13px/1.7 var(--mono); }
.proof-gutter { text-align: right; padding-right: 10px; color: var(--gutter); border-right: 1px solid var(--border); }
.proof-code { padding-left: 12px; white-space: pre; }
.proof-code .op { color: var(--dim); }
.proof-code .str { color: var(--green-target); }
.proof-code .num { color: var(--amber); }
.proof-code .comment { color: var(--dim); }
.proof-code .curblk { background: var(--green); color: var(--bg); animation: cur 1.1s step-end infinite; }
.proof-win.right .proof-code { color: var(--target-fg); }
.proof-win.right .proof-code .op { color: var(--gutter); }
.proof-status { display: flex; justify-content: space-between; padding: 3px 12px; font-size: 11.5px; }
.proof-status.ok { background: var(--green); color: var(--on-fill); font-weight: 600; }
.proof-status.target { background: var(--panel); color: var(--dim); }

.band { padding: 56px 40px; border-top: 1px solid var(--border); }
.band.recessed { background: var(--bg-recessed); }
.band-label { font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 34px; }

.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.loop-step .n { font: 500 15px var(--mono); color: var(--green); margin-bottom: 12px; }
.loop-step h3 { margin: 0 0 8px; font: 500 22px/1.2 var(--serif); color: var(--heading); }
.loop-step p { margin: 0; font: 400 15px/1.62 var(--serif); color: var(--prose-2); }
.loop-step em { font-style: italic; color: var(--prose); }

.not-a-game {
  border: 1px solid var(--border);
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 34px 40px;
  max-width: 820px;
}
.not-a-game .label { font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.not-a-game .statement { margin: 0; font: 500 24px/1.4 var(--serif); color: var(--heading); max-width: 34ch; }
.not-a-game .explain { margin: 14px 0 0; font: 400 16px/1.62 var(--serif); color: var(--prose-2); max-width: 52ch; }

.cat-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 30px; }
.cat-head .label { font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.cat-head .rule { flex: 1; height: 1px; background: var(--border); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card { border: 1px solid var(--border); border-radius: var(--radius-inner); padding: 16px; text-decoration: none; display: block; }
.cat-card:hover { border-color: var(--green); }
.cat-card .name { font: 500 16px var(--serif); color: var(--heading); }
.cat-card .shape { font: 12px var(--mono); color: var(--green); margin-top: 8px; }
.cat-card.more { border-style: dashed; border-color: var(--border-lift); display: flex; align-items: center; justify-content: center; }
.cat-card.more span { font: 12px var(--mono); color: var(--dim); }

.closing { padding: 64px 40px; border-top: 1px solid var(--border); text-align: center; }
.closing .mark { font-size: 34px; color: var(--heading); margin-bottom: 6px; }
.closing .mark .prompt { color: var(--dim); }
.closing .mark .cur { width: 0.42em; height: 0.9em; vertical-align: -0.02em; }
.closing h2 { margin: 0 auto 22px; font: 500 34px/1.15 var(--serif); color: var(--heading); max-width: 20ch; }

.home-footer {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-recessed);
  font-size: 12.5px; color: var(--dim);
}
.home-footer .brand { font-size: 12.5px; }
.home-footer .spacer { flex: 1; }
.home-footer a { color: var(--dim); text-decoration: none; }
.home-footer a:hover { color: var(--fg); }

/* --- responsive: play is desktop-only, but the doc pages read anywhere ----- */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 24px; }
  .hero h1 { font-size: 40px; }
  .loop-grid { grid-template-columns: 1fr; gap: 28px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .band, .closing { padding: 40px 24px; }
  .site, .home-nav, .home-footer { padding-left: 24px; padding-right: 24px; }
  .lesson-doc { padding: 28px 24px 48px; }
  .lesson-title { font-size: 28px; }
  .home-nav a:not(.btn) { display: none; }
}
