:root {
  color-scheme: light dark;
  --bg: #fff7f2;
  --bg-tinted: #faeee4;
  --surface: #fffdf8;
  --surface-elevated: #fff8ef;
  --ink: #351f2c;
  --muted: #604b53;
  --border: #ead6cc;
  --border-strong: #a97872;
  --header: #fff4edcd;

  --accent: #804f66;
  --accent-hover: #6d3b54;
  --accent-soft: #f3e2eb;
  --on-accent: #fffdf9;

  --gold: #835723;
  --gold-soft: #ffe7ae;
  --sage: #356451;
  --sage-soft: #d7efe3;
  --berry: #792c56;
  --berry-soft: #f9deec;
  --clay: #9b3f29;
  --clay-soft: #ffe0cb;

  --hero-base: #fae9e5;
  --hero-shade-start: #f9e6dcef;
  --hero-shade-mid: #f9e5d9d9;
  --hero-tile: #fff6ecb8;
  --hero-tile-border: #fdf9f3e8;
  --shadow: 0 5px 18px rgba(88, 43, 57, 0.08);
  --shadow-hover: 0 9px 25px rgba(88, 43, 57, 0.17);
  --radius: 16px;
  --radius-sm: 11px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #231c23;
    --bg-tinted: #2e2029;
    --surface: #31242d;
    --surface-elevated: #3a2a34;
    --ink: #fff5ec;
    --muted: #e8d3dc;
    --border: #664958;
    --border-strong: #af7f92;
    --header: #261e27f5;

    --accent: #edbadb;
    --accent-hover: #f9d0e9;
    --accent-soft: #563247;
    --on-accent: #351b2d;

    --gold: #ffd38e;
    --gold-soft: #574020;
    --sage: #b5e8cc;
    --sage-soft: #294b3e;
    --berry: #ffc6e5;
    --berry-soft: #533247;
    --clay: #ffc0a9;
    --clay-soft: #56372e;

    --hero-base: #2b2028;
    --hero-shade-start: #241820fa;
    --hero-shade-mid: #2a1c25ee;
    --hero-tile: #42303de8;
    --hero-tile-border: #a97d8d;
    --shadow: 0 5px 18px rgba(0, 0, 0, 0.19);
    --shadow-hover: 0 9px 25px rgba(0, 0, 0, 0.33);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.is-hidden {
  display: none !important;
}

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

.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 15px 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--gold);
}

.brand-lockup {
  display: grid;
  gap: 4px;
  line-height: 1.13;
}

.brand-lockup strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.17rem;
  font-weight: 700;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav,
.header-actions {
  display: flex;
  align-items: center;
}

.nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 25px;
  font-size: 0.91rem;
}

.nav a {
  padding: 4px 2px;
  font-weight: 600;
  text-decoration: none;
}

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

.header-actions {
  flex-shrink: 0;
  gap: 12px;
}

.header-search,
.nav-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 39px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header-search {
  width: 39px;
}

.header-search svg,
.nav-cta svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.nav-cta {
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.header-search:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.nav-cta {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--on-accent);
}

.nav-cta:hover {
  border-color: var(--accent-hover);
  background-color: var(--accent-hover);
}

/* Home hero */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 52px 0 34px;
  background: var(--hero-base);
}

.hero-photo,
.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-photo {
  display: block;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.home-hero::before {
  content: "";
  background:
    linear-gradient(0deg, var(--hero-base) 0%, transparent 34%),
    linear-gradient(90deg, var(--hero-shade-start) 0%, var(--hero-shade-mid) 36%, transparent 68%);
}

.home-hero-copy {
  position: relative;
}

.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-eyebrow {
  margin-bottom: 11px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.28;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
}

.home-title {
  max-width: 660px;
  margin-bottom: 17px;
  color: var(--ink);
  font-size: 4.35rem;
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 0.99;
  text-wrap: balance;
}

.home-lead {
  max-width: 540px;
  color: var(--ink);
  font-size: 1.13rem;
  line-height: 1.43;
  text-wrap: pretty;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: translate 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn svg {
  flex: none;
  width: 17px;
  height: 17px;
}

.btn:hover {
  translate: 0 -1px;
}

.btn:active {
  translate: 0 0;
}

.btn-primary,
.btn-light {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-light:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  border-color: var(--border-strong);
  background: var(--hero-tile);
  color: var(--ink);
}

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

/* Homepage search and shortcuts */
.home-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(750px, calc(100% - 32px));
  margin: 35px auto 16px;
  padding: 7px 8px 7px 19px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-hover);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow);
}

