/* Happy Hearts at Home — stylesheet
   Two themes, one set of tokens. Every colour in the site comes from here. */

:root {
  --paper:      #fdf3f6;
  --paper-2:    #fbe7ee;
  --card:       #fffafc;
  --ink:        #33232a;
  --ink-soft:   #6f5560;
  --ink-faint:  #78636b;
  --line:       #f0dbe3;
  --line-soft:  #f8eaef;
  --rose:       #f3b7cd;
  --rose-deep:  #a83a63;
  --rose-wash:  #fbe7ef;
  --lilac:      #ece3f4;
  --sage:       #6f8b74;
  --sage-wash:  #edf2ee;
  --gold:       #c2914a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.33vw, 1.25rem);
  --step-2: clamp(1.3rem, 1.18rem + 0.6vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.37rem + 1.15vw, 2.25rem);
  --step-4: clamp(2.05rem, 1.6rem + 2.25vw, 3.25rem);

  --wrap: 68rem;
  --gutter: clamp(1.25rem, 0.6rem + 2.4vw, 3.5rem);
  --measure: 34rem;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(64, 40, 25, 0.05), 0 10px 30px -18px rgba(64, 40, 25, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

[data-theme="dark"] {
  --paper:      #1d161a;
  --paper-2:    #241b20;
  --card:       #221a1f;
  --ink:        #f7eef2;
  --ink-soft:   #d3bcc4;
  --ink-faint:  #b59da6;
  --line:       #40303a;
  --line-soft:  #332630;
  --rose:       #f0a9c4;
  --rose-deep:  #f7bfd3;
  --rose-wash:  #2f2129;
  --lilac:      #2a2130;
  --sage:       #a9c0ad;
  --sage-wash:  #212723;
  --gold:       #e0b678;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -20px rgba(0, 0, 0, 0.8);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rose-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 3px;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  z-index: 50;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- dark-mode artwork tint ---------- */

/* The card, feature and post art are painted in light, paper-toned gradients. Left alone
   they glow against the dark theme, so they are knocked back rather than repainted. */
[data-theme="dark"] .card-art svg,
[data-theme="dark"] .post-art svg { filter: brightness(0.78) saturate(0.8) contrast(0.95); }
/* Photographs are left alone on purpose — they are already balanced for both themes, and
   the tint that flattens the flat vector art turns a real photo muddy. */

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--rose-wash);
  color: var(--rose-deep);
  font-family: var(--sans);
  font-size: 1.05rem;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-tagline {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.site-nav ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--rose-deep); background: var(--rose-wash); }

.theme-toggle {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--rose-deep); border-color: var(--rose); }

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

.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4rem);
  background:
    radial-gradient(60rem 30rem at 12% -10%, var(--rose-wash), transparent 60%),
    radial-gradient(50rem 26rem at 95% 0%, var(--lilac), transparent 55%);
  border-bottom: 1px solid var(--line-soft);
}

.hero .eyebrow,
.page-head .eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 0.75rem;
}

.hero h1,
.page-head h1 {
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 22ch;
}
.hero h1 em { font-style: italic; color: var(--rose-deep); }

.hero .lead,
.page-head .lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

.scripture-line {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose-deep);
  margin: 1.5rem 0 0;
  max-width: 34ch;
  font-size: 1.05rem;
}
.scripture-line cite {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.page-head {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); color: var(--paper); background: var(--rose-deep); border-color: var(--rose-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--rose); }

/* ---------- sections ---------- */

