:root {
  color-scheme: light;
  --ink: #253d33;
  --accent: #195440;
  --muted: #52685d;
  --line: #d3dfd5;
  --paper: #f7f8f4;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #376c52;
  outline-offset: 4px;
}
header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .layout, .footer-inner {
  width: min(70rem, calc(100% - 3rem));
  margin: 0 auto;
}
.header-inner {
  min-height: 5.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.brand, .home-link { font-weight: 700; }
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  letter-spacing: -.04em;
  text-decoration: none;
  gap: .7rem;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .7rem;
  background: var(--accent);
  color: #dbedc7;
  font-size: 1.95rem;
  line-height: 1;
}
.home-link { font-size: .9rem; }
.layout {
  display: grid;
  grid-template-columns: 13.25rem minmax(0, 43rem);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}
nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav { align-self: start; }
.side-nav a {
  display: block;
  padding: .5rem .8rem;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.side-nav a:hover { text-decoration: underline; }
.side-nav [aria-current="page"] {
  border-color: var(--accent);
  background: #e6eee4;
  font-weight: 700;
}
main { min-width: 0; }
h1, h2, summary { line-height: 1.2; overflow-wrap: break-word; }
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5vw, 3.25rem);
  letter-spacing: -.045em;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}
.content { margin-top: 2.2rem; }
.content > section, .content > details {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.content > :last-child { padding-bottom: 0; }
.content h2, summary { margin: 0; font-size: 1.25rem; font-weight: 700; }
.content p { margin: .65rem 0 0; }
.content p + a { display: inline-block; margin-top: .7rem; }
summary { cursor: pointer; }
#feedback-form { margin-top: 1rem; }
#feedback-form label { display: block; font-size: .92rem; font-weight: 650; }
#feedback-form textarea {
  display: block;
  width: 100%;
  margin: .35rem 0 .75rem;
  padding: .75rem;
  border: 1px solid #abbcaf;
  border-radius: .45rem;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
#feedback-form button {
  border: 0;
  border-radius: .45rem;
  background: var(--accent);
  color: #fff;
  padding: .65rem 1rem;
  font: 650 .94rem/1.4 system-ui, sans-serif;
  cursor: pointer;
}
#feedback-form :focus-visible { outline: 3px solid #376c52; outline-offset: 3px; }
#feedback-form button:disabled { opacity: .6; }
footer { border-top: 1px solid var(--line); }
.footer-inner { padding: 1.25rem 0; font-size: .9rem; color: var(--muted); }
.skip-link { position: absolute; left: .5rem; top: -5rem; background: white; padding: .55rem 1rem; }
.skip-link:focus-visible { top: .5rem; }
@media (max-width: 44rem) {
  .header-inner, .layout, .footer-inner { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.3rem; }
  .brand { font-size: 1.2rem; gap: .4rem; }
  .brand-mark { width: 2rem; height: 2rem; font-size: 1.5rem; }
  .home-link { font-size: .84rem; }
  .layout { display: flex; flex-direction: column; padding: 1.75rem 0 2rem; gap: 2rem; }
  .side-nav { order: 2; }
  .side-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; }
  .side-nav a { font-size: .9rem; padding: .35rem .65rem; }
  .content { margin-top: 1.5rem; }
}
