/* Colors from qxlint's icon: its night blue ground, the slate bars, and the lavender bar and check. */
:root {
  --night: #0c1016;
  --night-2: #11121e;
  --tile: #141823;
  --tile-2: #1a1e2b;
  --line: rgba(206, 212, 232, 0.12);
  --text: #eef0f6;
  --text-2: #a7acbc;
  --text-3: #8d93a5;
  --slate: #596176;
  --slate-2: #6f788a;
  --knob: #858da0;
  --lavender: #a99fe4;
  --lavender-deep: #8b7fd2;
  --lavender-soft: #c9c2f2;
  --code-bg: #0b0e1a;
  --ok: #7fd6a4;
  --gradient: linear-gradient(90deg, #8b7fd2, #a99fe4 45%, #d6d1f7);

  --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; plain text keeps the block's own #c8d3f5. */
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(12, 16, 22, 0.74);
  -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;
}

.brand img {
  width: 28px;
  height: 28px;
}

.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;
}

/* Sponsoring sits beside the main action, never above it: an outline in place of a fill. */
.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;
}

/* A sentence long enough to be a link line may wrap; a short call to action may not. */
.note .more,
.rule-link .more {
  white-space: normal;
}

.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 {
  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 */
/* Clipped sideways only, so nothing can widen the page, while the shadows at the bottom of a section fade out
   instead of stopping at its edge. A browser without overflow: clip keeps the line above. */
.hero,
.closing {
  position: relative;
  overflow: hidden;
  overflow: clip visible;
  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(139, 127, 210, 0.2), rgba(139, 127, 210, 0));
}

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

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

.hero-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.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;
}

.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: #252a3a;
}

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

/* Terminal windows */
.terminal {
  max-width: 920px;
  margin: 56px auto 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 70px rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: 0;
  text-align: left;
}

.terminal-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: #151a2a;
}

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

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

.terminal-bar i:nth-child(3) {
  background: #28c840;
}

.terminal-bar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
}

.terminal pre {
  margin: 0;
  padding: 20px 22px 22px;
  color: #c8d3f5;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* A long finding wraps under itself, not under the file name. */
.terminal .line,
.output .line {
  display: block;
  padding-left: 4ch;
  text-indent: -4ch;
}

.terminal .prompt,
.output .prompt {
  color: var(--lavender);
}

.terminal .loc,
.output .loc {
  color: #8e97bc;
}

.terminal .code-id,
.output .code-id {
  color: #ff9f45;
  font-weight: 600;
}

/* Statement */
.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;
}

.statement code {
  font-size: 0.82em;
}

/* 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;
}

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

/* The bars from qxlint's icon, as a figure. */
.bars {
  display: grid;
  gap: 9px;
  width: 132px;
}

.bars i {
  position: relative;
  display: block;
  height: 16px;
  border-radius: 4px;
  background: var(--slate);
}

.bars i:nth-child(1) {
  width: 92%;
}

.bars i:nth-child(2) {
  width: 66%;
  background: var(--slate-2);
}

.bars i:nth-child(3) {
  width: 49%;
  background: var(--lavender-deep);
}

.bars i:nth-child(-n + 2)::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 42%;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(150, 158, 178, 0.75);
}

.bars i:nth-child(2)::after {
  left: 46%;
}

.check {
  width: 72px;
  height: 56px;
  margin-left: 14px;
}

/* Rule explorer */
.explorer {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  margin-top: 64px;
  text-align: left;
}

.groups {
  display: grid;
  align-content: start;
  gap: 22px;
}

.group-name {
  margin: 0 0 9px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.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;
}

.rule-code {
  margin: 0;
  color: var(--lavender);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.rule h3 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.rule h3 code {
  font-size: 0.86em;
  font-weight: 500;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.badges li {
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 13px;
}

.badges [data-severity="error"] {
  color: #ff9f9f;
}

.badges [data-severity="warning"] {
  color: #ffcf8a;
}

.rule h4 {
  margin: 24px 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rule p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.rule p code {
  color: var(--text);
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.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);
}

.code figcaption {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.code figcaption b {
  color: #ff9f9f;
  font-weight: 600;
}

.code.clean figcaption b {
  color: var(--ok);
}

/* Code keeps its lines: a wrapped Python line would read as two statements, so a block wider than its box scrolls. */
.code pre:not(.output),
.cards pre {
  overflow-x: auto;
  white-space: pre;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-width: thin;
}

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

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

.output {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #090b14;
  color: #c8d3f5;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.output.none {
  color: var(--ok);
}

.output.sketch {
  color: var(--text-3);
  font-family: var(--font);
  font-size: 13px;
}

.rule-link {
  margin: 20px 0 0;
  font-size: 15px;
}

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

/* Code examples and tables */
.examples {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

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

.example h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

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

.example .code {
  margin-top: 18px;
}

.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;
}

.cards pre {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--code-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #c8d3f5;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: left;
}

/* 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;
}

.limits {
  max-width: 820px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.limits li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}

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

.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 .hero-icon {
  width: 128px;
  height: 128px;
}

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

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

.closing .requirements {
  color: var(--text-2);
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: #090c12;
  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 every line keeps its full contrast before it scrolls in. */
@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;
  }
}

/* Wide enough for the longest example line, 74 characters, beside its explanation. */
@media (min-width: 1100px) {
  .example {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    grid-template-rows: auto 1fr;
    column-gap: 32px;
  }

  .example .code {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}

/* Two cards side by side only while the pre-commit URL still fits on one line. */
@media (max-width: 960px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .explorer {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

@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;
  }

}

/* Below 360px the brand and both buttons only fit with the heart alone. */
@media (max-width: 360px) {
  .nav-actions .label {
    display: none;
  }

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

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

  body {
    font-size: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-icon {
    width: 84px;
    height: 84px;
  }

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

  .command code {
    white-space: normal;
  }

  .statement {
    padding-top: 80px;
  }

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

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

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

  .figure {
    font-size: 54px;
  }

  .example {
    padding: 24px 20px 26px;
  }

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

  caption {
    padding: 14px 12px 0;
  }

  .closing .hero-icon {
    width: 100px;
    height: 100px;
  }

  /* A wrapped row would end on a divider, so on a phone the links are spaced instead. */
  footer ul {
    gap: 10px 22px;
  }

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