/* Runnev — base stylesheet. No external resources, no build step. */

:root {
  color-scheme: light dark;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Roboto Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.25rem;
  --step-5: 3rem;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;

  --wrap: 1100px;
  --prose: 72ch;
  --radius: 6px;
  --radius-lg: 10px;

  --dur: 120ms;
}

/* ---------------------------------------------------------------- palettes */

:root,
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-sunk: #f6f7f8;
  --bg-raised: #ffffff;
  --bg-code: #f6f7f8;
  --bg-inline: #eef0f2;

  --fg: #16191d;
  --fg-muted: #5b6570;
  --fg-faint: #838d97;

  --line: #e2e5e9;
  --line-strong: #cbd1d8;

  --accent: #0f6f6a;
  --accent-hover: #0b524e;
  --accent-bg: #e6f2f1;
  --accent-line: #9fcbc7;

  --warn: #8a5a00;
  --warn-bg: #fdf5e4;
  --warn-line: #e6cf9a;

  --danger: #a02020;
  --danger-bg: #fbeceb;

  --ok: #1f7a3d;

  --shadow-sm: 0 1px 2px rgba(16, 22, 28, 0.06);
  --shadow: 0 2px 6px rgba(16, 22, 28, 0.07), 0 1px 2px rgba(16, 22, 28, 0.05);

  --tok-key: #7a3ba8;
  --tok-str: #0a6b4c;
  --tok-num: #9a4a10;
  --tok-com: #7c868f;
  --tok-fn: #1f5aa8;
  --tok-punc: #5b6570;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101317;
    --bg-sunk: #0b0d10;
    --bg-raised: #171b20;
    --bg-code: #14181d;
    --bg-inline: #1e242b;

    --fg: #e4e8ec;
    --fg-muted: #98a3ae;
    --fg-faint: #6d7883;

    --line: #262c33;
    --line-strong: #39424b;

    --accent: #4fd0c4;
    --accent-hover: #7de0d6;
    --accent-bg: #10312e;
    --accent-line: #1f544f;

    --warn: #e0b45c;
    --warn-bg: #2a2312;
    --warn-line: #4b3d18;

    --danger: #f08a82;
    --danger-bg: #2c1917;

    --ok: #5fc07f;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);

    --tok-key: #c99cf0;
    --tok-str: #7ed0a8;
    --tok-num: #e8a86a;
    --tok-com: #6d7883;
    --tok-fn: #7fb2f0;
    --tok-punc: #98a3ae;
  }
}

:root[data-theme="dark"] {
  --bg: #101317;
  --bg-sunk: #0b0d10;
  --bg-raised: #171b20;
  --bg-code: #14181d;
  --bg-inline: #1e242b;

  --fg: #e4e8ec;
  --fg-muted: #98a3ae;
  --fg-faint: #6d7883;

  --line: #262c33;
  --line-strong: #39424b;

  --accent: #4fd0c4;
  --accent-hover: #7de0d6;
  --accent-bg: #10312e;
  --accent-line: #1f544f;

  --warn: #e0b45c;
  --warn-bg: #2a2312;
  --warn-line: #4b3d18;

  --danger: #f08a82;
  --danger-bg: #2c1917;

  --ok: #5fc07f;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);

  --tok-key: #c99cf0;
  --tok-str: #7ed0a8;
  --tok-num: #e8a86a;
  --tok-com: #6d7883;
  --tok-fn: #7fb2f0;
  --tok-punc: #98a3ae;
}

/* ------------------------------------------------------------------ reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-7) 0;
}

/* --------------------------------------------------------------- typography */

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 0 0 var(--sp-4);
  font-weight: 620;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
  margin-top: var(--sp-7);
}
h3 {
  font-size: var(--step-1);
  margin-top: var(--sp-6);
}
h4 {
  font-size: var(--step-0);
  margin-top: var(--sp-5);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--step--1);
}

p,
ul,
ol,
dl {
  margin: 0 0 var(--sp-4);
}

ul,
ol {
  padding-left: 1.35em;
}

li {
  margin-bottom: var(--sp-2);
}

li > ul,
li > ol {
  margin-top: var(--sp-2);
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 0.18em;
  transition: color var(--dur) ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

strong {
  font-weight: 620;
}

small,
.small {
  font-size: var(--step--1);
  color: var(--fg-muted);
}

.lede {
  font-size: var(--step-1);
  color: var(--fg-muted);
  max-width: var(--prose);
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--sp-3);
}

.muted {
  color: var(--fg-muted);
}

