:root {
  --bg: #f4f1eb;
  --surface: #fbfaf7;
  --raised: #fffdf8;
  --fg: #1a1916;
  --muted: #6e6a63;
  --subtle: #8a857c;
  --primary: #1e4d42;
  --primary-fg: #f4f1eb;
  --border: #e2ddd4;
  --line: #d4cfc4;
  --free: #24574b;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
}
a { color: var(--primary); }
a:hover { text-decoration: underline; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
}
.skip:focus { top: 0.5rem; }
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner, .footer-inner, .wrap {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}
.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
}
.mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 2px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.7rem 0.55rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--raised);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
}
main { flex: 1; }
.page { width: min(44rem, calc(100% - 2rem)); margin: 0 auto; padding: 2.2rem 0 3.5rem; }
.kicker {
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 650;
  margin: 0 0 0.6rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 0.8rem; }
h2 { font-size: 1.55rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.2rem; margin: 1.3rem 0 0.4rem; }
.lede { font-size: 1.12rem; color: #3c3934; }
p { margin: 0.85rem 0; }
ul, ol { padding-left: 1.2rem; }
li { margin: 0.35rem 0; }
.note, .callout {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  margin: 1.2rem 0;
}
.callout { border-left: 4px solid var(--primary); }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.2rem 0 1.6rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
}
.card h3 { margin-top: 0.15rem; }
.card a { font-weight: 600; text-decoration: none; }
table { width: 100%; border-collapse: collapse; background: var(--surface); margin: 1rem 0 1.3rem; }
th, td { text-align: left; padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #f3efe8; font-size: 0.9rem; }
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner { padding: 2.4rem 0; }
.footer-top { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-top p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.92rem; max-width: 28rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; font-size: 0.92rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.fine { color: var(--subtle); font-size: 0.75rem; margin-top: 1.4rem; }
.hub { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; padding: 2.2rem 0 3.5rem; }
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; right: 1rem; top: 4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; flex-direction: column; padding: 0.4rem; min-width: 11rem; }
  .nav.open { display: flex; }
  .site-header { position: relative; }
}
