:root {
  --paper: #f4efe6;
  --paper-deep: #e7ddcf;
  --surface: #fffaf2;
  --ink: #17201c;
  --ink-soft: #2d3832;
  --muted: #657167;
  --line: #d9cfbf;
  --forest: #214e3d;
  --forest-dark: #163629;
  --clay: #9d4638;
  --ochre: #bf9146;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 4px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid rgba(23, 32, 28, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 32, 28, 0.18);
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-weight: 760;
  font-size: 1rem;
}

.brand-role {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(23, 32, 28, 0.18);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(33, 78, 61, 0.09);
  color: var(--forest-dark);
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(13, 19, 16, 0.86), rgba(13, 19, 16, 0.58) 42%, rgba(13, 19, 16, 0.14)),
    url("../img/hero-study.webp") center / cover no-repeat;
  color: var(--white);
}

.hero-inner,
.section-inner,
.footer-inner,
.page-hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  padding: 92px 0 74px;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #efd7ad;
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 760px;
  font-size: 4.8rem;
}

.hero-lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.25rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.button:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button.dark {
  background: var(--forest);
  color: var(--white);
}

.button.dark:hover {
  background: var(--forest-dark);
  color: var(--white);
}

.stats-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  background: var(--line);
}

.stat {
  min-height: 132px;
  padding: 26px;
  background: var(--surface);
}

.stat strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.compact {
  padding: 58px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.prose h2,
.prose h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading h2 {
  font-size: 2.6rem;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  gap: 56px;
  align-items: start;
}

.profile-panel {
  position: sticky;
  top: 100px;
}

.profile-photo {
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.profile-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.prose {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose h2 {
  margin-top: 2.1em;
  margin-bottom: 0.55em;
  color: var(--ink);
  font-size: 2rem;
}

.prose h3 {
  margin-top: 1.65em;
  margin-bottom: 0.55em;
  color: var(--ink);
  font-size: 1.35rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.38rem 0;
}

.lead {
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.58;
}

.theme-grid,
.feature-grid,
.resource-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.theme-grid {
  grid-template-columns: repeat(5, 1fr);
}

.theme-card,
.book-card,
.resource-card,
.contact-card,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.theme-card {
  min-height: 230px;
  padding: 24px;
}

.theme-card h3,
.book-card h3,
.resource-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.theme-card p,
.book-card p,
.resource-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  grid-template-columns: 0.72fr repeat(3, 1fr);
}

.feature-grid.even {
  grid-template-columns: repeat(4, 1fr);
}

.book-card {
  min-height: 100%;
  overflow: hidden;
}

.book-card.image-card {
  background: var(--ink);
  color: var(--white);
}

.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--paper-deep);
}

.book-card-body {
  padding: 22px;
}

.book-card.image-card h3,
.book-card.image-card p {
  color: var(--white);
}

.book-meta {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.image-card .book-meta {
  color: #efd7ad;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(33, 78, 61, 0.22);
  border-radius: 8px;
  background: #eaf0e8;
}

.callout h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 600;
}

.callout p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.page-hero {
  background: var(--ink);
  color: var(--white);
}

.page-hero-inner {
  padding: 82px 0 58px;
}

.breadcrumb {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero h1 {
  font-size: 3.6rem;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.14rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc p {
  margin: 0;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--forest);
}

.timeline,
.archive-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list-block {
  margin: 0;
  padding: 0;
}

.timeline li,
.archive-list li,
.plain-list li,
.archive-entry {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.archive-entry p {
  margin: 0;
}

.timeline time,
.archive-year {
  display: block;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 780;
}

.archive-title {
  display: block;
  color: var(--ink);
  font-weight: 720;
}

.archive-source {
  display: block;
  color: var(--muted);
}

.resource-grid {
  grid-template-columns: repeat(3, 1fr);
}

.resource-card,
.contact-card {
  padding: 24px;
}

.contact-grid {
  grid-template-columns: 0.82fr 1.18fr;
}

.contact-card address {
  color: var(--ink-soft);
  font-style: normal;
}

.contact-card .button {
  margin-top: 18px;
}

.quote-panel {
  padding: 30px;
  background: #f7f0e5;
}

.quote-panel p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.45;
}

.note {
  padding: 18px 20px;
  border-left: 4px solid var(--ochre);
  background: var(--surface);
  color: var(--ink-soft);
}

.mt-34 {
  margin-top: 34px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px 28px;
  padding: 38px 0;
}

.footer-inner > div:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.footer-inner strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-links {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-credit {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  color: var(--white);
  font-size: 0.9rem;
}

.footer-credit:hover {
  color: var(--white);
}

@media (max-width: 1040px) {
  .stats-grid,
  .theme-grid,
  .feature-grid,
  .feature-grid.even,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand-role {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    padding: 10px 14px 16px;
    border-bottom: 1px solid rgba(23, 32, 28, 0.12);
    background: var(--surface);
  }

  body.nav-open .primary-nav {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 4px;
  }

  .primary-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 76svh;
    background-position: 58% center;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding: 76px 0 58px;
  }

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

  .hero-lede {
    font-size: 1.08rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-inner,
  .footer-inner,
  .page-hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .profile-panel {
    position: static;
  }

  .page-hero h1 {
    font-size: 2.7rem;
  }

  .section-heading h2 {
    font-size: 2.1rem;
  }

  .callout,
  .footer-inner {
    display: block;
  }

  .callout .button {
    margin-top: 18px;
  }

  .footer-links {
    margin-top: 18px;
    justify-content: center;
  }

  .footer-credit {
    display: inline-block;
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .stats-grid,
  .theme-grid,
  .feature-grid,
  .feature-grid.even,
  .resource-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .toc {
    display: none;
  }

  body {
    background: var(--white);
    color: #000000;
  }

  .section,
  .page-hero-inner {
    padding: 24px 0;
  }
}
