:root {
  --paper: #f6f3ec;
  --card: #fffdf8;
  --ink: #2b2a28;
  --muted: #8a8478;
  --quiet: #b3ac9c;
  --line: #e8e2d6;
  --sage: #6e8b74;
  --sage-wash: #eef0ea;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgb(110 139 116 / 12%), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

main {
  width: min(100% - 40px, 960px);
  min-height: 100vh;
  margin: 0 auto;
}

.hero {
  display: flex;
  min-height: 58vh;
  padding: 36px 0 72px;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--sage);
  color: var(--card);
  font: italic 30px/1 Georgia, serif;
  place-items: center;
}

.hero-copy {
  max-width: 760px;
  margin: auto 0 0;
}

.eyebrow,
.document-kicker {
  margin: 0 0 14px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 22px;
  font: italic 500 clamp(54px, 9vw, 92px) / 0.95 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.55;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 84px;
}

.resource-card {
  display: grid;
  min-height: 220px;
  padding: 28px;
  grid-template: auto 1fr / 1fr auto;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 18px 48px rgb(43 42 40 / 5%);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.resource-card:hover {
  box-shadow: 0 24px 56px rgb(43 42 40 / 9%);
  transform: translateY(-4px);
}

.resource-card:focus-visible,
.brand:focus-visible,
.contact-link:focus-visible {
  outline: 3px solid rgb(110 139 116 / 35%);
  outline-offset: 4px;
}

.card-number {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.resource-card div {
  align-self: end;
}

.resource-card h2 {
  margin-bottom: 9px;
  font: 500 31px/1.1 Georgia, serif;
}

.resource-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.arrow {
  grid-area: 1 / 2 / span 2;
  align-self: end;
  color: var(--sage);
  font-size: 28px;
}

.document-page {
  width: min(100% - 40px, 820px);
  padding: 36px 0 72px;
}

.document-header {
  padding: 88px 0 48px;
}

.document-header h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 8vw, 72px);
}

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

.document-card {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: 0 20px 54px rgb(43 42 40 / 5%);
}

.document-card section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.document-card h2 {
  margin-bottom: 13px;
  font: 500 29px/1.2 Georgia, serif;
}

.document-card h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

.document-card p,
.document-card li {
  color: #625e56;
  font-size: 16px;
  line-height: 1.75;
}

.document-card p:last-child {
  margin-bottom: 0;
}

.contact-panel {
  padding: 28px;
  border-radius: 22px;
  background: var(--sage-wash);
}

.contact-link {
  display: inline-flex;
  margin-top: 6px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--card);
  font-weight: 700;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 680px) {
  main,
  .document-page {
    width: min(100% - 28px, 960px);
  }

  .hero {
    min-height: 68vh;
    padding-top: 20px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .document-header {
    padding-top: 64px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-card {
    transition: none;
  }
}