.home-search-symbol {
  width: 23px;
  height: 23px;
  color: var(--gold);
}

.home-search-field {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.home-search-field label {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-search-field input {
  min-width: 0;
  width: 100%;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.87rem;
  line-height: 1.4;
}

.home-search-field input:focus-visible {
  outline: none;
}

.home-search-field input::placeholder {
  color: var(--muted);
}

.home-search-submit {
  min-width: 104px;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 940px;
}

.home-shortcut {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 101px;
  gap: 2px;
  padding: 10px 8px 11px;
  border: 1px solid var(--hero-tile-border);
  border-radius: 14px;
  background: var(--hero-tile);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, translate 0.15s ease;
}

.home-shortcut:hover {
  translate: 0 -2px;
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.home-shortcut-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 3px;
  color: var(--gold);
}

.home-shortcut strong {
  font-size: 0.99rem;
  line-height: 1.2;
}

.home-shortcut span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

/* Featured materials */
.home-featured {
  padding-block: 21px 26px;
}

.home-featured-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 13px;
}

.home-featured-head h2 {
  font-size: 1.8rem;
}

.home-all {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

.home-all:hover {
  text-decoration: underline;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.featured-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "type type"
    ". ."
    "title arrow";
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 126px;
  aspect-ratio: 2.03;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #63505c;
  color: #fffdf9;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: outline-color 0.15s ease, box-shadow 0.15s ease, translate 0.15s ease;
}

.featured-card:hover {
  translate: 0 -2px;
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.featured-card img,
.featured-card::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-card img {
  z-index: -2;
  display: block;
  object-fit: cover;
}

.featured-card::before {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, #211822eb 0%, #211822a1 37%, transparent 75%);
}

.featured-type {
  grid-area: type;
  justify-self: start;
  margin: 10px 13px 2px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff1e5e8;
  color: #3c2534;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.featured-title {
  grid-area: title;
  align-self: end;
  margin: 8px 0 13px 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.featured-arrow {
  grid-area: arrow;
  align-self: end;
  margin: 0 12px 15px 7px;
  font-size: 1.1rem;
  line-height: 1;
}

/* Topic navigation */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--topic-soft, var(--surface)) 62%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--topic-color, var(--accent)) 22%, var(--topic-soft, var(--surface)));
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover {
  border-color: var(--topic-color, var(--accent));
  box-shadow: var(--shadow-hover);
}

.topic-card[aria-pressed="true"] {
  border-color: var(--topic-color, var(--accent));
  box-shadow: 0 0 0 2px var(--topic-color, var(--accent));
}

.topic-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  background: var(--topic-soft, var(--gold-soft));
}

.topic-label {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 11px clamp(8px, 1.4vw, 15px);
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  font-weight: 650;
  line-height: 1.32;
  overflow-wrap: anywhere;
  color: var(--topic-color, var(--ink));
}

.topic-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(1.25rem, 2.2vw, 1.8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--topic-color, var(--accent)) 12%, var(--topic-soft, var(--surface)));
  font-size: 1em;
}

.topic-card[data-filter="intro"],
.lesson-card[data-category="intro"] {
  --topic-color: var(--clay);
  --topic-soft: var(--clay-soft);
}

.topic-card[data-filter="energy"],
.lesson-card[data-category="energy"] {
  --topic-color: var(--gold);
  --topic-soft: var(--gold-soft);
}

.topic-card[data-filter="systems"],
.lesson-card[data-category="systems"] {
  --topic-color: var(--sage);
  --topic-soft: var(--sage-soft);
}

