:root {
  --paper: #f7f8f3;
  --surface: #ffffff;
  --ink: #16211f;
  --muted: #5c6865;
  --line: #dbe3df;
  --teal: #167c72;
  --teal-dark: #0e504b;
  --red: #9a3040;
  --gold: #bb8d24;
  --blue: #2d5e92;
  --shadow: 0 22px 55px rgba(12, 30, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo,
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: white;
  background: var(--red);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal-dark);
}

.language-control,
.toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

select,
input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

select {
  padding: 0 36px 0 12px;
}

input {
  padding: 0 14px;
}

select:focus,
input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 124, 114, 0.16);
}

.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 24, 22, 0.9), rgba(8, 24, 22, 0.68) 44%, rgba(8, 24, 22, 0.18)),
    linear-gradient(0deg, rgba(8, 24, 22, 0.8), rgba(8, 24, 22, 0.08) 42%);
}

.hero-content {
  position: relative;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--red);
}

.button.secondary {
  color: var(--teal-dark);
  border-color: rgba(22, 124, 114, 0.28);
  background: white;
}

.button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.button.small {
  min-height: 38px;
  color: white;
  background: var(--teal-dark);
}

.button:hover,
.button:focus-visible,
.source-link:hover,
.source-link:focus-visible {
  transform: translateY(-1px);
}

.site-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 12px;
  margin: 42px 0 0;
}

.site-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.site-stats dt {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.site-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.section,
.band,
.quick-paths {
  padding: clamp(56px, 8vw, 96px) 0;
}

.band {
  background: white;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.wide-heading .section-copy {
  max-width: 420px;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.section-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.04rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.path-grid,
.course-grid,
.resource-grid,
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.resource-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-card,
.course-card,
.resource-card,
.focus-item,
.shelf-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.library-guide {
  background: #eef5f2;
}

.shelf-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 22px;
}

.shelf-card span {
  color: var(--red);
  font-weight: 950;
}

.shelf-card h3 {
  margin-top: 26px;
}

.shelf-card p,
.shelf-card small {
  margin-top: 10px;
  color: var(--muted);
}

.shelf-card small {
  display: block;
  font-weight: 760;
}

.shelf-card .text-button {
  margin-top: auto;
}

.text-button,
.filter-chip {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.text-button {
  align-self: flex-start;
  padding: 0;
}

.filter-chip {
  padding: 0 13px;
  border: 1px solid rgba(22, 124, 114, 0.28);
  border-radius: 999px;
  background: white;
}

.text-button:hover,
.text-button:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--red);
}

.path-card {
  min-height: 190px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
}

.path-number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--blue);
  font-weight: 900;
}

.path-card p,
.course-card p,
.resource-card p,
.focus-item p {
  margin-top: 10px;
  color: var(--muted);
}

.path-card:hover,
.path-card:focus-visible,
.resource-card:hover {
  border-color: rgba(22, 124, 114, 0.42);
  box-shadow: var(--shadow);
}

.focus-list {
  display: grid;
  gap: 12px;
}

.focus-item {
  padding: 22px;
  border-left: 5px solid var(--teal);
}

.focus-item:nth-child(2) {
  border-left-color: var(--red);
}

.focus-item:nth-child(3) {
  border-left-color: var(--blue);
}

.focus-item:nth-child(4) {
  border-left-color: var(--gold);
}

.course-card {
  min-height: 145px;
  padding: 22px;
}

.question-list {
  display: grid;
  gap: 10px;
}

.question-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.question-list a:hover,
.question-list a:focus-visible {
  border-color: var(--red);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 0.8fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.library-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.library-dashboard div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.library-dashboard strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.library-dashboard span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.curated-strip {
  display: grid;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f2;
}

.curated-strip .eyebrow {
  margin-bottom: 6px;
}

.curated-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.resource-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 20px;
}

.reader-count {
  margin: -4px 0 12px !important;
  color: var(--red) !important;
  font-size: 0.82rem;
  font-weight: 900;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.author {
  color: var(--teal-dark) !important;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 18px;
  padding-top: 18px;
}

.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f3f6f4;
  font-size: 0.76rem;
  font-weight: 760;
}

