:root {
  --cream-50: #fffcf5;
  --cream-100: #fff6e5;
  --cream-200: #fdebcb;
  --ink-400: #7a6f63;
  --ink-600: #4a4138;
  --ink-800: #2b2420;
  --ink-900: #1c1714;
  --red: #e53935;
  --yellow: #fdd835;
  --blue: #1e88e5;
  --green: #43a047;
  --orange: #fb8c00;
  --term-bg: #0d0b0a;
  --term-text: #e8e2d9;
  --shadow-chunky: 0 4px 0 rgba(43, 36, 32, 0.15), 0 10px 24px rgba(43, 36, 32, 0.08);
  --radius: 14px;
  --sans: "Nunito", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-800);
  background-color: var(--cream-100);
  background-image: radial-gradient(circle at 12px 12px, rgba(43, 36, 32, 0.045) 5px, transparent 5.5px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.88em;
}

:not(pre) > code {
  background: var(--cream-200);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

section.wrap {
  padding-block: 56px;
}

.small {
  font-size: 0.9rem;
  color: var(--ink-400);
}

.center {
  text-align: center;
}

.section-lead {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--ink-600);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-800);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.3rem;
}

.logo b {
  color: var(--red);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav nav a:not(.btn) {
  color: var(--ink-600);
  font-weight: 700;
  text-decoration: none;
}

.nav nav a:not(.btn):hover {
  color: var(--ink-900);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 2.5px solid var(--ink-800);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink-800);
  background: #fff;
  box-shadow: 0 4px 0 var(--ink-800);
  transition: transform 100ms ease, box-shadow 100ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink-800);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink-800);
}

.btn-yellow {
  background: var(--yellow);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 var(--ink-800);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 48px 40px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink-800);
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hl {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
}

.lead {
  font-size: 1.25rem;
  color: var(--ink-600);
  margin: 18px 0 26px;
}

.install {
  display: flex;
  align-items: stretch;
  max-width: 420px;
  border: 2.5px solid var(--ink-800);
  border-radius: 12px;
  overflow: hidden;
  background: var(--term-bg);
  box-shadow: var(--shadow-chunky);
}

.install code {
  flex: 1;
  background: none;
  border-radius: 0;
  padding: 14px 16px;
  color: var(--term-text);
  font-size: 1rem;
  white-space: nowrap;
  overflow-x: auto;
}

.dollar {
  color: var(--yellow);
  margin-right: 6px;
  user-select: none;
}

.copy {
  border: 0;
  border-left: 2.5px solid var(--ink-800);
  background: var(--yellow);
  color: var(--ink-800);
  font: inherit;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}

.copy:hover {
  background: #ffe55c;
}

.copy.done {
  background: var(--green);
  color: #fff;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-art {
  position: relative;
  padding-top: 70px;
}

.pip-big {
  position: absolute;
  top: 0;
  right: 28px;
  width: 120px;
  height: auto;
  animation: hop 1.6s ease-in-out infinite;
  z-index: 1;
  filter: drop-shadow(0 6px 0 rgba(43, 36, 32, 0.15));
}

@keyframes hop {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pip-big {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Terminal */
.term {
  position: relative;
  z-index: 2;
  border: 2.5px solid var(--ink-800);
  border-radius: var(--radius);
  background: var(--term-bg);
  color: var(--term-text);
  font-family: var(--mono);
  font-size: 0.85rem;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--ink-800), 0 18px 40px rgba(43, 36, 32, 0.18);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #1f1b18;
  color: #8a8178;
  font-size: 0.78rem;
}

.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.term-bar i:nth-child(2) {
  background: #febc2e;
}

.term-bar i:nth-child(3) {
  background: #28c840;
  margin-right: 8px;
}

.term-body {
  padding: 16px;
}

.term-line {
  margin: 0 0 12px;
}

.term-prompt {
  border: 1px solid #3a332d;
  border-radius: 6px;
  padding: 8px 12px;
  color: #7d746a;
  margin-bottom: 10px;
}

.statusline {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.2em;
  white-space: nowrap;
}

.pip-face,
.ctx {
  font-weight: 700;
  transition: color 200ms ease;
}

.branch {
  color: #66bb6a;
}

.cost {
  color: #b9b0a6;
}

.term[data-mood="calm"] .pip-face,
.term[data-mood="calm"] .ctx {
  color: #66bb6a;
}

.term[data-mood="busy"] .pip-face,
.term[data-mood="busy"] .ctx {
  color: #fdd835;
}

.term[data-mood="danger"] .pip-face,
.term[data-mood="danger"] .ctx {
  color: #ff5252;
}

.moods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.moods-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  margin-right: 4px;
}

