/* Rowan landing page. The tokens come from frontend/src/app.css.
   Dark is the default. The light theme follows prefers-color-scheme. */

@font-face {
  font-family: 'Geist Variable';
  src: url(fonts/geist-latin-wght-normal.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(0.185 0.004 265);
  --panel: oklch(0.205 0.004 265);
  --raised: oklch(0.235 0.005 265);
  --sunken: oklch(0.165 0.004 265);
  --hover: oklch(0.265 0.005 265);
  --line: oklch(0.29 0.005 265);
  --line-strong: oklch(0.37 0.006 265);
  --text: oklch(0.93 0.004 265);
  --muted: oklch(0.72 0.006 265);
  --faint: oklch(0.58 0.006 265);
  --acc-h: 290;
  --accent: oklch(0.72 0.13 var(--acc-h));
  --accent-hover: oklch(0.78 0.12 var(--acc-h));
  --accent-soft: oklch(0.72 0.13 var(--acc-h) / 0.15);
  --accent-text: oklch(0.8 0.11 var(--acc-h));
  --on-accent: oklch(0.18 0.03 var(--acc-h));
  --ok: oklch(0.76 0.13 150);
  --ok-soft: oklch(0.76 0.13 150 / 0.13);
  --warn: oklch(0.82 0.13 80);
  --warn-soft: oklch(0.82 0.13 80 / 0.14);
  --danger: oklch(0.72 0.15 25);
  --danger-soft: oklch(0.72 0.15 25 / 0.14);
  --syn-kw: oklch(0.78 0.12 var(--acc-h));
  --syn-str: oklch(0.78 0.11 150);
  --syn-num: oklch(0.8 0.11 60);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 12px 36px oklch(0 0 0 / 0.45);
  --stage: oklch(0.155 0.004 265);

  --sans: 'Geist Variable', 'Geist', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --page: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --bar-h: 44px;
  --space-section: clamp(72px, 10vw, 136px);
  --space-block: clamp(56px, 7vw, 96px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: oklch(0.985 0.002 85);
    --panel: oklch(0.97 0.003 85);
    --raised: oklch(0.995 0.001 85);
    --sunken: oklch(0.955 0.003 85);
    --hover: oklch(0.935 0.004 85);
    --line: oklch(0.905 0.004 85);
    --line-strong: oklch(0.83 0.006 85);
    --text: oklch(0.24 0.006 85);
    --muted: oklch(0.47 0.008 85);
    --faint: oklch(0.6 0.007 85);
    --accent: oklch(0.54 0.16 var(--acc-h));
    --accent-hover: oklch(0.48 0.16 var(--acc-h));
    --accent-soft: oklch(0.54 0.16 var(--acc-h) / 0.1);
    --accent-text: oklch(0.48 0.16 var(--acc-h));
    --on-accent: oklch(0.99 0 0);
    /* Darker inks than app.css, so that small text keeps 4.5:1 on tinted fills. */
    --ok: oklch(0.46 0.12 150);
    --ok-soft: oklch(0.6 0.13 150 / 0.12);
    --warn: oklch(0.47 0.11 65);
    --warn-soft: oklch(0.78 0.14 80 / 0.22);
    --danger: oklch(0.5 0.18 25);
    --danger-soft: oklch(0.6 0.18 25 / 0.1);
    --syn-kw: oklch(0.48 0.16 var(--acc-h));
    --syn-str: oklch(0.47 0.12 150);
    --syn-num: oklch(0.5 0.13 50);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.06), 0 10px 30px oklch(0 0 0 / 0.1);
    color-scheme: light;
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 24px);
  scrollbar-color: var(--line-strong) var(--bg);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--accent);
}

::selection { background: oklch(0.6 0.15 var(--acc-h) / 0.32); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--bg); }
::-webkit-scrollbar-corner { background: var(--bg); }

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

a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in oklch, var(--accent-text) 45%, transparent);
}
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, video, svg { display: block; }

code, kbd, pre { font-family: var(--mono); }
code { font-size: 0.86em; font-variant-ligatures: none; }
p code, li code, dd code, td code {
  padding: 0.08em 0.36em;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
}
.band p code, .band li code, .band dd code { background: var(--bg); }

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.12em 0.42em;
  font: 500 0.78em/1.5 var(--mono);
  text-align: center;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  vertical-align: 0.08em;
}

