:root {
  color-scheme: dark;
  --bg: #0a0c0a;
  --bg-deep: #060706;
  --panel: #10130f;
  --line: rgba(228, 220, 188, 0.10);
  --line-2: rgba(228, 220, 188, 0.18);
  --text: #ece6d4;
  --text-dim: #9b9580;
  --text-faint: #6a6555;
  --amber: #f0be42;
  --amber-soft: rgba(240, 190, 66, 0.13);
  --green: #76c98a;
  font-family: "Berkeley Mono", "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(240, 190, 66, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 52rem;
  padding: 0 1.25rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

code {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 0.3em;
  overflow-wrap: anywhere;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.bar nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

main { flex: 1; }

section { padding: 2.5rem 0 0.5rem; }

h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.35rem);
  line-height: 1.25;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: lowercase;
  margin: 0 0 1rem;
}
h2::before { content: "## "; color: var(--text-faint); }
h3 { font-size: 1rem; margin: 0 0 0.4rem; }

p { margin: 0 0 1rem; color: var(--text-dim); }
.lede { font-size: 1.05rem; color: var(--text); max-width: 42rem; }
.fine { font-size: 0.85rem; color: var(--text-faint); }

.install {
  margin-top: 2rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-deep);
  padding: 1rem 1.1rem;
}
.install__label { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 0.5rem; }
.install__row { display: flex; gap: 0.75rem; align-items: flex-start; }
.install__row code {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0 0 0.25rem;
  color: var(--amber);
  white-space: nowrap;
  overflow-x: auto;
  overflow-wrap: normal;
}
.install__row code::before { content: "$ "; color: var(--text-faint); }
.install__note { font-size: 0.85rem; margin: 0.75rem 0 0; }

.copy {
  font: inherit;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 0.1rem 0.6rem;
  cursor: pointer;
}
.copy:hover { color: var(--amber); border-color: var(--amber); }
.copy[data-done] { color: var(--green); border-color: var(--green); }

.stages { list-style: none; padding: 0; margin: 0 0 1rem; }
.stages li {
  display: grid;
  grid-template-columns: 2.5rem 7rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
}
.stages strong { color: var(--text); font-weight: 500; }
.ok { color: var(--green); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.75rem 2rem;
}

.links { list-style: none; padding: 0; margin: 0 0 1rem; }
.links li { padding: 0.35rem 0; color: var(--text-dim); }
.links a { display: inline-block; min-width: 8.5rem; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-faint);
}

@media (max-width: 36rem) {
  .stages li { grid-template-columns: 2rem 1fr; row-gap: 0.1rem; }
  .stages li > :last-child { grid-column: 2; }
  .links a { display: block; }
}
