:root {
  --bg: #f5efe4;
  --bg-accent: #eadbc1;
  --surface: rgba(255, 251, 244, 0.86);
  --surface-strong: #fffaf1;
  --surface-border: rgba(104, 78, 49, 0.14);
  --surface-soft: rgba(255, 248, 239, 0.78);
  --nav-surface: rgba(255, 250, 244, 0.9);
  --nav-surface-sticky: rgba(255, 252, 247, 0.98);
  --nav-border: rgba(104, 78, 49, 0.2);
  --nav-shadow-sticky:
    0 0 0 1px rgba(121, 88, 54, 0.14),
    0 14px 32px rgba(68, 41, 18, 0.18),
    0 4px 12px rgba(68, 41, 18, 0.1);
  --text: #24190f;
  --muted: #6f5b46;
  --accent: #a5582a;
  --accent-strong: #7f3f1b;
  --shadow: 0 18px 50px rgba(68, 41, 18, 0.12);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1120px;
  --sticky-offset: 12px;
  --section-anchor-offset: 152px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(140deg, var(--bg), var(--bg-accent));
  font-family: Georgia, "Times New Roman", serif;
}

body.has-section-finder-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  padding: 20px 14px 56px;
}

.layout {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 24px 20px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(252, 239, 214, 0.92)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -48px -72px auto;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 88, 42, 0.2), transparent 66%);
}

.eyebrow,
.section-kicker,
.section-meta,
.meta-section-kicker,
.section-finder-group-kicker,
.link-kicker,
.section-toggle {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.74rem;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 9ch;
  font-size: clamp(2.5rem, 9vw, 4.9rem);
  line-height: 0.95;
}

.hero-copy,
.hero-topic-finder {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
}

