:root {
  color-scheme: light dark;
  --paper: #fbfcfa;
  --surface: #fff;
  --ink: #202b25;
  --muted: #59665c;
  --line: #e4e8e0;
  --brand: #285d49;
  --accent: #dce9ca;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171d1a;
    --surface: #202923;
    --ink: #e5ebe4;
    --muted: #a2aea4;
    --line: #344037;
    --brand: #acccaa;
    --accent: #354a36;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}
a {
  color: var(--brand);
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #7caa89;
  outline-offset: 4px;
}
header,
footer,
main {
  width: min(100% - 48px, 1000px);
  margin-inline: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
header nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
header a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.wordmark {
  gap: 9px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -1px;
  color: var(--ink);
}
.wordmark span {
  color: var(--brand);
  margin-left: -8px;
}
main {
  padding-block: 65px 50px;
}
article {
  max-width: 740px;
  margin: auto;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--muted);
}
h1,
h2 {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.8px;
}
h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin: 16px 0 28px;
  max-width: 720px;
}
h2 {
  font-size: 29px;
  margin: 42px 0 16px;
}
p {
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}
.lead {
  font-size: 19px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 38px;
}
.topic-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.topic-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
}
.topic-card h2 {
  margin: 12px 0 14px;
}
.topic-card p {
  color: var(--muted);
}
.read-link {
  color: var(--brand);
  font-size: 14px;
}
.diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style-position: inside;
}
.diagram li {
  padding: 16px 12px;
  background: var(--accent);
  border-radius: 10px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
figure {
  margin: 30px 0;
}
figcaption {
  font-size: 13px;
  color: var(--muted);
}
.example {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.example p:last-child {
  margin: 0;
}
.try {
  padding: 28px;
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.try h2 {
  margin-top: 0;
}
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--paper);
  border-radius: 10px;
  text-decoration: none;
}
.back {
  margin-top: 32px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
}
footer nav {
  display: flex;
  justify-content: center;
  gap: 8px 24px;
  flex-wrap: wrap;
}
footer a {
  font-size: 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.skip {
  position: absolute;
  top: -120px;
  left: 16px;
  padding: 12px;
  background: var(--surface);
  z-index: 2;
}
.skip:focus {
  top: 10px;
}
@media (max-width: 600px) {
  header,
  footer,
  main {
    width: calc(100% - 36px);
  }
  header {
    align-items: flex-start;
    padding-block: 18px;
    gap: 12px;
  }
  header nav {
    gap: 0 14px;
    font-size: 13px;
    justify-content: flex-end;
  }
  main {
    padding-top: 40px;
  }
  .lead {
    font-size: 17px;
  }
  .diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topic-card,
  .try {
    padding: 22px;
  }
  h2 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