/* ------------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.wrap-narrow {
  max-width: 780px;
}

.prose {
  max-width: var(--prose);
}

.section {
  padding-block: var(--sp-8);
}

.section-sunk {
  background: var(--bg-sunk);
  border-block: 1px solid var(--line);
}

.stack > * + * {
  margin-top: var(--sp-4);
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.split {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .split-wide-left {
    grid-template-columns: 1.15fr 1fr;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 640;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: var(--step-1);
  flex: none;
}

.brand svg {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-right: auto;
}

.site-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: var(--step-0);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--fg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--fg);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  line-height: 1;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover {
  color: var(--fg);
  background: var(--bg-inline);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    order: 3;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    gap: var(--sp-3);
  }
  .brand {
    margin-right: auto;
  }
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--fg);
  font: inherit;
  font-weight: 550;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur) ease, border-color var(--dur) ease,
    color var(--dur) ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--fg-faint);
  color: var(--fg);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

:root[data-theme="dark"] .btn-primary,
html:not([data-theme="light"]) .btn-primary {
  color: #06211f;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn-primary {
    color: #fff;
  }
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: var(--step--1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* -------------------------------------------------------------------- code */

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-variant-ligatures: none;
}

:not(pre) > code {
  background: var(--bg-inline);
  border-radius: 4px;
  padding: 0.12em 0.36em;
  white-space: nowrap;
}

.codeblock {
  position: relative;
  margin: 0 0 var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-code);
  overflow: hidden;
}

.codeblock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.4rem 0.75rem 0.4rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-sunk) 70%, var(--bg-code));
  font-size: var(--step--1);
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.codeblock pre {
  margin: 0;
  padding: var(--sp-4);
  overflow-x: auto;
  line-height: 1.6;
}

.codeblock pre code {
  background: none;
  padding: 0;
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--fg-muted);
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur) ease;
}

.codeblock:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
}

.codeblock-head + pre + .copy-btn,
.codeblock-head ~ .copy-btn {
  top: 2.3rem;
}

.tok-key {
  color: var(--tok-key);
}
.tok-str {
  color: var(--tok-str);
}
.tok-num {
  color: var(--tok-num);
}
.tok-com {
  color: var(--tok-com);
  font-style: italic;
}
.tok-fn {
  color: var(--tok-fn);
}
.tok-punc {
  color: var(--tok-punc);
}

/* ------------------------------------------------------------------ tables */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--step-0);
}

.table-scroll table {
  min-width: 34rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--bg-sunk);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td code {
  white-space: nowrap;
}

/* ------------------------------------------------------------------- cards */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: var(--sp-5);
}

.card h3 {
  margin-top: 0;
  font-size: var(--step-0);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}

.card-link:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
  color: inherit;
}

.card-link h3 {
  color: var(--accent);
}

/* ---------------------------------------------------------------- callouts */

.note,
.warning {
  border-left: 3px solid var(--accent-line);
  background: var(--accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-4) var(--sp-5);
  margin: 0 0 var(--sp-5);
}

.warning {
  border-left-color: var(--warn-line);
  background: var(--warn-bg);
}

.note > :last-child,
.warning > :last-child {
  margin-bottom: 0;
}

.note-title {
  font-weight: 620;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}

/* ------------------------------------------------------------------ badges */

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--fg-muted);
  background: var(--bg-sunk);
  vertical-align: 0.08em;
  white-space: nowrap;
}

.badge-get {
  color: #1f5aa8;
  border-color: #9fb9dd;
  background: #eaf1fa;
}
.badge-post {
  color: #1f7a3d;
  border-color: #a4ceb2;
  background: #e9f5ed;
}
.badge-delete {
  color: #a02020;
  border-color: #dda6a3;
  background: #fbeceb;
}

:root[data-theme="dark"] .badge-get,
:root[data-theme="dark"] .badge-post,
:root[data-theme="dark"] .badge-delete {
  background: var(--bg-sunk);
}
:root[data-theme="dark"] .badge-get {
  color: #7fb2f0;
  border-color: #2c4667;
}
:root[data-theme="dark"] .badge-post {
  color: #5fc07f;
  border-color: #245536;
}
:root[data-theme="dark"] .badge-delete {
  color: #f08a82;
  border-color: #5e2b28;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-get {
    color: #7fb2f0;
    border-color: #2c4667;
    background: var(--bg-sunk);
  }
  :root:not([data-theme="light"]) .badge-post {
    color: #5fc07f;
    border-color: #245536;
    background: var(--bg-sunk);
  }
  :root:not([data-theme="light"]) .badge-delete {
    color: #f08a82;
    border-color: #5e2b28;
    background: var(--bg-sunk);
  }
}

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 0.4rem;
  vertical-align: 0.05em;
}

.status-dot.degraded {
  background: var(--warn);
}
.status-dot.down {
  background: var(--danger);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sunk);
  padding-block: var(--sp-7) var(--sp-6);
  margin-top: var(--sp-9);
  font-size: var(--step--1);
}