.topic-card[data-filter="mind"],
.lesson-card[data-category="mind"] {
  --topic-color: var(--berry);
  --topic-soft: var(--berry-soft);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section[id],
.catalog-controls,
.home-search,
.lesson-card[id],
#about {
  scroll-margin-top: 112px;
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.section-note {
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Catalog Controls */
.catalog-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
  padding: clamp(14px, 2.5vw, 22px);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrap input {
  min-width: 0;
  width: 100%;
  padding: 12px 17px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-wrap input::placeholder {
  color: var(--muted);
}

.btn-clear {
  flex-shrink: 0;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-pill:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.filter-pill.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.controls-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.catalog-count {
  color: var(--muted);
  font-weight: 500;
}

.btn-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--berry);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background-color: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* Lesson Cards */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  align-items: start;
}

.lesson-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lesson-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--topic-color, var(--accent));
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -24px -22px 1px;
  padding: 14px 15px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--topic-color, var(--accent)) 28%, var(--topic-soft, var(--accent-soft)));
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--topic-soft, var(--accent-soft));
}

.lesson-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background-color: var(--topic-color, var(--accent));
  color: var(--on-accent);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.lesson-card h3 {
  font-size: 1.24rem;
}

.card-summary {
  color: var(--muted);
  font-size: 0.95rem;
}

.lesson-details {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.lesson-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

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

.lesson-details summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.lesson-details[open] summary::after {
  content: "−";
  background-color: var(--accent);
  color: var(--on-accent);
}

.details-body {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink);
}

.details-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

/* Initiations & Panels */
.initiations-columns,
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  padding: 26px;
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel h2,
.panel h3 {
  margin-bottom: 14px;
}

.panel-intro {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.init-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.init-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.panel-space .init-list li {
  border-left-color: var(--berry);
}

.init-list li:hover {
  transform: translateX(3px);
}

.init-title {
  font-weight: 600;
  font-size: 0.96rem;
}

.init-meta {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Daily Grid */
.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.daily-card {
  padding: 22px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.daily-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
}

.daily-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.daily-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Format & Author */
.bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  font-size: 0.96rem;
}

.author-panel p + p {
  margin-top: 12px;
}

.author-quote {
  margin: 20px 0 0;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--accent-soft), var(--gold-soft));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
}

.author-quote footer {
  margin-top: 8px;
  font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}

/* Contact & Footer */
.contact-section {
  padding-block: 56px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 34px;
  background: linear-gradient(120deg, var(--gold-soft), var(--sage-soft));
  border: 1px solid var(--border);
  border-radius: 24px;
}

.contact-card h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin-bottom: 10px;
  color: var(--ink);
}

.contact-text {
  max-width: 58ch;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

@media (min-width: 1100px) {
  .site-header {
    margin-bottom: -71px;
  }

  .header-inner {
    width: min(1376px, calc(100% - 80px));
  }

  .brand {
    gap: 18px;
  }

  .brand-mark {
    width: 70px;
    height: 60px;
  }

  .brand-lockup strong {
    font-size: 1.38rem;
    line-height: 1.05;
  }

  .brand-lockup small {
    font-size: 0.8rem;
  }

  .nav {
    gap: 27px;
    font-size: 1rem;
  }

  .home-hero {
    padding-top: 121px;
    padding-bottom: 6px;
  }

  .hero-photo {
    object-position: center 22%;
  }

  .home-hero-copy {
    width: min(1272px, calc(100% - 128px));
  }

  .home-lead {
    max-width: 540px;
  }

  .home-hero-actions {
    margin-top: 13px;
  }

  .home-hero-actions .btn {
    min-height: 51px;
    padding-inline: 26px;
    font-size: 0.98rem;
  }

  .home-search {
    width: min(1142px, calc(100% - 64px));
    min-height: 104px;
    gap: 23px;
    margin-block: 29px 31px;
    padding: 15px 17px 15px 33px;
  }

  .home-search-symbol {
    width: 37px;
    height: 37px;
  }

  .home-search-field label {
    font-size: 1.18rem;
  }

  .home-search-field input {
    font-size: 1rem;
  }

  .home-search-submit {
    min-width: 133px;
    min-height: 57px;
    font-size: 1rem;
  }

  .home-shortcuts,
  .home-featured {
    width: min(1444px, calc(100% - 64px));
    max-width: none;
  }

  .home-shortcuts,
  .featured-grid {
    gap: 18px;
  }

  .home-shortcut {
    align-content: start;
    min-height: 176px;
    gap: 7px;
    padding-top: 16px;
    border-radius: 20px;
  }

  .home-shortcut-icon {
    width: 43px;
    height: 43px;
    margin-bottom: 2px;
  }

  .home-shortcut strong {
    font-size: 1.25rem;
  }

  .home-shortcut span {
    font-size: 0.88rem;
  }

  .home-featured-head {
    margin-bottom: 15px;
  }

  .home-featured-head h2 {
    font-size: 1.98rem;
  }
}

@media (max-width: 1000px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 7px 16px;
    padding-block: 10px 8px;
  }

  .nav {
    order: 1;
    justify-content: flex-start;
    width: 100%;
    gap: 4px 18px;
  }

  .home-title {
    max-width: 570px;
    font-size: 3.75rem;
  }

  .initiations-columns,
  .format-grid {
    grid-template-columns: 1fr;
  }

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

  .section[id],
  .catalog-controls,
  .home-search,
  .lesson-card[id],
  #about {
    scroll-margin-top: 120px;
  }
}

