/* OpenFini website. Tokens come from the app (app/styles/theme.css): light and dark, following the system, with a
   toggle that sets [data-theme]. "The studio at night": calm surfaces, hairline borders like the app's panels, the
   artwork and real screenshots as the only saturated things. docs/concepts/website.md */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* a book face from the system: Palatino on Windows, macOS and most Linux desktops (URW P052), Georgia as last resort */
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --bg: #e9eaee;
  --bar: #f6f6f8;
  --panel: #f1f1f4;
  --raised: #ffffff;
  --canvas: #cfd1d8;
  --border: #d2d3da;
  --border-soft: #dfe0e6;
  --text: #1c1d22;
  --dim: #50525c;
  --faint: #5f616b;
  --accent: #6b58e8;
  --link: #5843d6;
  --on-accent: #ffffff;
  --scrim: 20, 20, 26;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 50px -24px rgba(20, 20, 40, .35);

  --r: 6px;
  --r-lg: 10px;
  --wrap: 1180px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1e22;
    --bar: #25262b;
    --panel: #2a2b31;
    --raised: #34353c;
    --canvas: #141518;
    --border: #3a3b43;
    --border-soft: #2f3037;
    --text: #e8e9ee;
    --dim: #a3a5ae;
    --faint: #8a8c96;
    --accent: #8b7cf6;
    --link: #a597fa;
    --on-accent: #111218;
    --scrim: 10, 10, 14;
    --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1e22;
  --bar: #25262b;
  --panel: #2a2b31;
  --raised: #34353c;
  --canvas: #141518;
  --border: #3a3b43;
  --border-soft: #2f3037;
  --text: #e8e9ee;
  --dim: #a3a5ae;
  --faint: #8a8c96;
  --accent: #8b7cf6;
  --link: #a597fa;
  --on-accent: #111218;
  --scrim: 10, 10, 14;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { padding: .1em .35em; border-radius: 4px; background: var(--panel); border: 1px solid var(--border-soft); }
kbd { padding: .1em .45em; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; background: var(--raised); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.i { width: 16px; height: 16px; flex: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 14px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ type */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.012em; font-variant-numeric: lining-nums; }
.display em { font-style: italic; color: var(--dim); }
.h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem); line-height: 1.02; }
.h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem); line-height: 1.08; }
.h3 { font-size: 1.6rem; line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--dim); max-width: 62ch; }

/* the app's mono section label, e.g. STUDIO 03 / LAYOUT */
.label {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
}
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.label--inline { display: inline-flex; margin: 0; }
.label--inline::before { display: none; }
.label--accent { color: var(--link); }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: .9em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose--sm { font-size: 15px; color: var(--dim); }
.prose--sm strong { color: var(--text); font-weight: 600; }
.prose pre { margin: 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--canvas); font-size: 13.5px; line-height: 1.55; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

/* ------------------------------------------------------------------ controls (24/28 px rhythm of the app) */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--raised); color: var(--text);
  font: 500 14.5px/1.2 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { border-color: var(--faint); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); border-color: transparent; }
.btn--sm { min-height: 30px; padding: 0 11px; font-size: 13.5px; }
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 15.5px; }
.btn__meta { font: 400 12px/1.2 var(--mono); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--dim); cursor: pointer; font-size: 18px;
}
.icon-btn:hover { background: var(--panel); color: var(--text); }
.icon-btn[hidden] { display: none; }
.badge {
  display: inline-flex; align-items: center; vertical-align: middle;
  padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); border-radius: 99px;
  font: 500 11px/1.5 var(--mono); letter-spacing: .04em; color: var(--link); text-transform: uppercase;
}
/* segmented control in the style of the app's panel tabs */
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); }
.seg a { padding: 3px 8px; border-radius: 4px; color: var(--dim); font: 500 12px/1.4 var(--mono); text-decoration: none; }
.seg a:hover { color: var(--text); }
.seg a[aria-current] { background: var(--raised); color: var(--text); box-shadow: 0 0 0 1px var(--border-soft); }
.more { font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bar) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(10px);
}
.top__in { display: flex; align-items: center; gap: 20px; min-height: 56px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.brand .mark { width: 22px; height: 22px; color: var(--accent); }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 6px 10px; border-radius: var(--r); color: var(--dim); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current] { color: var(--text); background: var(--panel); box-shadow: inset 0 -2px 0 var(--accent); }
.top__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (max-width: 719px) {
  .top__in { gap: 0 12px; padding-top: 8px; }
  .brand__word { display: none; }
  .top__tools { gap: 6px; }
  .nav { order: 3; width: 100%; margin: 6px 0 0; border-top: 1px solid var(--border-soft); }
  .nav ul { justify-content: space-between; }
  .nav a { padding: 9px 8px; }
}

