:root {
  color-scheme: light dark;
  --background: #f3f0e9;
  --surface: #e8e3d8;
  --text: #191918;
  --muted: #6e6b64;
  --line: rgba(25, 25, 24, 0.18);
  --accent: #255b4b;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--background);
  background: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.header-note,
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.hero {
  min-height: calc(100svh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 96px;
}

.eyebrow {
  margin: 0 0 24px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 32px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 9.4vw, 132px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.lead {
  max-width: 520px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.text-link {
  width: fit-content;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: gap 180ms ease, opacity 180ms ease;
}

.text-link:hover {
  opacity: 0.68;
}

.documents {
  min-height: 62vh;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 520;
  letter-spacing: -0.045em;
}

.empty-state {
  align-self: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty-state p {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}

.empty-state span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.document-list {
  align-self: start;
  border-top: 1px solid var(--line);
}

.document-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.document-entry span:first-child {
  display: grid;
  gap: 6px;
}

.document-entry strong {
  font-size: 20px;
}

.document-entry small {
  color: var(--muted);
  font-size: 13px;
}

.document-entry:hover,
.document-entry:focus-visible {
  padding-left: 8px;
  color: var(--accent);
}

footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: enter 700ms both;
  }

  .hero > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero > :nth-child(3) {
    animation-delay: 160ms;
  }

  .hero > :nth-child(4) {
    animation-delay: 240ms;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #191a18;
    --surface: #242620;
    --text: #f0eee7;
    --muted: #aaa79f;
    --line: rgba(240, 238, 231, 0.17);
    --accent: #9bc7b0;
  }
}

@media (max-width: 700px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    height: 72px;
  }

  .hero {
    min-height: calc(100svh - 72px);
    padding: 56px 0 72px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 82px);
  }

  .documents {
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 80px 0;
  }

  footer {
    min-height: 100px;
  }
}
