:root {
  --ink: #111914;
  --muted: #5a675f;
  --paper: #f6f4ee;
  --white: #fffef9;
  --line: #d7d9d0;
  --green: #176a46;
  --green-dark: #0e3e2b;
  --lime: #cfe98c;
  --sand: #e8dfca;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 4%, rgb(207 233 140 / 24%), transparent 24rem),
    var(--paper);
}

body,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

p {
  text-wrap: pretty;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  translate: 0 -200%;
  color: white;
  background: var(--green-dark);
  border-radius: 6px;
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 40px));
  min-height: 84px;
  margin-inline: auto;
  border-bottom: 1px solid rgb(17 25 20 / 14%);
}

.wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark svg {
  width: 34px;
  fill: var(--green);
}

.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 620;
}

.site-nav > a:not(.button) {
  text-decoration: none;
}

.site-nav > a[aria-current="page"] {
  color: var(--green);
}

.nav-toggle {
  display: none;
}

.site-footer {
  padding: 76px max(20px, calc((100% - 1180px) / 2)) 28px;
  color: #dce7df;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.site-footer .wordmark {
  margin-bottom: 18px;
  color: white;
}

.site-footer .wordmark svg {
  fill: var(--lime);
}

.site-footer p {
  max-width: 330px;
  color: #9eb0a4;
}

.site-footer h2 {
  margin-bottom: 18px;
  color: #85988c;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer div > a:not(.wordmark) {
  display: block;
  width: fit-content;
  margin: 9px 0;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: #8fa097;
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
    padding: 8px 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 700;
  }

  #site-navigation {
    position: absolute;
    top: 71px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 16px 30px rgb(17 25 20 / 12%);
  }

  #site-navigation.open {
    display: block;
  }

  .site-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