.langhint { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--gutter); background: var(--panel); border-bottom: 1px solid var(--border); font-size: 14px; }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero__title { font-size: clamp(2.6rem, 1.3rem + 5vw, 5.6rem); line-height: 1; max-width: 21ch; letter-spacing: -.02em; text-wrap: balance; }
.hero__grid { display: grid; gap: 36px; margin-top: clamp(28px, 4vw, 48px); align-items: end; }
.hero__copy { display: grid; gap: 26px; align-content: end; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font: 12px/1.5 var(--mono); color: var(--faint); letter-spacing: .02em; }
.hero__facts li:empty { display: none; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 5fr 7fr; gap: 56px; }
}

/* the launch card: the same artwork, bar and footer as the app's launch screen (docs/launch-screen.md) */
.launch {
  margin: 0; overflow: hidden;
  border: 1px solid #3a3b43; border-radius: var(--r-lg);
  background: #1d1e22; color: #e8e9ee;
  box-shadow: var(--shadow);
}
.art { display: block; aspect-ratio: 1600 / 670; background: #c4466f linear-gradient(115deg, #3a2350 0%, #b8306a 30%, #f07d45 52%, #f2b9b0 70%, #b89be0 86%, #7f6fd0 100%); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.launch__bar { display: block; height: 3px; background: #2a2b31; }
.launch__fill { display: block; height: 100%; width: 100%; background: #8b7cf6; transform-origin: left; animation: fill 1.6s cubic-bezier(.3, .6, .2, 1) both .2s; }
@keyframes fill { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
.launch__foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 600; font-size: 15px; }
.launch__mark { width: 20px; height: 20px; color: #8b7cf6; }
.launch__ver { margin-left: auto; font: 12px var(--mono); color: #a3a5ae; }

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--border-soft); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head .label { margin-bottom: 4px; }
.section__lead { color: var(--dim); max-width: 60ch; font-size: 16.5px; }
.page-head { padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 20px; justify-items: start; }
.page-head .label { margin-bottom: 0; }
.fallback { margin-top: 16px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: var(--r); color: var(--dim); font-size: 14px; }

/* ------------------------------------------------------------------ studio strip (CSS only: flex-grow on hover/focus) */
.strip { display: flex; gap: 6px; height: clamp(380px, 46vw, 540px); margin: 0; padding: 0; list-style: none; }
.strip__item { flex: 1 1 0; min-width: 0; transition: flex-grow .5s cubic-bezier(.3, .7, .2, 1); }
.strip:hover .strip__item:hover,
.strip__item:focus-within,
.strip:not(:hover):not(:focus-within) .strip__item:first-child { flex-grow: 7; }
.strip__link {
  position: relative; display: block; height: 100%; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--canvas); color: #fff; text-decoration: none;
}
.strip__link:focus-visible { outline-offset: 3px; }
.strip .shot { position: absolute; inset: 0; }
.strip .shot__img { width: auto; height: 100%; max-width: none; min-width: 100%; object-fit: cover; object-position: 50% 0; }
.strip__link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--scrim), .88), rgba(var(--scrim), .2) 45%, rgba(var(--scrim), .55));
  transition: opacity .4s;
}
.strip__v {
  position: absolute; left: 50%; bottom: 18px; z-index: 1; translate: -50% 0;
  display: flex; align-items: center; gap: 12px;
  writing-mode: vertical-rl; rotate: 180deg;
  font-family: var(--display); font-size: 22px; letter-spacing: .01em; white-space: nowrap;
  transition: opacity .3s;
}
.strip__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; gap: 2px; padding: 22px 24px;
  opacity: 0; translate: 0 8px; transition: opacity .35s .1s, translate .35s .1s;
}
.strip__n { font: 500 11px/1 var(--mono); letter-spacing: .08em; opacity: .75; }
.strip__name { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1.1; }
.strip__for { font-size: 14.5px; opacity: .85; }
.strip:hover .strip__item:hover .strip__cap,
.strip__item:focus-within .strip__cap,
.strip:not(:hover):not(:focus-within) .strip__item:first-child .strip__cap { opacity: 1; translate: 0 0; }
.strip:hover .strip__item:hover .strip__v,
.strip__item:focus-within .strip__v,
.strip:not(:hover):not(:focus-within) .strip__item:first-child .strip__v { opacity: 0; }
@media (max-width: 759px) {
  /* phones: a horizontal row that snaps, every name visible */
  .strip { height: 400px; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .strip__item, .strip:not(:hover):not(:focus-within) .strip__item:first-child { flex: 0 0 82%; scroll-snap-align: start; }
  .strip__v { display: none; }
  .strip__cap { opacity: 1; translate: 0 0; }
}

.next-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 22px; padding: 14px 0 0; border-top: 1px dashed var(--border); color: var(--dim); font-size: 15px; }
.next-line strong { color: var(--text); font-weight: 600; }
.next-line .i { color: var(--link); }