.i { width: 18px; height: 18px; fill: currentColor; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sq { width: 7px; height: 7px; flex: none; display: inline-block; background: currentColor; }

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

.skip {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 14px var(--sans);
  text-decoration: none;
}
.skip:focus-visible { top: 8px; outline-offset: 2px; }

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

/* Title bar. It borrows the cells of the workspace header. */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar-h);
  display: flex;
  align-items: stretch;
  background: var(--sunken);
  border-bottom: 1px solid var(--line);
  padding-inline: max(0px, calc((100% - var(--page)) / 2));
  font: 400 13.5px/1 var(--mono);
}
.bar a { text-decoration: none; }
.bar a:focus-visible { outline-offset: -3px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 16px;
  border-inline: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
  flex: none;
}
.brand img { width: 20px; height: 20px; }
.bar-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bar-nav::-webkit-scrollbar { display: none; }
.bar-nav ul { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.bar-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.bar-nav a:hover { color: var(--text); background: var(--hover); }
.bar-nav a[aria-current='true'] { color: var(--text); background: var(--bg); box-shadow: inset 0 -2px 0 var(--accent); }
.bar-fill { flex: 1; }
.bar-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  flex: none;
}
.bar-cell:last-of-type { border-right: 1px solid var(--line); }
.bar-cell:hover { color: var(--text); background: var(--hover); }
.bar-cell .i { width: 15px; height: 15px; }
.bar-version .sq { color: var(--ok); }

@media (max-width: 719px) {
  .bar-cell { display: none; }
  .bar-nav { mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
}

/* Hero */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-areas: 'copy' 'promo' 'facts';
  gap: 40px;
}
.hero-copy { grid-area: copy; }
.promo { grid-area: promo; }
.facts { grid-area: facts; }
@media (min-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto;
    grid-template-areas: 'copy promo' 'facts promo';
    gap: 36px clamp(40px, 5vw, 72px);
    align-items: center;
  }
  .hero-copy { align-self: end; }
  .facts { align-self: start; }
}
.hero-mark { width: 56px; height: 56px; margin-bottom: 28px; }
@media (max-width: 719px) {
  .hero-mark { display: none; }
}
h1 {
  font-size: clamp(60px, 8vw, 96px);
  font-weight: 640;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.lede {
  margin-top: 22px;
  max-width: 22ch;
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.hero-sub { margin-top: 16px; max-width: 44ch; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--text);
  font: 500 15.5px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn .i { width: 20px; height: 20px; }
#download .i { display: none; }
#download.is-download .i { display: block; }

.dl-meta { margin-top: 14px; color: var(--muted); font: 400 13px/1.55 var(--mono); overflow-wrap: anywhere; }
.dl-meta .tag { color: var(--text); }
.dl-alt { margin-top: 4px; color: var(--muted); font-size: 15px; }

.facts { margin: 0; width: 100%; max-width: 460px; border-top: 1px solid var(--line); }
.facts div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}
.facts dt { color: var(--muted); font: 400 13px/1.75 var(--mono); }
.facts dd { margin: 0; }

@media (max-width: 479px) {
  .actions .btn { flex: 1 1 100%; }
}

/* Promo video. The frame draws the stage of the video, so it looks correct
   before the file exists. */

.promo { margin: 0; }
.promo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--stage);
  background-image:
    radial-gradient(70% 60% at 50% 118%, oklch(0.42 0.14 var(--acc-h) / 0.42), transparent 70%),
    radial-gradient(50% 50% at 8% -10%, oklch(0.4 0.08 235 / 0.22), transparent 70%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.promo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(favicon.svg) center / clamp(48px, 9%, 96px) no-repeat;
  opacity: 0.5;
}
.promo-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid oklch(1 0 0 / 0.18);
  background: oklch(0.13 0.004 265 / 0.78);
  color: oklch(0.96 0.004 265);
  cursor: pointer;
  transition: background-color 0.15s ease-out;
}
.promo-toggle:hover { background: oklch(0.2 0.004 265 / 0.9); }
.promo-toggle .i { width: 20px; height: 20px; grid-area: 1 / 1; }
.promo-toggle .i-play { display: none; }
.promo-toggle[data-state='paused'] .i-play { display: block; }
.promo-toggle[data-state='paused'] .i-pause { display: none; }

/* Sections */

.section { padding-block: var(--space-section); border-bottom: 1px solid var(--line); }
.band { background: var(--panel); }

