/* ==========================================================================
   Theory Made Fun (theorymadefun.com) — styles
   Vibrant palette (yellow → green → teal → blue) with light + dark themes.

   Theming model (see js + inline <head> script):
   - Semantic tokens only. The 5 vibrant palette colors are used as *fills*
     paired with near-black content (--on-vibrant); text that sits on a page
     background uses contrast-safe --text / --heading / --link instead.
   - :root holds the light theme; [data-theme="dark"] (and the system
     preference, when the visitor hasn't chosen) swaps in the dark values.
   No frameworks; progressive enhancement (site fully works without JS).
   ========================================================================== */

:root {
  /* ---- Structural (theme-independent) ---- */
  --radius: 16px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Palette (vibrant fills — always paired with --on-vibrant) ---- */
  --primary: #0098ce;      /* blue  — primary actions        */
  --cat-virtual: #00c8a5;  /* teal  — "Virtual"              */
  --cat-inperson: #23ce6b; /* green — "In person"            */
  --cat-fun: #fbfb00;      /* yellow — "Fun!" / accent pop   */
  --accent: #fbfb00;       /* yellow accent (fills / on dark)*/
  --lime: #6ad700;         /* lime accent (decoration)       */
  --on-vibrant: #08141c;   /* near-black content on any fill */

  /* ---- Fixed dark bands (signup + footer, same in both themes) ---- */
  --band-bg: #080d12;
  --band-text: rgba(233, 242, 247, 0.82);
  --band-heading: #ffffff;
  --band-link: var(--accent);

  /* ---- Light theme (default) ---- */
  --bg: #f6f9fb;
  --bg-alt: #e9f2f7;
  --surface: #ffffff;
  --border: #dae5ec;
  --text: #10181d;
  --text-muted: #4c5b66;
  --heading: #0c2331;
  --link: #0072a1;
  --link-hover: #005a82;
  --focus: #006c99;
  --check: #0b7a49;        /* positive check marks on --bg   */
  --shadow: 0 10px 30px -12px rgba(12, 35, 48, 0.16);
}

:root[data-theme="dark"] {
  --bg: #0b0f13;
  --bg-alt: #12181d;
  --surface: #171f25;
  --border: #2b353d;
  --text: #e9f0f4;
  --text-muted: #a6b3bc;
  --heading: #f4f9fc;
  --link: #4cbfef;
  --link-hover: #79d2f5;
  --focus: #4cbfef;
  --check: #6ad700;
  --shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.65);
}

/* Follow the OS preference until the visitor makes an explicit choice. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b0f13;
    --bg-alt: #12181d;
    --surface: #171f25;
    --border: #2b353d;
    --text: #e9f0f4;
    --text-muted: #a6b3bc;
    --heading: #f4f9fc;
    --link: #4cbfef;
    --link-hover: #79d2f5;
    --focus: #4cbfef;
    --check: #6ad700;
    --shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.65);
  }
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

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

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  margin: 0;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

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

/* The bands are dark in both themes — keep a bright ring there. */
.signup-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent);
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, 100% - 2.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-vibrant);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-vibrant);
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--primary) 60%, transparent);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 88%, #ffffff);
  color: var(--on-vibrant);
}

.btn-ghost {
  color: var(--link);
  border: 2px solid var(--link);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--primary);
  color: var(--on-vibrant);
  border-color: var(--primary);
}

.btn-light {
  background: #ffffff;
  color: var(--on-vibrant);
}

.btn-light:hover {
  background: var(--accent);
  color: var(--on-vibrant);
}

.btn-light.is-disabled {
  opacity: 0.9;
  cursor: default;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  border: 2px dashed rgba(255, 255, 255, 0.6);
}

.btn-small {
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--on-vibrant);
}

.badge-virtual {
  background: var(--cat-virtual);
}

.badge-hybrid {
  background: var(--cat-fun);
}

.badge-inperson {
  background: var(--cat-inperson);
}

.eyebrow {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 0.75rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -12px rgba(0, 0, 0, 0.35);
}

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

.brand {
  display: flex;
  align-items: center;
  margin-inline-end: auto;
  text-decoration: none;
}

/* The logo PNG has an opaque white background, so rounding its corners makes
   it read as the wordmark on the light theme and a tidy white logo card on
   the dark theme — no background-knockout artifacts. */
.brand-logo {
  display: block;
  height: 4.5rem;
  width: auto;
  border-radius: 9px;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 3.1rem;
  }
}

/* Swap the header logo per theme: white-background version on the light
   theme, transparent (knocked-out) version on the dark theme. The footer
   always uses the transparent version because its band is dark in both. */
.brand-logo--dark {
  display: none;
}

:root[data-theme="dark"] .brand-logo--light {
  display: none;
}

:root[data-theme="dark"] .brand-logo--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand-logo--light {
    display: none;
  }

  :root:not([data-theme]) .brand-logo--dark {
    display: block;
  }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
}

.site-nav a:not(.btn):hover {
  color: var(--link);
}

/* ---------- Theme toggle ---------- */

.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.has-js .theme-toggle {
  display: inline-flex;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle[data-mode="dark"] .icon-moon {
  display: none;
}

.theme-toggle[data-mode="dark"] .icon-sun {
  display: block;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
}

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem 1.5rem;
  }

  .site-header.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
  }

  .site-nav a:not(.btn):hover {
    background: var(--surface);
  }

  .site-nav .btn {
    margin-top: 0.75rem;
    text-align: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgba(0, 152, 206, 0.16) 0%, transparent 60%),
    radial-gradient(50rem 28rem at -20% 110%, rgba(0, 200, 165, 0.14) 0%, transparent 55%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 3rem;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 34em;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.7rem 0 1.9rem;
}