/* ------------------------------------------------------------------ proof points */
.proof { display: grid; gap: 0; border-top: 1px solid var(--border); }
.proof__col { padding: 28px 0 8px; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--border-soft); }
.proof__fig { font-size: clamp(3rem, 2rem + 3vw, 4.4rem); line-height: 1; letter-spacing: -.03em; }
.proof__cap { font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.proof__h { margin-top: 12px; font-size: 17px; font-weight: 600; }
@media (min-width: 860px) {
  .proof { grid-template-columns: repeat(3, 1fr); }
  .proof__col { padding: 32px 32px 0; border-bottom: 0; border-left: 1px solid var(--border-soft); }
  .proof__col:first-child { padding-left: 0; border-left: 0; }
}

/* ------------------------------------------------------------------ news */
.news { display: grid; gap: 28px; }
.news__head { display: grid; gap: 14px; align-content: start; justify-items: start; }
.news__head .label { margin-bottom: 4px; }
.news__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.news__list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); font-size: 16.5px; }
.news__n { font: 500 11.5px/2.1 var(--mono); color: var(--faint); }
@media (min-width: 900px) { .news { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* ------------------------------------------------------------------ closing call to action */
.cta { display: grid; gap: 18px; justify-items: start; }
.cta__title { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); line-height: 1; letter-spacing: -.02em; }
.cta .actions { margin-top: 10px; }

/* ------------------------------------------------------------------ screenshots */
.shot { display: block; }
.shot__img { width: 100%; height: auto; }
.shot__img--light { display: none; }
:root[data-theme="light"] .shot__img--light { display: block; }
:root[data-theme="light"] .shot__img--dark { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .shot__img--light { display: block; }
  :root:not([data-theme="dark"]) .shot__img--dark { display: none; }
}
.figure { margin: 0 auto; }
.figure > .shot, .figure > .art { overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.figure figcaption { margin-top: 12px; font: 12px/1.5 var(--mono); color: var(--faint); }

/* ------------------------------------------------------------------ studio switcher (sticky under the header) */
.switcher { position: sticky; top: 57px; z-index: 15; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--border-soft); backdrop-filter: blur(8px); }
.switcher__list { display: flex; gap: 2px; margin-block: 0; padding-block: 6px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.switcher a { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: var(--r); color: var(--dim); font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.switcher a:hover { background: var(--panel); color: var(--text); }
.switcher a[aria-current] { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
.switcher a[aria-current] .i { color: var(--link); }
.switcher a[data-planned] span { font-style: italic; }
@media (max-width: 719px) {
  .switcher { top: 98px; }
  .switcher a span { display: none; }
  .switcher a[aria-current] span { display: inline; }
  .switcher__list { justify-content: space-between; }
}

/* ------------------------------------------------------------------ studio page */
.meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 8px 0 0; }
.meta div { display: grid; gap: 2px; }
.meta dt { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.meta dd { margin: 0; font-weight: 500; }
.blocks { display: grid; gap: 0; border-top: 1px solid var(--border); }
.block { display: grid; align-content: start; grid-template-columns: 40px 1fr; gap: 6px 14px; padding: 24px 0; border-bottom: 1px solid var(--border-soft); }
.block__n { grid-row: span 2; font: 500 11.5px/2 var(--mono); color: var(--faint); }
.block__h { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
@media (min-width: 860px) {
  .blocks { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}
.aside-pair { display: grid; gap: 20px; }
@media (min-width: 860px) { .aside-pair { grid-template-columns: 1fr 1fr; gap: 32px; } }
.note { display: grid; gap: 12px; align-content: start; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel); }
.note__h { font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.note--limits { background: transparent; border-style: dashed; }
.docs-link { padding-bottom: 12px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 36px 72px; }
.pager a { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text); text-decoration: none; }
.pager a:hover { border-color: var(--faint); background: var(--panel); }
.pager .label { margin: 0; }
.pager .label::before { display: none; }
.pager .display { font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); }
.pager__next { text-align: right; justify-items: end; }

/* studios index: an editorial list, not a card grid */
.rows { margin-block: 0 80px; list-style: none; border-top: 1px solid var(--border); }
.row { border-bottom: 1px solid var(--border-soft); }
.row__link { display: grid; grid-template-columns: 36px 1fr; gap: 6px 16px; align-items: center; padding: 22px 0; color: var(--text); text-decoration: none; }
.row__n { align-self: start; font: 500 11.5px/2.4 var(--mono); color: var(--faint); }
.row__body { display: grid; gap: 4px; }
.row__name { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem); line-height: 1.1; }
.row__for { color: var(--dim); }
.row__out { font: 12px/1.5 var(--mono); color: var(--faint); }
.row__thumb { display: none; }
.row__link:hover .row__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
@media (min-width: 760px) {
  .row__link { grid-template-columns: 48px 1fr 260px; gap: 28px; }
  .row__thumb { display: block; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--r); background: var(--canvas); }
  .row__thumb .shot__img, .row__thumb .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
  .row__thumb .art { height: 100%; aspect-ratio: auto; }
  .row__link:hover .row__thumb { border-color: var(--faint); }
}
.row--planned .row__name { color: var(--dim); }

/* ------------------------------------------------------------------ features */
.with-index { display: grid; gap: 28px; padding-bottom: 88px; }
.index ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.index a { display: inline-block; padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px; color: var(--dim); font-size: 13.5px; text-decoration: none; }
.index a:hover { color: var(--text); border-color: var(--faint); }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 30px 0; border-top: 1px solid var(--border-soft); }
.feature:first-child { border-top-color: var(--border); }
.feature__icon { display: grid; gap: 10px; justify-items: start; color: var(--link); }
.feature__icon .i { width: 22px; height: 22px; }
.feature__n { font: 500 11px/1 var(--mono); color: var(--faint); }
.feature__h { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); line-height: 1.15; margin-bottom: 12px; }
.feature .prose { color: var(--dim); }
.feature .prose p:last-child a { font-weight: 500; text-decoration: none; }
.feature .prose p:last-child a::after { content: " →"; }
@media (min-width: 960px) {
  .with-index { grid-template-columns: 220px 1fr; gap: 64px; }
  .index { position: sticky; top: 88px; align-self: start; }
  .index ol { display: grid; gap: 0; border-left: 1px solid var(--border); }
  .index a { display: block; padding: 6px 14px; border: 0; border-radius: 0; margin-left: -1px; border-left: 1px solid transparent; }
  .index a:hover { border-left-color: var(--accent); }
  .feature { grid-template-columns: 56px 1fr; gap: 24px; }
}