.section { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.section-head h2 { font-size: var(--step-3); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.section-head .more { font-family: var(--sans); font-size: 0.9rem; text-decoration: none; }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.post-card:hover { transform: translateY(-3px); border-color: var(--rose); }

.card-art {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.card-art svg { width: 100%; height: 100%; display: block; }
/* Cards hold photographs now, cropped to 16:9 on disk, so the aspect ratio on the
   container and the height:auto below agree. */
.card-art img { width: 100%; height: auto; display: block; }

.card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-body h3 { font-size: var(--step-2); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--rose-deep); }
.card-body p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card-body .more-link { margin-top: auto; padding-top: 0.35rem; font-family: var(--sans); font-size: 0.9rem; }

/* One line where it fits, wrapping at a space where it does not — hence no flex here:
   as flex items the date and the category became separate unbreakable boxes and wrapped
   into an ugly two-line stack. */
.meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.meta time { color: inherit; white-space: nowrap; }
.meta .cat { color: var(--rose-deep); margin-left: 0.4rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.tags a {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: var(--rose-wash);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  text-decoration: none;
}
.tags a:hover { color: var(--paper); background: var(--rose-deep); }

/* ---------- feature strip ---------- */

.feature {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 52rem) { .feature { grid-template-columns: 1.1fr 1fr; } }

.feature-art {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.feature-art svg { width: 100%; height: 100%; display: block; }
.feature-art img { width: 100%; height: auto; display: block; }

.feature h2 { font-size: var(--step-3); line-height: 1.15; margin: 0 0 0.9rem; letter-spacing: -0.01em; }
.feature p { color: var(--ink-soft); }
.feature ul { color: var(--ink-soft); padding-left: 1.1rem; }
.feature li { margin-bottom: 0.4rem; }

/* ---------- note / aside ---------- */

.note {
  background: var(--rose-wash);
  border-left: 3px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.4rem;
  margin: 2rem 0;
  font-size: 0.98rem;
}
.note p { margin: 0; }
.note p + p { margin-top: 0.6rem; }

/* ---------- safety note (editorial, not the author's voice) ---------- */

/* Sage rather than rose on purpose: this is the site's own voice, not hers, so it must not
   read as part of the testimony. */
.safety {
  background: var(--sage-wash);
  border: 1px solid color-mix(in srgb, var(--sage) 40%, transparent);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.4rem;
  margin: 2rem 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.safety p { margin: 0; }
.safety strong { color: var(--ink); }

/* ---------- post ---------- */

/* The post-shaped pages (posts/* and homeschooling.html) put `.prose` straight under
   `<article class="post">` with no `.wrap`, so `.wrap` never supplies them a gutter.
   Without this, `.prose` is a bare 34rem column with `margin-inline: auto` and it runs
   flush to both edges of the window below 40rem — text and banner touching the glass on
   a phone. Above 40rem the column centres inside the padded box exactly as it did
   before, so the measure on a desktop is unchanged. */
.post { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); padding-inline: var(--gutter); }

.post-head { margin-bottom: 2.5rem; }
.post-head h1 {
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0.6rem 0 1rem;
  max-width: 26ch;
}
.post-head .standfirst {
  font-size: var(--step-1);
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
}

.post-art {
  margin: 0 0 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 2.5rem;
  aspect-ratio: 21 / 9;
  background: var(--paper-2);
}
/* Belt and braces: a <figure> defaults to `margin: 1em 40px` in every browser, and the
   artwork containers were <div> until they started holding photographs. */
.post-art svg { width: 100%; height: 100%; display: block; }
/* The photographs are cropped to the same ratio on disk, so no object-fit is needed and
   the `height: auto` below is load-bearing: without it the width/height attributes win
   over the container ratio and the banner letterboxes. */
.post-art img { width: 100%; height: auto; display: block; }
.about-photo {
  margin: 0 0 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: auto; display: block; }

.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  font-size: var(--step-2);
  line-height: 1.2;
  margin-top: 2.6rem;
  margin-bottom: -0.35rem;
  letter-spacing: -0.01em;
}
.prose h3 { font-size: var(--step-1); margin-top: 2rem; margin-bottom: -0.5rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: 0.5rem; }
.prose blockquote {
  margin: 2.25rem 0;
  padding: 0 0 0 1.35rem;
  border-left: 2px solid var(--line);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--ink-soft);
}
.prose blockquote cite {
  display: block;
  margin-top: 0.6rem;
  text-align: right;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
/* A citation inside a paragraph (rather than under a quotation) sits on its own line. */
.prose p cite {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem auto; width: 4rem; }

.pull {
  margin: 2.5rem auto;
  padding: 1.5rem 0;
  border-top: 2px solid var(--rose);
  border-bottom: 1px solid var(--line);
  font-size: var(--step-2);
  line-height: 1.3;
  font-style: italic;
  color: var(--rose-deep);
  text-align: center;
  text-wrap: balance;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line-soft);
  margin-bottom: 2.5rem;
}
.byline .avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--rose-wash);
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  flex: none;
}
.byline-text { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-faint); line-height: 1.5; }
.byline-text strong { color: var(--ink); font-weight: 600; display: block; }

.post-foot {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.post-nav {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
}
.post-nav a:hover { border-color: var(--rose); }
.post-nav .dir { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-faint); display: block; }
.post-nav .to { font-size: var(--step-1); display: block; margin-top: 0.25rem; }
.post-nav .next { text-align: right; }

/* ---------- filter chips (blog index) ---------- */

.filter {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-label {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.filter-list { display: flex; gap: 0.4rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.chip {
  font: inherit;
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.chip:hover { border-color: var(--rose); color: var(--rose-deep); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-status {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0 0 1.25rem;
  min-height: 1.2em;
}
.post-card[hidden] { display: none; }

/* ---------- newsletter ---------- */

.signup {
  background:
    radial-gradient(40rem 24rem at 85% 0%, var(--lilac), transparent 60%),
    var(--paper-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3rem);
  text-align: center;
}
.signup h2 { font-size: var(--step-2); margin: 0 0 0.6rem; }
.signup p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto; }
.signup form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}
.signup input[type="email"] {
  font: inherit;
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  min-width: min(100%, 18rem);
}
.signup small { display: block; color: var(--ink-faint); font-family: var(--sans); font-size: 0.78rem; margin-top: 1rem; }

/* ---------- about ---------- */

.about-grid { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 52rem) { .about-grid { grid-template-columns: 1.25fr 1fr; } }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.facts b { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--rose-deep); flex: none; width: 7.5rem; }

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(3rem, 2rem + 6vw, 7rem); text-align: center; }
.notfound h1 { font-size: var(--step-4); margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.notfound p { color: var(--ink-soft); max-width: 40ch; margin: 0 auto 1.75rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-block: 2rem 2.25rem;
  background: var(--paper-2);
}
/* Grid, not flex. With flex the two blocks each had a large flex-basis, so between
   roughly 42rem and 56rem they wrapped at unpredictable points and the right-hand
   column dropped below the left one, leaving a tall gap. A two-column grid that
   collapses to one at a single breakpoint cannot do that. */
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  gap: 1.5rem 2.5rem;
  align-items: start;
}
.site-footer p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 40ch; }
/* Wide enough for the code and the note; the sentence itself is still held to 40ch
   by `.site-footer p`, so the line length above does not change. */
