:root {
  color-scheme: light;
  --ink: #183126;
  --muted: #52665d;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --leaf: #2f684c;
  --leaf-dark: #204a36;
  --line: #dce5de;
  --wash: #eef5ef;
  --accent: #d8a44a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--leaf-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
summary:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 0.4rem;
  background: var(--ink);
  color: #ffffff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, 0.96);
}

.site-nav,
.page,
.site-footer-inner {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1.5rem;
}

.brand {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 650;
}

.page {
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.hero {
  max-width: 54rem;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--leaf);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.75rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.15rem;
}

.lede {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--leaf-dark);
  border-radius: 999px;
  background: var(--leaf-dark);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--leaf);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
  color: var(--leaf-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.card,
.notice,
details {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: 0 0.6rem 2rem rgba(31, 62, 46, 0.05);
}

.card,
.notice {
  padding: clamp(1.25rem, 3vw, 1.8rem);
}

.card > :first-child,
.notice > :first-child {
  margin-top: 0;
}

.card > :last-child,
.notice > :last-child {
  margin-bottom: 0;
}

.notice {
  border-left: 0.35rem solid var(--leaf);
  background: var(--wash);
}

.section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.prose {
  max-width: 52rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

details {
  padding: 1rem 1.15rem;
}

details + details {
  margin-top: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 750;
}

details p:last-child,
details ul:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.5rem;
}

th,
td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

code {
  overflow-wrap: anywhere;
  font-size: 0.9em;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 40rem) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  td {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .actions,
  .site-footer {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .page {
    width: 100%;
    padding: 0;
  }
}
