/*
 * The public content pages (blog, privacy, landing). Hand-written; no framework, no build step beyond a copy.
 * Colours, type and shape are the app's Hearth tokens (src/ui/tokens.css; docs/design/system.md): paper and sepia ink,
 * pen-blue links, the sun's colour for the one action, Literata for the display voice at light weights and Nunito
 * Sans for reading. site.test.js keeps the colour values here in step with tokens.css.
 */
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('./literata-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url('./literata-latin-wght-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('./nunito-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 1000;
  src: url('./nunito-sans-latin-wght-italic.woff2') format('woff2');
}
/* Metric-matched local faces while the web faces load (the app's own numbers, src/ui/fonts.css). */
@font-face {
  font-family: 'Literata Fallback';
  src: local('Times New Roman'), local('Liberation Serif'), local('Tinos'), local('Noto Serif');
  size-adjust: 114.8%;
  ascent-override: 102.5%;
  descent-override: 26.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Nunito Sans Fallback';
  src: local('Arial'), local('Liberation Sans'), local('Helvetica'), local('Roboto');
  size-adjust: 100.7%;
  ascent-override: 100.4%;
  descent-override: 35%;
  line-gap-override: 0%;
}

:root {
  --color-bg: #f9f1ec;
  --color-surface: #fffaf6;
  --color-surface-strong: #efe3dc;
  --color-border: #e6d8cf;
  --color-border-strong: #85746e;
  --color-text: #33282a;
  --color-text-muted: #645553;
  --color-link: #2e4b9e;
  --color-link-strong: #213878;
  --color-focus: #2e4b9e;
  --color-action: #ff9a5e;
  --color-action-strong: #ff8a4f;
  --color-on-action: #2c1610;
  --color-sun: #ff8048;
  --color-accent-tint: #e8ecf7;
  --color-warning: #7a4d00;
  --color-warning-bg: #fbefdc;
  --color-warning-border: #9a6200;
  --elevation-paper:
    0 0.0625rem 0 rgb(70 40 30 / 0.06), 0 0.5rem 1.5rem -0.5rem rgb(70 40 30 / 0.22);
  --elevation-card: 0 0.0625rem 0 rgb(70 40 30 / 0.07), 0 0.125rem 0.375rem rgb(70 40 30 / 0.09);
  --band-veil: 0;
  --font-sans:
    'Nunito Sans Variable', 'Nunito Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Literata Variable', 'Literata Fallback', Georgia, 'Times New Roman', serif;
  --measure: 68ch;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  color-scheme: light;
}
/* Dark: the device asks for it and the reader has not chosen Light in the app. Keep identical to the block below. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-bg: #221c1a;
    --color-surface: #2c2522;
    --color-surface-strong: #3a302c;
    --color-border: #3f3430;
    --color-border-strong: #a0908a;
    --color-text: #f4eadf;
    --color-text-muted: #cdbdb0;
    --color-link: #a9bcf5;
    --color-link-strong: #c9d6ff;
    --color-focus: #a9bcf5;
    --color-action: #ffa36b;
    --color-action-strong: #ffb585;
    --color-on-action: #2c1610;
    --color-sun: #ff8a55;
    --color-accent-tint: #2b3150;
    --color-warning: #ffc879;
    --color-warning-bg: #35291a;
    --color-warning-border: #e0a84a;
    --elevation-paper: 0 0.0625rem 0 rgb(0 0 0 / 0.25), 0 0.5rem 1.5rem -0.5rem rgb(0 0 0 / 0.5);
    --elevation-card: 0 0.0625rem 0 rgb(0 0 0 / 0.28), 0 0.125rem 0.375rem rgb(0 0 0 / 0.3);
    --band-veil: 0.34;
    color-scheme: dark;
  }
}
/* Dark: chosen in the app's Settings (the same key, applied before first paint by /theme-init.js). */
:root[data-theme='dark'] {
  --color-bg: #221c1a;
  --color-surface: #2c2522;
  --color-surface-strong: #3a302c;
  --color-border: #3f3430;
  --color-border-strong: #a0908a;
  --color-text: #f4eadf;
  --color-text-muted: #cdbdb0;
  --color-link: #a9bcf5;
  --color-link-strong: #c9d6ff;
  --color-focus: #a9bcf5;
  --color-action: #ffa36b;
  --color-action-strong: #ffb585;
  --color-on-action: #2c1610;
  --color-sun: #ff8a55;
  --color-accent-tint: #2b3150;
  --color-warning: #ffc879;
  --color-warning-bg: #35291a;
  --color-warning-border: #e0a84a;
  --elevation-paper: 0 0.0625rem 0 rgb(0 0 0 / 0.25), 0 0.5rem 1.5rem -0.5rem rgb(0 0 0 / 0.5);
  --elevation-card: 0 0.0625rem 0 rgb(0 0 0 / 0.28), 0 0.125rem 0.375rem rgb(0 0 0 / 0.3);
  --band-veil: 0.34;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* A <picture> only offers lighter copies of its <img> (templates.mjs): it adds no box, so the <img> is laid out as if
   it stood alone (a grid item, a positioned layer) and every rule for it still applies. Its <source>s, which would
   otherwise take a place in a grid, get no box either; the browser still chooses among them. */
picture {
  display: contents;
}
picture > source {
  display: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 420;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}
a {
  color: var(--color-link);
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--color-link-strong);
  text-decoration-thickness: 0.125em;
}
:focus-visible {
  outline: 0.1875rem solid var(--color-focus);
  outline-offset: 0.125rem;
  border-radius: 0.375rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  background: var(--color-surface);
  color: var(--color-link);
  border-radius: 0.75rem;
  box-shadow: var(--elevation-paper);
}
.skip:focus {
  top: 0.75rem;
}
.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: calc(var(--measure) + 2 * var(--gutter));
}