.footer-about { max-width: 34rem; }
/* The verse sits on the right of the footer, above the links, and is set to the same
   right edge as the links so the two read as one column. */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  text-align: right;
}
.footer-right .footer-links { justify-content: flex-end; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; font-family: var(--sans); font-size: 0.88rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--rose-deep); text-decoration: underline; }
.colophon { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-faint); margin-top: 1.5rem; }

/* One verse per page, and no page repeats another. See the table in AGENTS.md — a new
   page needs a new verse, and the list of used ones is there so nobody has to grep. */
.footer-verse {
  max-width: 100%;
  margin: 0;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.footer-verse cite {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Bitcoin Cash (the footer of every page) ---------- */

/* The address and the code are one unit: the QR scans to the same string the link opens,
   and both live in the footer of all eleven pages, so nothing here can drift on its own. */
/* Sits under the sentence in the left column rather than on a row of its own: the footer's
   left side was a short paragraph over a lot of empty space, and this fills it while taking
   a row off the height of the footer on a wide screen. */
.footer-pay {
  display: flex;
  align-items: center;
  gap: 0.9rem 1rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
  max-width: 34rem;   /* wide enough that the code and the note sit side by side */
}
.footer-pay-qr {
  flex: none;
  display: block;
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}
.footer-pay-qr img { width: 100%; height: 100%; display: block; }
/* The code keeps its own light tile in dark mode on purpose, and is deliberately absent
   from the dark-mode artwork tint: a tinted QR is a QR that will not scan. */
/* Scoped with `.footer-about` on purpose: `.site-footer p` is the more specific rule and
   would otherwise hold this at 40ch and wrap it into a narrow ribbon. */
.footer-about .footer-pay-note {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.83rem;
  line-height: 1.5;
  max-width: 27rem;
}
.footer-pay-note strong { display: block; color: var(--ink); font-weight: 600; }
.footer-pay-addr { font-size: 0.82rem; overflow-wrap: anywhere; }

/* ---------- questions (end of the homeschooling page) ---------- */

/* In line with the rest of the page: the same measure as the prose, centred, and the last
   thing before the footer navigation. */
.qa {
  max-width: var(--measure);
  margin: 3rem auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}
.qa h2 { font-size: var(--step-1); line-height: 1.2; margin: 0; }
.qa-standfirst { color: var(--ink-soft); font-size: 0.95rem; margin: 0.5rem 0 0.25rem; }
/* A hairline between questions rather than a list marker: this is a panel of answers, not
   an ordered set of steps. The disclosure is a <details>, so the browser does the opening
   and closing and the site needs no script for it. */
.qa-item { border-top: 1px solid var(--line-soft); }
.qa-item:first-of-type { border-top: 0; }
.qa-item > summary {
  position: relative;
  padding: 0.95rem 1.75rem 0.95rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.qa-item > summary::-webkit-details-marker { display: none; }
.qa-item > summary:hover { color: var(--rose-deep); }
/* The chevron is drawn rather than taken from the marker, so it can rotate when the item
   opens. Closed it points down, open it points up. */
.qa-item > summary::after {
  content: "";
  position: absolute;
  top: 1.4rem;
  right: 0.3rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--rose-deep);
  border-bottom: 2px solid var(--rose-deep);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.qa-item[open] > summary { color: var(--rose-deep); }
.qa-item[open] > summary::after { transform: rotate(-135deg); }
.qa-item > p { margin: 0 0 1.05rem; color: var(--ink-soft); font-size: 0.97rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .signup, .post-nav, .skip-link { display: none; }
  /* A closed question would print as a bare heading, so the answers come out in full and
     the chevrons go away. */
  .qa-item > summary::after { display: none; }
  .qa-item::details-content { content-visibility: visible; }
  body { background: #fff; color: #000; }
}

/* This must stay at the end of the file. The `.footer-verse` rules below the
   old position of this query declare `text-align: right`, and source order beats
   equal specificity — the query was silently doing nothing. */
@media (max-width: 52rem) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-right { align-items: flex-start; text-align: left; }
  .footer-right .footer-links { justify-content: flex-start; }
  .footer-verse { text-align: left; }
  .footer-about { max-width: none; }
}
