:root {
  --night: #10121c;
  --tile: #171a2a;
  --tile-2: #1f2338;
  --line: rgba(210, 212, 236, 0.12);
  --text: #eeeef4;
  --text-2: #a9abc0;
  --text-3: #9295ad;
  --lavender: #a89ce4;
  --lavender-deep: #9184d9;
  --lavender-soft: #cbc3f3;
  --code-bg: #0b0e1a;
  --ok: #6fd69c;
  --gradient: linear-gradient(90deg, #9184d9, #a89ce4 45%, #d8d2f8);

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --page: 1080px;
  --gutter: 22px;
  --nav-height: 52px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--lavender);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  letter-spacing: 0;
}

pre code {
  font-size: 1em;
}


/* Code colors from Tapetum Quantum. */
pre .k {
  color: #cd8ff9;
}

pre .f {
  color: #8ab4ff;
}

pre .s {
  color: #4de0d0;
}

pre .n {
  color: #ff9f45;
}

pre .p {
  color: #8e97bc;
}

pre .x {
  color: #ff6e9c;
}

pre .c {
  color: #787fa7;
}

pre .i {
  font-style: italic;
}

pre .b {
  font-weight: 600;
}


p code,
li code,
td code {
  overflow-wrap: anywhere;
}

.wrap {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.center {
  text-align: center;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--night);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* Navigation */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 18, 28, 0.76);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--night);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.pill:hover {
  background: var(--lavender-soft);
  text-decoration: none;
}

.pill:active {
  transform: scale(0.98);
}

.pill-small {
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.pill-large {
  padding: 13px 26px;
  font-size: 17px;
}

.pill svg {
  width: 18px;
  height: 18px;
}

.pill-small svg {
  width: 14px;
  height: 14px;
}

.pill-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(206, 212, 232, 0.28);
  color: var(--text);
}

.pill-ghost:hover {
  background: rgba(206, 212, 232, 0.08);
}

.pill-ghost svg {
  color: var(--lavender);
}

.sponsor {
  display: flex;
  width: fit-content;
  margin: 28px auto 0;
  padding: 9px 18px;
  font-size: 15px;
}

.sponsor svg {
  width: 16px;
  height: 16px;
}

.more {
  white-space: nowrap;
}

.more::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.3em;
  border-top: 0.11em solid currentColor;
  border-right: 0.11em solid currentColor;
  transform: translateY(-0.06em) rotate(45deg);
}

/* Type */
.eyebrow {
  margin: 0 0 8px;
  color: var(--lavender-soft);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.011em;
}

.headline {
  margin: 0;
  font-size: clamp(36px, 6.2vw, 64px);
  font-weight: 600;
  line-height: 1.0625;
  letter-spacing: -0.009em;
  text-wrap: balance;
}

