:root {
  color-scheme: light;
  --paper: #f6f6f3;
  --white: #fff;
  --ink: #191d1a;
  --muted: #5c655f;
  --line: #d8ddd8;
  --green: #1d624f;
  --green-pale: #eaf0ec;
  --blue: #295b91;
  --rust: #8d493d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a {
  color: var(--blue);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}

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

.page {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 246, 243, 0.96);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 66px;
}

.brand {
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 20px;
  font-size: 0.88rem;
  font-weight: 650;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.intro {
  padding-block: 110px 105px;
}

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.16;
  letter-spacing: normal;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 8vw, 6.6rem);
  font-weight: 780;
}

.intro p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 42px;
  padding-block: 88px;
  border-top: 1px solid var(--line);
}

.section-number {
  padding-top: 6px;
  color: #8c9690;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-content { min-width: 0; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 42px 56px;
  align-items: end;
  margin-bottom: 46px;
}

.section-label {
  grid-column: 1 / -1;
  margin: 0 0 -28px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 750;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 720;
}

h4 { font-size: 1rem; }

.meta {
  margin: 0 0 10px;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.feature {
  padding-top: 24px;
  border-top: 2px solid #aeb8b1;
}

.feature > p:not(.meta):not(.text-links),
.software-list article > p:not(.text-links),
.podcast-list article p:not(.meta):not(.text-links),
.record-list article > p:not(.meta):not(.text-links) {
  color: var(--muted);
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  margin: 18px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.document-list,
.closing-links {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.document-list a,
.closing-links a {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 0.9fr);
  gap: 24px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.document-list span,
.closing-links span {
  color: var(--muted);
  font-size: 0.9rem;
}

.podcast-list,
.software-list {
  border-top: 1px solid var(--line);
}

.podcast-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
}

.podcast-list article p { margin-bottom: 0; }

.podcast-list .text-links {
  min-width: 95px;
  justify-content: flex-end;
  margin-top: 1px;
}

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

.software-list article {
  padding: 28px 30px 30px 0;
  border-bottom: 1px solid var(--line);
}

.software-list article:nth-child(even) {
  padding-inline: 30px 0;
  border-left: 1px solid var(--line);
}

.narrative {
  max-width: 790px;
  margin-bottom: 46px;
  color: #414943;
  font-size: 1.08rem;
}

.record-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.record-list article {
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: rgba(255,255,255,0.55);
}

.note {
  padding: 12px 14px;
  background: var(--green-pale);
  color: var(--green) !important;
  font-size: 0.9rem;
  font-weight: 650;
}

#miscellany .feature-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-content p { margin: 0; }

@media (max-width: 900px) {
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { max-width: 700px; }
  .section-label { margin-bottom: -26px; }
  #miscellany .feature-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 13px;
  }

  .nav-links { justify-content: flex-start; }
  .intro { padding-block: 72px; }

  .section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 68px;
  }

  .section-number { padding: 0; }
  .feature-row,
  .software-list,
  .record-list { grid-template-columns: 1fr; }

  .software-list article,
  .software-list article:nth-child(even) {
    padding: 25px 0;
    border-left: 0;
  }

  .podcast-list article { grid-template-columns: 1fr; gap: 4px; }
  .podcast-list .text-links { justify-content: flex-start; }
}

@media (max-width: 500px) {
  .page { width: min(100% - 24px, 1080px); }
  h1 { font-size: clamp(3.25rem, 18vw, 4.5rem); }
  .section-heading { margin-bottom: 36px; }
  .document-list a,
  .closing-links a { grid-template-columns: 1fr; gap: 2px; }
  .record-list article { padding: 22px; }
  .footer-content { flex-direction: column; gap: 5px; }
}
