@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/gabarito-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/gabarito-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #2D3142;
  --surface: color-mix(in srgb, #2D3142 75%, #4F5D75);
  --border: #4F5D75;
  --text: #FFFFFF;
  --muted: #BFC0C0;
  --accent: #EF8354;
  --grid: color-mix(in srgb, #2D3142 60%, #4F5D75);
  --font: "Gabarito", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --max: 68rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

kbd, code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.1em 0.4em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr 1.1fr; }
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.chip {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}
.chip.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.25em;
}
.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: 34rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 0.6rem;
}
.button:hover { background: var(--text); color: var(--bg); }
.note { color: var(--muted); font-size: 0.95rem; }

/* Graph editor illustration */
.graph {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem;
}
.graph svg { display: block; width: 100%; height: auto; }
.graph .curve {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 2.2s cubic-bezier(.3,.7,.2,1) both;
}
@keyframes draw { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) {
  .graph .curve { animation: none; }
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
}
.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.features {
  display: grid;
  gap: 1rem;
}
@media (min-width: 44rem) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature-tall { grid-row: span 2; }
  .feature-wide { grid-column: 1 / -1; }
}
.feature-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.feature-group h3 { color: var(--accent); }
.feature-group .where {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.25rem;
}
.feature-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.feature-group li strong { display: block; font-weight: 700; }
.feature-group li span { color: var(--muted); }

/* Carousel */
.carousel { margin-top: 1.25rem; }
.carousel-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  transition: height 0.3s ease;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}
.slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 44rem) {
  .slide { grid-template-columns: 1.4fr 1fr; gap: 2rem; }
}
/* Images keep their own shape and are never scaled above their natural size */
.slide-media {
  justify-self: center;
  max-width: 100%;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}
.slide-media img {
  display: block;
  max-width: 100%;
  height: auto;
}
.slide-media:empty {
  display: grid;
  justify-self: stretch;
  aspect-ratio: 16 / 10;
}
.slide-media:empty::before {
  content: "Screenshot coming soon";
  margin: auto;
  color: var(--muted);
}
.slide-text strong { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; }
.slide-text span { color: var(--muted); }

/* Hanging indent from the editor's Tab key: about four spaces */
.indent { display: block; padding-left: 1em; }
.carousel-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.carousel:not(:has(.slide + .slide)) .carousel-nav { display: none; }

/* Keymap */
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 30rem;
}
th, td {
  text-align: left;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

.details {
  display: grid;
  gap: 2rem;
}
@media (min-width: 44rem) {
  .details { grid-template-columns: repeat(2, 1fr); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}
