/* Zuzzli Changelog */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --ink: #0e1720;
  --muted: #5d6b76;
  --line: #dce5e1;
  --line-strong: #c3d0ca;
  --brand: #0d9488;
  --brand-dark: #0b7a70;
  --brand-soft: #d7f3ee;
  --accent: #84cc16;
  --code-bg: #0f1b22;
  --code-ink: #d8f3ee;
  --danger: #dc2626;
  --warn: #d97706;
  --footer-bg: #0b1116;
  --footer-ink: #d3ddd8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 45px -30px rgba(14, 23, 32, .45);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
}

html[data-theme="dark"] {
  --bg: #0b1116;
  --surface: #101820;
  --surface-2: #0d151c;
  --ink: #e8eef3;
  --muted: #93a3ae;
  --line: #1e2b35;
  --line-strong: #2c3b47;
  --brand: #2dd4bf;
  --brand-dark: #14b8a6;
  --brand-soft: #0f2f2c;
  --accent: #a3e635;
  --code-bg: #071016;
  --code-ink: #c8f5ee;
  --shadow: 0 24px 55px -30px rgba(0, 0, 0, .8);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code, pre, .version { font-family: var(--mono); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.container { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[id] { scroll-margin-top: 96px; }

/* ── header ─────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 30px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.mark { border-radius: 8px; flex: none; }
.brand__name { font-weight: 750; font-size: 19px; letter-spacing: -.03em; }
.brand__tag {
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
}
.head-nav { display: flex; gap: 24px; margin-left: 8px; font-size: 13.5px; font-weight: 550; }
.head-nav a { color: var(--muted); text-decoration: none; }
.head-nav a:hover, .head-nav a.active { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__sun { display: block; }
html[data-theme="dark"] .theme-toggle__moon { display: none; }

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--light { background: #f4fffc; color: #0b3f3a; }
.btn--light:hover { background: #fff; }
.link-btn { border: 0; background: none; color: var(--brand); cursor: pointer; font-weight: 600; padding: 0; }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 300px at 12% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(600px 260px at 92% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 72%);
  opacity: .45;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light { color: #7de6d6; }
.live-dot, .status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  display: inline-block;
  flex: none;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.hero h1 span { color: var(--brand); }
.lede {
  max-width: 640px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.hero__meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.hero__meta a:hover { color: var(--brand); border-color: var(--brand); }

/* ── layout ──────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  padding: 42px 0 84px;
}

/* ── releases ────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.toolbar h2 { font-size: 22px; letter-spacing: -.03em; }
.toolbar__count { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.search {
  display: flex; align-items: center; gap: 8px;
  width: min(280px, 100%);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}
.search input {
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  outline: none;
}
.release-list { display: flex; flex-direction: column; }
.release {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 34px;
}
.release__rail { position: relative; display: flex; justify-content: center; }
.release__rail::before {
  content: "";
  position: absolute;
  top: 18px; bottom: -34px;
  width: 1px;
  background: var(--line);
}
.release:last-child .release__rail::before { display: none; }
.release__dot {
  position: relative;
  z-index: 1;
  width: 11px; height: 11px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
}
.release__card {
  padding: 26px 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.release__card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.release__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.release__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.version {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
html[data-theme="dark"] .version { color: var(--brand); }
.release__meta time { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.copy-btn:hover { color: var(--brand); border-color: var(--brand); }
.copy-btn.copied { color: var(--brand); border-color: var(--brand); }
.release__title h3 { font-size: 24px; letter-spacing: -.03em; }
.release__title > p { margin: 8px 0 12px; color: var(--muted); font-size: 15px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.tag--added { color: #047857; background: #d1fae5; }
.tag--improved { color: #1d4ed8; background: #dbeafe; }
.tag--fixed { color: #b45309; background: #fef3c7; }
.tag--security { color: #b91c1c; background: #fee2e2; }
.tag--deprecated { color: #475569; background: #e2e8f0; }
.tag--breaking { color: #7e22ce; background: #f3e8ff; }
html[data-theme="dark"] .tag { background: transparent; border-color: currentColor; }
html[data-theme="dark"] .tag--added { color: #6ee7b7; }
html[data-theme="dark"] .tag--improved { color: #93c5fd; }
html[data-theme="dark"] .tag--fixed { color: #fcd34d; }
html[data-theme="dark"] .tag--security { color: #fca5a5; }
html[data-theme="dark"] .tag--deprecated { color: #cbd5e1; }
html[data-theme="dark"] .tag--breaking { color: #d8b4fe; }

.release__changes { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.change { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 11px 0; }
.change + .change { border-top: 1px dashed var(--line); }
.change__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-top: 3px;
}
.change__label--added { color: #059669; }
.change__label--improved { color: #2563eb; }
.change__label--fixed { color: #d97706; }
.change__label--security { color: #dc2626; }
.change__label--deprecated { color: var(--muted); }
.change__label--breaking { color: #9333ea; }
.change__list { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.62; }
.change__list li { margin-bottom: 6px; }
.change__list li:last-child { margin-bottom: 0; }
.change__list code, .prose code, .card code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
  font-size: .9em;
}
.empty { margin: 24px 0; padding: 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }
.load-more { margin-top: 10px; font-size: 13px; color: var(--muted); }
.load-more a { color: var(--brand); }

/* ── sidebar ─────────────────────────────────────────────── */
.side { min-width: 0; }
.side > .card { margin-bottom: 20px; }
.side { position: sticky; top: 90px; align-self: start; }
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card__title { font-size: 15px; letter-spacing: -.01em; margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--muted); }
.card--subscribe {
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(132, 204, 22, .18), transparent 60%),
    linear-gradient(145deg, #0b3f3a, #0b1a1c 72%);
  border-color: transparent;
  color: #ecfdf5;
}
.card--subscribe h2 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.card--subscribe p { color: #b9d9d2; }
.card--subscribe form { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 10px; }
.card--subscribe input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
}
.card--subscribe input::placeholder { color: #9bbdb6; }
.card--subscribe .note { font-size: 11px; color: #9bbdb6; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.status-card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 0; }
.status-line--large { margin-top: 8px; font-size: 14px; }
.uptime { display: flex; gap: 2px; align-items: flex-end; height: 26px; margin: 14px 0 12px; }
.uptime__bar { flex: 1; min-width: 2px; height: 100%; border-radius: 1px; background: var(--line); }
.uptime__bar--ok { background: var(--brand); }
.uptime__bar--warn { background: var(--warn); }
.uptime__bar--down { background: var(--danger); }
.uptime--wide { height: 22px; margin: 10px 0 0; }
.text-link { font-size: 12.5px; font-weight: 600; color: var(--brand); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.api-card pre {
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-size: 11.5px;
  line-height: 1.65;
  overflow-x: auto;
}
.api-card pre a { color: #7de6d6; }
.api-card pre code { background: none; padding: 0; color: inherit; }

/* ── page hero / prose ───────────────────────────────────── */
.page-hero { padding: 58px 0 34px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -.04em; }
.page-hero .lede { margin-bottom: 8px; }
.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding: 42px 0 78px;
}
.prose { max-width: 760px; font-size: 16.5px; line-height: 1.7; }
.prose h2 { font-size: 24px; margin: 1.6em 0 .5em; letter-spacing: -.025em; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--brand); }
.prose .lede { color: var(--muted); }
.prose .muted { color: var(--muted); font-size: 13px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel h2 { font-size: 20px; margin-bottom: 18px; }
.component { padding: 14px 0; border-top: 1px solid var(--line); }
.component__row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.component__pct { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.incidents { list-style: none; padding: 0; margin: 0; }
.incidents li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.incidents li:first-child { border-top: 0; padding-top: 0; }
.incident__date { display: block; color: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.incidents strong { display: block; font-size: 13.5px; margin: 2px 0; }
.incidents span:last-child { color: var(--muted); }
.link-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; }
.link-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { text-decoration: none; }
.link-list a:hover { color: var(--brand); }
.endpoints { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0 24px; }
.endpoints th, .endpoints td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.endpoints th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.endpoints code { background: var(--surface-2); }
.prose pre {
  padding: 16px;
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.notfound { padding: 90px 0 120px; text-align: center; }
.notfound h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.notfound p { color: var(--muted); font-size: 17px; }
.notfound .btn { margin-top: 10px; }

/* ── footer ──────────────────────────────────────────────── */
.site-foot { background: var(--footer-bg); color: var(--footer-ink); margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.1fr; gap: 34px; padding: 46px 0 34px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand .brand__name { color: #fff; }
.foot-brand .brand__tag { color: #8ea39b; border-color: #2a3a36; }
.foot-brand p { max-width: 330px; font-size: 13px; color: #9fb2ab; line-height: 1.6; }
.foot-brand .foot-meta { font-size: 11.5px; color: #758a82; }
.site-foot h3 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #7f958c; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; font-size: 13px; }
.site-foot a { color: var(--footer-ink); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .status-line { color: #d8e5df; font-size: 12.5px; }
.site-foot .muted { color: #758a82; font-size: 11.5px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 0 22px;
  border-top: 1px solid #1e2b2a;
  font-size: 11.5px;
  color: #758a82;
}
.foot-bottom p { margin: 0; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1040px) {
  .layout, .prose-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; }
  .hero h1 { font-size: clamp(40px, 6vw, 64px); }
}
@media (max-width: 900px) {
  .layout, .prose-layout { grid-template-columns: 1fr; }
  .side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .side > .card { margin-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .head-inner { gap: 14px; min-height: 60px; }
  .head-nav { display: none; }
  .brand__tag { display: none; }
  .hero { padding: 48px 0 38px; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .lede { font-size: 16px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .release { grid-template-columns: 14px minmax(0, 1fr); gap: 12px; }
  .release__card { padding: 20px 18px 16px; }
  .release__title h3 { font-size: 21px; }
  .change { grid-template-columns: 1fr; gap: 4px; }
  .side { grid-template-columns: 1fr; }
  .page-hero { padding: 40px 0 26px; }
  .prose-layout { padding: 30px 0 56px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; gap: 4px; }
  .release__head { align-items: flex-start; }
}
@media (max-width: 460px) {
  .head-actions .btn--primary { display: none; }
  .hero h1 { font-size: 34px; }
  .hero__meta { font-size: 11px; }
  .release__meta { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-head, .side, .site-foot, .toolbar .search, .copy-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .release__card { box-shadow: none; border-color: #ddd; }
  .layout { display: block; padding: 0; }
}
