/* Hand-written, no framework, no build step.

   Three audiences pull in different directions and one stylesheet has to serve
   all of them: a parent on a phone deciding whether to book, a student working
   through a lesson beside them, and an office person reading an aging report on
   a desktop. So: mobile-first, 44px minimum tap targets, 17px form text (below
   that iOS zooms on focus) — and dense multi-column tables that only appear
   once there is room for them. */

:root {
  --ink: #1a1726;
  --muted: #5d5872;
  --faint: #8b869c;
  --line: #e2dff0;
  --bg: #f7f6fb;
  --card: #ffffff;
  --accent: #4a3a7b;
  --accent-soft: #f0edf9;
  --accent-ink: #ffffff;
  --warm: #b5762a;
  --ok: #2f7a52;
  --warn: #8a6a2f;
  --bad: #a33a3a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26, 23, 38, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 16px 16px 72px; }
.wrap.wide { max-width: 1180px; }
.wrap.narrow { max-width: 520px; }

/* --- Header ------------------------------------------------------------- */

header.bar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
header.bar .inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px;
}
header.bar .brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
header.bar .brand span { display: block; font-size: 11px; font-weight: 500; color: var(--faint); }
/* align-items is load-bearing. Without it flex defaults to stretch, so text
   links grow to the height of the Sign out button and their labels sit visibly
   above the button's own centred text. */