.head { display: grid; gap: 20px 64px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) {
  .head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}
h2 {
  max-width: 17ch;
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.head-text p { max-width: 52ch; color: var(--muted); }
.head-text p + p { margin-top: 12px; }

h3 { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }

.small { color: var(--muted); font-size: 15px; }

/* Screenshots. The frame keeps the 16:10 box while an image loads or is missing. */

.shot { margin: 0; min-width: 0; }
.frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sunken);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(favicon.svg) center / 48px no-repeat;
  opacity: 0.22;
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  color: transparent;
}
.frame.missing img { visibility: hidden; }
/* A zoomed frame shows one part of the screenshot. --ox and --oy set the fixed point of the zoom. */
.frame.zoom img { transform: scale(var(--zoom, 1)); transform-origin: var(--ox, 0) var(--oy, 0); }

/* Layout tabs. Without JavaScript, both panels show one after the other. */

.tablist { display: none; }
.js .tablist {
  display: flex;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  background: var(--sunken);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
}
.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 400 14px/1 var(--mono);
  cursor: pointer;
  white-space: nowrap;
}
.tab:last-child { border-right: 0; }
.tab:hover { color: var(--text); background: var(--hover); }
.tab:focus-visible { outline-offset: -3px; }
.tab .sq { color: var(--line-strong); }
.tab[aria-selected='true'] { color: var(--text); background: var(--bg); box-shadow: inset 0 -2px 0 var(--accent); }
.tab[aria-selected='true'] .sq { color: var(--accent); }

