/* Noodle site. Plain CSS, no build step. Fonts and pictures are served from this site. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2-variations"),
    url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: optional;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: optional;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: optional;
}
@font-face {
  font-family: "VT323";
  src: url("fonts/vt323.woff2") format("woff2");
  font-display: swap;
}

/* Tokens: flat colours, one accent. */

:root {
  color-scheme: dark;
  --bg: #111014;
  --surface: #1a181f;
  --surface-2: #22202a;
  --line: #2c2934;
  --line-2: #3d3947;
  --text: #efebf5;
  --muted: #aba4b8;
  --faint: #8c8598;
  --accent: #c4b5fd;
  --accent-hover: #d6cbfe;
  --accent-ink: #16111f;
  --accent-soft: #241f33;
  --link: #cfc2fe;
  --font: "Atkinson Hyperlegible", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", var(--font);
  --font-pixel: "VT323", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3ed;
  --surface: #fffdf9;
  --surface-2: #efebe4;
  --line: #ddd7cc;
  --line-2: #c6bfb2;
  --text: #1a1820;
  --muted: #514c5c;
  --faint: #67616f;
  --accent: #5a3ecf;
  --accent-hover: #4a30b5;
  --accent-ink: #ffffff;
  --accent-soft: #ebe6fb;
  --link: #4b31b6;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f3ed;
    --surface: #fffdf9;
    --surface-2: #efebe4;
    --line: #ddd7cc;
    --line-2: #c6bfb2;
    --text: #1a1820;
    --muted: #514c5c;
    --faint: #67616f;
    --accent: #5a3ecf;
    --accent-hover: #4a30b5;
    --accent-ink: #ffffff;
    --accent-soft: #ebe6fb;
    --link: #4b31b6;
  }
}

/* Base */

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: contents;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.35em;
}

pre {
  margin: 0 0 1.25em;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 0.86rem/1.6 var(--font-mono);
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

kbd {
  display: inline-block;
  font: 1.1em/1 var(--font-pixel);
  padding: 0.12em 0.4em 0.08em;
  min-width: 1.6em;
  text-align: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html:not(.js) .needs-js {
  display: none !important;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  view-transition-name: top;
}

.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 700 1.2rem/1 var(--font-display);
  letter-spacing: -0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  view-transition-name: logo;
}

.nav {
  margin-left: auto;
}

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

.nav a {
  display: block;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.theme-toggle {
  appearance: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-2);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.icon-light {
  display: none;
}

:root[data-theme="light"] .icon-dark {
  display: none;
}

:root[data-theme="light"] .icon-light {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .icon-dark {
    display: none;
  }
  :root:not([data-theme]) .icon-light {
    display: block;
  }
}

/* Sections */

main {
  display: block;
}

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero h1 {
  max-width: 16ch;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.section.flush {
  border-top: 0;
  padding-top: 0;
}

.label {
  margin: 0 0 14px;
  font: 1.2rem/1.2 var(--font-pixel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.label a {
  color: inherit;
  text-decoration: none;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
  color: var(--muted);
  max-width: 54ch;
}

.muted {
  color: var(--muted);
}

.prose {
  max-width: 64ch;
}

.prose p,
.prose li {
  color: var(--muted);
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  font: 650 1rem/1.1 var(--font-display);
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line-2);
}

.btn-ghost:hover {
  background: var(--surface);
  text-decoration: none;
}

.btn[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line-2);
  cursor: default;
}

.btn-note {
  font-size: 0.9rem;
  color: var(--faint);
}

.more {
  font-weight: 700;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

/* Screenshots */

.shot {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0a0d;
  border: 1px solid var(--line-2);
  aspect-ratio: 1600 / 1002;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-shot {
  view-transition-name: shot;
}

.hero .shot {
  margin-top: clamp(40px, 6vw, 64px);
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.keys li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Feature tiles on the home page */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.tile a {
  display: block;
  height: 100%;
  padding: 10px 10px 16px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 150ms ease;
}

.tile a:hover {
  border-color: var(--line-2);
}

.tile img {
  width: 100%;
  aspect-ratio: 1600 / 1002;
  object-fit: cover;
  border-radius: 8px;
}

.tile h3 {
  margin: 14px 6px 4px;
  font-size: 1.1rem;
}

.tile p {
  margin: 0 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Two columns */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.feature:nth-of-type(even) .feature-text {
  order: 2;
}

.feature.wide {
  grid-template-columns: 1fr;
}

.feature.wide .feature-text {
  order: 0;
  max-width: 68ch;
}

.feature-text h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
}

.feature-text p {
  color: var(--muted);
}

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

.index-strip a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 150ms ease, border-color 150ms ease;
}

.index-strip a:hover {
  color: var(--text);
  border-color: var(--line-2);
}

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.cols h3 {
  margin-bottom: 6px;
}

.cols p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

/* Skins showcase: radio buttons pick the picture, no script needed. */

.skin-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin: 28px 0 20px;
  padding: 0;
}

.skin-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 150ms ease, border-color 150ms ease;
}

.skin-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.skin-pick:hover {
  color: var(--text);
  border-color: var(--line-2);
}

.skin-pick:has(input:checked) {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.skin-pick:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  flex: none;
}

.stage .panel {
  display: none;
}

@supports not selector(:has(*)) {
  .stage .panel {
    display: block;
    margin-bottom: 24px;
  }
}

.fx-crt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 200ms ease;
}

.fx-crt[data-live] {
  opacity: 1;
}

.skin-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 32px;
}

.skin-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.skin-list .swatch {
  margin-top: 4px;
}

.skin-list strong {
  display: block;
  color: var(--text);
}

/* Steps and facts */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 60ch;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 48px;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font: 1.3rem/1 var(--font-pixel);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 8px;
}