@media (max-width: 700px) {
  .home-hero {
    padding-top: 30px;
  }

  .hero-photo {
    object-position: 63% 10%;
  }

  .home-hero::before {
    background:
      linear-gradient(0deg, var(--hero-base) 0%, transparent 55%),
      linear-gradient(90deg, var(--hero-shade-start) 0%, var(--hero-shade-mid) 62%, transparent 135%);
  }

  .home-title {
    max-width: 500px;
    font-size: 3.05rem;
    text-wrap: initial;
  }

  .home-lead {
    max-width: 390px;
  }

  .home-search {
    margin-top: 27px;
  }

  .home-shortcuts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .home-shortcut {
    grid-column: span 2;
    min-height: 88px;
  }

  .home-shortcut:nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-lockup strong {
    font-size: 1rem;
  }

  .brand-lockup small {
    font-size: 0.67rem;
  }

  .header-actions {
    gap: 7px;
  }

  .header-search,
  .nav-cta {
    min-height: 36px;
  }

  .header-search {
    width: 36px;
  }

  .nav-cta {
    padding-inline: 9px;
    font-size: 0.75rem;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px 5px;
    font-size: 0.78rem;
    text-align: center;
  }

  .nav a {
    border-radius: 5px;
  }

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

  .home-title {
    margin-bottom: 13px;
    font-size: 2.48rem;
    overflow-wrap: anywhere;
  }

  .home-eyebrow {
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  .home-lead {
    font-size: 0.94rem;
  }

  .home-hero-actions {
    gap: 7px;
    margin-top: 18px;
  }

  .home-hero-actions .btn {
    padding-inline: 14px;
    font-size: 0.81rem;
  }

  .home-search {
    width: calc(100% - 28px);
    gap: 7px;
    padding: 6px 6px 6px 9px;
  }

  .home-search-symbol {
    width: 17px;
    height: 17px;
  }

  .home-search-field label {
    font-size: 0.71rem;
  }

  .home-search-field input {
    font-size: 0.8rem;
  }

  .home-search-submit {
    min-width: auto;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .home-shortcut {
    min-height: 80px;
    padding: 6px 3px;
  }

  .home-shortcut strong {
    font-size: 0.82rem;
  }

  .home-shortcut span {
    font-size: 0.63rem;
  }

  .home-featured-head h2 {
    font-size: 1.45rem;
  }

  .featured-card {
    aspect-ratio: 1.5;
  }

  .featured-type {
    margin-inline: 8px;
    padding-inline: 7px;
  }

  .featured-title {
    margin-left: 8px;
    font-size: 0.94rem;
  }

  .featured-arrow {
    margin-right: 8px;
  }

  .section {
    padding-block: 44px;
  }

  .section[id],
  .catalog-controls,
  .home-search,
  .lesson-card[id],
  #about {
    scroll-margin-top: 145px;
  }

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

  .contact-card {
    padding: 26px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
