:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #56635c;
  --paper: #fbfcf8;
  --card: #ffffff;
  --line: #dce4dd;
  --green: #17633c;
  --green-soft: #e7f3eb;
  --yellow: #f4ca58;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--green);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

header,
main,
footer {
  width: min(760px, calc(100% - 36px));
  margin-inline: auto;
}

header {
  padding: 44px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
  background: url('/favicon.svg') center / cover no-repeat;
  box-shadow: 0 2px 8px rgb(111 95 163 / 24%);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px 16px;
}

.top-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
}

h2[id] {
  scroll-margin-top: 24px;
}

main {
  min-height: 62vh;
  padding-bottom: 64px;
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  margin: 42px 0 10px;
  font-size: 1.28rem;
  line-height: 1.25;
}

p,
ul {
  margin: 12px 0;
}

li + li {
  margin-top: 9px;
}

.eyebrow,
.effective-date {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.card {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(23 33 28 / 5%);
}

.card:hover {
  border-color: #9eb7a5;
}

.card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.card span {
  color: var(--muted);
}

.contact {
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: var(--green-soft);
}

footer {
  padding: 22px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 8px;
}

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

  header {
    padding-top: 30px;
    align-items: flex-start;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px 14px;
  }
}