.steps li strong {
  display: block;
  color: var(--text);
}

.download-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 28px;
  align-items: center;
  margin-top: 32px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
}

.download-panel img {
  width: 80px;
  height: 80px;
}

.download-panel h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.download-panel p {
  margin: 0;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 24px 0 0;
}

.facts dt {
  font: 1.2rem/1.3 var(--font-pixel);
  color: var(--faint);
}

.facts dd {
  margin: 0;
  color: var(--muted);
}

.cta {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.cta h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem);
}

/* Countdown: the numbers just update. */

.countdown {
  margin: 0;
}

.cd-date {
  margin: 0 0 12px;
  color: var(--muted);
}

.cd-date time {
  color: var(--text);
  font-weight: 700;
}

.cd-local {
  display: block;
  font-size: 0.9rem;
  color: var(--faint);
}

.cd-units {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cd-units li {
  display: grid;
}

.cd-num {
  font: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--font-pixel);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.countdown.big .cd-num {
  font-size: clamp(3.2rem, 2rem + 5vw, 6rem);
}

.cd-label {
  font: 1.1rem/1 var(--font-pixel);
  color: var(--faint);
  margin-top: 4px;
}

.cd-done {
  font-size: 1.2rem;
  font-weight: 700;
}

.launched .cd-units,
.launched .cd-date,
.launched [data-ics] {
  display: none !important;
}

.countdown.big {
  margin: 8px 0 0;
}

/* Comparison table, FAQ and docs */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap caption {
  caption-side: bottom;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--faint);
}

.table-wrap th,
.table-wrap td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table-wrap thead th {
  font: 650 1rem/1.2 var(--font-display);
  background: var(--surface);
  white-space: nowrap;
}

.table-wrap tbody tr:last-child > * {
  border-bottom: 0;
}

.compare-table tbody th {
  min-width: 200px;
}

.compare-table td:nth-child(2) {
  background: var(--accent-soft);
}

.compare-table td {
  color: var(--muted);
  min-width: 110px;
}

.yes {
  color: var(--text);
  font-weight: 700;
}

.no {
  color: var(--faint);
}

.faq-list {
  max-width: 780px;
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.02em;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font: 1.8rem/1 var(--font-pixel);
  color: var(--faint);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: -4px 0 22px;
  color: var(--muted);
  max-width: 64ch;
}

.doc {
  max-width: 820px;
  padding: clamp(40px, 6vw, 72px) 0 64px;
}

.doc h1 {
  font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem);
}

.doc h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  margin: 1.8em 0 0.5em;
}

.doc h3 {
  margin: 1.5em 0 0.5em;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc-more {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.doc-more h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

/* 404 */

.lost {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 48px 0;
}

.lost .code {
  font: clamp(5rem, 3rem + 8vw, 9rem)/0.9 var(--font-pixel);
  color: var(--faint);
  margin: 0 0 12px;
}

/* Footer */

.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.9rem;
  color: var(--faint);
}

.foot-launch {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px 40px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.foot-launch .label {
  margin-bottom: 10px;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}

.foot a {
  color: var(--muted);
}

.foot p {
  margin: 0 0 6px;
}

.foot-maker {
  font-weight: 700;
  color: var(--muted);
}

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

/* Command palette, opened with Ctrl K. Appears at once, no animation. */

.palette {
  width: min(540px, calc(100vw - 32px));
  margin: 14vh auto auto;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
}

.palette::backdrop {
  background: rgb(8 7 10 / 0.5);
}

.palette input {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: none;
}

.palette ul {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: min(52vh, 400px);
  overflow-y: auto;
}

.palette li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
}

.palette li .kind {
  font: 1.05rem/1 var(--font-pixel);
  color: var(--faint);
}

.palette li[aria-selected="true"] {
  background: var(--surface-2);
  color: var(--text);
}

.palette .empty {
  color: var(--faint);
  cursor: default;
}

/* Calm motion: sections fade up once, pages crossfade. */

@media (prefers-reduced-motion: no-preference) {
  .js .fade {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  }

  .js .fade.in {
    opacity: 1;
    transform: none;
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 220ms;
  animation-timing-function: ease-out;
}

::view-transition-group(top),
::view-transition-group(logo) {
  animation-duration: 0s;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* Small screens */

@media (max-width: 860px) {
  .top-in {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0 0;
    gap: 8px 16px;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    margin: 0 -20px;
    padding: 0 20px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav ul {
    width: max-content;
  }

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

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

  .feature:nth-of-type(even) .feature-text {
    order: 0;
  }

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

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

  .download-panel img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 1rem;
  }

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

  .actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .facts dd {
    margin-bottom: 10px;
  }
}

/* Inline icons inside text and headings stay text sized. */
main svg {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  flex: none;
}

main .btn svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.cols h3 svg {
  margin-right: 6px;
  color: var(--faint);
}

.feature > *,
.split > * {
  min-width: 0;
}
