/*
 * recordlearning.com: the one stylesheet.
 *
 * Built on the app's v2 tokens (school/styles/tokens.css in the app): the same
 * names and values for ink, Grove, the sun, the subjects and the children, so
 * the site and the app read as one product. What is the site's own: the warm
 * ground (the app's child ground, #fff8ec) under every page, a warm line to
 * go with it, display sizes for headlines, and the mock-ups' frame.
 *
 * Light by default; dark follows the device (prefers-color-scheme). Motion is
 * a 150 ms fade at most, and none for anyone who asks for less. Every size is
 * in rem, so the browser's own text size grows everything, buttons included.
 *
 * No inline style anywhere: the server sends style-src 'self' (site/README.md).
 */

/* ---------------------------------------------------------------------------
 * Figtree (SIL OFL 1.1), served from this site. No font service.
 * ------------------------------------------------------------------------- */

@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-800-normal.woff2") format("woff2");
}

/* ---------------------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  --font: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.125rem;
  --display-1: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  --display-2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --lede: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);

  --weight-regular: 400;
  --weight-medium: 600;
  --weight-strong: 700;
  --weight-heavy: 800;

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-body: 1.6;
  --tracking-title: -0.02em;
  --tracking-caps: 0.08em;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --section: clamp(3rem, 2rem + 4vw, 6rem);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.125rem;
  --radius-sheet: 1.5rem;
  --radius-pill: 999rem;

  --target-min: 2.75rem;
  --target-action: 3rem;
  --focus-width: 3px;
  --focus-offset: 2px;

  /* A side gutter, and a card's padding, that never eat a narrow screen at a large text size: the usual size until
     a share of the screen's width is less. */
  --gutter: min(1rem, 5vw);
  --pad-card: min(1.5rem, 6vw);
  --pad-roomy: min(2rem, 7vw);
  --content-max: 72rem;
  --measure: 40rem;
  --measure-wide: 46rem;
  --phone-width: 19rem;

  --duration-fast: 150ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* The light palette: the app's v2 light tokens, on the warm ground. */
  --ground: #fff8ec;
  --ground-cool: #f6f7f9;
  --surface: #ffffff;
  --surface-sunken: #eef1f1;
  --line: #eadfcb;
  --line-cool: #e3e7e6;
  --line-strong: #7d8b88;
  --ink: #14201f;
  --ink-muted: #55625f;
  --accent: #0e5e58;
  --accent-hover: #0a4a45;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0ee;
  --accent-soft-ink: #0a4a45;
  --focus: #2563eb;
  --sun: #f4b740;
  --sun-soft: #fcebc4;
  --sun-ink: #14201f;
  --ok: #17663f;
  --ok-surface: #e3f3ea;
  --warn: #7a4f00;
  --warn-surface: #fcf1dc;
  --info: #1c4f94;
  --info-surface: #e6eef9;
  --shadow-card: 0 1px 2px rgb(20 32 31 / 0.06), 0 4px 14px rgb(20 32 31 / 0.05);
  --shadow-lift: 0 24px 60px rgb(20 32 31 / 0.16), 0 4px 12px rgb(20 32 31 / 0.08);

  --mark-ground: #0e5e58;
  --mark-book: #ffffff;
  --phone-frame: #14201f;

  --subj-math: #3b6fd8;
  --subj-math-fill: #e7eefb;
  --subj-math-ink: #1e4fa8;
  --subj-reading: #e0661f;
  --subj-reading-fill: #fcebdf;
  --subj-reading-ink: #9a3412;
  --subj-science: #13997a;
  --subj-science-fill: #dff3ec;
  --subj-science-ink: #0b6b52;
  --subj-history: #8e4ec6;
  --subj-history-fill: #f0e7fa;
  --subj-history-ink: #6b32a8;
  --subj-art: #d23f78;
  --subj-art-fill: #fbe6ee;
  --subj-art-ink: #a8285a;
  --subj-music: #c08a1e;
  --subj-music-fill: #f8efd9;
  --subj-music-ink: #7c5310;

  --kid-1: #f4b740;
  --kid-1-ink: #14201f;
  --kid-2: #bfd8ff;
  --kid-2-ink: #1e4fa8;
  --kid-3: #f3c9d9;
  --kid-3-ink: #8a1f4c;

  --heat-0: #eaeeed;
  --heat-1: #bfe3dd;
  --heat-2: #7cc4b8;
  --heat-3: #2f8f84;
  --heat-4: #0e5e58;
}

