@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #131419;
  --bg-soft: #1b1d24;
  --ink: #ece9e2;
  --muted: #a3a099;
  --line: #2a2d36;
  --pill: #ece9e2;
  --pill-ink: #131419;
  --card: #1b1d24;
  --accent: #8fd8ff;
  --accent-ink: #0b3a54;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3efe6;
  --bg-soft: #e9e2d3;
  --ink: #22242a;
  --muted: #63605a;
  --line: #d9d0bc;
  --pill: #22242a;
  --pill-ink: #f3efe6;
  --card: #faf7ef;
  --accent: #0b6fce;
  --accent-ink: #e8f3ff;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a { color: var(--ink); }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 32px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.brand-mark-light { display: none; }

[data-theme="light"] .brand-mark-dark { display: none; }
[data-theme="light"] .brand-mark-light { display: block; }

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.4px;
  line-height: 1;
  color: var(--ink);
}

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

.brand-by {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-left: -4px;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 14px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

nav a:hover { color: var(--accent); }

.theme-btn {
  margin-left: 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main .wrap { padding-top: 40px; padding-bottom: 40px; }

.hero {
  position: relative;
}

@media (max-width: 560px) {
  .brand-mark { width: 26px; }
  .brand-name { font-size: 18px; }
  .brand-by { display: none; }
  nav a { margin-left: 10px; font-size: 14px; }
  .theme-btn { margin-left: 10px; padding: 4px 10px; font-size: 13px; }
  .hero h1 { font-size: 34px; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -20px auto -20px;
  height: 220px;
  background: radial-gradient(closest-side, var(--accent) 0%, transparent 100%);
  opacity: 0.07;
  pointer-events: none;
}

[data-theme="light"] .hero::before { opacity: 0.035; }

.hero h1 {
  font-family: var(--display);
  font-size: 46px;
  line-height: 1.05;
  margin: 0 0 10px 0;
  letter-spacing: -1px;
  animation: rise 420ms var(--ease) both;
}

.hero p.sub {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 20px 0;
  animation: rise 420ms var(--ease) 60ms both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 8px 0;
}

.btn {
  display: inline-block;
  background: var(--pill);
  color: var(--pill-ink);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 500;
}

.btn.ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

.fine { font-size: 14px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--card);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-family: var(--display);
  font-weight: 500;
}

.card h3::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}

.card p { margin: 0; font-size: 15px; color: var(--muted); }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  margin: 34px 0 8px 0;
  letter-spacing: -0.3px;
}

ul.tight li { margin-bottom: 6px; }

footer.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

footer.site-footer .wrap {
  padding-top: 18px;
  padding-bottom: 26px;
  font-size: 14px;
  color: var(--muted);
}

footer.site-footer a { color: var(--muted); }
footer.site-footer a:hover { color: var(--accent); }

.releases {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 24px 0;
}

.rel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--card);
}

.rel-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  min-width: 62px;
}

.rel-version {
  font-family: var(--display);
  font-size: 17px;
}

.rel-meta,
.rel-note {
  font-size: 13px;
  color: var(--muted);
  margin-right: auto;
}

.rel-older {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--card);
}

.rel-older summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}

.rel-select {
  display: block;
  width: 100%;
  margin: 12px 0 10px 0;
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Generated changelog. */
.log-entry {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.log-head h3 {
  font-family: var(--display);
  font-size: 16px;
  margin: 0;
}

.log-date {
  font-size: 13px;
  color: var(--muted);
}

.log-notes {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 8px 0;
}

.log-entry.log-nightly {
  border-style: dashed;
}

.rel-download {
  font-size: 13px;
}

/* Live status list on the home page. */
.status-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

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

.status {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  min-width: 86px;
  text-align: center;
}

.status.is-live {
  color: var(--accent);
  border-color: var(--accent);
}

.status-name {
  font-family: var(--display);
  font-size: 15px;
  min-width: 140px;
}

.status-note {
  font-size: 13px;
  color: var(--muted);
  margin-right: auto;
}

.price {
  font-family: var(--display);
  font-size: 22px;
  margin: 6px 0 10px 0;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