.moods button {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid rgba(43, 36, 32, 0.2);
  background: #fff;
  color: var(--ink-800);
  cursor: pointer;
}

.moods button[aria-pressed="true"] {
  background: var(--yellow);
  border-color: var(--ink-800);
}

/* Screenshot */
.shot {
  padding-top: 24px !important;
}

.frame {
  margin: 0;
  border: 3px solid var(--ink-800);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 0 var(--ink-800), 0 30px 60px rgba(43, 36, 32, 0.15);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.caption {
  text-align: center;
  color: var(--ink-400);
  margin-top: 22px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.brick-card {
  position: relative;
  padding: 26px 22px 22px;
  margin-top: 10px;
  border-radius: 12px;
  background: var(--c);
  color: #fff;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 4px 0 rgba(43, 36, 32, 0.2), 0 10px 22px rgba(43, 36, 32, 0.12);
}

.brick-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 18px;
  right: 18px;
  height: 10px;
  background: radial-gradient(ellipse 13px 10px at 50% 100%, var(--c) 98%, transparent 100%) 0 0 / 50px 10px repeat-x;
  filter: brightness(1.08);
}

.brick-card h3 {
  font-size: 1.3rem;
  margin: 4px 0 6px;
}

.brick-card p {
  margin: 0;
  opacity: 0.95;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-weight: 900;
}

/* Features */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.card {
  min-width: 0;
  background: var(--cream-50);
  border: 2.5px solid rgba(43, 36, 32, 0.12);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-chunky);
}

.card p {
  margin: 10px 0 0;
  color: var(--ink-600);
}

.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--c);
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.chip-dark {
  color: var(--ink-800);
}

/* Mods */
.mods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.spot {
  border: 2.5px dashed rgba(43, 36, 32, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 252, 245, 0.75);
}

.spot ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.spot li {
  color: var(--ink-600);
  font-size: 0.95rem;
}

.spot li b {
  display: block;
  color: var(--ink-800);
}

.note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
}

/* Starter kits */
.kits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.kit {
  border: 2.5px solid var(--ink-800);
  border-radius: var(--radius);
  background: var(--term-bg);
  color: var(--term-text);
  padding: 14px 16px 16px;
  box-shadow: 0 4px 0 var(--ink-800);
  min-width: 0;
}

.kit h3 {
  font-family: var(--sans);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
}

.line {
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.line + .line {
  margin-top: 4px;
}

.line i {
  font-style: normal;
  color: #5c544c;
}

.line .g {
  color: #66bb6a;
}

.line .y {
  color: #fdd835;
}

.line .r {
  color: #ff5252;
}

.line .b {
  color: #64b5f6;
}

/* Powerline segments drawn with CSS, so no Nerd Font is needed */
.pl {
  display: flex;
}

.seg {
  --t: #fff;
  flex: none;
  background: var(--c);
  color: var(--t);
  font-weight: 700;
  padding: 2px 14px 2px 16px;
  margin-right: -6px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
}

.seg:first-child {
  padding-left: 10px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}

/* Get started */
.start {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.start .install {
  margin-top: 14px;
  max-width: none;
}

.start .install code {
  font-size: 0.9rem;
}

.code {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--term-bg);
  color: var(--term-text);
  font-size: 0.8rem;
  overflow-x: auto;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding: 40px 0 48px;
  border-top: 2.5px dashed rgba(43, 36, 32, 0.2);
  text-align: center;
}

.footer-inner p {
  margin: 8px 0 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .grid,
  .mods-grid,
  .start {
    grid-template-columns: repeat(2, 1fr);
  }
  .kits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .nav nav a:not(.btn) {
    display: none;
  }
  section.wrap {
    padding-block: 40px;
  }
  .steps,
  .grid,
  .mods-grid,
  .start {
    grid-template-columns: 1fr;
  }
  .pip-big {
    width: 96px;
    right: 12px;
  }
  .hero-art {
    padding-top: 56px;
  }
  .term {
    font-size: 0.78rem;
  }
}
