@font-face {
  font-family: Geist;
  src: url("./geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f4f4f4;
  --foreground: #171717;
  --panel: #ffffff;
  --primary: #000000;
  --primary-foreground: #ffffff;
  --muted-foreground: #525252;
  --secondary: #e8e8e8;
  --border: #d9d9d9;
  --ring: #737373;
  --radius: 0.75rem;
  font-family: Geist, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.shell {
  width: min(100% - 3rem, 65rem);
  margin-inline: auto;
}
.site-header {
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 4.25rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  font-size: 1.125rem;
}
.brand img {
  display: block;
}
.intro {
  padding-block: 3.5rem 2.5rem;
}
.intro h1 {
  margin: 0 0 0.875rem;
  font-weight: 680;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}
.intro p {
  max-width: 37rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
}

.guide {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 3rem;
}
.steps {
  align-self: start;
  position: sticky;
  top: 1.25rem;
}
.steps-title {
  margin: 0 0 0.625rem;
  font-size: 0.875rem;
  font-weight: 650;
}
.steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.375rem 0.625rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  text-decoration: none;
  border-inline-start: 2px solid transparent;
}
.steps a::before {
  content: "";
  flex: 0 0 0.625rem;
  height: 0.625rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.steps a[data-done]::before {
  background: currentColor;
}
.steps a:hover {
  background: var(--secondary);
}
.steps a[aria-current="step"] {
  border-color: var(--foreground);
  background: var(--secondary);
  color: var(--foreground);
  font-weight: 650;
}
.progress {
  margin: 0.875rem 0 0 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.panels section {
  padding: clamp(1.125rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  scroll-margin-top: 1rem;
}
.panels section + section {
  margin-top: 1rem;
}
.panels h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 650;
}
.panels h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 650;
}
.instructions {
  padding-left: 1.375rem;
  margin-block: 1.125rem;
}
.instructions li {
  padding-left: 0.375rem;
  margin-bottom: 0.625rem;
}
.instructions li::marker {
  font-size: 0.875rem;
  font-weight: 650;
}
.command {
  margin-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.command pre {
  margin: 0;
  white-space: pre-wrap;
}
.command button {
  appearance: none;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--foreground);
  min-height: 2.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.command button:hover {
  background: var(--secondary);
}
.note {
  margin-block: 1.25rem;
  padding: 0.625rem 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
}
.note strong {
  color: var(--foreground);
}

.variables {
  margin: 0.875rem 0 0;
}
.variables div {
  border-top: 1px solid var(--border);
  padding: 0.625rem 0;
}
.variables dt {
  font-weight: 650;
}
.variables dd {
  margin: 0.25rem 0 0;
  color: var(--muted-foreground);
}
.panel-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
}
.primary {
  background: var(--primary);
  color: var(--primary-foreground);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  margin-left: auto;
}
.primary:hover {
  text-decoration: underline;
}
.back,
.skip {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 46rem) {
  .guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .steps {
    position: static;
  }
  .steps a {
    min-height: 2.5rem;
  }
  .intro {
    padding-block: 2rem 1.5rem;
  }
  .shell {
    width: min(100% - 2rem, 65rem);
  }
}

@media (max-width: 25rem) {
  .command {
    align-items: start;
    flex-direction: column;
  }
  .primary {
    margin-left: 0;
  }
}

.terminal-help {
  margin-block: 0.75rem;
  font-size: 0.9375rem;
}
.terminal-help summary {
  cursor: pointer;
  font-weight: 600;
}
.terminal-help p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}