/* ------------------------------------------------------------------ download */
.dl { display: grid; gap: 28px; padding-bottom: 40px; }
/* room for what site.js puts here, so the table below does not jump (CLS) */
.dl__primary { min-height: 236px; align-content: start; display: grid; gap: 14px; justify-items: start; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel); }
.dl__primary .label { margin: 0; color: var(--link); }
.dl__primary .btn--lg { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 64px; padding: 10px 22px; white-space: normal; text-align: left; }
.dl__primary .btn--lg span:first-child { font-size: 17px; font-weight: 600; }
.dl__hint { font-size: 17px; }
.dl__note { color: var(--dim); max-width: 60ch; font-size: 14.5px; }
.dl__others-h { margin-top: 6px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.dl__others { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--dim); }
.dl__others a { font-family: var(--mono); font-size: 13.5px; }
.dl__notice { padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--panel); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.files { width: 100%; border-collapse: collapse; font-size: 14px; }
.files th, .files td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.files thead th { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); background: var(--panel); border-bottom-color: var(--border); }
.files__group th { padding-top: 18px; font-family: var(--display); font-size: 18px; font-weight: 400; border-bottom-color: var(--border); }
.files tbody:last-child tr:last-child td { border-bottom: 0; }
.files__name { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.files .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sha { display: inline-block; max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; color: var(--dim); }
.copy { margin-left: 6px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--raised); color: var(--dim); font: 12px var(--font); cursor: pointer; vertical-align: middle; }
.copy:hover { color: var(--text); }
@media (max-width: 719px) {
  .files thead { display: none; }
  .files, .files tbody, .files tr, .files td, .files th { display: block; }
  .files tr { padding: 10px 14px; border-bottom: 1px solid var(--border-soft); }
  .files td { padding: 2px 0; border: 0; text-align: left !important; }
  .files__group th { padding: 16px 14px 4px; }
}
.dl-info { display: grid; gap: 0; padding-bottom: 88px; }
.dl-info__sec { display: grid; gap: 16px; padding: 36px 0; border-top: 1px solid var(--border-soft); }
@media (min-width: 900px) { .dl-info__sec { grid-template-columns: 300px 1fr; gap: 48px; } }

