/* Weathry site: one stylesheet for every page. Minimal: white, near-black, greys. */
:root {
  --ink: #111111;
  --ink-2: #333333;
  --muted: #555555;
  --faint: #6b6b6b;
  --line: #eaeaea;
  --line-2: #d4d4d4;
  --soft: #fafafa;
  --chip: #f2f2f2;
  --bg: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img, svg { max-width: 100%; }
code, pre { font-family: var(--mono); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.nav a { padding: 12px 14px; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 22px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; text-align: center; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); cursor: pointer; font-family: var(--font); }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; color: #fff; }
.nav .btn { padding: 12px 18px; font-size: 15px; }
.nav .btn-primary { color: #fff; }

/* Type */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: 36px; line-height: 1.15; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 34rem; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* Sections */
section { padding: 88px 0; }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.row > * { flex: 1 1 420px; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Hero */
.hero { padding: 88px 0 96px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--bg); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; color: var(--faint); background: var(--chip); border-radius: 999px; padding: 4px 10px; }
.fc { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.fc th { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding: 0 8px 8px; }
.fc td { padding: 10px 8px; border-top: 1px solid var(--chip); }
.fc td:first-child { font-weight: 600; }

/* Steps and features */
.grid { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.grid > * { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.features > * { flex-basis: 340px; border-top: 1px solid var(--line); padding-top: 24px; gap: 12px; }
.step-no { font-size: 18px; font-weight: 500; }

/* Code */
.code { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
.code-title { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--faint); }
pre { margin: 0; padding: 18px 16px; overflow-x: auto; font-size: 14px; line-height: 1.6; background: var(--soft); }
.code pre { background: var(--bg); }
p code, li code, td code, dd code { font-size: 0.92em; }

/* Pricing */
.plans { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.plan { flex: 1 1 250px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.plan.hot { border: 2px solid var(--ink); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; }
.plan-head h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 44px; font-weight: 500; letter-spacing: -0.02em; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; font-size: 15px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "\2713"; font-weight: 700; }
.estimator { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.estimator > * { flex: 1 1 380px; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.pill { min-height: 44px; min-width: 64px; padding: 10px 16px; border-radius: 999px; font: 600 15px var(--font); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.costs { display: flex; flex-direction: column; gap: 4px; }
.cost { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 6px; }
.cost.best { background: var(--chip); font-weight: 600; }

/* FAQ, definition lists */
.faq { margin: 0; }
.faq > div { padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.faq dt { font-size: 18px; font-weight: 600; }
.faq dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Docs */
.docs { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding: 48px 24px 96px; }
.docs aside { flex: 1 1 200px; max-width: 240px; min-width: 0; }
.docs main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 72px; }
.docs section { padding: 0; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.docs h1 { font-size: 44px; line-height: 1.1; }
.docs h2 { font-size: 28px; }
.docs h3 { font-size: 17px; }
.docs p, .docs li { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 44rem; }
.toc { display: flex; flex-direction: column; gap: 20px; }
.toc div { display: flex; flex-direction: column; gap: 2px; }
.toc strong { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); padding-bottom: 6px; }
.toc a { padding: 6px 0; font-size: 15px; text-decoration: none; }
.endpoints { border-top: 1px solid var(--line); }
.endpoint { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.endpoint > div:first-child { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 12px; }
.endpoint > div:last-child { flex: 1 1 300px; min-width: 0; font-size: 15px; color: var(--muted); }
.method { flex: none; width: 64px; text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 0; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table.data { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
table.data th { background: var(--soft); text-align: left; padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
table.data td:first-child { color: var(--ink); }
table.data tr:last-child td { border-bottom: none; }

/* Legal pages */
.legal { padding: 64px 24px 96px; }
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.draft { border: 2px solid #b45309; background: #fffbeb; color: #78350f; border-radius: 6px; padding: 14px 16px; margin: 24px 0; font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--faint); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  section { padding: 64px 0; }
  h2 { font-size: 30px; }
  .hero { padding: 56px 0 64px; }
  .docs { padding-top: 32px; gap: 32px; }
  .docs aside { max-width: none; }
}
