:root {
  color-scheme: dark;
  --void: #060910;
  --panel: #0c111c;
  --ink: #e9eef8;
  --muted: #929db2;
  --line: #222a3a;
  --ice: #9dc2ff;
  --ember: #ff8a4c;
  --good: #63d39b;
  --bad: #ff7d7d;
  --display: "Geologica", "Segoe UI", system-ui, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter-l: max(clamp(16px, 5vw, 72px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 5vw, 72px), env(safe-area-inset-right, 0px));
}

@font-face { font-family: "Geologica"; src: url("/assets/fonts/geologica-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Geologica"; src: url("/assets/fonts/geologica-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "Golos Text"; src: url("/assets/fonts/golos-text-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Golos Text"; src: url("/assets/fonts/golos-text-cyrillic.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0400-04FF, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0400-04FF, U+2116; }

* { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--ink);
  font: 400 1rem / 1.55 var(--body);
  overflow-x: clip;
}
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 2px; }
h1, h2, p, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 300; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1.05; }
h2 { font-size: 1.35rem; line-height: 1.2; margin-top: 1rem; }
.mono { font: 400 .72rem / 1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mono-plain { font: 400 .85rem / 1.5 var(--mono); }
.wrap { overflow-wrap: anywhere; min-width: 0; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.25rem;
  padding: calc(1.1rem + env(safe-area-inset-top, 0px)) var(--gutter-r) 1.1rem var(--gutter-l);
  border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: center; gap: .6rem; font: 400 1.15rem / 1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.mark svg { width: 20px; height: 20px; }
.badge { color: var(--ember); }
.top nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

main { flex: 1; padding: clamp(2rem, 7vh, 4.5rem) var(--gutter-r) 3rem var(--gutter-l); }
section { display: grid; gap: 1.25rem; max-width: 60rem; margin-inline: auto; width: 100%; min-width: 0; }
.narrow { max-width: 27rem; }
.narrow-form { max-width: 27rem; }
.lead { color: #c3ccdc; }
.quiet { color: var(--muted); font-size: .94rem; }

.stack { display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; font-size: .92rem; color: #c3ccdc; }
small { color: var(--muted); font-size: .84rem; }
input:not([type="checkbox"]) {
  width: 100%;
  min-height: 2.9rem;
  padding: .6rem .8rem;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
input:focus { outline: 2px solid var(--ice); outline-offset: 1px; }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; accent-color: var(--ice); flex: none; }

button {
  min-height: 2.9rem;
  padding: .6rem 1.3rem;
  background: var(--ink);
  color: var(--void);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font: 500 .98rem / 1.2 var(--body);
  cursor: pointer;
}
button:hover { background: var(--ice); border-color: var(--ice); }
button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
button.secondary:hover { border-color: var(--muted); background: transparent; }
button.destructive { background: transparent; color: var(--bad); border-color: var(--bad); }
button.destructive:hover { background: var(--bad); color: var(--void); border-color: var(--bad); }
button.link { min-height: 0; padding: 0; background: none; border: 0; color: var(--muted); font-size: .92rem; }
button.link:hover { background: none; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.error { color: var(--bad); }
.notice { display: grid; gap: .5rem; padding: 1rem; background: var(--panel); border: 1px solid var(--ember); border-radius: 6px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); padding-block: 1.25rem; border-block: 1px solid var(--line); }
.facts dt { color: var(--muted); margin-bottom: .5rem; }
.facts dd { font: 300 1.2rem / 1.3 var(--display); letter-spacing: -.01em; }
.dot { display: inline-block; width: .55rem; height: .55rem; margin-right: .5rem; border-radius: 50%; background: var(--muted); vertical-align: .08em; }
.dot.running { background: var(--good); }
.dot.starting, .dot.provisioning { background: var(--ember); }
.dot.failed, .dot.missing { background: var(--bad); }

.danger { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.danger summary { cursor: pointer; color: var(--muted); }
.danger[open] { display: grid; gap: 1rem; }
.danger .stack { max-width: 27rem; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: .6rem .75rem .6rem 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 400; }

.prose { max-width: 42rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; color: #c3ccdc; }
.prose p { color: #c3ccdc; }

footer { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding: 1.25rem var(--gutter-r) calc(1.25rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l); border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
footer p { min-width: 0; max-width: 46rem; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .actions form, .actions button { width: 100%; }
}
