:root {
  --paper: #f6f4ed;
  --paper-2: #efede4;
  --ink: #182019;
  --muted: #657068;
  --rule: #c9ccc3;
  --emerald: #0a6a4d;
  --emerald-dark: #084b38;
  --white: #fcfcf8;
  --code: #18231d;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 100;
  padding: 9px 12px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 10px; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 244, 237, .96);
  border-bottom: 1px solid var(--rule);
}
.nav-shell {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  text-decoration: none;
  font-weight: 720;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--emerald);
  clip-path: polygon(50% 0, 100% 24%, 88% 80%, 50% 100%, 12% 80%, 0 24%);
}
nav { display: flex; gap: 27px; }
nav a, .text-action {
  font-size: 14px;
  color: #3f4942;
  text-decoration: none;
}
nav a:hover, .text-action:hover, .inline-link:hover { color: var(--emerald); }
nav a[aria-current="page"] { color: var(--ink); font-weight: 680; }
.text-action { justify-self: end; font-weight: 650; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero { padding: 102px 0 82px; }
.hero h1, .section h2, .docs-intro h1, .docs-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.04em;
}
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(52px, 6.8vw, 88px);
  line-height: 1;
}
.lede {
  max-width: 690px;
  margin: 32px 0 0;
  color: #485249;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--emerald-dark); border-color: var(--emerald-dark); }
.button-quiet:hover { color: var(--emerald); border-color: var(--emerald); }

.status-band { background: var(--paper-2); border-block: 1px solid var(--rule); }
.status-grid {
  min-height: 122px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 42px;
  align-items: center;
}
.status-heading { display: flex; gap: 13px; align-items: flex-start; }
.live-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: #18a46e;
}
.status-title { margin: 0 0 4px; font-weight: 700; }
.status-note { margin: 0; color: var(--muted); font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.metrics > div { padding-left: 24px; border-left: 1px solid var(--rule); }
.metrics dt { color: var(--muted); font-size: 12px; }
.metrics dd {
  margin: 4px 0 0;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.progress-track { height: 2px; background: #d9dad2; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--emerald); transition: width 400ms ease; }

.section { padding: 92px 0; border-bottom: 1px solid var(--rule); }
.section h2 { margin: 0; font-size: clamp(38px, 4.5vw, 58px); line-height: 1.05; }
.section-copy { max-width: 610px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.two-column {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.15fr);
  gap: 82px;
  align-items: start;
}
.section-tint { background: var(--paper-2); }
.inline-link { color: var(--emerald); font-weight: 680; text-decoration: none; }

.search-console { border-top: 1px solid var(--rule); padding-top: 22px; }
.search-console label { display: block; margin-bottom: 18px; }
.search-console label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #adb2aa;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}
input:focus { border-color: var(--emerald); box-shadow: 0 0 0 2px rgba(10, 106, 77, .1); }
.search-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.form-help, .form-status { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.form-status { min-height: 20px; }
.results { margin-top: 48px; border-top: 1px solid var(--rule); }
.result-row { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.result-meta { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.result-row h3 { margin: 0 0 8px; font-size: 17px; }
.result-row p { max-width: 900px; margin: 0; color: #566058; }
.result-row mark { background: #d6eadf; color: inherit; }
.result-id { margin-top: 9px; color: #899189; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }

.code-stage, .docs-code { border: 1px solid var(--rule); background: var(--white); overflow: hidden; }
.code-stage-top {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
}
pre { margin: 0; padding: 23px; overflow: auto; }
pre code { color: #243027; font-size: 13px; line-height: 1.75; }
.copy-button { border: 0; background: transparent; cursor: pointer; padding: 5px 0; font-size: 12px; }
.copy-button.light { color: var(--emerald); }

.mcp-details { border-top: 1px solid var(--rule); }
.mcp-endpoint {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.mcp-endpoint > span { color: var(--muted); font-size: 12px; }
.mcp-endpoint code { overflow-wrap: anywhere; }
.plain-list > div, .docs-endpoint-list > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.plain-list code, .docs-endpoint-list code { color: var(--emerald); }
.plain-list span, .docs-endpoint-list span { color: var(--muted); }

.closing-section { background: var(--paper-2); }
.closing-simple {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.site-footer { border-top: 0; }
.footer-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.footer-inner a { color: var(--ink); text-decoration: none; }

/* Documentation */
.docs-page { background: #f8f7f2; }
.docs-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: 74px;
  justify-content: center;
  padding: 58px 0 110px;
}
.docs-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--rule);
  padding-right: 26px;
}
.docs-nav-title { margin: 0 0 12px; font-size: 12px; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.docs-nav a {
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.docs-nav a:hover { color: var(--emerald); }
.docs-content { min-width: 0; }
.docs-intro { padding: 14px 0 42px; border-bottom: 1px solid var(--rule); }
.docs-intro h1 { margin: 0; font-size: clamp(44px, 6vw, 68px); line-height: 1.02; }
.docs-intro > p:last-child { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.docs-section { scroll-margin-top: 90px; padding: 44px 0; border-bottom: 1px solid var(--rule); }
.docs-section h2 { margin: 0 0 14px; font-size: 31px; letter-spacing: -.025em; }
.docs-section > p { max-width: 650px; color: #505a52; }
.docs-section code { font-size: .92em; }
.docs-heading-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.docs-heading-line > code { color: var(--emerald); font-size: 12px; white-space: nowrap; }
.docs-code { margin: 20px 0 24px; }
.docs-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; }
.docs-table th, .docs-table td { padding: 13px 10px 13px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.docs-table th { color: var(--muted); font-size: 12px; font-weight: 720; }
.docs-table td:first-child { width: 150px; }
.docs-endpoint-list { margin-top: 22px; border-top: 1px solid var(--rule); }
.docs-footer { display: flex; gap: 22px; padding-top: 30px; }
.docs-footer a { color: var(--emerald); text-decoration: none; font-size: 13px; }

@media (max-width: 900px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .text-action { display: none; }
  .two-column { grid-template-columns: 1fr; gap: 34px; }
  .status-grid { grid-template-columns: 1fr; gap: 22px; padding: 24px 0; }
  .metrics > div:first-child { padding-left: 0; border-left: 0; }
  .closing-simple { grid-template-columns: 1fr; align-items: start; }
  .docs-shell { grid-template-columns: 180px minmax(0, 1fr); gap: 42px; justify-content: initial; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-shell { grid-template-columns: 1fr; min-height: 56px; }
  nav { display: none; }
  .hero { padding: 64px 0 58px; }
  .hero h1 { font-size: clamp(46px, 14vw, 66px); }
  .section { padding: 66px 0; }
  .metrics { grid-template-columns: 1fr; gap: 14px; }
  .metrics > div, .metrics > div:first-child { padding: 0; border: 0; }
  .search-line { grid-template-columns: 1fr; }
  .mcp-endpoint { grid-template-columns: 1fr; gap: 7px; }
  .plain-list > div, .docs-endpoint-list > div { grid-template-columns: 1fr; gap: 5px; }
  .footer-inner { grid-template-columns: 1fr; gap: 5px; padding: 18px 0; }
  .docs-shell { display: block; padding-top: 30px; }
  .docs-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 15px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 14px;
    margin-bottom: 30px;
  }
  .docs-nav-title { display: none; }
  .docs-nav a { white-space: nowrap; }
  .docs-heading-line { display: block; }
  .docs-heading-line > code { display: block; margin-top: 6px; }
  .docs-table { font-size: 13px; }
  .docs-table td:first-child { width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-track span { transition: none; }
}