.panel { display: grid; gap: 40px 72px; }
.panel:focus-visible { outline-offset: 6px; }
.panel + .panel { margin-top: var(--space-block); }
.js .panel + .panel { margin-top: 0; }
.panel .shot { grid-column: 1 / -1; }
.panel-text > * + * { margin-top: 14px; }
.panel-text p { color: var(--muted); max-width: 52ch; }
.panel-text h3 + p { margin-top: 12px; }
@media (min-width: 960px) {
  .panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* Reference tables */

.spec { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.spec caption {
  padding-bottom: 10px;
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font: 400 13px/1.5 var(--mono);
}
.spec th {
  padding: 8px 20px 8px 0;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  color: var(--muted);
  font: 400 13px/1.5 var(--mono);
}
.spec td { padding: 11px 20px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td:first-child { width: 42%; }
.spec th:last-child, .spec td:last-child { padding-right: 0; }
.spec td code { background: none; box-shadow: none; padding: 0; color: var(--text); white-space: normal; }
.spec .note { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }

.keys { margin: 20px 0 0; padding: 0; list-style: none; }
.keys li {
  display: grid;
  grid-template-columns: minmax(8.5rem, auto) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 15px;
  color: var(--muted);
}
.keys li > :first-child { justify-self: start; color: var(--text); white-space: nowrap; }
.keys .kbds { color: var(--muted); font-size: 14px; }

/* Split rows: text and one screenshot */

.split { display: grid; gap: 40px 72px; align-items: start; }
.split-text > * + * { margin-top: 20px; }
.split-text > h3 + p { margin-top: 12px; }
.split-text > p { max-width: 58ch; }
.split-text h2 + p { margin-top: 24px; }
.split-text .spec { margin-top: 32px; }
@media (min-width: 1080px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-even { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-media { position: sticky; top: calc(var(--bar-h) + 32px); }
}
.split-even h3 { margin-bottom: 16px; }

/* Statement table */

.verdicts {
  margin-bottom: var(--space-block);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.verdict-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.verdict-table caption {
  padding: 13px 20px;
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font: 400 13px/1.5 var(--mono);
  background: var(--sunken);
  border-bottom: 1px solid var(--line);
}
.verdict-table th {
  padding: 10px 20px;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  color: var(--muted);
  font: 400 13px/1.5 var(--mono);
  white-space: nowrap;
}
.verdict-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.verdict-table tr:last-child td { border-bottom: 0; }
.verdict-table th:nth-child(1) { width: 40%; }
.verdict-table th:nth-child(2) { width: 13%; }
.verdict-table th:nth-child(3) { width: 17%; }
.verdict-table .sql code { padding: 0; background: none; box-shadow: none; white-space: normal; font-size: 14px; color: var(--text); }
.kw { color: var(--syn-kw); }
.str { color: var(--syn-str); }
.num { color: var(--syn-num); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 9px;
  font: 500 12.5px/1.6 var(--mono);
  white-space: nowrap;
}
.chip::before { content: ''; width: 6px; height: 6px; background: currentColor; }
.chip.ok { color: var(--ok); background: var(--ok-soft); }
.chip.warn { color: var(--warn); background: var(--warn-soft); }
.chip.danger { color: var(--danger); background: var(--danger-soft); }
.blocked { display: inline-flex; align-items: center; gap: 7px; }
.blocked .i { width: 16px; height: 16px; color: var(--accent-text); }

@media (max-width: 759px) {
  .verdict-table, .verdict-table tbody, .verdict-table tr, .verdict-table td { display: block; }
  .verdict-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .verdict-table caption { display: block; }
  .verdict-table tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .verdict-table tr:last-child { border-bottom: 0; }
  .verdict-table td { padding: 0; border: 0; }
  .verdict-table td.sql { margin-bottom: 10px; }
  .verdict-table td[data-label] {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 3px 0;
  }
  .verdict-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font: 400 13px/1.5 var(--mono);
  }
  .verdict-table td[data-label] > * { justify-self: start; }
}

/* Safety rules */

.rules { margin: 0; border-top: 1px solid var(--line-strong); }
.rules div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules dt { font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.rules dd { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }

/* Approval queue notes */

.shot-wide figcaption { margin-top: 24px; }
.notes { display: grid; gap: 0 40px; margin: 0; }
.notes div { padding: 14px 0; border-top: 1px solid var(--line-strong); }
.notes dt { display: flex; align-items: center; gap: 10px; color: var(--text); font: 500 13.5px/1.5 var(--mono); }
.notes dt::before { content: ''; width: 7px; height: 7px; background: var(--accent); }
.notes dd { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; max-width: 46ch; }
@media (min-width: 760px) {
  .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

#agents .shot-wide + .split,
#agents .split + .split,
#safety .verdicts + .split { margin-top: var(--space-block); }

.policy { margin: 0 0 20px; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.policy li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.policy .note { color: var(--muted); font-size: 14px; }

/* Code blocks */

.code { border: 1px solid var(--line-strong); background: var(--sunken); min-width: 0; }
.split-text > .code { margin-top: 24px; }
.split-text > .code + p { margin-top: 24px; }
.code-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 36px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 400 12.5px/1 var(--mono);
}
.code-head > span { display: flex; align-items: center; padding: 0 14px; }
.code pre {
  margin: 0;
  padding: 16px 18px 18px;
  font: 400 14.5px/1.75 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.code pre code { font-size: inherit; }
.code .line { display: block; padding-left: 1.2em; text-indent: -1.2em; }
.code .prompt { color: var(--muted); user-select: none; -webkit-user-select: none; }
.code-lg pre { padding: 22px 24px 24px; font-size: 15px; }

.copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 400 12.5px/1 var(--mono);
  cursor: pointer;
}
.copy:hover { color: var(--text); background: var(--hover); }
.copy:focus-visible { outline-offset: -3px; }
.copy .i { width: 15px; height: 15px; }
.copy .i-check { display: none; }
.copy[data-state='done'] { color: var(--ok); }
.copy[data-state='done'] .i-copy { display: none; }
.copy[data-state='done'] .i-check { display: block; }

.steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); color: var(--muted); font: 400 13px/1.85 var(--mono); }

/* Footer */

.foot { padding-block: 48px 56px; background: var(--sunken); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 860px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
.foot-id { display: flex; align-items: flex-start; gap: 16px; }
.foot-id img { width: 32px; height: 32px; }
.foot-name { font-weight: 600; letter-spacing: -0.01em; }
.foot-desc { margin-top: 2px; color: var(--muted); font-size: 15px; max-width: 48ch; }
.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.foot-nav li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.foot-nav a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  color: var(--muted);
  font: 400 13.5px/1 var(--mono);
  text-decoration: none;
  white-space: nowrap;
}
.foot-nav a:hover { color: var(--text); background: var(--hover); }
.foot-nav a:focus-visible { outline-offset: -3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .chip::before, .sq, .notes dt::before { background: CanvasText; }
  .tab[aria-selected='true'] { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* A link without a target, when the repository is not known. */
a:not([href]) { color: inherit; text-decoration: none; }