.hero-copy {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-topic-finder {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-topic-finder .section-finder-groups {
  gap: 14px;
}

.hero-topic-finder .section-finder-group {
  padding: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-topic-finder .section-finder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-topic-finder .section-finder-item {
  min-height: 88px;
}

.section-navigator {
  position: sticky;
  top: var(--sticky-offset);
  z-index: 12;
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px;
  border: 1px solid var(--nav-border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.97), rgba(249, 240, 227, 0.92)),
    var(--nav-surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section-navigator.is-stuck {
  border-color: rgba(104, 78, 49, 0.32);
  background: var(--nav-surface-sticky);
  box-shadow: var(--nav-shadow-sticky);
}

.section-navigator-copy {
  display: grid;
  gap: 0;
}

.section-navigator-header {
  display: grid;
  gap: 8px;
}

.section-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.section-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(104, 78, 49, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.88rem;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.section-search {
  display: grid;
  gap: 4px;
}

.section-search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(104, 78, 49, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.section-search-input:focus-visible {
  outline: 2px solid rgba(165, 88, 42, 0.35);
  outline-offset: 2px;
  border-color: rgba(165, 88, 42, 0.38);
}

.section-finder-trigger,
.section-finder-close {
  border: 1px solid rgba(165, 88, 42, 0.2);
  border-radius: 999px;
  color: var(--accent-strong);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.section-finder-trigger {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff8f0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 20px rgba(127, 63, 27, 0.16);
}

.section-finder-close {
  padding: 11px 14px;
  background: rgba(165, 88, 42, 0.08);
}

.section-finder-trigger:hover,
.section-finder-trigger:focus-visible,
.section-finder-close:hover,
.section-finder-close:focus-visible,
.section-finder-item:hover,
.section-finder-item:focus-visible,
.section-finder-item.is-active {
  box-shadow: 0 10px 24px rgba(68, 41, 18, 0.1);
}

.section-finder-trigger:hover,
.section-finder-trigger:focus-visible {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.section-finder-close:hover,
.section-finder-close:focus-visible,
.section-finder-item:hover,
.section-finder-item:focus-visible,
.section-finder-item.is-active {
  border-color: rgba(165, 88, 42, 0.35);
  background: rgba(255, 252, 246, 0.98);
}

.section-finder-trigger:focus-visible,
.section-finder-close:focus-visible,
.section-finder-item:focus-visible,
.link-card:focus-visible,
.section-toggle:focus-visible,
.section-kicker-link:focus-visible {
  outline: 2px solid rgba(165, 88, 42, 0.4);
  outline-offset: 2px;
}

.section-finder {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.section-finder-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 25, 15, 0.38);
  backdrop-filter: blur(4px);
}

.section-finder-panel {
  position: relative;
  display: grid;
  align-content: flex-start;
  gap: 18px;
  width: 100%;
  max-height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 18px 14px 20px;
  background:
    linear-gradient(155deg, rgba(255, 252, 246, 0.98), rgba(247, 236, 214, 0.96)),
    var(--surface-strong);
  overflow: auto;
}

.section-finder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-finder-eyebrow {
  margin: 0 0 8px;
}

.section-finder-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  line-height: 1;
}

.section-finder-copy,
.section-finder-group-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  line-height: 1.5;
}

.section-finder-groups {
  display: grid;
  gap: 18px;
}

.section-finder-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(104, 78, 49, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
}

.section-finder-group-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1.15rem;
  font-weight: 700;
}

.section-finder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.section-finder-item {
  display: grid;
  gap: 4px;
  min-height: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(104, 78, 49, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.section-finder-item.is-empty {
  opacity: 0.78;
}

.section-finder-group[data-meta-section-id="right-now"] {
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.96), rgba(255, 239, 225, 0.82));
}

.section-finder-group[data-meta-section-id="ongoing-support"] {
  background: linear-gradient(180deg, rgba(248, 250, 241, 0.96), rgba(237, 244, 225, 0.84));
}

.section-finder-group[data-meta-section-id="learning-and-reflection"] {
  background: linear-gradient(180deg, rgba(246, 248, 255, 0.96), rgba(232, 237, 250, 0.84));
}

.section-finder-group[data-meta-section-id="special-situations"] {
  background: linear-gradient(180deg, rgba(252, 245, 238, 0.96), rgba(246, 232, 220, 0.84));
}

.section-finder-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.section-finder-item-meta {
  color: var(--muted);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.82rem;
}

.meta-sections {
  display: grid;
  gap: 24px;
}

.meta-section {
  display: grid;
  gap: 16px;
  padding: 20px 16px;
  border: 1px solid rgba(104, 78, 49, 0.12);
  border-radius: 30px;
  background: rgba(255, 250, 243, 0.68);
  box-shadow: var(--shadow);
}

.meta-section[hidden],
.section-card[hidden],
.link-item[hidden],
.search-empty-state[hidden] {
  display: none;
}

.meta-section-header {
  display: grid;
  gap: 6px;
}

.meta-section-header h2 {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.25rem);
  line-height: 1.03;
}

.meta-section-description {
  margin: 0;
  color: var(--muted);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.98rem;
  line-height: 1.55;
}

.sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.meta-section[data-meta-section-id="right-now"] {
  background: linear-gradient(180deg, rgba(255, 249, 244, 0.98), rgba(255, 238, 224, 0.8));
}

.meta-section[data-meta-section-id="ongoing-support"] {
  background: linear-gradient(180deg, rgba(248, 251, 244, 0.98), rgba(234, 243, 224, 0.82));
}

.meta-section[data-meta-section-id="learning-and-reflection"] {
  background: linear-gradient(180deg, rgba(247, 248, 255, 0.98), rgba(231, 236, 249, 0.82));
}

.meta-section[data-meta-section-id="special-situations"] {
  background: linear-gradient(180deg, rgba(252, 246, 239, 0.98), rgba(245, 231, 219, 0.82));
}

.section-card {
  padding: 20px 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  scroll-margin-top: var(--section-anchor-offset);
}

.section-card.is-empty {
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.85), rgba(250, 242, 228, 0.72));
  border-style: dashed;
}

.section-header {
  margin-bottom: 16px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.7rem;
}

.section-kicker-link {
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.section-header h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.05;
}

.section-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.link-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(104, 78, 49, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(165, 88, 42, 0.35);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(68, 41, 18, 0.1);
}

.link-card:hover .link-title,
.link-card:focus-visible .link-title {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.link-card:hover .link-chevron,
.link-card:focus-visible .link-chevron {
  transform: translateX(2px);
  color: var(--accent-strong);
}

.link-card.has-thumbnail {
  padding-block: 16px;
}

.link-content {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}

.link-kicker {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: left;
}

.link-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.link-title {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.link-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 160ms ease, color 160ms ease;
}

.link-chevron-icon {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
}

.link-description {
  color: var(--muted);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.93rem;
  line-height: 1.45;
}

.link-thumbnail-row {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.link-thumbnail-wrap {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(165, 88, 42, 0.1);
  box-shadow: 0 10px 24px rgba(68, 41, 18, 0.08);
}

.link-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-toggle {
  margin-top: 14px;
  padding: 11px 15px;
  border: 1px solid rgba(165, 88, 42, 0.2);
  border-radius: 999px;
  background: rgba(165, 88, 42, 0.08);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.section-toggle:hover,
.section-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(165, 88, 42, 0.35);
  background: rgba(165, 88, 42, 0.14);
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  line-height: 1.55;
}

.search-empty-state {
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 244, 0.92);
  color: var(--muted);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  line-height: 1.5;
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .page-shell {
    padding: 28px 20px 60px;
  }

  .hero {
    margin-bottom: 20px;
    padding: 34px 32px;
  }

  .section-navigator {
    padding: 16px 18px;
  }

  .hero-topic-finder {
    padding: 0;
  }

  .section-navigator-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .section-summary {
    gap: 10px;
  }

  .section-finder-trigger {
    width: auto;
    min-width: 180px;
  }

  .section-finder-panel {
    width: min(100% - 24px, 860px);
    max-height: calc(100vh - 24px);
    min-height: auto;
    margin: 12px auto;
    padding: 22px;
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(36, 25, 15, 0.22);
  }

  .section-finder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-finder-group {
    padding: 18px;
  }

  .sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-card {
    padding: 24px;
  }

  .meta-section {
    padding: 24px 22px;
  }

  .link-thumbnail-wrap {
    width: 98px;
    height: 98px;
  }
}

@media (min-width: 980px) {
  .meta-sections {
    gap: 34px;
  }

  .meta-section {
    gap: 18px;
    padding: 28px 24px;
  }

  .sections-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-finder-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
