:root {
  color-scheme: light;
  --ink: #183e35;
  --paper: #f5f2e9;
  --lime: #d8f49a;
  --muted: #596b60;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}

header, main, footer { max-width: 1240px; margin: auto; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 36px;
  border-bottom: 1px solid #d8ddd2;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  color: inherit;
  font-size: 21px;
  font-weight: 750;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 5px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a, .breadcrumbs a, .related a { color: inherit; }
a:focus-visible { outline: 3px solid #728439; outline-offset: 4px; }

.content-main { max-width: 900px; padding: 0 36px; }
.breadcrumbs { margin: 24px 0; color: var(--muted); font-size: 14px; }
.content-heading { padding: 40px 0 10px; }
.eyebrow { margin: 0 0 22px; font-size: 14px; font-weight: 700; }
h1 {
  margin: 0 0 28px;
  font-size: clamp(35px, 4vw, 54px);
  line-height: 1.23;
  letter-spacing: -.06em;
}
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.35; letter-spacing: -.05em; }
h3 { font-size: 20px; line-height: 1.4; }
.intro { margin: 0 0 26px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.content-section { padding: 30px 0; border-top: 1px solid #d8ddd2; }
.content-section h2 { margin: 0 0 18px; }
.content-section p, .content-section li { font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.content-section li { margin-bottom: 10px; }
.related ul { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.related a { font-weight: 700; }
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 36px;
  border-top: 1px solid #d8ddd2;
  font-size: 14px;
}

@media (max-width: 650px) {
  header { align-items: flex-start; flex-direction: column; gap: 18px; padding: 18px; }
  .main-nav { gap: 12px 14px; font-size: 15px; }
  .content-main { padding: 0 20px; }
  .content-heading { padding-top: 25px; }
  .content-section { padding: 25px 0; }
  footer { padding: 24px 20px; }
}
