:root { --ink: #25342f; --accent: #286f60; --muted: #63716a; --line: #dfe5e1; --paper: #fafbf9; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.8 Arial, 'Segoe UI', sans-serif; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #163f36; }
header, nav, .hero, main, footer { max-width: 1120px; margin-inline: auto; padding-inline: 28px; }
header { display: flex; justify-content: space-between; align-items: center; height: 84px; }
header a { text-decoration: none; }
.brand { color: var(--ink); font-size: 22px; letter-spacing: -.7px; font-weight: 700; }
.brand strong { color: var(--muted); font-size: 12px; letter-spacing: 1px; font-weight: 500; margin-left: 5px; }
header > a:last-child { font-size: 13px; }
nav { display: flex; gap: 25px; border-block: 1px solid var(--line); padding-block: 10px; overflow-x: auto; white-space: nowrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 60px; padding-block: 60px; align-items: start; }
.tag { grid-column: 1; margin: 0 0 15px; font-size: 10px; letter-spacing: 1.8px; color: var(--accent); font-weight: 700; }
h1 { grid-column: 1; margin: 0 0 15px; font-size: 46px; line-height: 1.2; letter-spacing: -1.5px; font-weight: 600; }
h1 span { color: var(--accent); }
.subtitle { grid-column: 1; margin: 0; max-width: 420px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.endpoint-box { grid-column: 2; grid-row: 2 / 5; align-self: center; display: flex; flex-direction: column; gap: 12px; border-left: 2px solid #9ab9ac; padding: 20px 24px; background: #f0f4ef; overflow-wrap: anywhere; }
.endpoint-box > span { color: var(--muted); font-size: 10px; letter-spacing: 1.3px; }
.endpoint-box code { color: var(--ink); font-size: 14px; font-weight: 400; }
.actions { grid-column: 1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.button { font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.button.primary { padding: 9px 18px; background: var(--accent); color: white; border-radius: 3px; text-decoration: none; }
.button.primary:hover { background: #20594d; }
main section { padding-block: 34px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 18px; font-size: 24px; line-height: 1.4; letter-spacing: -.4px; font-weight: 500; }
h3 { margin: 22px 0 12px; font-size: 16px; line-height: 1.5; font-weight: 600; }
p { margin: 12px 0; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
.method-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.method-columns h3 { margin-top: 0; }
.note { padding: 13px 17px; background: #f0f4ef; border-left: 2px solid #9ab9ac; color: var(--muted); font-size: 13px; }
pre { padding: 16px 20px; background: #f0f3f0; border: 1px solid var(--line); border-radius: 3px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; }
code { font-family: Consolas, monospace; font-size: .93em; }
.plots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
figure { margin: 18px 0; }
figure img { display: block; width: 100%; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; }
.wide-plot { max-width: 760px; margin: 22px auto; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 13px 14px; }
th { background: #f0f3f0; font-weight: 600; }
td:first-child { white-space: nowrap; }
footer { border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: 12px; }
.skip { position: absolute; top: -100px; }
.skip:focus { top: 5px; background: white; padding: 10px; z-index: 10; }
a:focus-visible { outline: 3px solid #d5a241; outline-offset: 4px; }
@media (max-width: 700px) {
  header, nav, .hero, main, footer { padding-inline: 22px; }
  header { height: 72px; }
  nav { gap: 22px; }
  .hero { display: flex; flex-direction: column; padding-block: 38px; }
  h1 { font-size: 40px; }
  .subtitle { font-size: 17px; }
  .endpoint-box { order: 4; margin-top: 30px; width: 100%; padding: 16px 20px; }
  .actions { order: 3; margin-top: 22px; }
  .method-columns, .plots { grid-template-columns: 1fr; gap: 6px; }
  h2 { font-size: 22px; }
  main section { padding-block: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