.source-link {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.empty-state {
  display: none;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
}

.empty-state.visible {
  display: block;
}

.site-footer {
  padding: 28px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(22, 124, 114, 0.18), rgba(23, 35, 31, 0) 42%),
    #17231f;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(340px, 1.4fr) minmax(230px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.footer-card {
  min-height: 148px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.site-footer strong {
  display: block;
  color: white;
}

.footer-contact {
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.footer-contact-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.footer-contact-head strong {
  margin-bottom: 0;
}

.footer-about {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.footer-about:hover,
.footer-about:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.footer-contact address,
.footer-direct {
  display: grid;
  font-style: normal;
}

.footer-contact address span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 760;
}

.footer-links {
  display: grid;
  gap: 16px;
}

.footer-section-head {
  display: grid;
  gap: 4px;
}

.footer-section-head span,
.footer-direct a span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
}

.footer-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.footer-direct {
  gap: 12px;
}

.footer-direct a {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.footer-direct a strong {
  overflow-wrap: anywhere;
}

.footer-direct a:hover strong,
.footer-direct a:focus-visible strong {
  text-decoration: underline;
}

.detail-hero {
  padding: clamp(54px, 8vw, 94px) 0;
  background:
    linear-gradient(135deg, rgba(22, 124, 114, 0.12), rgba(187, 141, 36, 0.12)),
    white;
}

.about-hero {
  padding: clamp(54px, 8vw, 96px) 0;
  background:
    linear-gradient(135deg, rgba(22, 124, 114, 0.12), rgba(45, 94, 146, 0.1)),
    white;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

.about-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.04;
}

.about-contact-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.about-contact-panel strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.about-contact-panel address {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
}

.about-contact-panel a {
  color: var(--teal-dark);
  text-decoration: none;
}

.about-contact-panel a:hover,
.about-contact-panel a:focus-visible {
  text-decoration: underline;
}

.about-content {
  display: grid;
  gap: 18px;
}

.about-section,
.about-mission {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.about-section h2,
.about-mission h2 {
  max-width: 860px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.about-prose {
  display: grid;
  gap: 14px;
  max-width: 850px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.about-value-card {
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f3;
}

.about-value-card span {
  color: var(--red);
  font-weight: 950;
}

.about-value-card h3 {
  margin-top: 22px;
}

.about-value-card p,
.about-mission p {
  margin-top: 12px;
  color: var(--muted);
}

.about-mission {
  border-color: rgba(22, 124, 114, 0.34);
  background: #eef5f2;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}

.detail-intro h1 {
  max-width: 820px;
  margin: 12px 0 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.detail-main-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.detail-panel,
.reading-card,
.related-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.detail-panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.detail-panel h2,
.reading-card h2 {
  font-size: 1.25rem;
}

.meta-list {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
}

.meta-list div {
  display: grid;
  gap: 3px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 0;
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reading-card {
  padding: 24px;
}

.highlight-card {
  background: #f7f8f3;
  border-color: rgba(187, 141, 36, 0.42);
}

.reading-card p {
  margin-top: 12px;
  color: var(--muted);
}

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

.check-list li {
  position: relative;
  padding-left: 25px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

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

.related-card {
  min-height: 190px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
}

.related-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.related-card p {
  margin-top: 10px;
  color: var(--muted);
}

.related-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal-dark);
}

.related-card:hover,
.related-card:focus-visible {
  border-color: rgba(22, 124, 114, 0.42);
  box-shadow: var(--shadow);
}

.reader-body {
  background: #fbfbf7;
}

.reader-hero {
  padding: clamp(48px, 7vw, 82px) 0;
  background: white;
  border-bottom: 1px solid var(--line);
}

.reader-index-hero {
  background:
    linear-gradient(135deg, rgba(22, 124, 114, 0.1), rgba(45, 94, 146, 0.08)),
    white;
}

.reader-index-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 5vw, 56px);
  align-items: end;
}

.index-stats {
  display: grid;
  gap: 10px;
  margin: 0;
}

.index-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.index-stats dt {
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.index-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.index-overview {
  padding-bottom: 0;
}

.index-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.index-feature-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.index-feature-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--blue);
  font-weight: 950;
}

.index-feature-grid h2 {
  font-size: 1.25rem;
}

.index-feature-grid p {
  margin-top: 12px;
  color: var(--muted);
}

.reader-hero h1,
.reader-article h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.reader-toc {
  display: grid;
  gap: 10px;
}

.chapter-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-decoration: none;
}

.chapter-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chapter-row strong {
  font-size: 1.05rem;
}

.chapter-row:hover,
.chapter-row:focus-visible {
  border-color: rgba(22, 124, 114, 0.42);
  box-shadow: var(--shadow);
}

.reading-index-list {
  display: grid;
  gap: 14px;
}

.index-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.index-toolbar p {
  color: var(--muted);
  font-weight: 850;
}

.index-resource {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(20, 37, 40, 0.05);
}

.index-resource summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
}

.index-resource summary span {
  display: grid;
  gap: 4px;
}

.index-resource small,
.index-resource em {
  color: var(--muted);
  font-size: 0.82rem;
}

.index-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  padding: 0 20px 20px;
}

.index-link-grid a {
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: #fbfbf7;
  overflow-wrap: anywhere;
}

.index-link-grid a:hover,
.index-link-grid a:focus-visible {
  border-color: rgba(22, 124, 114, 0.42);
  color: var(--teal-dark);
}

.reader-page {
  padding: clamp(36px, 6vw, 72px) 0;
}

.reader-article {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.reader-subtitle {
  margin-top: 14px;
  color: var(--teal-dark);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 850;
  line-height: 1.25;
}

.reader-quote {
  margin-top: 18px;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
  color: var(--muted);
  font-style: italic;
}

.reader-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 28px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reader-nav .button:last-child {
  justify-self: end;
}

.reader-nav .source-link {
  justify-self: center;
}

.reader-content {
  color: #222f2d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.82;
}

.reader-content p {
  margin: 0 0 1.1em;
}

.reader-content .pagenum {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 560px;
  }

  .split,
  .toolbar,
  .detail-layout,
  .about-hero-grid,
  .curated-strip,
  .reader-index-hero-grid,
  .index-toolbar {
    grid-template-columns: 1fr;
  }

  .path-grid,
  .course-grid,
  .resource-grid,
  .resource-grid.compact,
  .related-grid,
  .about-values,
  .shelf-grid,
  .library-dashboard,
  .index-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curated-actions {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-logo,
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding: 72px 0 34px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .site-stats,
  .path-grid,
  .course-grid,
  .resource-grid,
  .resource-grid.compact,
  .detail-content,
  .related-grid,
  .about-values,
  .shelf-grid,
  .library-dashboard,
  .index-feature-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .chapter-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .reader-article {
    width: min(100% - 24px, 820px);
    padding: 22px;
  }

  .reader-nav {
    grid-template-columns: 1fr;
  }

  .reader-nav .button:last-child,
  .reader-nav .source-link {
    justify-self: stretch;
    text-align: center;
  }

  .site-footer {
    padding: 22px 18px;
  }

  .footer-card {
    min-height: auto;
    padding: 18px;
  }

  .footer-contact {
    align-content: start;
  }
}
