:root {
  --ink: #183129;
  --muted: #5e6c68;
  --paper: #fbfaf6;
  --sage: #dcebe3;
  --green: #1d6b57;
  --rust: #c95f3c;
  --line: #d7ded9;
  --shadow: 0 16px 48px rgba(21, 53, 43, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 "DM Sans", Arial, sans-serif;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 10;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 222, 217, 0.8);
}

.nav-wrap {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 22px/1 Fraunces, serif;
  color: var(--green);
  text-decoration: none;
}

.dove {
  font-size: 29px;
  line-height: 1;
}

nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav a,
.text-link,
.citation-link,
.reference-list a,
.site-footer a,
.cover-image a {
  color: var(--green);
  text-decoration-color: rgba(29, 107, 87, 0.35);
  text-underline-offset: 3px;
}

nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hero {
  padding: 84px 0 92px;
  background:
    radial-gradient(circle at 88% 18%, rgba(220, 235, 227, 0.7) 0, transparent 36%),
    radial-gradient(circle at 6% 75%, rgba(226, 238, 233, 0.8) 0, transparent 28%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "copy image"
    "actions image"
    "details image";
  column-gap: 56px;
  row-gap: 26px;
  align-items: center;
}

.hero-copy {
  grid-area: copy;
}

.hero-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 23px;
}

.cover-image {
  grid-area: image;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 14px;
  background: linear-gradient(160deg, rgba(232, 240, 236, 0.72) 0%, rgba(251, 250, 246, 0.92) 100%);
  border: 1px solid rgba(29, 107, 87, 0.16);
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(24, 49, 41, 0.08);
}

.cover-image::before {
  content: "";
  position: absolute;
  inset: 12px -10px -10px 12px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(220, 235, 227, 0.55), rgba(231, 240, 199, 0.35));
  border: 1px solid rgba(29, 107, 87, 0.1);
  z-index: -1;
  pointer-events: none;
}

.cover-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(24, 49, 41, 0.08);
  filter: saturate(0.95) contrast(1.02);
}

.cover-image figcaption {
  padding: 12px 6px 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cover-image figcaption strong {
  color: var(--ink);
}

.eyebrow,
.card-index,
.kicker,
.note-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.1;
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(50px, 7.2vw, 82px);
  letter-spacing: -0.05em;
}

.cover-tagline {
  font: 600 clamp(22px, 2.8vw, 30px)/1.25 Fraunces, Georgia, serif;
  margin: 12px 0;
  color: var(--green);
}

h2 {
  font-size: clamp(34px, 4.8vw, 54px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 27px;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 620px;
  font-size: 19px;
  color: var(--muted);
  margin: 20px 0 0;
  text-align: justify;
  hyphens: auto;
}

.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 13px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(29, 107, 87, 0.2);
}

.text-link {
  font-weight: 700;
}

.cover-details {
  grid-area: details;
  max-width: 620px;
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.cover-details p {
  margin: 0 0 10px;
}

.cover-details .students-label {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
}

.cover-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 4px 18px;
}

.cover-details li {
  padding: 2px 0;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 755px;
  margin: 12px 0 44px;
}

.section-heading p,
.reference-intro {
  color: var(--muted);
  font-size: 18px;
}

.section-heading p {
  text-align: justify;
  hyphens: auto;
}

.reference-intro {
  text-align: justify;
  hyphens: auto;
}

.section-heading.compact {
  margin-bottom: 32px;
}

.map-section {
  background: #eff5ef;
}

.map-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(29, 107, 87, 0.15);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 0;
}

.map-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e4e4e0;
  border-radius: 10px;
}

.map-card figcaption {
  padding: 12px 4px 2px;
  color: var(--muted);
  font-size: 14px;
}

.papers {
  background: #fff;
}

.paper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.paper-card {
  padding: 35px;
  background: #f4f5ef;
  border: 1px solid #e0e3da;
  border-radius: 12px;
}

.accent-card {
  background: #e8f0ec;
}

.paper-card h3 {
  margin: 8px 0;
}

.byline {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.article-copy p {
  font-size: 16px;
  line-height: 1.65;
  text-align: justify;
  hyphens: auto;
}

.citation-link {
  font-weight: 700;
  font-size: 15px;
}

.feature {
  background: #faf8f1;
}

.reading-wrap {
  width: min(800px, calc(100% - 40px));
}

.longform-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 36px;
  margin-bottom: 40px;
}

.longform-header h2 {
  margin: 10px 0 18px;
}

.dek {
  font-size: 20px;
  color: var(--muted);
  margin: 0;
}

.longform h3 {
  margin: 44px 0 16px;
}

.longform p,
.longform li {
  font-size: 18px;
}

.longform > p,
.longform > ol > li {
  text-align: justify;
  hyphens: auto;
}

.longform ol {
  padding-left: 25px;
}

.longform li {
  margin: 14px 0;
}

.longform blockquote {
  margin: 34px 0;
  padding: 21px 25px;
  border-left: 4px solid var(--rust);
  background: #fff;
  border-radius: 0 10px 10px 0;
}

.longform blockquote p {
  font: 600 26px/1.25 Fraunces, serif;
  margin: 0 0 10px;
}

.longform cite {
  font-size: 14px;
  color: var(--muted);
}

.references {
  background: #fff;
}

.references h2 {
  margin: 11px 0;
}

.reference-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.reference-list li {
  padding-left: 2em;
  text-indent: -2em;
  line-height: 2;
  overflow-wrap: anywhere;
}

.reference-list li + li {
  margin-top: 10px;
}

.site-footer {
  background: var(--ink);
  color: #e8f0eb;
  padding: 24px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.site-footer a {
  color: #e8f0eb;
  font-size: 14px;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .reading-wrap {
    width: min(100% - 28px, 1120px);
  }

  .nav-wrap {
    height: auto;
    min-height: 64px;
    padding: 13px 0;
    align-items: flex-start;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand {
    padding-top: 4px;
  }

  .dove {
    font-size: 25px;
  }

  nav {
    gap: 7px 14px;
  }

  nav a {
    font-size: 12px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "actions"
      "image"
      "details";
    gap: 28px;
  }

  .cover-image {
    max-width: 480px;
  }

  .cover-details {
    max-width: 100%;
    padding-top: 22px;
  }

  .section {
    padding: 64px 0;
  }

  .paper-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .paper-card {
    padding: 26px 22px;
  }

  .longform p,
  .longform li {
    font-size: 17px;
  }

  .site-footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .reference-list li {
    padding-left: 1.6em;
    text-indent: -1.6em;
  }
}
