.documents-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.documents-page .site-header {
  position: absolute;
}

.documents-page .site-nav a.is-active {
  color: #fff;
  text-shadow: 0 0 14px rgba(164, 153, 255, .48);
}

.documents-page .site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.documents-main {
  min-height: 72vh;
}

.documents-shell {
  width: var(--shell);
  margin: 0 auto;
}

.documents-shell--article {
  width: min(920px, var(--shell));
}

.documents-hero {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 156px 0 94px;
  color: var(--paper-bright);
  background:
    radial-gradient(ellipse at 76% 112%, rgba(48, 103, 115, .48), transparent 42%),
    radial-gradient(circle at 17% 4%, rgba(95, 129, 147, .18), transparent 28rem),
    linear-gradient(180deg, #07131d, #061722 58%, #08202a);
}

.documents-hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 24%, rgba(244, 238, 228, .38) 0 1px, transparent 1.5px),
    radial-gradient(circle at 66% 19%, rgba(185, 196, 197, .30) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 72%, rgba(240, 170, 123, .20) 0 1px, transparent 1.5px);
  background-size: 260px 280px, 330px 360px, 390px 410px;
  content: "";
  opacity: .36;
  pointer-events: none;
}

.documents-hero::after {
  position: absolute;
  right: -10%;
  bottom: 64px;
  left: 45%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 196, 197, .24), transparent);
  box-shadow:
    0 24px 0 rgba(185, 196, 197, .06),
    0 52px 0 rgba(185, 196, 197, .035);
  content: "";
  transform: rotate(-2deg);
}

.documents-hero .documents-shell {
  position: relative;
  z-index: 1;
}

.documents-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
  color: rgba(185, 196, 197, .50);
  font-size: 12px;
}

.documents-breadcrumbs a {
  color: rgba(244, 238, 228, .72);
  text-decoration: none;
  transition: color .2s ease;
}

.documents-breadcrumbs a:hover,
.documents-breadcrumbs a:focus-visible {
  color: #fff;
}

.documents-eyebrow {
  margin: 0 0 24px;
  color: var(--copper-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.documents-hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--paper-bright);
  font-family: var(--display);
  font-size: clamp(70px, 8vw, 116px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .84;
}

.documents-lead {
  max-width: 760px;
  margin: 34px 0 0;
  color: rgba(244, 238, 228, .76);
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
}

.documents-content {
  padding: clamp(76px, 9vw, 124px) 0 clamp(108px, 13vw, 176px);
  background: #dcd5c9;
}

.document-list {
  display: grid;
  gap: 16px;
}

.document-card {
  scroll-margin-top: 112px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: rgba(244, 238, 228, .28);
  transition: border-color .2s ease, background-color .2s ease;
}

.document-card[open] {
  border-color: rgba(157, 93, 61, .34);
  background: rgba(244, 238, 228, .54);
}

.document-card summary {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 30px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(29px, 3.4vw, 42px);
  letter-spacing: -.025em;
  line-height: 1;
  list-style: none;
}

.document-card summary::-webkit-details-marker {
  display: none;
}

.document-card summary::after {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(7, 19, 29, .18);
  border-radius: 50%;
  color: #9d5d3d;
  content: "⌄";
  font-family: var(--sans);
  font-size: 16px;
  transition: transform .2s ease, background-color .2s ease;
}

.document-card[open] summary::after {
  background: rgba(210, 139, 98, .12);
  transform: rotate(180deg);
}

.document-card summary:focus-visible {
  outline: 2px solid #9d5d3d;
  outline-offset: -3px;
}

.document-body {
  padding: 4px 30px 40px;
  border-top: 1px solid var(--line-dark);
  color: rgba(7, 19, 29, .72);
  font-family: var(--display);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.68;
}

.document-body h3 {
  margin: 36px 0 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.document-body p,
.document-body ul {
  margin: 15px 0;
}

.document-body ul {
  padding-left: 24px;
}

.document-body li + li {
  margin-top: 8px;
}

.document-body a {
  color: #874b31;
  text-decoration-color: rgba(135, 75, 49, .35);
  text-underline-offset: 3px;
}

.document-body a:hover,
.document-body a:focus-visible {
  color: #5f2f1e;
  text-decoration-color: currentColor;
}

@media (max-width: 620px) {
  .documents-hero {
    min-height: 520px;
    padding: 138px 0 76px;
  }

  .documents-breadcrumbs {
    margin-bottom: 34px;
  }

  .documents-hero h1 {
    font-size: clamp(60px, 19vw, 82px);
  }

  .documents-lead {
    margin-top: 28px;
    font-size: 19px;
  }

  .documents-content {
    padding-top: 54px;
  }

  .document-card summary {
    min-height: 76px;
    padding: 18px 20px;
    font-size: 29px;
  }

  .document-card summary::after {
    width: 34px;
    height: 34px;
  }

  .document-body {
    padding: 0 20px 30px;
    font-size: 18px;
  }
}