@media (min-width: 30em) {
  :root {
    --gutter: 1.5rem;
  }
}

@media (min-width: 64em) {
  :root {
    --gutter: 2.5rem;
  }
}

/* The dark palette: the app's v2 dark tokens. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --ground: #0e1412;
    --ground-cool: #0e1412;
    --surface: #18201e;
    --surface-sunken: #202a27;
    --line: #2a3532;
    --line-cool: #2a3532;
    --line-strong: #7f8e8a;
    --ink: #eef3f2;
    --ink-muted: #a9b6b3;
    --accent: #5fc2b4;
    --accent-hover: #7ad1c5;
    --accent-ink: #0b1715;
    --accent-soft: #1d3532;
    --accent-soft-ink: #bfe9e2;
    --focus: #8ab4ff;
    --sun-soft: #3a3018;
    --ok: #7fd3a3;
    --ok-surface: #183126;
    --warn: #f0c46b;
    --warn-surface: #33290f;
    --info: #93c1f2;
    --info-surface: #172a3d;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 14px rgb(0 0 0 / 0.25);
    --shadow-lift: 0 24px 60px rgb(0 0 0 / 0.5), 0 4px 12px rgb(0 0 0 / 0.3);

    --mark-ground: #5fc2b4;
    --mark-book: #0b1715;
    --phone-frame: #2c3734;

    --subj-math: #7fa6f0;
    --subj-math-fill: #1b2a45;
    --subj-math-ink: #b9cef7;
    --subj-reading: #f0955c;
    --subj-reading-fill: #3a2416;
    --subj-reading-ink: #f8c7a6;
    --subj-science: #3cc9a3;
    --subj-science-fill: #123229;
    --subj-science-ink: #a6e8d4;
    --subj-history: #b98be6;
    --subj-history-fill: #2c1f3d;
    --subj-history-ink: #dcc6f4;
    --subj-art: #ee7fa8;
    --subj-art-fill: #3b1c29;
    --subj-art-ink: #f7c2d6;
    --subj-music: #e0b048;
    --subj-music-fill: #352915;
    --subj-music-ink: #f2d9a1;

    --heat-0: #232d2a;
    --heat-1: #1f4a44;
    --heat-2: #2c7268;
    --heat-3: #47a497;
    --heat-4: #7fd3c6;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
  }
}

/* ---------------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--space-4);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-4);
  font-weight: var(--weight-heavy);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
}

/* Headlines grow with a person's text size, but on a narrow screen never so far that a word no longer fits on a
   line: at the usual size the cap is never reached. */
h1 {
  font-size: min(var(--display-1), 12vw);
}

h2 {
  font-size: min(var(--display-2), 9.5vw);
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-strong);
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
}

p,
ul,
ol,
dl {
  margin: 0 0 var(--space-4);
}

p,
li {
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: var(--space-2);
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 0.12em;
}

strong {
  font-weight: var(--weight-strong);
}

:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--sun-soft);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 50;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--accent);
  font-weight: var(--weight-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--content-max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* Every grid's one column on a phone never grows past the page, whatever its content (a mock-up, a long address),
   so nothing scrolls sideways even at the browser's largest text. */
.split,
.cards,
.cta,
.pricing-grid,
.footer-grid,
.door,
.pairs,
.pairs > div,
.toc ol {
  grid-template-columns: minmax(0, 1fr);
}

.footer-list a,
.door-address,
.fineprint a {
  overflow-wrap: anywhere;
}

/* A reading section: on the page's left edge like every other, its lines kept short. */
.narrow > * {
  max-width: var(--measure-wide);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------------------
 * The mark, drawn inline so it follows the palette
 * ------------------------------------------------------------------------- */

.mark-tile,
.mark-gutter {
  fill: var(--mark-ground);
}

.mark-sun {
  fill: var(--sun);
}

.mark-book {
  fill: var(--mark-book);
}

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--target-action);
  padding: var(--space-2) var(--space-6);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: var(--weight-strong);
  line-height: var(--leading-snug);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.button-small {
  min-height: var(--target-min);
  padding-inline: var(--space-4);
}

.button-wide {
  width: 100%;
}

.button .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-6) var(--space-4);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--target-min);
  font-weight: var(--weight-strong);
}

/* ---------------------------------------------------------------------------
 * The header
 * ------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  min-height: 4.25rem;
  padding-block: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
  margin-right: auto;
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-title);
  line-height: 1.1;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.nav-wide {
  display: none;
}

.nav-list {
  display: flex;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li + li {
  margin-top: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding-inline: var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.nav-list a:hover {
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}

.nav-list a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.35em;
}

.nav-menu {
  position: static;
}

.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  padding-inline: var(--space-3);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-weight: var(--weight-strong);
  list-style: none;
  cursor: pointer;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-menu > summary .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-menu[open] > summary {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-soft-ink);
}

.nav-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--gutter) var(--space-6);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}

.nav-menu-panel .nav-list {
  flex-direction: column;
  gap: 0;
}

.nav-menu-panel .nav-list a {
  width: 100%;
  padding-inline: var(--space-3);
  font-size: var(--text-lg);
}

/* On the narrowest phones the header holds the name and the menu, and Sign in
   waits in the menu; the word "Menu" shows once there is room for it. */
.header-signin {
  display: none;
}

@media (max-width: 29.99em) {
  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav-menu > summary {
    min-width: var(--target-min);
    justify-content: center;
  }
}

@media (min-width: 24em) {
  .header-signin {
    display: inline-flex;
  }
}

@media (min-width: 62em) {
  .nav-wide {
    display: block;
  }

  .nav-menu {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------------------- */

.section {
  padding-block: var(--section);
}

.section-surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-sun {
  background: var(--sun-soft);
}

.section-head {
  max-width: var(--measure-wide);
  margin-bottom: var(--space-10);
}

.section-head p {
  color: var(--ink-muted);
  font-size: var(--lede);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--sun);
  flex: none;
}

.lede {
  color: var(--ink-muted);
  font-size: var(--lede);
  line-height: 1.55;
  max-width: var(--measure);
}

.fineprint {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.note {
  max-width: var(--measure);
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--sun);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
  color: var(--ink);
}

.note p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-16);
  }

  .split-flip > :first-child {
    order: 2;
  }
}

.split-text > :last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
 * The hero
 * ------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) var(--section);
  overflow: hidden;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  margin-bottom: 0;
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 8% 4% auto auto;
  width: min(22rem, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0.35;
}

.page-hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--space-12);
}

.page-hero h1 {
  max-width: 20ch;
}