/* ------------------------------------------------------------------ 404, style guide */
.notfound { padding-bottom: 96px; }
.link-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 17px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.swatches li { display: grid; gap: 8px; font-size: 13px; }
.swatch { height: 56px; border: 1px solid var(--border); border-radius: var(--r); }
.section > .display + .display, .section > .display + .lead, .section > .lead + .prose, .section > .prose + .label { margin-top: 18px; }
.section .actions + .seg, .section .seg + .note { margin-top: 18px; }

/* ------------------------------------------------------------------ docs: sidebar, article, on this page */
.docs { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 88px; }
.docnav { font-size: 14px; }
.docnav summary { cursor: pointer; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); font-weight: 600; }
.docnav ul { margin: 0 0 8px; padding: 0; list-style: none; }
.docnav a { display: block; padding: 4px 12px; margin-left: -1px; border-left: 1px solid transparent; color: var(--dim); text-decoration: none; }
.docnav a:hover { color: var(--text); border-left-color: var(--border); }
.docnav a[aria-current] { color: var(--text); border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 500; }
.docnav__top { margin-top: 10px !important; }
.docnav__h { margin: 16px 0 4px; padding-left: 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.doc { min-width: 0; }
.doc .label { margin-bottom: 14px; }
.doc__body { max-width: 74ch; }
.doc__body h1 { font-family: var(--display); font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.012em; margin-bottom: .5em; }
.doc__status { margin-bottom: 14px; }
.doc__edit { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: 14px; }
.doctoc { display: none; font-size: 13.5px; }
.doctoc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.doctoc a { display: block; padding: 3px 12px; margin-left: -1px; border-left: 1px solid transparent; color: var(--dim); text-decoration: none; }
.doctoc a:hover { color: var(--text); border-left-color: var(--accent); }
@media (min-width: 960px) {
  .docs { grid-template-columns: 230px minmax(0, 1fr); gap: 48px; }
  .docnav { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; }
  .docnav summary { display: none; }
  /* the sidebar is a closed <details> on phones; on wide screens it is always shown (site.js also opens it) */
  .docnav__details::details-content { content-visibility: visible; display: contents; }
}
@media (min-width: 1240px) {
  .docs { grid-template-columns: 230px minmax(0, 1fr) 200px; }
  .doctoc { display: block; position: sticky; top: 76px; align-self: start; }
}
/* prose inside docs pages */
.prose h2, .prose h3, .prose h4 { position: relative; scroll-margin-top: 80px; }
.prose h2 { margin-top: 2em; font-family: var(--display); font-size: 1.75rem; line-height: 1.2; }
.prose h3 { margin-top: 1.6em; font-size: 1.1rem; font-weight: 650; }
.prose h4 { margin-top: 1.4em; font-size: 1rem; font-weight: 650; }
.prose .anchor { margin-left: .35em; color: var(--faint); text-decoration: none; opacity: 0; font-family: var(--mono); font-size: .8em; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor, .prose .anchor:focus { opacity: 1; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--border); color: var(--dim); }
.prose img { max-width: 100%; height: auto; border-radius: var(--r); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.prose .table-scroll, .doc__body table { display: block; overflow-x: auto; }
.prose input[type="checkbox"] { margin-right: .4em; }

.docsearch { position: relative; max-width: 74ch; margin-bottom: 28px; }
.docsearch input { width: 100%; height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--raised); color: var(--text); font: 15px var(--font); }
.docsearch input::placeholder { color: var(--faint); }
.docsearch__results { position: absolute; z-index: 10; left: 0; right: 0; top: 44px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--border); border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; }
.docsearch__results a { display: grid; gap: 1px; padding: 8px 10px; border-radius: 4px; color: var(--text); text-decoration: none; }
.docsearch__results a:hover, .docsearch__results a:focus-visible { background: var(--panel); outline-offset: -2px; }
.docsearch__results small { color: var(--dim); font-size: 12px; }
.docsearch__none { padding: 8px 10px; color: var(--dim); }
.devgroup { margin-top: 40px; }
.devgroup h2 { margin-bottom: 14px; }
.devlist { margin: 0; padding: 0; list-style: none; columns: 2 260px; column-gap: 32px; }
.devlist li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--border-soft); }
.landing-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 40px; padding-bottom: 88px; }
.landing-groups ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }

