@font-face {
  font-family: "Josefin Sans";
  src: url("/assets/josefin-sans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #16112e;
  --surface: #1f1840;
  --line: #31285c;
  --text: #ece9f7;
  --muted: #a9a2c9;
  --accent: #ff1f9a;
  --accent-strong: #e0007f;
  --ok: #3ddc97;
  --radius: 14px;
  --display: "Josefin Sans", system-ui, sans-serif;
}

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

html { background: var(--bg); }

body {
  margin: 0;
  background: radial-gradient(60rem 36rem at 85% -10%, rgb(255 31 154 / 0.16), transparent 70%) no-repeat;
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code {
  font: 0.875em/1.4 ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  background: rgb(255 255 255 / 0.06);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 2; background: var(--surface); padding: 0.5rem 1rem; border-radius: 8px; }

.bar { border-bottom: 1px solid var(--line); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand img { width: 7.5rem; }
nav { display: flex; gap: 0.25rem; }
nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
nav a:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  padding-block: 5rem 4rem;
}
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8125rem; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); margin-block: 0.75rem 1.25rem; letter-spacing: -0.01em; }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgb(255 31 154 / 0.6);
  transition: background-color 150ms, transform 150ms;
}
.button:hover { background: var(--accent-strong); }
.button:active { transform: translateY(1px); }
.text-link { color: var(--muted); text-underline-offset: 4px; }
.text-link:hover { color: var(--text); }
.meta { margin-top: 1rem; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.mascot { justify-self: center; width: min(100%, 26rem); filter: drop-shadow(0 24px 48px rgb(0 0 0 / 0.45)); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.features > div { background: var(--surface); padding: 1.75rem; }
.features h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.features p { color: var(--muted); }

.section-title { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-bottom: 2rem; }
.install, .status { padding-top: 6rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1.25rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgb(255 31 154 / 0.14);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 600;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 0.375rem; padding-top: 0.375rem; }
.steps p { color: var(--muted); max-width: 46rem; }
.paths { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; margin: 1.25rem 0 0; font-size: 0.9375rem; }
.paths dt { color: var(--muted); }
.paths dd { margin: 0; }

.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stats, .changelog {
  margin: 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stats { display: grid; gap: 1.25rem; }
.stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.stats div + div { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgb(61 220 151 / 0.15); }
.dot.off { background: var(--muted); box-shadow: none; }
.changelog h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.changelog p { color: var(--muted); white-space: pre-line; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 6rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a { text-underline-offset: 4px; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; padding-block: 3rem; gap: 2rem; }
  .mascot { order: -1; width: 12rem; justify-self: start; }
  .features, .status-grid { grid-template-columns: 1fr; }
  .install, .status { padding-top: 4rem; }
}

@media (max-width: 30rem) {
  nav a:not(:last-child) { display: none; }
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; margin-bottom: 0.75rem; }
  .paths { grid-template-columns: 1fr; gap: 0.125rem; }
  .paths dd + dt { margin-top: 0.5rem; }
}

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