/* ---------------------------------------------------------------------------
 * Cards and lists
 * ------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards > li + li {
  margin-top: 0;
}

@media (min-width: 48em) {
  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  padding: var(--pad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.section-surface .card {
  background: var(--ground);
}

.card > :last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--ink-muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}

.card-icon-sun {
  background: var(--sun-soft);
  color: var(--ink);
}

.card-kicker {
  margin-bottom: var(--space-2);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.ticks {
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 2rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: calc(0.2em + 0.28rem);
  width: 0.4rem;
  height: 0.62rem;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}

.steps > li {
  position: relative;
  padding-left: 2.75rem;
  counter-increment: step;
}

.steps > li + li {
  margin-top: var(--space-4);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05em;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--text-sm);
  font-weight: var(--weight-heavy);
}

.ui {
  font-weight: var(--weight-strong);
}

.pairs {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}

.pairs > div {
  display: grid;
  gap: var(--space-1) var(--space-8);
  padding: var(--pad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.pairs dt {
  font-weight: var(--weight-strong);
  font-size: var(--text-lg);
}

.pairs dd {
  margin: 0;
  color: var(--ink-muted);
}

/* Term and description side by side only where the list has the page's width; beside a picture, one above the other. */
@media (min-width: 48em) {
  .pairs > div {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .split-text .pairs > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.toc {
  padding: var(--space-5) var(--pad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.toc h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
  letter-spacing: 0;
}

.toc ol {
  display: grid;
  gap: 0 var(--space-6);
  margin: 0;
  padding-left: 1.25em;
}

.toc li + li {
  margin-top: 0;
}

.toc a {
  display: inline-block;
  padding-block: var(--space-2);
  font-weight: var(--weight-medium);
}

@media (min-width: 40em) {
  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .toc ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.section-follow {
  margin-top: var(--space-12);
  align-items: start;
}

.soon {
  display: inline-block;
  margin-left: var(--space-2);
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--sun-soft);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  vertical-align: middle;
}

.section-sun .soon {
  background: var(--surface);
}

/* ---------------------------------------------------------------------------
 * The call to action, pricing and the sign-in page
 * ------------------------------------------------------------------------- */

.cta {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.cta h2 {
  margin-bottom: var(--space-3);
}

.cta p {
  margin-bottom: 0;
  max-width: var(--measure);
}

.cta .actions {
  margin: 0;
}

@media (min-width: 56em) {
  .cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.price-card {
  max-width: 34rem;
  padding: var(--pad-roomy);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sheet);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.price-card h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
  letter-spacing: 0;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}

.price-amount {
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-title);
  line-height: 1;
}

.price-term {
  color: var(--ink-muted);
  font-weight: var(--weight-medium);
}

.pricing-grid {
  display: grid;
  gap: var(--space-10);
  align-items: start;
}

@media (min-width: 56em) {
  .pricing-grid {
    grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
  }
}

.faq h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
}

.faq h3:first-of-type {
  margin-top: 0;
}

.faq p {
  color: var(--ink-muted);
  max-width: var(--measure);
}

.door {
  display: grid;
  gap: var(--space-5);
  max-width: 44rem;
}

.door-card {
  padding: var(--pad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.door-card > :last-child {
  margin-bottom: 0;
}

.door-card h2 {
  font-size: min(var(--text-2xl), 9.5vw);
}

.door-main {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lift);
}

.door-kids {
  background: var(--sun-soft);
  border-color: transparent;
}

.door-address {
  font-weight: var(--weight-strong);
}

.form-row {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-row label {
  font-weight: var(--weight-strong);
}

.hint {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.input {
  width: 100%;
  min-height: var(--target-action);
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.input:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--focus-offset);
}

/* ---------------------------------------------------------------------------
 * Legal pages: plain reading
 * ------------------------------------------------------------------------- */

/* On the page's left edge like every other page, its lines kept to a comfortable length. */
.prose > * {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: var(--space-10);
  font-size: min(var(--text-2xl), 9.5vw);
}

.prose ul {
  padding-left: 1.25em;
}

.banner {
  display: flex;
  gap: var(--space-4);
  max-width: var(--measure);
  margin-bottom: var(--space-8);
  padding: var(--space-5);
  border: 2px solid var(--warn);
  border-radius: var(--radius-lg);
  background: var(--warn-surface);
  color: var(--ink);
}

.banner .icon {
  color: var(--warn);
  margin-top: 0.15em;
}

.banner p {
  margin: 0;
}

.banner p + p {
  margin-top: var(--space-2);
}

.blank {
  padding: 0 0.25em;
  border-radius: 0.25em;
  background: var(--sun-soft);
  color: var(--ink);
  outline: 1px dashed var(--warn);
}

.updated {
  margin-top: var(--space-10);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------------------
 * The footer
 * ------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  padding-block: var(--space-12) var(--space-8);
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--text-md);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.footer-tagline {
  max-width: 22rem;
  margin-top: var(--space-3);
  color: var(--ink-muted);
}

.footer-title {
  margin-bottom: var(--space-2);
  font-size: var(--text-md);
  font-weight: var(--weight-strong);
  letter-spacing: 0;
}

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

.footer-list li + li {
  margin-top: 0;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  color: var(--ink);
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-base {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.footer-base p {
  margin: 0;
}

.footer-base p + p {
  margin-top: var(--space-2);
}

/* ---------------------------------------------------------------------------
 * The mock-ups: the app's screens drawn in HTML with made-up families.
 * They are pictures (aria-hidden), each with a caption that says what it shows.
 * ------------------------------------------------------------------------- */

.shot {
  position: relative;
  margin: 0;
}

.shot figcaption {
  position: relative;
  max-width: 24rem;
  margin: var(--space-5) auto 0;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.phone {
  position: relative;
  width: min(var(--phone-width), 100%);
  margin-inline: auto;
  padding: 0.55rem;
  border-radius: 2.6rem;
  background: var(--phone-frame);
  box-shadow: var(--shadow-lift);
}

.phone-screen {
  overflow: hidden;
  min-height: 30rem;
  padding: var(--space-6) var(--space-4) var(--space-5);
  border-radius: 2.1rem;
  background: var(--ground-cool);
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.phone-screen-child {
  background: var(--ground);
}

.phone-notch {
  width: 5.5rem;
  height: 1.35rem;
  margin: -0.85rem auto var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--phone-frame);
}

/* Every row in a mock-up wraps rather than widen the page, at any text size. */
.app-top,
.app-row,
.photos,
.tabs,
.lens,
.path-next {
  flex-wrap: wrap;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.app-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-title);
}

.app-sub {
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.app-link {
  color: var(--accent);
  font-weight: var(--weight-strong);
  font-size: var(--text-xs);
}

.app-label {
  margin: var(--space-3) 0 var(--space-2);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.app-card {
  padding: var(--space-3);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.app-card + .app-card {
  margin-top: var(--space-2);
}

.app-card-title {
  display: block;
  font-weight: var(--weight-strong);
}

.app-line {
  display: block;
  padding: var(--space-3);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 1.9rem;
  padding: 0.15rem 0.65rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-weight: var(--weight-medium);
}

.chip-math {
  border-color: var(--subj-math);
  background: var(--subj-math-fill);
  color: var(--subj-math-ink);
}

.chip-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: var(--weight-heavy);
  flex: none;
}

.avatar-1 {
  background: var(--kid-1);
  color: var(--kid-1-ink);
}

.avatar-2 {
  background: var(--kid-2);
  color: var(--kid-2-ink);
}

.avatar-3 {
  background: var(--kid-3);
  color: var(--kid-3-ink);
}

.avatar-lg {
  width: 2.25rem;
  height: 2.25rem;
  font-size: var(--text-sm);
}

.app-counts {
  margin: var(--space-2) 0 0;
  color: var(--ok);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
}

.photos {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}

.photo {
  --photo-cut: var(--sun-soft);
  width: 4.25rem;
  height: 4.25rem;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--sun-soft);
  display: grid;
  place-items: center;
}

.pizza {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  /* A pizza in quarters: four cuts, three slices of pepperoni, cheese and crust. */
  background:
    conic-gradient(from 0deg, transparent 0 87deg, var(--photo-cut) 87deg 93deg, transparent 93deg 177deg, var(--photo-cut) 177deg 183deg, transparent 183deg 267deg, var(--photo-cut) 267deg 273deg, transparent 273deg 357deg, var(--photo-cut) 357deg 360deg),
    radial-gradient(circle at 30% 32%, #b8321a 0 9%, transparent 10%),
    radial-gradient(circle at 70% 38%, #b8321a 0 9%, transparent 10%),
    radial-gradient(circle at 42% 72%, #b8321a 0 9%, transparent 10%),
    radial-gradient(circle, #f4b740 0 72%, #c98a2b 74% 100%);
}

.photo-add {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 4.25rem;
  padding: var(--space-2);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
  text-align: center;
}

.app-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: var(--weight-strong);
}

.app-button-small {
  display: inline-flex;
  min-height: 2rem;
  margin: 0;
  padding: 0 0.85rem;
  font-size: var(--text-xs);
}

.app-button-quiet {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
}

.app-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* A row's words keep at least 8rem; with less, its button moves under them. */
.app-row-grow {
  flex: 1 1 8rem;
  min-width: 0;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex: none;
}

.dot-math {
  background: var(--subj-math);
}

.dot-reading {
  background: var(--subj-reading);
}

.dot-science {
  background: var(--subj-science);
}

.dot-history {
  background: var(--subj-history);
}

.dot-art {
  background: var(--subj-art);
}

.dot-music {
  background: var(--subj-music);
}

.done-mark {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  border-radius: 50%;
  background: var(--ok-surface);
  color: var(--ok);
}

.done-mark .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 3;
}

.app-done {
  color: var(--ok);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
}

.app-tag {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: var(--weight-strong);
  letter-spacing: 0.02em;
}

.tag-work {
  background: var(--info-surface);
  color: var(--info);
}

.tag-ask {
  background: var(--warn-surface);
  color: var(--warn);
}

.tag-sort {
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}

.tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.tab {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
  color: var(--ink-muted);
}

.tab-on {
  background: var(--ink);
  color: var(--ground-cool);
}

.lens {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.lens span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  margin: var(--space-5) calc(var(--space-4) * -1) calc(var(--space-5) * -1);
  padding: var(--space-2) var(--space-2) var(--space-4);
  border-top: 1px solid var(--line-cool);
  background: var(--surface);
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  text-align: center;
  color: var(--ink-muted);
}

.tabbar-3 {
  grid-template-columns: repeat(3, 1fr);
  padding-block: var(--space-3) var(--space-4);
}

.tabbar-on {
  color: var(--accent);
  font-weight: var(--weight-strong);
}

.tabbar-record {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--text-lg);
  font-weight: var(--weight-heavy);
}

/* The child's My day: a path of steps. */

.path {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 3px;
  background: var(--line);
}

.path > li {
  position: relative;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.path > li + li {
  margin-top: var(--space-3);
}

.path-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  background: var(--surface);
}

.path-mark-done {
  border-color: var(--ok);
  background: var(--ok);
  color: var(--surface);
}

.path-mark-done .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 3.2;
}

.path-mark-now {
  border-color: var(--sun);
  background: var(--sun);
}

.path-body {
  flex: 1;
  min-width: 0;
}

.path-small {
  padding-top: 0.25rem;
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.path-now {
  padding: var(--space-3);
  border: 2px solid var(--sun);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.path-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.app-hi {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-title);
  line-height: 1.1;
}

.app-howgoing {
  margin: var(--space-1) 0 var(--space-4);
  color: var(--ink-muted);
  font-weight: var(--weight-medium);
}

/* A phone and a second, smaller screen beside it (below it on a phone). */
.shot-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-4);
}

.shot-pair .phone {
  margin-inline: 0;
}

.celebrate {
  width: min(11rem, 100%);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  text-align: center;
  font-size: var(--text-xs);
}

.celebrate-tick {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  background: var(--sun);
  color: var(--sun-ink);
}

.celebrate-tick .icon {
  stroke-width: 3;
}

.celebrate-title {
  display: block;
  font-size: var(--text-md);
  font-weight: var(--weight-heavy);
}

/* A child's Year. */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.stat {
  padding: var(--space-3);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stat-label {
  display: block;
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: var(--weight-strong);
}

.stat-value {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-title);
}

.stat-quiet {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
}

.heat {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 2px;
  margin-top: var(--space-2);
}

.heat span {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--heat-2);
}

.heat .h0 {
  background: var(--heat-0);
}

.heat .h1 {
  background: var(--heat-1);
}

.heat .h3 {
  background: var(--heat-3);
}

.heat .h4 {
  background: var(--heat-4);
}

.subject-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.subject-rows li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--line-cool);
}

.subject-rows li + li {
  margin-top: 0;
}

.subject-rows li:last-child {
  border-bottom: 0;
}

.subject-name {
  flex: 1;
  min-width: 0;
  font-weight: var(--weight-strong);
}

.subject-name small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
}

.subject-hours {
  font-weight: var(--weight-heavy);
}

/* The year-end record, as paper. */

/* Room is kept beside the paper for the sheet stacked behind it, so the stack never widens the page. */
.paper {
  position: relative;
  width: min(26rem, calc(100% - 1rem));
  margin-inline: auto;
  padding: var(--space-6) var(--space-6) var(--space-8);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.paper::after {
  content: "";
  position: absolute;
  inset: auto -0.5rem -0.5rem 0.5rem;
  height: 100%;
  z-index: -1;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  opacity: 0.7;
}

.paper-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--ink);
}

.paper-head svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.paper-title {
  display: block;
  font-size: var(--text-lg);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-title);
  line-height: 1.2;
}

