:root {
  color-scheme: dark;
  --ink: #f7f1dc;
  --muted: #aaa89f;
  --paper: #11151c;
  --panel: #171c24;
  --line: #2d333d;
  --cheese: #ffd45a;
  --cheese-deep: #eba82e;
  --blue: #88a9ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-one { top: -16rem; left: -12rem; background: var(--cheese); }
.ambient-two { right: -18rem; bottom: -18rem; background: var(--blue); }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #9a7424;
  border-radius: 9px;
  color: #18130a;
  background: linear-gradient(145deg, #ffe58c, var(--cheese));
  box-shadow: inset 0 0 0 3px rgba(17, 21, 28, 0.12);
}

.version,
.eyebrow,
.section-kicker,
.terminal-label,
.number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.version {
  color: var(--muted);
  font-size: 0.72rem;
}

.hero { padding: clamp(90px, 14vw, 170px) 0 clamp(90px, 12vw, 140px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--cheese);
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cheese);
  box-shadow: 0 0 18px var(--cheese);
}

h1,
h2,
p { margin-top: 0; }

h1 {
  max-width: 950px;
  margin-bottom: 30px;
  font-size: clamp(3.25rem, 8.5vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.068em;
}

h1 em { color: var(--cheese); font-style: normal; }

.intro {
  max-width: 720px;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.install {
  max-width: 820px;
  overflow: hidden;
  border: 1px solid #3a414d;
  border-radius: 14px;
  background: #0b0e13;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  padding: 0 10px 0 18px;
  border-bottom: 1px solid var(--line);
  background: #141922;
}

.terminal-label { color: #777d88; font-size: 0.65rem; }

.copy-button {
  padding: 7px 12px;
  border: 1px solid #3a414d;
  border-radius: 7px;
  color: var(--ink);
  background: #202631;
  font: 600 0.75rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible { border-color: var(--cheese); outline: none; }

pre { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.install pre {
  overflow-x: auto;
  padding: 25px 26px;
  color: #f6dc8d;
  font-size: clamp(0.78rem, 1.8vw, 1rem);
  line-height: 1.6;
}

.requirement { margin: 16px 0 0; color: #777d88; font-size: 0.82rem; }
.requirement code, article code { color: #d9d4c4; }

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.details article { min-height: 320px; padding: 48px 34px 44px 0; }
.details article + article { padding-left: 34px; border-left: 1px solid var(--line); }
.details h2 { margin: 48px 0 18px; font-size: 1.3rem; letter-spacing: -0.025em; }
.details p { color: var(--muted); font-size: 0.94rem; line-height: 1.75; }
.number { color: var(--cheese); font-size: 0.68rem; }

.mini-command {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #f6dc8d;
  background: #0d1117;
  font-size: 0.78rem;
}

.start {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
  padding: 120px 0;
}

.section-kicker { margin-bottom: 20px; color: var(--cheese); font-size: 0.68rem; }
.start h2 { max-width: 440px; margin: 0; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.03; letter-spacing: -0.05em; }
.start pre { overflow-x: auto; padding: 26px; border: 1px solid var(--line); border-radius: 12px; color: #cdd7f0; background: #0b0e13; font-size: 0.84rem; line-height: 1.8; }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 27px 0 38px;
  border-top: 1px solid var(--line);
  color: #777d88;
  font: 0.7rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

footer a { color: #b8bdc7; text-underline-offset: 4px; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 11px 15px;
  border: 1px solid #665328;
  border-radius: 9px;
  color: #201909;
  background: var(--cheese);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1120px); }
  .hero { padding-top: 78px; }
  h1 { font-size: clamp(3rem, 16vw, 5.5rem); }
  .details { grid-template-columns: 1fr; }
  .details article { min-height: 0; padding: 38px 0; }
  .details article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .details h2 { margin-top: 30px; }
  .start { grid-template-columns: 1fr; gap: 38px; padding: 90px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