/* ------------------------------------------------------------------ changelog */
.release { padding: 36px 0; border-top: 1px solid var(--border-soft); scroll-margin-top: 72px; }
.release:first-child { border-top-color: var(--border); }
.release__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.release__date { font: 12.5px var(--mono); color: var(--faint); }
.release__title { margin-top: 6px; font-size: 18px; color: var(--dim); }
.release__body { margin-top: 18px; max-width: 80ch; font-size: 15px; }
.release__body h3.label { margin: 22px 0 8px; font: 500 11.5px/1.4 var(--mono); }
.release__body ul { padding-left: 1.1em; }

/* ------------------------------------------------------------------ roadmap: waves as columns, items as cards */
.waves { display: grid; gap: 28px; padding-bottom: 24px; }
@media (min-width: 900px) { .waves { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.wave__h { padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.wave__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.item__link { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel); color: var(--text); text-decoration: none; }
.item__link:hover { border-color: var(--faint); }
.item__id { font: 500 11.5px var(--mono); color: var(--link); }
.item__title { font-weight: 550; line-height: 1.35; }
.item__theme { font-size: 13px; color: var(--dim); }
.item__scores { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.item__scores > span { display: inline-flex; align-items: center; gap: 6px; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.meter i.on { background: var(--accent); }

/* ------------------------------------------------------------------ press */
.press-art { margin-bottom: 28px; }
.press-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.press-logos a { display: grid; gap: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.press-logos__img { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--r-lg); }
.press-logos__img--light { background: #f6f6f8; }
.press-logos__img--dark { background: #1d1e22; }
.press-logos a:hover .press-logos__img { border-color: var(--faint); }

/* ------------------------------------------------------------------ footer */
.foot { margin-top: 0; border-top: 1px solid var(--border); background: var(--bar); font-size: 14px; }
.foot__grid { display: grid; gap: 28px; padding-block: 48px 32px; grid-template-columns: 1fr 1fr; }
.foot__brand { grid-column: 1 / -1; display: grid; gap: 8px; align-content: start; }
.foot__ver { font: 12px var(--mono); color: var(--faint); }
.foot__h { margin-bottom: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot .brand { color: var(--text); }
.foot__note { display: grid; gap: 6px; padding-block: 20px 36px; border-top: 1px solid var(--border-soft); color: var(--faint); font-size: 12.5px; }
.foot__note p { max-width: 100ch; }
.foot__note a { color: var(--dim); text-decoration: underline; }
@media (min-width: 760px) {
  .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot__brand { grid-column: auto; }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
}
@media print {
  .top, .switcher, .foot, .strip, .launch { display: none; }
}