header.bar nav {
  margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
header.bar nav a {
  font-weight: 500; color: var(--muted); font-size: 14.5px; text-decoration: none;
  padding: 6px 9px; border-radius: 7px;
}
header.bar nav a:hover { color: var(--accent); background: var(--accent-soft); }
header.bar nav a.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
/* A button that happens to be a link in the nav. `header.bar nav a` above scores
   two classes and two elements, which beats `.btn`'s single class — so without
   these the call-to-action in the header renders as pale grey text on the accent
   fill and reads as disabled. */
header.bar nav a.btn { color: var(--accent-ink); background: var(--accent); }
header.bar nav a.btn:hover { color: var(--accent-ink); background: var(--accent); }
header.bar nav a.btn.ghost { color: var(--muted); background: transparent; }
header.bar nav a.btn.ghost:hover { color: var(--accent); background: transparent; }
header.bar form { display: inline; }
.whoami {
  font-size: 12px; color: var(--faint); border-left: 1px solid var(--line);
  padding-left: 12px; margin-left: 4px;
}

/* --- Type --------------------------------------------------------------- */

h1 { font-size: 24px; margin: 18px 0 6px; line-height: 1.25; }
h2 { font-size: 19px; margin: 26px 0 10px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
p.hint { color: var(--muted); margin: 0 0 18px; }
.lead { font-size: 18px; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.page-head h1 { margin-bottom: 0; }
.page-head .spacer { margin-left: auto; }

/* --- Cards -------------------------------------------------------------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card.tight { padding: 12px 14px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

/* A whole card that is a link. Without this the browser's default link styling
   underlines every word inside it, including the description, and the card reads
   as a paragraph of links rather than one target. */
a.card {
  display: block; text-decoration: none; color: var(--ink);
  transition: border-color .12s ease;
}
a.card:hover { border-color: var(--accent); }
a.card strong { color: var(--accent); display: block; margin-bottom: 3px; }
a.card .small { color: var(--muted); }

/* min() on the track floor is load-bearing: a bare minmax(300px, 1fr) is a
   *hard* minimum, so on a 375px phone the grid overflows and the page scrolls
   sideways. min(300px, 100%) lets the track collapse instead. */
.cards {
  display: grid; gap: 12px; margin-bottom: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.cards.roomy { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.cards.tight-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 26px; line-height: 1.15; }
.stat span { color: var(--muted); font-size: 12.5px; }
.stat.bad b { color: var(--bad); }
.stat.ok b { color: var(--ok); }
.stat.warn b { color: var(--warn); }
/* `a.stat` as well as `.stat a`: several of these tiles *are* the link rather
   than containing one, and the narrower selector left the headline figure
   underlined in link blue — which reads as a broken heading, not a target. */
a.stat, .stat a { text-decoration: none; color: inherit; }
a.stat { transition: border-color .12s ease; }
a.stat:hover { border-color: var(--accent); }

/* --- Forms -------------------------------------------------------------- */

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
label .opt { font-weight: 400; color: var(--faint); }

input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], input[type=search], input[type=date], input[type=time],
input[type=file], textarea, select {
  width: 100%; padding: 11px 12px; font-size: 17px; /* 17px stops iOS zooming */
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 14px; }
.field .help { font-size: 12.5px; color: var(--faint); margin-top: 4px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 18px; font-size: 15.5px; font-weight: 600;
  border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn:hover { filter: brightness(1.2); }
.btn.secondary { background: #fff; color: var(--accent); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); filter: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.small { min-height: 34px; padding: 5px 11px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-size: 18px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Checkbox and radio rows sit horizontally against the block `label` default.
   The whole row is the label, so the text is a tap target too — thumbs miss a
   16px box. */
label.check {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 4px; font-weight: 500; cursor: pointer; font-size: 15px;
}
label.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.actions form { display: contents; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; }

/* --- Flashes ------------------------------------------------------------ */

/* overflow-wrap is load-bearing: the development sign-in link is a 90-character
   URL with no spaces in it, and without this it runs straight out of the flash box
   and off the side of a 400px screen. Long references and email addresses in
   flashes have the same shape. */
.flash {
  padding: 12px 14px; border-radius: 8px; margin-bottom: 12px;
  border: 1px solid; font-size: 15px; overflow-wrap: anywhere;
}
.flash.info    { background: #eef2fa; border-color: #c9d6ef; color: #29477a; }
.flash.success { background: #eef7f1; border-color: #c3e3d0; color: #1f5c3c; }
.flash.warning { background: #fbf5e8; border-color: #ecd9ae; color: #6d5320; }
.flash.danger  { background: #fbeeee; border-color: #eec9c9; color: #7d2a2a; }

/* --- Pills and badges --------------------------------------------------- */

.pill {
  display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid; font-weight: 600; white-space: nowrap;
}
.pill.ok   { color: var(--ok);   border-color: #bfe0cd; background: #f1f9f4; }
.pill.warn { color: var(--warn); border-color: #ead9b4; background: #fdf8ee; }
.pill.bad  { color: var(--bad);  border-color: #ebc6c6; background: #fdf1f1; }
.pill.info { color: #2c5590;     border-color: #c9d6ef; background: #eef2fa; }
.pill.flat { color: var(--muted); border-color: var(--line); background: #fff; }

/* --- Tables ------------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; }
tr.sub td { font-weight: 600; background: #faf9fc; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compact td, table.compact th { padding: 6px 8px; }

/* --- Lists of things you tap -------------------------------------------- */

ul.plain { list-style: none; margin: 0; padding: 0; }

.stop {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; margin-bottom: 10px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
}
.stop:hover { border-color: var(--accent); }
/* Wide enough for "12:00pm" at this weight, and no narrower. At 40px the time
   overflowed its box and printed straight through the student's name on a 390px
   screen — which is the width this screen is actually used at. */
.stop .seq {
  flex: none; min-width: 68px; text-align: left;
  font-weight: 700; font-size: 16px; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stop .seq small { display: block; font-size: 11px; font-weight: 500; color: var(--faint); }
.stop .body { flex: 1; min-width: 0; }
.stop .body strong { display: block; font-size: 15.5px; }
.stop .body .meta { color: var(--faint); font-size: 12.5px; margin-top: 3px; }
.stop .body .note { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.stop .tail { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.stop.done { opacity: .7; }
.stop.cancelled { opacity: .55; }
.stop.missed { border-left: 4px solid var(--bad); }

/* --- Booking ------------------------------------------------------------ */

.offer {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: 14px; margin-bottom: 12px;
}
.offer h3 { margin: 0 0 2px; font-size: 17px; }
.offer .who { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); }
.slots button {
  min-height: 52px; font-size: 15.5px; font-weight: 600; font-family: inherit;
  border: 1px solid var(--accent); border-radius: 8px;
  background: #fff; color: var(--accent); cursor: pointer;
}
.slots button:hover { background: var(--accent); color: #fff; }
.slots button[disabled] { border-color: var(--line); color: var(--faint); background: #faf9fc; cursor: not-allowed; }

.daystrip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; }
.daystrip a {
  flex: none; text-decoration: none; text-align: center; min-width: 62px;
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px;
  background: #fff; color: var(--muted); font-size: 12.5px; line-height: 1.3;
}
.daystrip a b { display: block; font-size: 16px; color: var(--ink); }
.daystrip a.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.daystrip a.on b { color: var(--accent); }

.steps { display: flex; gap: 6px; margin: 0 0 18px; font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.steps span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.steps span.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.steps span.done { color: var(--ok); border-color: #bfe0cd; }

/* --- Definition grids --------------------------------------------------- */

dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; font-size: 14.5px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }

/* --- Public front page -------------------------------------------------- */

.hero {
  background: linear-gradient(165deg, #4a3a7b 0%, #382c5e 100%);
  color: #fff; padding: 48px 16px 44px; text-align: center;
}
.hero h1 { font-size: 30px; margin: 0 0 10px; color: #fff; }
.hero p { max-width: 620px; margin: 0 auto 22px; color: #d6d0ea; font-size: 17px; }
.hero .btn { background: #fff; color: var(--accent); border-color: #fff; }
.hero .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero .nextslot {
  display: inline-block; margin-top: 20px; font-size: 13.5px; color: #cfc7e6;
  border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px;
}
.hero .nextslot b { color: #fff; }

.stepgrid { counter-reset: step; }
.stepgrid .card h3::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; margin-right: 8px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px;
}

.coach { display: flex; gap: 14px; align-items: flex-start; }
.coach .initials {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.coach .body { min-width: 0; }
.coach .body h3 { margin: 0 0 2px; }
.coach .body .what { color: var(--accent); font-size: 13.5px; font-weight: 600; }

.price { font-size: 22px; font-weight: 700; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }

/* --- Reading and lessons ------------------------------------------------ */

.prose { max-width: 66ch; }
.prose h2 { margin-top: 30px; }
.prose li { margin-bottom: 6px; }
.prose code {
  background: #eeecf3; padding: 1px 5px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
}
.callout {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 12px 14px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 14.5px;
}
/* "Go and do this away from the screen." Visually distinct from a tip because it
   is an instruction rather than an aside, and a student skimming needs to see the
   difference at a glance. */
.doit {
  border: 1px dashed var(--warm); background: #fdf7ef; color: #6b4a17;
  padding: 13px 15px; border-radius: 8px; margin: 16px 0; font-size: 15px;
}
.doit b { color: #6b4a17; }
/* A block, not an inline prefix. Inline, "Try this" ran straight into the first
   word of the instruction and read as one broken sentence. */
.doit::before {
  content: "Try this"; display: block; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px;
  margin-bottom: 4px; opacity: .8;
}

/* Lesson body text is a size up. A seven-year-old reading over a parent's
   shoulder is the reader, and 16px on a phone is small for that. */
.lesson-body { font-size: 17px; line-height: 1.6; }
.lesson-body p { margin: 0 0 14px; }
.lesson-body h3 { font-size: 17px; margin: 24px 0 8px; }

.lesson-aim {
  color: var(--accent); font-weight: 600; font-size: 15px;
  background: var(--accent-soft); border-radius: 8px; padding: 9px 13px;
  margin: 0 0 18px;
}

.progress-rail {
  display: flex; gap: 3px; margin: 0 0 6px;
}
.progress-rail i {
  flex: 1; height: 6px; border-radius: 3px; background: var(--line);
}
.progress-rail i.done { background: var(--accent); }
.progress-rail i.here { background: var(--warm); }

.answers { display: grid; gap: 10px; margin: 14px 0 0; }
.answers.figures { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
/* The whole answer is the target, not a 20px circle beside it. Children tap
   inaccurately and a radio dot alone loses half of them. */
.answers label {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  background: #fff; font-size: 17px; font-weight: 500; margin: 0;
  min-height: 54px;
}
.answers label:hover { border-color: var(--accent); }
.answers label input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent); }
.answers.figures label { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.answers label.chosen { border-color: var(--accent); background: var(--accent-soft); }

.verdict { border-radius: 10px; padding: 14px 16px; margin: 16px 0 0; font-size: 16px; border: 1px solid; }
.verdict.right { background: #eef7f1; border-color: #c3e3d0; color: #1c5637; }
.verdict.wrong { background: #fbf5e8; border-color: #ecd9ae; color: #6d5320; }
.verdict b { display: block; font-size: 17px; margin-bottom: 3px; }

.lesson-nav { display: flex; gap: 10px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.lesson-nav .spacer { margin-left: auto; }

.learner-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 13px; margin-bottom: 16px; font-size: 14px;
}
.learner-bar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.learner-bar select { width: auto; font-size: 15px; padding: 7px 10px; }

/* --- Lesson diagrams ---------------------------------------------------- */
/* The SVG carries no colours of its own -- it draws in currentColor so this block
   is the only place the look is decided, which is what keeps one figure from
   drifting away from the rest. */

.dg-wrap { margin: 18px 0; }
.dg-wrap .dg { max-width: 100%; height: auto; display: block; }
/* A wide figure must scroll inside its own box rather than widening the page.
   Without this the note-page diagram makes the whole article scroll sideways on a
   phone, which breaks every other paragraph too. */
.dg-wrap { overflow-x: auto; }

.dg { color: var(--ink); }

/* The page and its three regions. Region borders are lighter than the page edge
   so the sheet reads as one object with divisions rather than as three boxes. */
.dg-page { fill: #fff; stroke: #4b4660; stroke-width: 1.3; }
.dg-region { fill: none; stroke: var(--line); stroke-width: 1; }
.dg-region.dg-on { fill: #fdf6ea; stroke: var(--warm); stroke-width: 1.6; }

.dg-label {
  font-size: 11px; fill: var(--faint); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.dg-label.dg-on-label { fill: var(--warm); }

/* Written-in content. A different family from the page chrome on purpose: it has
   to read as something a student wrote rather than as part of the form. */
.dg-hand {
  font-size: 11.5px; fill: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dg-title { font-weight: 700; }
.dg-cue { fill: var(--muted); }

/* A block of notes on its own, for good-versus-bad comparisons. */
.dg-card { fill: #fff; stroke: var(--line); stroke-width: 1.2; }
.dg-card.dg-good { stroke: var(--ok); }
.dg-card.dg-bad { stroke: var(--bad); }
.dg-card.dg-focus { stroke: var(--warm); }

.dg-before { fill: var(--muted); }
.dg-after { fill: var(--ink); font-weight: 700; }
.dg-arrow { stroke: var(--warm); stroke-width: 1.6; fill: none; }

.dg-verdict { font-size: 11px; fill: var(--muted); font-weight: 600; }
.dg-verdict.dg-bad { fill: var(--bad); }
.dg-verdict.dg-good { fill: var(--ok); }

.dg-caption { font-size: 13px; color: var(--muted); margin: 6px 0 0; }


/* --- Timetable ---------------------------------------------------------- */

.tt { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.tt .day {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; box-shadow: var(--shadow);
}
.tt .day h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.tt .day.today { border-color: var(--accent); }
.tt .day.today h3 { color: var(--accent); }
.tt .slot {
  display: block; text-decoration: none; color: var(--ink);
  border-top: 1px solid var(--line); padding: 7px 0; font-size: 13.5px;
}
.tt .slot:first-of-type { border-top: 0; }
.tt .slot b { display: block; font-variant-numeric: tabular-nums; }
.tt .slot .who { color: var(--muted); }
.tt .slot.cancelled { opacity: .5; text-decoration: line-through; }

/* --- Misc --------------------------------------------------------------- */

.empty { color: var(--muted); padding: 24px 16px; text-align: center; font-size: 15px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }

details.panel summary {
  cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 600;
  list-style: none; padding: 6px 0;
}
details.panel summary::-webkit-details-marker { display: none; }
details.panel summary::before { content: "+ "; }
details.panel[open] summary::before { content: "− "; }
details.panel .panel-body { padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }

footer.foot {
  border-top: 1px solid var(--line); background: var(--card);
  padding: 22px 16px; color: var(--faint); font-size: 13px;
}
footer.foot .inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 14px; flex-wrap: wrap; }
footer.foot a { color: var(--muted); text-decoration: none; }
footer.foot a:hover { color: var(--accent); }

/* The header is the one piece of chrome on every screen, including a phone in a
   kitchen. Below 620px the tagline is dropped and the brand shrinks — otherwise
   "My Coach Music School" wraps onto three lines and pushes the navigation into
   a column, which is most of a phone screen spent on a logo. */
@media (max-width: 620px) {
  header.bar .inner { padding: 8px 12px; gap: 8px; }
  header.bar .brand { font-size: 14px; line-height: 1.25; }
  header.bar .brand span { display: none; }
  header.bar nav { gap: 2px; }
  header.bar nav a { padding: 5px 7px; font-size: 13.5px; }
  .whoami { display: none; }
  .wrap { padding: 12px 12px 64px; }
}

@media (min-width: 760px) {
  h1 { font-size: 28px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 18px; }
}

@media print {
  header.bar, footer.foot, .actions, .btn, .steps, .lesson-nav { display: none !important; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; padding: 0; }
  .wrap { max-width: none; padding: 0; }
}