.footer-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: var(--sp-6);
}

.footer-grid h2 {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg-faint);
  margin: 0 0 var(--sp-3);
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: var(--sp-2);
}

.footer-grid a {
  color: var(--fg-muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
  color: var(--fg-faint);
}

.footer-bottom code {
  background: none;
  color: var(--fg-faint);
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding-block: var(--sp-9) var(--sp-8);
}

.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, var(--step-5));
  max-width: 16ch;
  margin-bottom: var(--sp-5);
}

.hero .lede {
  font-size: clamp(var(--step-1), 1rem + 0.4vw, var(--step-2));
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}

/* -------------------------------------------------------------------- demo */

.demo {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-code);
  overflow: hidden;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-sunk) 70%, var(--bg-code));
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--fg-muted);
}

.demo-log {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  list-style: none;
  height: 17rem;
  overflow-y: auto;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  line-height: 1.75;
}

.demo-log li {
  margin: 0;
  white-space: pre;
  color: var(--fg-muted);
  border-bottom: 1px dotted color-mix(in srgb, var(--line) 70%, transparent);
  padding-block: 0.1rem;
}

.demo-log li:last-child {
  border-bottom: 0;
}

.demo-log .seq {
  color: var(--tok-num);
}
.demo-log .ev {
  color: var(--fg);
}

.demo-log li.fresh {
  animation: flashin 600ms ease;
}

@keyframes flashin {
  from {
    background: var(--accent-bg);
  }
  to {
    background: transparent;
  }
}

/* ----------------------------------------------------------------- pricing */

.tiers {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: var(--sp-5);
}

.tier.featured {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.tier h2 {
  margin: 0 0 var(--sp-2);
  font-size: var(--step-1);
}

.tier .price {
  font-size: var(--step-3);
  font-weight: 640;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-1);
}

.tier .price span {
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0;
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0 var(--sp-5);
  font-size: var(--step--1);
  flex: 1;
}

.tier ul li {
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: var(--sp-2);
}

.tier ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* -------------------------------------------------------------- post lists */

.postlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.postlist li {
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.postlist li:first-child {
  padding-top: 0;
}

.postlist h2 {
  margin: 0 0 var(--sp-2);
  font-size: var(--step-1);
}

.postlist h2 a {
  text-decoration: none;
  color: var(--fg);
}

.postlist h2 a:hover {
  color: var(--accent);
}

.postmeta {
  font-size: var(--step--1);
  color: var(--fg-faint);
  font-family: var(--font-mono);
  margin-bottom: var(--sp-3);
}

.postmeta time + span::before {
  content: "·";
  margin-inline: 0.5rem;
}

article.post {
  max-width: var(--prose);
}

article.post h2 {
  margin-top: var(--sp-7);
}

article.post img,
article.post figure {
  margin-inline: 0;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  border-top: 1px solid var(--line);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------- changelog */

.release {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-5);
  margin-top: var(--sp-6);
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .release {
    grid-template-columns: 11rem 1fr;
  }
}

.release-head h2 {
  margin: 0;
  font-size: var(--step-1);
  font-family: var(--font-mono);
}

.release-head time {
  font-size: var(--step--1);
  color: var(--fg-faint);
  font-family: var(--font-mono);
}

.release h3 {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin: var(--sp-4) 0 var(--sp-2);
}

.release h3:first-child {
  margin-top: 0;
}

.release ul {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ status */

.status-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
  font-size: var(--step-1);
  font-weight: 550;
}

.uptime-bar {
  display: block;
  width: 100%;
  height: 34px;
}

.uptime-bar rect {
  fill: var(--ok);
}

.uptime-bar rect.d {
  fill: var(--warn);
}

.uptime-bar rect.o {
  fill: var(--danger);
}

.components {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.components li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: 0.7rem var(--sp-5);
  border-bottom: 1px solid var(--line);
  margin: 0;
  background: var(--bg-raised);
}

.components li:last-child {
  border-bottom: 0;
}

.incident {
  border-left: 2px solid var(--line-strong);
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.incident h3 {
  margin-top: 0;
  font-size: var(--step-0);
}

/* --------------------------------------------------------------------- faq */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-4) 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 550;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--fg-faint);
  font-family: var(--font-mono);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > :not(summary) {
  margin-top: var(--sp-3);
  max-width: var(--prose);
  color: var(--fg-muted);
}

/* --------------------------------------------------------------- utilities */

.dl-inline {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--sp-2) var(--sp-5);
  font-size: var(--step-0);
}

.dl-inline dt {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--fg-muted);
  padding-top: 0.15em;
}

.dl-inline dd {
  margin: 0;
}

.center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-6 {
  margin-top: var(--sp-6);
}

.nowrap {
  white-space: nowrap;
}
