:root {
  --ink: #25231e;
  --muted: #676157;
  --paper: #fffaf3;
  --cream: #f2e9dc;
  --accent: #f2a900;
  --teal: #087a80;
  --line: rgba(37, 35, 30, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 1rem; }
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem max(1.25rem, calc((100vw - 1120px) / 2));
  background: rgba(255, 250, 243, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.brand span {
  display: inline-block;
  width: .75rem;
  height: .75rem;
  margin-right: .55rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}
.nav-links { display: flex; gap: 1.25rem; font-size: .9rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus { text-decoration: underline; text-underline-offset: .3rem; }
main, footer { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
section { padding: 7rem 0; border-bottom: 1px solid var(--line); }
.hero { padding-top: 8rem; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.03; }
h1 { max-width: 980px; margin: 0; font-size: clamp(3.6rem, 8vw, 7.5rem); letter-spacing: -.045em; }
h2 { max-width: 800px; margin: 0 0 1.6rem; font-size: clamp(2.6rem, 5vw, 5.2rem); letter-spacing: -.035em; }
h3 { margin: 0 0 .6rem; font-size: 1.55rem; }
.lede { max-width: 760px; margin: 2rem 0; color: var(--muted); font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 4rem; }
.button {
  display: inline-block;
  padding: .75rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: .85rem;
}
.button.primary { background: var(--ink); color: var(--paper); }
.button:hover, .button:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.ledger { border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: #fffdf9; }
.ledger div { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.ledger div:last-child { border-bottom: 0; }
.ledger span { color: var(--teal); font-family: var(--mono); font-size: .82rem; }
.ledger strong { font-weight: 500; }
section > p:not(.eyebrow):not(.note) { max-width: 820px; color: var(--muted); }
.grid { display: grid; gap: 1rem; margin-top: 3rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
article { padding: 1.5rem; background: var(--cream); border-radius: .8rem; }
article p { margin: 0; color: var(--muted); }
.tool-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin-top: 3rem; }
.tool-list code, .endpoints code {
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #fffdf9;
  font-family: var(--mono);
  font-size: .78rem;
  overflow-wrap: anywhere;
}
pre {
  max-width: 780px;
  margin: 2.5rem 0 1rem;
  padding: 1.5rem;
  overflow-x: auto;
  border-radius: .8rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: .9rem;
}
.note { max-width: 780px; padding-left: 1rem; border-left: 3px solid var(--accent); }
.endpoints { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2.5rem 0; }
.endpoints div { display: flex; flex-direction: column; gap: .7rem; padding: 1.25rem; background: var(--cream); border-radius: .8rem; }
.endpoints span { font-size: .85rem; color: var(--muted); }
.availability { border-bottom: 0; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0 3rem; color: var(--muted); font-size: .85rem; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  section { padding: 4.5rem 0; }
  .hero { padding-top: 5rem; }
  .grid.three, .tool-list, .endpoints { grid-template-columns: 1fr; }
  .ledger div { grid-template-columns: 1fr; gap: .35rem; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}