/* ---- Draft ribbon (preview deployments only) ---- */
.draft-ribbon {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0.5rem var(--gutter);
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-bottom: 0.125rem solid var(--color-warning-border);
  font-size: 0.9375rem;
  text-align: center;
}
.draft-ribbon strong {
  font-weight: 680;
}
.draft-tag {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0 0.5rem;
  border: 0.0625rem solid var(--color-warning-border);
  border-radius: 9999px;
  background: var(--color-warning-bg);
  color: var(--color-warning);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 620;
  vertical-align: middle;
}

/* ---- Header ---- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 0.875rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 420;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark:hover {
  color: var(--color-text);
}
/* The switch: as tall as the lowercase letters, drawn in the text colour, with the sun as its knob. */
.wordmark svg {
  width: auto;
  height: 0.72em;
  flex: none;
}
.wordmark .track {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
}
.wordmark .sun {
  fill: var(--color-sun);
}
/* The logo writes the name in lowercase; the text itself, which screen readers and search engines read, keeps its capital. */
.wordmark span {
  text-transform: lowercase;
}
/* On a phone: the name and the one action on the first line, the section links on the second. */
.site-nav {
  order: 3;
  flex-basis: 100%;
  margin-inline: -0.625rem;
}
.site-cta {
  margin-left: auto;
}
@media (min-width: 40rem) {
  .site-nav {
    order: 0;
    flex-basis: auto;
    margin-inline: auto 0;
  }
  .site-cta {
    margin-left: 0;
  }
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.625rem;
  color: var(--color-text);
  font-weight: 520;
  text-decoration: none;
  border-radius: 9999px;
}
.site-nav a:hover,
.site-nav a[aria-current] {
  background: var(--color-surface-strong);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-action);
  color: var(--color-on-action);
  border-radius: 9999px;
  font-weight: 620;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}
.btn:hover {
  background: var(--color-action-strong);
  color: var(--color-on-action);
}
.btn-lg {
  min-height: 3.25rem;
  padding-inline: 1.75rem;
  font-size: 1.125rem;
}

/* ---- The painted band ---- */
.band {
  position: relative;
  height: clamp(7.5rem, 4rem + 14vw, 13rem);
  overflow: hidden;
  background: var(--color-bg);
}
.band-tall {
  height: clamp(12rem, 7rem + 21vw, 20rem);
}
.ridge {
  display: block;
  width: 100%;
  height: 100%;
}
.ridge-ground {
  fill: var(--color-bg);
}
/* By lamplight the picture is turned down a little, so it does not glare over a dark page. */
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #221c1a;
  opacity: var(--band-veil);
  pointer-events: none;
}

/* ---- Blog home ---- */
.masthead {
  padding-block: 1.25rem 1.5rem;
}
.masthead h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.012em;
}
.masthead p {
  max-width: 44rem;
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 1.1875rem;
  line-height: 1.5;
}
.hero-card {
  position: relative;
  max-width: 46rem;
  margin-top: clamp(-5.5rem, -1.75rem - 4vw, -2.75rem);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--color-surface);
  border-radius: 1.5rem;
  box-shadow: var(--elevation-paper);
}
.hero-card h2 {
  margin-top: 0.375rem;
  font-size: clamp(1.625rem, 1.3rem + 1.6vw, 2.25rem);
  font-weight: 400;
}
.hero-card .blurb {
  margin-top: 0.75rem;
  font-size: 1.125rem;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 620;
}
.label::before {
  content: '';
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: var(--color-sun);
}
a.label {
  text-decoration: none;
}
a.label:hover {
  text-decoration: underline;
}
.title-link {
  color: var(--color-text);
  text-decoration: none;
}
.title-link:hover {
  color: var(--color-link);
  text-decoration: underline;
}
/* The whole card is the link's target; the title carries the link's name. */
.title-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.more {
  display: inline-block;
  margin-top: 0.875rem;
  color: var(--color-link);
  font-weight: 620;
}
.more::after {
  content: ' \2192';
}
.cat-row {
  margin-top: 2rem;
}
.cat-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.375rem 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  border: 0.0625rem solid var(--color-border-strong);
  border-radius: 9999px;
  font-weight: 520;
  text-decoration: none;
}
.chip:hover,
.chip[aria-current] {
  background: var(--color-accent-tint);
  border-color: var(--color-link);
  color: var(--color-link-strong);
}
.cat-section {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}
.cat-head h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
}
.cat-head p {
  flex-basis: 100%;
  color: var(--color-text-muted);
}
.cat-head a {
  font-weight: 620;
}
.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 64rem) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: 1.5rem;
  box-shadow: var(--elevation-card);
  transition: box-shadow 180ms ease-out;
}
.card:hover,
.hero-card:hover {
  box-shadow: var(--elevation-paper);
}
.card:focus-within,
.hero-card:focus-within {
  outline: 0.1875rem solid var(--color-focus);
  outline-offset: 0.125rem;
}
.card .title-link:focus-visible,
.hero-card .title-link:focus-visible {
  outline: none;
}
.card h3 {
  margin-top: 0.375rem;
  font-size: 1.3125rem;
  font-weight: 430;
  line-height: 1.25;
}
.card .blurb {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}
.card .more {
  margin-top: auto;
  padding-top: 0.875rem;
}
.empty {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: 1.5rem;
  color: var(--color-text-muted);
}