.paper-h {
  display: block;
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.paper-table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem var(--space-4);
}

.paper-table .total {
  padding-top: 0.25rem;
  border-top: 1px solid var(--line-strong);
  font-weight: var(--weight-heavy);
}

.paper-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.paper-figures span {
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--ground-cool);
  text-align: center;
}

.paper-figures b {
  display: block;
  font-size: var(--text-lg);
  font-weight: var(--weight-heavy);
}

.paper-samples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.paper-samples span {
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  background: var(--surface-sunken);
  border: 1px solid var(--line-cool);
}

.paper-samples .s1 {
  background: var(--subj-math-fill);
}

.paper-samples .s2 {
  background: var(--subj-science-fill);
}

.paper-samples .s3 {
  background: var(--subj-art-fill);
}

.paper-samples .s4 {
  background: var(--subj-reading-fill);
}

/* The week, as a strip. */

.week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  font-size: 0.6875rem;
  line-height: 1.3;
}

.week-day {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  min-width: 0;
}

.week-name {
  font-size: var(--text-xs);
  font-weight: var(--weight-heavy);
  text-align: center;
}

.week-card {
  padding: 0.35rem;
  border: 1px solid var(--line-cool);
  border-left: 3px solid var(--subj-math);
  border-radius: 0.4rem;
  background: var(--surface);
  overflow-wrap: anywhere;
}

.week-card.is-done {
  background: var(--surface-sunken);
  color: var(--ink-muted);
}

.week-card.reading {
  border-left-color: var(--subj-reading);
}

.week-card.science {
  border-left-color: var(--subj-science);
}

.week-card.history {
  border-left-color: var(--subj-history);
}

.week-card.art {
  border-left-color: var(--subj-art);
}

.week-off {
  display: grid;
  place-items: center;
  min-height: 6rem;
  border-radius: 0.4rem;
  background: repeating-linear-gradient(135deg, var(--surface-sunken) 0 6px, var(--surface) 6px 12px);
  color: var(--ink-muted);
  font-weight: var(--weight-strong);
  text-align: center;
}

/* The illustrations in the three speeds. */

.speed-time {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

/* A small figure of the brand on the About page. */

.about-mark {
  width: 6rem;
  height: 6rem;
  margin-bottom: var(--space-6);
}

/* The 404. */

.lost {
  text-align: left;
}

.lost .about-mark {
  width: 4.5rem;
  height: 4.5rem;
}