.hero-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-ticks li::before {
  content: "✓";
  color: var(--check);
  font-weight: 900;
  margin-right: 0.45rem;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 1rem 0.5rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem;
  max-width: 21rem;
}

.hero-card p {
  margin: 0.5rem 0 0;
  font-weight: 700;
  color: var(--heading);
}

.hero-card-1 {
  transform: rotate(-2deg);
}

.hero-card-2 {
  transform: rotate(1.5deg) translateX(2.5rem);
}

.hero-card-3 {
  transform: rotate(-1deg) translateX(0.75rem);
}

.float-note {
  position: absolute;
  font-size: 2.2rem;
  color: var(--accent);
  opacity: 0.9;
}

.float-note-1 {
  top: -0.5rem;
  right: 15%;
  transform: rotate(12deg);
}

.float-note-2 {
  bottom: -0.25rem;
  left: -2%;
  font-size: 2.8rem;
  color: var(--cat-inperson);
  opacity: 0.5;
  transform: rotate(-10deg);
}

.float-note-3 {
  top: 42%;
  right: -1%;
  color: var(--primary);
  opacity: 0.55;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-card-2 {
    transform: rotate(1.5deg) translateX(1rem);
  }
}

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

.section {
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 44em;
  margin-bottom: 2.25rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.section-note {
  margin-top: 1.75rem;
  font-weight: 700;
  color: var(--text-muted);
  max-width: 44em;
}

/* ---------- Feature (image beside text) ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: 2.75rem;
}

.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

/* Image on the right on wide screens. */
.feature-reverse .feature-media {
  order: 2;
}

@media (max-width: 760px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  /* Keep the image on top when stacked, regardless of side. */
  .feature-media,
  .feature-reverse .feature-media {
    order: -1;
  }
}

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

.card-grid {
  display: grid;
  gap: 1.4rem;
}

.card-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.5rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--accent);
  color: var(--on-vibrant);
}

.card-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.icon-see {
  background: var(--primary);
  color: var(--on-vibrant);
}

.icon-hear {
  background: var(--cat-virtual);
  color: var(--on-vibrant);
}

.icon-do {
  background: var(--cat-inperson);
  color: var(--on-vibrant);
}

.format-card .badge {
  margin-bottom: 0.9rem;
}

.format-card p:last-child,
.modality-card p:last-child,
.material-card p:last-child {
  margin-bottom: 0;
}

/* ---------- Lists ---------- */

.check-list,
.dot-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  padding-left: 1.7rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--check);
  font-weight: 900;
}

.dot-list li {
  padding-left: 1.35rem;
  position: relative;
  font-size: 0.98rem;
}

.dot-list li::before {
  content: "♪";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Callouts ---------- */

.callout {
  margin-top: 2rem;
  background: var(--surface);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  font-size: 1.1rem;
}

.callout p {
  margin: 0;
}

/* ---------- Levels ---------- */

.level-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-vibrant);
  background: var(--cat-virtual);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin: 0 0 0.9rem;
}

.level-blurb {
  font-weight: 400;
  color: var(--text-muted);
}

.level-card .dot-list {
  margin-bottom: 1.1rem;
}

.level-times {
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Schedule ---------- */

.schedule-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.schedule th,
.schedule td {
  text-align: left;
  padding: 0.95rem 1.4rem;
}

.schedule thead th {
  background: var(--primary);
  color: var(--on-vibrant);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.schedule tbody td a {
  font-weight: 700;
}

@media (max-width: 640px) {
  .schedule thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .schedule tbody tr {
    display: block;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .schedule tbody tr:last-child {
    border-bottom: none;
  }

  .schedule tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.25rem 0;
  }

  .schedule tbody td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
}

/* ---------- Pricing ---------- */

.pricing-card {
  max-width: 32rem;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 6px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2.2rem 2rem;
  text-align: center;
}

.price {
  margin-bottom: 1.4rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--heading);
}

.price-period {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-card .check-list {
  text-align: left;
  margin-bottom: 1.4rem;
}

.pricing-fine {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Teacher ---------- */

.teacher-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-weight: 700;
}

.photo-placeholder span {
  font-size: 3rem;
  color: var(--primary);
}

.photo-placeholder p {
  margin: 0;
}

.teacher-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .teacher-photo {
    max-width: 20rem;
  }
}

/* ---------- Materials ---------- */

.material-links {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.75rem 0 0 !important;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: var(--heading);
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  padding: 0 1.3rem 1.2rem;
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Sign-up band ---------- */

.signup-band {
  background:
    radial-gradient(40rem 20rem at 15% 120%, rgba(0, 200, 165, 0.28) 0%, transparent 60%),
    radial-gradient(38rem 20rem at 90% -20%, rgba(0, 152, 206, 0.22) 0%, transparent 60%),
    var(--band-bg);
  color: var(--band-text);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}

.signup-band h2 {
  color: var(--band-heading);
}

.signup-status {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36em;
  margin-inline: auto;
}

.signup-actions {
  margin: 1.8rem 0 1.4rem;
}

.signup-contact {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.signup-contact a {
  color: var(--band-link);
  font-weight: 800;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--band-bg);
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.8);
  padding-block: 2.5rem;
  font-size: 0.95rem;
}

.footer-inner p {
  margin-bottom: 0.6rem;
}

.footer-logo {
  display: block;
  height: 3.6rem;
  width: auto;
  border-radius: 9px;
  margin-bottom: 0.9rem;
}

.footer-fine {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer a {
  color: var(--band-link);
}

/* ---------- Prose pages (privacy policy, etc.) ---------- */

.prose h3 {
  margin-top: 2rem;
}

.prose ul {
  display: block;
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1em;
}

.prose li {
  margin-bottom: 0.4rem;
}

.page-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Reveal animation (JS adds .js to <html>) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