/* ---- Invitation banner and box ---- */
.invite {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  background: var(--color-surface);
  border-radius: 1.75rem;
  box-shadow: var(--elevation-paper);
  text-align: center;
}
.invite h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.4vw, 2.125rem);
  font-weight: 400;
}
.invite p {
  max-width: 36rem;
  margin: 0.75rem auto 1.25rem;
  color: var(--color-text-muted);
}
.invite small {
  display: block;
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.invite-box {
  text-align: left;
  margin-top: 3rem;
  border-radius: 1.5rem;
}
.invite-box p {
  margin-inline: 0;
}

/* ---- Article ---- */
.crumbs {
  padding-block: 0.25rem 0.5rem;
  font-size: 0.9375rem;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  list-style: none;
}
.crumbs li + li::before {
  content: '\203A';
  margin-right: 0.25rem;
  color: var(--color-text-muted);
}
.crumbs a {
  display: inline-block;
  padding-block: 0.5rem;
}
.article-head {
  padding-top: 1.5rem;
}
.article-head h1 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 1.55rem + 2.2vw, 2.875rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.012em;
}
.dek {
  margin-top: 0.875rem;
  color: var(--color-text-muted);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.meta span + span::before {
  content: '\00B7';
  margin-right: 0.75rem;
}
.jump {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.75rem;
  padding: 0.375rem 1.125rem;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border-strong);
  border-radius: 9999px;
  color: var(--color-text);
  font-weight: 620;
  text-decoration: none;
}
.jump::after {
  content: ' \2193';
  margin-left: 0.375rem;
}
.jump:hover {
  background: var(--color-accent-tint);
  border-color: var(--color-link);
  color: var(--color-link-strong);
}
.prose {
  margin-top: 2rem;
}
.prose > * + * {
  margin-top: 1.125rem;
}
.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
}
.prose h3 {
  margin-top: 2rem;
  font-size: 1.3125rem;
  font-weight: 450;
}
.prose h4 {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 680;
}
.prose ul,
.prose ol {
  padding-left: 1.5rem;
}
.prose li + li {
  margin-top: 0.375rem;
}
.prose li > ul,
.prose li > ol {
  margin-top: 0.375rem;
}
.prose strong {
  font-weight: 680;
}
.prose blockquote {
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 0.25rem solid var(--color-sun);
  color: var(--color-text-muted);
  font-family: var(--font-serif);
  font-style: italic;
}
.prose code {
  padding: 0.1em 0.35em;
  background: var(--color-surface-strong);
  border-radius: 0.375rem;
  font-size: 0.9em;
}
.prose pre {
  padding: 1rem;
  overflow-x: auto;
  background: var(--color-surface-strong);
  border-radius: 0.75rem;
}
.prose pre code {
  padding: 0;
  background: none;
}
.prose hr {
  height: 0.0625rem;
  margin-block: 2.5rem;
  border: 0;
  background: var(--color-border);
}

