:root {
  color-scheme: light;
  --ink: #1e252b;
  --muted: #5a6670;
  --line: #d9dedf;
  --paper: #fbfbf8;
  --panel: #ffffff;
  --accent: #23695c;
  --accent-2: #884f2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.page {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 56px 0 40px;
}

.masthead {
  max-width: 720px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  font-weight: 500;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 600;
}

.lede {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.25rem;
}

.section {
  padding: 40px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

article {
  min-height: 180px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

article p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.notes {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 28px;
  align-items: start;
}

.notes h2 {
  grid-row: span 3;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 980px);
    padding-top: 36px;
  }

  .grid,
  .notes {
    grid-template-columns: 1fr;
  }

  .notes h2 {
    grid-row: auto;
  }

  footer {
    flex-direction: column;
  }
}