.lede {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: clamp(19px, 2.2vw, 21px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: 0.011em;
  text-wrap: pretty;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.center .lede,
.hero .lede,
.tile p,
.stat p,
.note,
:is(.shot, .story, .wide-shot) figcaption {
  text-wrap: balance;
}

.center .lede {
  margin-inline: auto;
}

.gradient {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.feature-head {
  max-width: 880px;
}

.feature-head.center {
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

.divider {
  width: min(var(--page), 100% - 2 * var(--gutter));
  height: 1px;
  margin: 0 auto;
  border: 0;
  background: var(--line);
}

/* Hero */
.hero,
.closing {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero {
  padding: 72px 0 40px;
}

.hero::before,
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(145, 132, 217, 0.2), rgba(145, 132, 217, 0));
}

.closing::before {
  background: radial-gradient(ellipse closest-side at 50% 42%, rgba(145, 132, 217, 0.17), rgba(145, 132, 217, 0));
}

.hero .wrap,
.closing .wrap {
  position: relative;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7.6vw, 80px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.tagline {
  margin: 16px 0 0;
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

.hero .lede {
  max-width: 700px;
  margin: 22px auto 0;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 30px;
  margin-top: 34px;
}

.actions .more {
  font-size: 19px;
}

.requirements {
  margin: 18px 0 0;
  color: var(--text-3);
  font-size: 14px;
  letter-spacing: -0.016em;
}

.requirements span {
  white-space: nowrap;
}

.command {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 7px 7px 7px 20px;
  border-radius: 999px;
  background: var(--tile);
  box-shadow: 0 0 0 1px var(--line);
}

.command code {
  overflow-x: auto;
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

.command code::before {
  content: "$ ";
  color: var(--lavender);
}

.copy {
  flex: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--tile-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.copy:hover {
  background: #2a2f47;
}

.copy.done {
  background: var(--lavender);
  color: var(--night);
}


.statement {
  padding: 120px 0 40px;
}

.statement p {
  max-width: 880px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-align: center;
  text-wrap: balance;
}

.statement strong {
  color: var(--text);
  font-weight: 600;
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.tile {
  grid-column: span 2;
  padding: 34px 32px 36px;
  border-radius: 24px;
  background: var(--tile);
  text-align: center;
}

.tile.span-3 {
  grid-column: span 3;
}

.tile-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 116px;
}

.figure {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.tile h3 {
  margin: 22px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: 0.009em;
  text-wrap: balance;
}

.tile:not(.span-3) h3 {
  font-size: 22px;
}

.tile p {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.53;
}


.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips button {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chips button:hover {
  color: var(--text);
}

.chips button[aria-pressed="true"] {
  background: var(--lavender);
  box-shadow: none;
  color: var(--night);
  font-weight: 600;
}


/* No wrapping: a wrapped Python line reads as two statements. */
.code pre {
  overflow-x: auto;
  white-space: pre;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-width: thin;
}

.code pre:focus-visible {
  outline-offset: -3px;
}

.code pre {
  flex: 1;
  margin: 0;
  padding: 14px 16px;
  color: #c8d3f5;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}


.code {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}


.table-wrap {
  max-width: 880px;
  margin: 48px auto 0;
  overflow-x: auto;
  border-radius: 18px;
  background: var(--tile);
  box-shadow: 0 0 0 1px var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

caption {
  padding: 16px 20px 0;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

th,
td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

td {
  color: var(--text);
}

td + td {
  color: var(--text-2);
}


/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  display: flex;
  flex-direction: column;
  padding: 30px 26px 32px;
  border-radius: 18px;
  background: var(--tile);
  text-align: center;
}

.cards h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.26;
}

.cards p {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.53;
}


/* Tested */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
  text-align: center;
}

.stat {
  padding: 30px 32px 32px;
  border-radius: 24px;
  background: var(--tile);
}

.stat h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.stat p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.53;
}


.note {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: 15px;
}

/* Questions */
.faq {
  max-width: 820px;
  margin: 56px auto 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 14px;
  height: 14px;
  background: linear-gradient(var(--lavender), var(--lavender)) center / 100% 1.6px no-repeat,
    linear-gradient(var(--lavender), var(--lavender)) center / 1.6px 100% no-repeat;
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--text-2);
  line-height: 1.55;
}

/* Closing and footer */
.closing {
  padding: 140px 0 120px;
}

.closing .lede {
  margin-inline: auto;
}

.closing .actions {
  margin-top: 28px;
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: #0b0d16;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: center;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
}

footer li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 10px;
  vertical-align: -1px;
  background: rgba(255, 255, 255, 0.18);
}

footer a {
  color: var(--text-2);
}

footer p {
  margin: 0 0 10px;
}

footer p a {
  text-decoration: underline;
  text-decoration-color: rgba(167, 172, 188, 0.45);
  text-underline-offset: 3px;
}

footer .maker {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
}

footer .maker + nav ul {
  margin-top: 8px;
}


/* Only moved, never faded, so text keeps full contrast. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    transform: translateY(28px);
    transition: transform 1.1s var(--ease-out);
  }

  .js .reveal.shown {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(168, 156, 228, 0.12);
  box-shadow: inset 0 0 0 1px rgba(168, 156, 228, 0.3);
  color: var(--lavender-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.command code::before {
  content: none;
}

/* Tabs */
.tabs {
  justify-content: center;
}

.tabs button {
  font-family: var(--font);
  font-size: 14px;
}

.js .panel:not(.active) {
  display: none;
}

/* Screenshots */
.gallery {
  margin-top: 48px;
}

.shot {
  margin: 28px 0 0;
}

.shot a {
  display: block;
  border-radius: 14px;
}

/* drop-shadow follows the window's own rounded corners. */
.shot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5));
}

.shot figcaption {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

.brand {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(168, 156, 228, 0.12);
  box-shadow: inset 0 0 0 1px rgba(168, 156, 228, 0.3);
  color: var(--lavender-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.command code::before {
  content: none;
}

.story {
  max-width: var(--page);
  margin: 56px auto 0;
}

.story-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 22px;
  text-align: left;
}

.story .code pre {
  font-size: 12px;
}

/* Side by side only where the file's longest line (81 characters) fits beside the verdict. */
@media (min-width: 1100px) {
  .story-pair {
    grid-template-columns: minmax(0, 630px) minmax(0, 1fr);
  }
}

.file {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
}

.term {
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 70px rgba(0, 0, 0, 0.45);
  color: #c8d3f5;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
}

.term p {
  margin: 0;
}

.term > .file {
  margin: -16px -18px 14px;
  padding-inline: 18px;
}

.prompt-line span {
  color: var(--lavender);
}

.term-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--text);
  font-weight: 600;
}

.term-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(200, 211, 245, 0.25);
}

.box {
  position: relative;
  margin-top: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(200, 211, 245, 0.3);
  border-radius: 4px;
}

.box.bad {
  border-color: rgba(255, 123, 123, 0.6);
}

.box-name {
  position: absolute;
  top: -0.8em;
  left: 50%;
  padding: 0 8px;
  background: var(--code-bg);
  color: var(--text);
  white-space: nowrap;
  transform: translateX(-50%);
}

.bad .box-name {
  color: #ff9f9f;
  font-weight: 600;
}

.box p + p {
  margin-top: 6px;
}

.kv span {
  color: var(--text-2);
}

.amps {
  width: auto;
  font-size: inherit;
  border-collapse: collapse;
}

.amps th,
.amps td {
  padding: 1px 0 1px 18px;
  border: 0;
  color: #c8d3f5;
  font-weight: 400;
  text-align: right;
}

.amps th {
  color: var(--text-2);
  font-size: inherit;
}

.amps th:first-child,
.amps td:first-child {
  padding-left: 0;
  text-align: left;
}

.bar-row {
  display: grid;
  grid-template-columns: 2.5ch minmax(0, 1fr) 5ch 6ch;
  gap: 10px;
  align-items: center;
}

.bar-row i {
  display: block;
  width: calc(var(--w) * 1%);
  height: 0.9em;
  border-radius: 2px;
  background: var(--lavender-deep);
}

.bar-row span:nth-last-child(-n + 2) {
  text-align: right;
}

.pass {
  margin-top: 14px !important;
}

.pass b {
  margin-right: 8px;
  color: var(--ok);
}

.next-step {
  margin-top: 14px !important;
  color: var(--text-2);
}

.next-step span {
  margin-right: 8px;
  color: var(--lavender);
}

.story figcaption {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.mini-box {
  padding: 12px 22px;
  border: 2px solid rgba(255, 123, 123, 0.6);
  border-radius: 8px;
  color: #ff9f9f;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.figure.days {
  font-size: 56px;
}

/* Course */
.acts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.act {
  padding: 28px 28px 22px;
  border-radius: 24px;
  background: var(--tile);
}

.act-name {
  margin: 0;
  color: var(--lavender-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.act h3 {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.lessons {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.lessons li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.num {
  color: var(--lavender);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
}

.lessons h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.lessons p {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

/* Real hardware */
.fallback {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.fallback li {
  position: relative;
  padding: 58px 24px 26px;
  border-radius: 20px;
  background: var(--tile);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
  counter-increment: step;
}

.fallback li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
}

.fallback b {
  color: var(--text);
  font-weight: 600;
}

.queue {
  max-width: 820px;
  margin: 36px auto 0;
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  text-align: left;
}

.queue pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #c8d3f5;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.queue .dim {
  color: var(--text-2);
}

.queue b {
  color: var(--text);
  font-weight: 600;
}

.queue .link {
  color: #8ab4ff;
}

.wide-shot {
  margin: 48px 0 0;
}

.wide-shot a {
  display: block;
  border-radius: 14px;
}

.wide-shot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5));
}

.wide-shot figcaption {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

/* Install */
.steps {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 52px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}

.steps li {
  position: relative;
  padding: 22px 24px 22px 74px;
  border-radius: 20px;
  background: var(--tile);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 22px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--night);
  font-size: 15px;
  font-weight: 700;
}

.steps h3 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 600;
}

.steps p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

.steps .command {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 14px 0 0;
  background: var(--code-bg);
}

.steps .command code {
  font-size: 14px;
  white-space: normal;
}

.steps .command + p {
  margin-top: 16px;
}

/* Long commands break at a space into balanced lines. */
.steps .command.long {
  border-radius: 18px;
}

.steps .command.long code {
  text-wrap: balance;
}

.cmd {
  white-space: nowrap;
}

@media (max-width: 1068px) {
  .nav-links {
    gap: 18px;
  }
}

@media (min-width: 901px) and (max-width: 1099px) {
  .tile:not(.span-3) {
    padding-inline: 20px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile,
  .tile.span-3 {
    grid-column: span 1;
  }

  .acts,
  .fallback {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Nav Sponsor: heart only below 480px, hidden below 360px (still in the footer). */
@media (max-width: 480px) {
  .brand {
    font-size: 13px;
  }

  .nav .wrap {
    gap: 16px;
  }

  .nav-actions .label {
    display: none;
  }

  .nav-actions .pill-ghost {
    padding-inline: 9px;
  }
}

@media (max-width: 359px) {
  .nav-actions .pill-ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .command {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }

  .command code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .statement {
    padding-top: 80px;
  }

  .highlights,
  .cards,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile {
    padding: 26px 24px 28px;
  }

  .figure {
    font-size: 54px;
  }

  .act {
    padding: 24px 20px 16px;
  }

  .term {
    padding: 14px 14px 16px;
    font-size: 12.5px;
  }

  .term > .file {
    margin: -14px -14px 12px;
    padding-inline: 14px;
  }

  .steps li {
    padding: 64px 18px 20px;
  }

  .steps .command {
    flex-direction: row;
    width: 100%;
    padding: 10px 8px 10px 16px;
    border-radius: 16px;
  }

  .steps .command code {
    flex: 1;
    text-align: left;
  }

  th,
  td {
    padding: 11px 12px;
    font-size: 14px;
  }

  /* Spaced instead of divided, so a wrapped row never ends on a divider. */
  footer ul {
    gap: 10px 22px;
  }

  footer li:not(:last-child)::after {
    content: none;
  }
}