/* ---- Figures in articles (figures.mjs): diagrams drawn at build time, and the app's screens ---- */
/* The app's effort scale and its "planned" chart colour (src/ui/tokens.css; figures.test.js keeps them in step). */
.figure {
  --color-effort-0: #bbafa8;
  --color-effort-1: #48a67a;
  --color-effort-2: #5e9bdb;
  --color-effort-3: #7a5cc0;
  --color-effort-4: #db9436;
  --color-effort-5: #d65a57;
  --color-chart-planned: #1f80bf;
  margin-block: 1.75rem;
  padding: 0.875rem 0.75rem;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: 0.75rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .figure {
    --color-effort-2: #5490d0;
    --color-effort-3: #7d4fc4;
    --color-effort-4: #c4872f;
    --color-effort-5: #d4506e;
    --color-chart-planned: #3f9bd6;
  }
}
:root[data-theme='dark'] .figure {
  --color-effort-2: #5490d0;
  --color-effort-3: #7d4fc4;
  --color-effort-4: #c4872f;
  --color-effort-5: #d4506e;
  --color-chart-planned: #3f9bd6;
}
.prose > .figure {
  margin-block: 1.75rem;
}
/* Drawn 340 units wide: about life size on a phone, a little larger in the reading column, never blown up. */
.fx {
  display: block;
  width: 100%;
  max-width: 27.5rem;
  height: auto;
  margin-inline: auto;
  overflow: visible;
}
.fx text {
  font-family: var(--font-sans);
}
.fx-t {
  fill: var(--color-text-muted);
}
.fx-tb {
  fill: var(--color-text);
  font-weight: 680;
}
.fx-grid {
  stroke: var(--color-border);
}
.fx-axis {
  stroke: var(--color-border-strong);
}
.fx-rule {
  stroke: var(--color-border-strong);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.fx-e0 {
  fill: var(--color-effort-0);
}
.fx-e1 {
  fill: var(--color-effort-1);
}
.fx-e2 {
  fill: var(--color-effort-2);
}
.fx-e3 {
  fill: var(--color-effort-3);
}
.fx-e4 {
  fill: var(--color-effort-4);
}
.fx-e5 {
  fill: var(--color-effort-5);
}
.fx-plan,
.fx-plan-soft {
  fill: var(--color-chart-planned);
}
.fx-plan-soft {
  fill-opacity: 0.4;
}
.fx-hi {
  fill: var(--color-sun);
}
.figure figcaption,
.fig-key {
  max-width: 27.5rem;
  margin: 0.75rem auto 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.fig-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.prose .fig-key {
  padding-left: 0;
}
.fig-key li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
.fig-key + figcaption {
  margin-top: 0.5rem;
}
/* A screen of the app in a phone-shaped frame: never the full column, beside the text when there is room. */
.figure-screen {
  padding: 0;
  background: none;
  border: 0;
  text-align: center;
}
.phone {
  width: min(100%, 15rem);
  margin-inline: auto;
  padding: 0.4375rem;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: 2rem;
  box-shadow: var(--elevation-paper);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5625rem;
}
/* A cropped screen shows a 3:5 window of the picture. An uncropped one sets no aspect-ratio of its own, so the browser
   takes it from the img's width and height and keeps the space before the picture loads (no jump while scrolling). */
.phone:not(.crop-none) img {
  aspect-ratio: 3 / 5;
  object-fit: cover;
  object-position: top;
}
.phone.crop-center img {
  object-position: center;
}
.phone.crop-bottom img {
  object-position: bottom;
}
.figure-screen figcaption {
  max-width: 16rem;
}
@media (min-width: 48rem) {
  .prose > .figure-screen {
    float: right;
    width: 15rem;
    margin: 0.375rem 0 1.25rem 2rem;
  }
  /* A screen near the end of an article stays inside the article. */
  .prose {
    display: flow-root;
  }
  .prose > h2,
  .prose > .figure:not(.figure-screen),
  .prose > .table-scroll,
  .prose > .tool,
  .prose > .plan {
    clear: both;
  }
}

/* ---- Tables ---- */
.table-scroll {
  overflow-x: auto;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: 1rem;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums lining-nums;
}
.table-scroll > table {
  min-width: 32rem;
}
caption {
  padding: 0.75rem 1rem;
  color: var(--color-text-muted);
  font-weight: 620;
  text-align: left;
}
th,
td {
  padding: 0.625rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 0.0625rem solid var(--color-border);
}
thead th {
  border-top: 0;
  background: var(--color-surface-strong);
  font-weight: 680;
  white-space: nowrap;
}
tbody th {
  font-weight: 620;
}
/* A chart-sized table (markdown.mjs): the first column stays in view while the rest scrolls sideways, a long one
   scrolls in a box of its own so its header row stays at the top, and short values stay on one line. Sticky cells need
   borders that travel with them. */
.table-wide > table,
.table-long > table {
  border-collapse: separate;
  border-spacing: 0;
}
.table-tight > table {
  min-width: 0;
}
.table-tight th,
.table-tight td {
  padding-inline: 0.75rem;
  white-space: nowrap;
}
.table-wide th:first-child,
.table-wide td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  white-space: nowrap;
  border-right: 0.0625rem solid var(--color-border);
}
.table-wide td:first-child {
  background: var(--color-surface);
  font-weight: 620;
}
.table-long {
  max-height: 34rem;
  max-height: min(34rem, 70svh);
  overflow-y: auto;
  overscroll-behavior-x: contain;
}
.table-long thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 0.0625rem solid var(--color-border);
}
.table-long tbody tr:first-child > * {
  border-top: 0;
}
.table-wide.table-long thead th:first-child {
  z-index: 3;
}
.align-right,
.num {
  text-align: right;
}
.align-center {
  text-align: center;
}
.plan-note,
.plan-pdf,
.plan-health {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
}
.plan-note,
.plan-health {
  color: var(--color-text-muted);
}
.plan-health {
  font-style: italic;
}
.plan-pdf a {
  font-weight: 620;
}
.plan-wk {
  display: none;
}
/* An always-free plan: its "Start this plan" button sits beside the PDF link. */
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}
.prose .plan-actions .btn {
  color: var(--color-on-action);
  text-decoration: none;
}
.plan-free {
  margin-top: 0.375rem;
}
/* A plan on a phone: each week is a small card, every value named. No sideways scrolling. */
@media (max-width: 39.99rem) {
  .plan-scroll {
    overflow: visible;
    background: none;
    border: 0;
  }
  .plan-scroll > table {
    min-width: 0;
  }
  .plan-table,
  .plan-table caption,
  .plan-table tbody,
  .plan-table tr,
  .plan-table th,
  .plan-table td {
    display: block;
  }
  .plan-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .plan-table caption {
    padding-inline: 0;
  }
  .plan-table tr {
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--color-surface);
    border: 0.0625rem solid var(--color-border);
    border-radius: 1rem;
  }
  .plan-table th,
  .plan-table td {
    padding: 0;
    border: 0;
    text-align: left;
  }
  .plan-table tbody th {
    font-family: var(--font-serif);
    font-size: 1.1875rem;
    font-weight: 450;
  }
  .plan-wk {
    display: inline;
  }
  .plan-table td {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 0.375rem;
  }
  .plan-table td::before {
    content: attr(data-label);
    color: var(--color-text-muted);
    font-weight: 620;
  }
}

/* ---- At a glance, questions, sources ---- */
.glance,
.faq,
.sources {
  margin-top: 3rem;
}
.glance h2,
.faq h2,
.sources h2,
.shelf h2,
.toc h2 {
  font-size: clamp(1.375rem, 1.25rem + 0.8vw, 1.75rem);
}
.glance {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: var(--color-surface);
  border-radius: 1.5rem;
  box-shadow: var(--elevation-paper);
  scroll-margin-top: 1rem;
}
.glance dl {
  margin-top: 0.75rem;
}
.glance dl > div {
  display: grid;
  gap: 0.125rem 1.25rem;
  padding-block: 0.75rem;
  border-top: 0.0625rem solid var(--color-border);
}
.glance dl > div:first-child {
  border-top: 0;
}
@media (min-width: 34rem) {
  .glance dl > div {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}
.glance dt {
  color: var(--color-text-muted);
  font-weight: 620;
}
.glance dd {
  margin: 0;
}
.faq details {
  margin-top: 0.75rem;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: 1rem;
}
.faq summary {
  min-height: 2.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: 1rem;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 450;
  line-height: 1.35;
  cursor: pointer;
}
.faq details p {
  padding: 0 1.125rem 1.125rem;
}
.sources ol {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
}
.sources li + li {
  margin-top: 0.375rem;
}
.sources a {
  overflow-wrap: anywhere;
}
.shelf {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}

/* ---- Reading pages (privacy, landing) ---- */
.toc {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: 1.5rem;
}
.toc ol {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}
.toc li + li {
  margin-top: 0.25rem;
}
.toc a {
  display: inline-block;
  padding-block: 0.25rem;
}
.landing-cta {
  margin-top: 1.5rem;
}
.landing-cta small {
  display: block;
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ---- The free plans page: /free-plans/ ---- */
.free-promise {
  margin-top: 1rem;
  font-weight: 620;
}
.free-index {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: 1.5rem;
}
.free-index h2 {
  font-size: 1.3125rem;
  font-weight: 450;
}
.free-index ul {
  margin-top: 0.5rem;
  padding: 0;
  list-style: none;
}
.free-index li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.75rem;
  padding-block: 0.375rem;
}
.free-index li + li {
  border-top: 0.0625rem solid var(--color-border);
}
.free-index a {
  display: inline-block;
  padding-block: 0.375rem;
  font-weight: 620;
}
.free-index span {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.free-plan,
.free-gated {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4rem);
}
.free-plan {
  padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-top: 0.0625rem solid var(--color-border);
  scroll-margin-top: 1rem;
}
.free-plan > h2,
.free-gated > h2,
.free-closing > h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);
  font-weight: 430;
  line-height: 1.2;
  text-wrap: balance;
}
.free-plan > h3 {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
}
.free-plan > p,
.free-gated > p {
  margin-top: 0.5rem;
}
.free-facts {
  color: var(--color-text-muted);
}
.free-needs {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}
.free-needs li + li {
  margin-top: 0.25rem;
}
.free-in-app {
  color: var(--color-text-muted);
}
.free-table {
  margin-top: 0.75rem;
}
.free-start-note {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.free-gated {
  padding: 1.25rem 1.5rem;
  border: 0.0625rem dashed var(--color-border-strong);
  border-radius: 1.5rem;
}
.free-gated ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}
.free-closing {
  margin-top: 3rem;
}
.free-closing .closing-note {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ---- The audience pages under /for/ ---- */
/* The band is one of the app's own paintings; it fades into the page the way the app's sky does. */
.band-painting img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.band-painting::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}
.landing {
  /* The app's night and dusk skies (src/ui/tokens.css: sky-night-upper, sky-dusk-top and their inks). */
  --sky-night: #141943;
  --sky-night-ink: #fbf6ee;
  --sky-night-ink-quiet: #ece6f2;
  --sky-night-rule: #5a5f96;
  --sky-dusk: #221f58;
  --sky-dusk-ink: #fff6f2;
  --sky-dusk-ink-quiet: #f8e6ec;
}
.landing-hero {
  display: grid;
  gap: 2rem 3rem;
  align-items: center;
  padding-block: 0.5rem clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
@media (min-width: 52rem) {
  .landing-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.landing-pitch h1 {
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem);
  font-weight: 430;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.landing-pitch .dek {
  max-width: 36rem;
}
.landing-shot {
  margin: 0;
  text-align: center;
}
.landing-shot img {
  width: 100%;
  max-width: 21.25rem;
  height: auto;
  border: 0.0625rem solid var(--color-border);
  border-radius: 1.75rem;
  box-shadow: var(--elevation-paper);
}
.landing-shot figcaption {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.landing-worries {
  background: var(--sky-night);
  color: var(--sky-night-ink);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem);
}
.landing-worries h2,
.landing-closing h2 {
  max-width: 44rem;
  color: inherit;
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem);
  font-weight: 440;
  line-height: 1.18;
  text-wrap: balance;
}
.landing-worries ul {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
  color: var(--sky-night-ink-quiet);
}
@media (min-width: 46rem) {
  .landing-worries ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.landing-worries li {
  padding-top: 1rem;
  border-top: 0.0625rem solid var(--sky-night-rule);
}
.landing-features {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.landing-features > h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem);
  font-weight: 440;
  line-height: 1.18;
}
.feature-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 46rem) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.feature {
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: 1.5rem;
  box-shadow: var(--elevation-paper);
}
.feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 0.0625rem solid var(--color-border);
  border-radius: 1rem;
}
.feature .crop-top {
  object-position: top;
}
.feature .crop-center {
  object-position: center;
}
.feature .crop-bottom {
  object-position: bottom;
}
.feature h3 {
  margin-top: 1rem;
  font-size: 1.3125rem;
  font-weight: 450;
  line-height: 1.25;
}
.feature p {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}
.landing-closing {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  padding-block: clamp(3rem, 2rem + 4vw, 4.5rem);
  background: var(--sky-dusk);
  color: var(--sky-dusk-ink);
  text-align: center;
}
.landing-closing h2 {
  margin-inline: auto;
}
.landing-closing .landing-cta small,
.landing-closing .closing-note {
  color: var(--sky-dusk-ink-quiet);
}
.landing-closing .closing-note {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: 0.9375rem;
}
.landing-others {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 4rem);
}
.landing-others > h2 {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: 440;
}
/* The landing page's own footer follows a full-width section, so it needs no extra space above it. */
main:has(.landing) + .site-footer {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4rem);
}
.audience-card h2 {
  margin-top: 0.375rem;
  font-size: 1.3125rem;
  font-weight: 430;
  line-height: 1.25;
}
.audience-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  margin-bottom: 0.875rem;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 0.75rem;
}
@media (min-width: 64rem) {
  .audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- A page laid out as a landing page: /running-planner/ ---- */
.planner-hero {
  display: grid;
  gap: 1.75rem 3.5rem;
  align-items: center;
  padding-block: clamp(0.75rem, 0.25rem + 2.5vw, 3rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
@media (min-width: 52rem) {
  .planner-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}
.planner-stage {
  margin: 0;
}
/* The real week planner, standing on one of the app's paintings. */
.planner-stage-frame {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem) clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem) 0;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--color-surface-strong);
}
.planner-stage-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #221c1a;
  opacity: var(--band-veil);
  pointer-events: none;
}
.planner-stage-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.planner-stage-screen {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 21rem;
  height: auto;
  aspect-ratio: 72 / 101;
  object-fit: cover;
  object-position: top;
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: var(--elevation-paper);
}
.planner-stage figcaption {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  text-align: center;
}
.planner-features {
  padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(3rem, 2rem + 4vw, 5rem);
}
.planner-features > h2,
.planner-printable h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem);
  font-weight: 440;
  line-height: 1.18;
}
.planner-features > h2 {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}
.planner-features > ul {
  display: grid;
  gap: clamp(2.75rem, 2rem + 3vw, 4rem);
  max-width: 62rem;
  margin: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) auto 0;
  padding: 0;
  list-style: none;
}
.planner-feature,
.planner-printable {
  display: grid;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .planner-feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Picture left, then right, then left: the eye walks down the page instead of down one edge. */
  .planner-feature:nth-child(odd) .planner-shot {
    order: 0;
  }
}
.planner-shot,
.planner-sheet {
  display: grid;
  justify-items: center;
  padding: clamp(1.25rem, 0.75rem + 2vw, 2rem);
  border-radius: 2rem;
  background: var(--color-surface-strong);
}
/* On a phone the words come first and the screen follows them. */
.planner-shot {
  order: 2;
}
.planner-shot img {
  display: block;
  width: 100%;
  max-width: 18rem;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: var(--elevation-paper);
}
.planner-shot .crop-top {
  object-position: top;
}
.planner-shot .crop-center {
  object-position: center;
}
.planner-shot .crop-bottom {
  object-position: bottom;
}
.planner-words {
  max-width: 32rem;
}
.planner-feature h3 {
  font-size: clamp(1.4375rem, 1.25rem + 0.9vw, 1.875rem);
  font-weight: 440;
  line-height: 1.2;
}
.planner-words p {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}
.planner-features {
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.planner-mid-cta {
  margin-top: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  text-align: center;
}
.planner-mid-cta .landing-cta {
  margin-top: 0;
}
/* Three more, as a compact row of cards: a small screen, a heading, a sentence or two. */
.planner-also {
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}
.planner-also > h2 {
  font-size: clamp(1.4375rem, 1.25rem + 0.9vw, 1.875rem);
  font-weight: 440;
  line-height: 1.2;
  text-align: center;
}
.planner-also > ul {
  display: grid;
  gap: 1rem 1.5rem;
  max-width: 62rem;
  margin: clamp(1.25rem, 1rem + 1.5vw, 2rem) auto 0;
  padding: 0;
  list-style: none;
}
.planner-card {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: 1.5rem;
  box-shadow: var(--elevation-card);
}
.planner-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0.0625rem solid var(--color-border);
  border-radius: 0.75rem;
}
.planner-card .crop-top {
  object-position: top;
}
.planner-card .crop-center {
  object-position: center;
}
.planner-card .crop-bottom {
  object-position: bottom;
}
.planner-card h3 {
  font-size: 1.1875rem;
  font-weight: 450;
  line-height: 1.25;
}
.planner-card p {
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
@media (min-width: 52rem) {
  .planner-also > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .planner-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 1.25rem;
  }
  .planner-card img {
    aspect-ratio: 4 / 3;
  }
}
.planner-steps {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  background: var(--sky-night);
  color: var(--sky-night-ink);
}
.planner-steps h2 {
  color: inherit;
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem);
  font-weight: 440;
  line-height: 1.18;
}
.planner-steps ol {
  display: grid;
  gap: 1.75rem 2.5rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 46rem) {
  .planner-steps ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.planner-steps li {
  padding-top: 1rem;
  border-top: 0.0625rem solid var(--sky-night-rule);
  counter-increment: step;
}
.planner-steps li::before {
  content: counter(step);
  display: block;
  color: #ff9a5e;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 420;
  line-height: 1.1;
}
.planner-steps h3 {
  margin-top: 0.375rem;
  color: inherit;
  font-size: 1.3125rem;
  font-weight: 450;
  line-height: 1.25;
}
.planner-steps li p {
  margin-top: 0.375rem;
  color: var(--sky-night-ink-quiet);
}
.planner-steps .landing-cta {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.planner-steps .landing-cta small {
  color: var(--sky-night-ink-quiet);
}
.planner-printable {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}
@media (min-width: 46rem) {
  .planner-printable {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
/* The page itself, a little askew, the way it would sit on a fridge door. */
.planner-sheet img {
  display: block;
  width: 100%;
  max-width: 17rem;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: var(--elevation-paper);
  transform: rotate(-2deg);
}
.planner-printable .btn {
  margin-top: 0.5rem;
}
/* The second kind of button: an outline, so the page keeps one loud action. */
.btn-quiet {
  background: transparent;
  color: var(--color-text);
  box-shadow: inset 0 0 0 0.125rem var(--color-border-strong);
}
.btn-quiet:hover {
  background: var(--color-surface-strong);
  color: var(--color-text);
}
.planner-words .planner-aside {
  font-size: 1rem;
}
.planner-not-yet {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border: 0.0625rem dashed var(--color-border-strong);
  border-radius: 1.5rem;
}
.planner-not-yet h2 {
  font-size: 1.3125rem;
  font-weight: 450;
}
.planner-not-yet p {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}
.planner-more {
  margin-top: 3rem;
}

/* ---- The home page ---- */
.platform-line {
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.feature-link {
  margin-top: 0.75rem;
  font-weight: 620;
}
.front-section {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.front-section > h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem);
  font-weight: 440;
  line-height: 1.18;
}
.front-section > h2:has(+ .section-lede) {
  margin-bottom: 0.5rem;
}
.section-lede {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}
.steps {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 46rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.steps li {
  padding-top: 1rem;
  border-top: 0.125rem solid var(--color-border);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-text-muted);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1;
}
.steps h3 {
  font-size: 1.3125rem;
  font-weight: 450;
  line-height: 1.25;
}
.steps p {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}
.platforms {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 46rem) {
  .platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: 1.5rem;
  box-shadow: var(--elevation-paper);
}
.platform h3 {
  font-size: 1.3125rem;
  font-weight: 450;
}
.platform-state {
  padding: 0.125rem 0.75rem;
  border: 0.0625rem solid var(--color-border-strong);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 620;
}
.platform.is-available .platform-state {
  border-color: transparent;
  background: var(--color-surface-strong);
}
.platform p:not(.platform-state) {
  color: var(--color-text-muted);
}
.platform .btn {
  margin-top: auto;
}
.front .see-all {
  margin-top: 1.25rem;
  font-weight: 620;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-block: 2rem 3rem;
  border-top: 0.0625rem solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0;
  list-style: none;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.site-footer .wordmark {
  font-size: 1.25rem;
}
.site-footer .health {
  flex-basis: 100%;
}

/* ---- Tools (tools.mjs): a calculator or a calendar inside an article ---- */
.tool {
  padding: clamp(1.125rem, 0.875rem + 1.5vw, 1.75rem);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: 1.5rem;
  box-shadow: var(--elevation-card);
  scroll-margin-top: 1rem;
}
.prose > .tool {
  margin-block: 1.75rem;
}
.tool > * + *,
.tool-form > * + *,
.tool-results > * + * {
  margin-top: 1rem;
}
.tool-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 450;
  line-height: 1.2;
}
.tool-fallback,
.tool-hint,
.tool-note {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.tool [hidden] {
  display: none;
}
.tool-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 34rem) {
  .tool-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tool-field {
  display: grid;
  gap: 0.375rem;
  align-content: start;
  min-width: 0;
}
.tool-field > * {
  margin: 0;
}
.tool label,
.tool legend {
  font-weight: 620;
}
.tool input[type='text'],
.tool input[type='date'],
.tool select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 0.0625rem solid var(--color-border-strong);
  border-radius: 0.75rem;
  font: inherit;
  font-variant-numeric: tabular-nums lining-nums;
}
.tool input[aria-invalid='true'] {
  border-color: var(--color-warning-border);
  border-width: 0.125rem;
}
.tool-joined {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}
.tool-joined select {
  width: auto;
}
.tool-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  min-width: 0;
  margin-inline: 0;
  padding: 0;
  border: 0;
}
.tool-choice legend {
  float: left;
  width: 100%;
  padding: 0;
}
.tool-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 400;
}
.tool-radio input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--color-link);
}
.tool-error:empty {
  display: none;
}
.tool-error,
.tool-notice {
  padding: 0.5rem 0.75rem;
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-left: 0.25rem solid var(--color-warning-border);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}
.tool button.btn {
  border: 0;
  font: inherit;
  font-weight: 620;
  cursor: pointer;
}
.tool-results:empty {
  display: none;
}
.tool-results {
  padding-top: 1rem;
  border-top: 0.0625rem solid var(--color-border);
}
.tool-answer {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.4;
}
.tool-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 34rem) {
  .tool-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.tool-facts > div {
  padding: 0.625rem 0.75rem;
  background: var(--color-bg);
  border: 0.0625rem solid var(--color-border);
  border-radius: 0.75rem;
}
.tool-facts dt {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.tool-facts dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums lining-nums;
  overflow-wrap: anywhere;
}
.tool .table-scroll {
  background: var(--color-bg);
}
.tool-splits td {
  text-align: right;
}
.tool-mark > * {
  background: var(--color-accent-tint);
  font-weight: 620;
}
.tool-race {
  display: block;
  color: var(--color-link);
  font-weight: 620;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tool-choice .tool-error {
  flex-basis: 100%;
  margin: 0;
}
/* Fit a phone: the names and headers wrap, the numbers stay on one line. */
.tool-zones th,
.tool-estimates th {
  white-space: normal;
}
.tool-zones th,
.tool-zones td {
  padding-inline: 0.5rem;
}
.tool-source {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 400;
}
.tool-used {
  display: block;
  color: var(--color-link);
  font-size: 0.875rem;
}
.tool-credit {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
@media (max-width: 39.99rem) {
  .tool .plan-table tr {
    background: var(--color-bg);
  }
}

@media print {
  .site-nav,
  .band,
  .landing-others,
  .invite,
  .shelf,
  .jump,
  .skip,
  .draft-ribbon {
    display: none;
  }
  body {
    background: #fff;
  }
  /* A chart prints whole. */
  .table-scroll {
    max-height: none;
    overflow: visible;
  }
  .table-scroll th,
  .table-scroll td {
    position: static;
  }
  /* A tool prints its answer; the boxes and buttons stay on the screen. */
  .tool-form,
  .tool-actions,
  .tool-fallback {
    display: none;
  }
  .tool {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .tool-results {
    padding-top: 0;
    border-top: 0;
  }
}

/* The pricing page (it24, E39 US-39.8): two tiers side by side on a wide screen, stacked on a phone. */
.pricing-tiers {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 48rem) {
  .pricing-tiers {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.pricing-tier {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: 1.5rem;
}
.pricing-tier h2 {
  font-size: 1.5rem;
  font-weight: 450;
}
.pricing-price {
  margin-top: 0.5rem;
  font-weight: 620;
}
.pricing-tier > p + p {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}
.pricing-tier ul,
.pricing-always ul,
.pricing-terms {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}
.pricing-tier li + li,
.pricing-always li + li,
.pricing-terms li + li {
  margin-top: 0.375rem;
}
.pricing-terms {
  margin-top: 1.5rem;
}
.pricing-always {
  margin-top: 2.5rem;
}
.pricing-always > h2 {
  font-size: 1.5rem;
  font-weight: 450;
}
.pricing-always > p {
  margin-top: 0.5rem;
}
.pricing-legal {
  margin-top: 2rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.pricing-placeholder {
  font-weight: 620;
  color: var(--color-text);
}
.pricing-cta {
  margin-top: 1.5rem;
}

/* The planner seat's section of /for/coaches/ (it33, E48): written only with READYO_COACHES_PLANNER=on. */
.landing-planner {
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.landing-planner ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}
.landing-planner li + li {
  margin-top: 0.375rem;
}
.landing-planner .pricing-note {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}
