/* The home page is the desktop: its bar and island, its panels, its windows, its terminal.
   The numbers are the shell's own (config/quickshell/config/Theme.qml). */

@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --crust: #11111b; --mantle: #181825; --base: #1e1e2e; --surface: #313244; --surface-2: #45475a;
  --text: #cdd6f4; --subtext: #bac2de; --muted: #a6adc8; --quiet: #9399b2;
  --accent: #cba6f7; --ink: var(--accent); --on-accent: #11111b;
  --glass: var(--crust); --tile: rgba(205, 214, 244, .05); --tile-hover: rgba(205, 214, 244, .09);
  --rim: rgba(205, 214, 244, .14); --line: rgba(205, 214, 244, .08);
  --track: #6c7086; --red: #f38ba8; --green: #a6e3a1; --warm: #fab387; --term-prompt: #89b4fa;
  --bar: 36px; --control: 36px; --gap: 8px; --r-tile: 16px; --r-window: 12px; --r-control: 18px;
  --nav-item: 208px; --gutter: clamp(16px, 4vw, 48px);
  --font: "Inter", "Noto Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", "DejaVu Sans Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 32px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--text); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; border: 0; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
code, pre { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; box-shadow: 0 0 0 5px var(--crust); border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 40; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 44px; }
.ic { width: 16px; height: 16px; flex: none; fill: currentColor; }
.label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 600; }
.label .ic { width: 14px; height: 14px; }

/* ---- the bar ---- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--bar); display: grid; grid-template: var(--bar) / 1fr auto 1fr; align-items: center; padding-inline: 12px; background: var(--glass); font-size: 12px; }
.bar-left, .bar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-right { justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.brand svg { width: 18px; height: 18px; }
.brand span { color: var(--text); }
.ws { display: flex; gap: 2px; margin-left: 4px; }
.ws a { display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px; border-radius: 12px; color: var(--muted); font: 500 12px var(--mono); text-decoration: none; }
.ws a:hover { background: var(--tile-hover); color: var(--text); }
.ws a[aria-current] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.title { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 4px; }
.island { position: relative; cursor: default; z-index: 1; display: flex; align-items: center; gap: 10px; height: var(--bar); padding-inline: 28px; top: 5px; font-weight: 600; font-size: 13px; white-space: nowrap; border-radius: 0 0 14px 14px; }
.island time { font-family: var(--mono); }
.mod { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 10px; border-radius: 13px; color: var(--text); text-decoration: none; font-weight: 500; }
.mod:hover { background: var(--tile-hover); }
.mod .ic { color: var(--ink); }
.edge { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--bar) + 13px); pointer-events: none; overflow: visible; }
.edge .fill { fill: var(--glass); }
.edge .line { fill: none; stroke: var(--accent); stroke-width: 1; }
.no-js-edge { position: absolute; inset: auto 0 0 0; height: 1px; background: var(--accent); }
.bar.edged .no-js-edge { display: none; }

/* ---- the desktop: the first screen ---- */
.desk { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; padding: 0 var(--gutter) var(--gutter); overflow: hidden; background: var(--crust); }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pitch { position: relative; grid-column: 1; align-self: center; padding-top: var(--bar); color: #fff; width: calc(50vw - .17 * max(100vw, 177.78vh) - var(--gutter) - 16px); }
.pitch h1 { font-size: clamp(40px, 3.6vw, 72px); line-height: .98; letter-spacing: -.035em; font-weight: 700; color: #fff; }
.pitch p { margin-top: 18px; max-width: 34ch; font-size: 16px; color: rgba(255, 255, 255, .86); }
.pitch .do { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; text-shadow: none; }
.pitch small { display: block; margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .72); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control); padding-inline: 16px; border-radius: var(--r-control); background: var(--tile); border: 1px solid var(--rim); color: var(--text); font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; transition: background-color .14s, transform .14s; }
.btn:hover { background: var(--tile-hover); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn.primary:hover { background: color-mix(in oklab, var(--accent) 88%, #fff); }
.pitch .btn:not(.primary) { background: rgba(17, 17, 27, .55); color: #fff; border-color: rgba(255, 255, 255, .28); }
.pitch .btn:not(.primary):hover { background: rgba(17, 17, 27, .75); }



/* ---- what follows the desktop ---- */
main > section { padding: clamp(56px, 8vw, 112px) var(--gutter); }
.say { text-wrap: balance; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.028em; font-weight: 700; margin-top: 8px; }
.note { color: var(--subtext); margin-top: 12px; max-width: 58ch; }
.inner { max-width: 1320px; margin-inline: auto; }

/* the film: the player wide, the words beside it */
#film { background: var(--crust); }
.film-row { display: grid; grid-template-columns: minmax(280px, 4fr) 8fr; gap: 32px; align-items: end; }
.film { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-window); border: 2px solid var(--accent); background: #000; }

/* ---- take it apart: its own rules, unchanged ---- */
.xp { position: relative; height: 680vh; padding: 0; }
.xp-pin { position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); overflow: hidden; }
.xp-head { position: absolute; left: 0; right: 0; top: 0; padding-top: 40px; display: grid; gap: 10px; z-index: 2; }
.xp-head .lead { font-size: 16px; }
.xp-scene { position: absolute; inset: 0; }
.xp-scene canvas { display: block; width: 100%; height: 100%; }
.xp-fallback { display: none; }
.xp.still:not(.nogl) .xp-fallback { display: none !important; }
/* until the scene has drawn once: the desktop as a picture where the laptop will be, never an empty view */
.xp:not(.live):not(.nogl) .xp-fallback { display: block; position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); width: min(760px, 86%); padding: 0; }
.xp-status { display: none; color: var(--muted); font-size: 13px; margin-top: 10px; }
.xp.nogl .xp-status:not(:empty) { display: block; }
.xp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.xp-lines path { fill: none; stroke: var(--accent); stroke-width: 1; }
.xp-lines circle { fill: var(--accent); }
.xp-lines g { opacity: 0; transition: opacity .35s ease; }
.xp-lines g.on { opacity: 1; }
.xp-labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.xp-labels li { position: absolute; left: 0; top: 0; width: 250px; display: grid; gap: 3px; opacity: 0; transition: opacity .35s ease;
  background: color-mix(in srgb, var(--base) 86%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.xp-labels li.on { opacity: 1; transition-delay: calc(var(--i, 0) * 60ms); }
@media (max-height: 780px) and (min-width: 1080px) { .xp-labels p { display: none; } }
.xp-labels .caps { color: var(--accent); font-size: 11px; }
/* a snapshot's date, on the copy itself */
.xp-labels li.pill { width: auto; white-space: nowrap; padding: 4px 11px; border-radius: 999px; font: 600 12px var(--mono); color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.xp.nogl .xp-labels li.pill { display: none; }
.xp-labels li.pill.on { transition-delay: .15s; }
.xp-labels h3 { font-size: 15px; }
.xp-labels p { color: var(--subtext); font-size: 13px; line-height: 1.45; }
.xp.narrow .xp-labels li:not(.pill) { left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; transform: translateY(8px) !important; transition: opacity .35s ease, transform .35s ease; }
.xp.narrow .xp-labels li:not(.pill).on { transform: none !important; transition-delay: 0s; }
.xp.narrow .xp-lines { display: none; }
.xp-cap { position: absolute; left: 0; right: 0; bottom: 28px; display: grid; justify-items: center; pointer-events: none; z-index: 2; }
.xp-cap div { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease;
  text-align: center; display: grid; gap: 4px; max-width: 520px; padding: 0 16px; }
.xp-cap div.on { opacity: 1; transform: none; transition-delay: .15s; }
.xp-cap .caps { color: var(--accent); }
.xp-cap h3 { font-size: 22px; }
.xp-cap p { color: var(--subtext); font-size: 15px; }
/* with less motion asked for: the laptop standing still, open, and its labels as a list under it */
.xp.still { height: auto; }
.xp.still .xp-pin { position: relative; top: 0; height: auto; overflow: visible; padding-bottom: 48px; }
.xp.still .xp-head { position: relative; }
.xp.still .xp-scene { position: relative; inset: auto; height: clamp(260px, 74vw, min(560px, 62svh)); }
.xp.still .xp-lines, .xp.still .xp-cap, .xp.still .xp-labels li.pill { display: none; }
.xp.still .xp-labels { position: relative; inset: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; max-width: 1160px; margin: 8px auto 0; padding: 0 16px; }
.xp.still .xp-labels li, .xp.narrow.still .xp-labels li:not(.pill) { position: relative; inset: auto; width: auto; opacity: 1; transform: none !important; }
/* without WebGL: the desktop as a picture, the labels as a list under it */
.xp.nogl { height: auto; }
.xp.nogl .xp-pin { position: relative; top: 0; height: auto; overflow: visible; padding-bottom: 48px; }
.xp.nogl .xp-head { position: relative; }
.xp.nogl .xp-scene, .xp.nogl .xp-lines, .xp.nogl .xp-cap { display: none; }
.xp.nogl .xp-fallback { display: block; margin-top: 28px; }
.xp.nogl .xp-labels { position: relative; inset: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; max-width: 1160px; margin: 20px auto 0; padding: 0 16px; }
.xp.nogl .xp-labels li { position: relative; width: auto; opacity: 1; }


.caps { font-size: 12px; font-weight: 600; }
.xp .eyebrow { display: flex; font-size: 12px; font-weight: 600; color: var(--ink); }
.xp h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.028em; }
.xp .lead { color: var(--subtext); max-width: 58ch; }
.xp h3 { font-weight: 600; }
.xp-fallback .shot img { border-radius: var(--r-window); border: 1px solid var(--rim); }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }


/* a monitor, with a side menu of the same measure as everywhere in the system */
.nav { display: grid; gap: 4px; align-content: start; width: var(--nav-item); flex: none; }
.nav button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding-inline: 12px; border-radius: 12px; color: var(--muted); text-align: left; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .14s; }
.nav button:hover { background: var(--tile-hover); }
.nav button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.switcher { display: flex; gap: 24px; margin-top: 32px; align-items: flex-start; }
.panes { flex: 1; min-width: 0; }
.stage img { width: 100%; border-radius: var(--r-window); border: 1px solid var(--rim); background: var(--crust); }
.pane-text { margin-top: 12px; color: var(--subtext); max-width: 64ch; }
.pane-text b { color: var(--text); font-weight: 600; }

/* the windows: placed the way Hyprland places them, 8 px apart, the one under the pointer lit */
.tiled { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 32px; }
.win { display: flex; flex-direction: column; border-radius: var(--r-window); border: 2px solid var(--line); background: var(--mantle); overflow: hidden; transition: border-color .14s; min-width: 0; }
.win:hover, .win:focus-within { border-color: var(--accent); }
.win img { width: 100%; aspect-ratio: 1320 / 930; object-fit: cover; }
.win figcaption { padding: 8px 12px 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.win figcaption b { display: block; color: var(--text); font-size: 15px; font-weight: 600; }
.w-half { grid-column: span 6; }

/* settings: a page per subject */
#details { background: var(--mantle); }
.page h3 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.page p { margin-top: 12px; color: var(--subtext); font-size: 17px; max-width: 58ch; }
.page small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink); font-weight: 600; }
.pages { min-height: 150px; padding-top: 4px; }

/* the terminal */
.term { flex: 1; font: 400 13px/1.65 var(--mono); padding: 16px 18px; background: var(--crust); color: var(--text); overflow-x: auto; }
.term .p { color: var(--term-prompt); }
.term .k { color: var(--ink); font-weight: 600; }
.term-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 32px; }
.fetch { grid-column: span 8; }
.fetch-body { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin-top: 8px; }
.fetch-body svg { width: clamp(72px, 12vw, 148px); height: auto; color: var(--ink); }
.fetch dl { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; }
.fetch dt { color: var(--ink); font-weight: 600; }
.fetch dd { color: var(--text); min-width: 0; }
.pac { grid-column: span 4; }
.pac p { margin-top: 10px; font-family: var(--font); font-size: 14px; color: var(--subtext); line-height: 1.5; }

/* the numbers: the system panel's meters */
#numbers { background: var(--crust); }
.system { margin-top: 32px; display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.race figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.race figcaption b { font: 300 clamp(30px, 3.4vw, 46px)/1 var(--mono); color: var(--text); letter-spacing: -.02em; }
.race ol { display: grid; gap: 6px; margin-top: 10px; }
.race li { display: grid; grid-template-columns: 76px 1fr 66px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.race .val { font-family: var(--mono); text-align: right; }
.race .track { display: block; height: 10px; background: repeating-linear-gradient(90deg, var(--track) 0 7px, transparent 7px 10px); opacity: .45; position: relative; }
.race .track::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: repeating-linear-gradient(90deg, var(--subtext) 0 7px, transparent 7px 10px); }
.race .us { color: var(--text); font-weight: 600; }
.race .us .track { opacity: 1; background: repeating-linear-gradient(90deg, color-mix(in oklab, var(--track) 45%, transparent) 0 7px, transparent 7px 10px); }
.race .us .track::after { background: repeating-linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 10px); }
.more { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.table-scroll { overflow-x: auto; margin-top: 14px; }
.measures { width: 100%; border-collapse: collapse; font-size: 13px; }
.measures th, .measures td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); font-weight: 400; white-space: nowrap; }
.measures th:first-child { text-align: left; white-space: normal; }
.measures thead th, .measures .group th { color: var(--ink); font-weight: 600; text-align: left; font-size: 12px; }
.measures thead th:not(:first-child) { text-align: right; }
.measures strong { font-weight: 700; }
.fine { margin-top: 12px; font-size: 12px; color: var(--muted); max-width: 90ch; }
.real { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; margin-top: 32px; }
.real h3 { font-size: 15px; }
.real p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.real dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.real dd { font: 300 24px var(--mono); }
.real dt { font-size: 12px; color: var(--muted); }

/* download: the last panel */
.get { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 32px; }
.get-main { grid-column: span 5; padding: 22px; display: grid; gap: 14px; align-content: start; }
.get-main .btn { justify-self: start; height: 44px; padding-inline: 22px; border-radius: 22px; font-size: 14px; }
.get-main dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.get-main dt { color: var(--muted); }
.get-main code { word-break: break-all; font-size: 12px; }
.get-main ul { display: grid; gap: 2px; font-size: 13px; color: var(--subtext); }
.get-main h3 { font-size: 13px; color: var(--ink); }
.steps { grid-column: span 7; display: grid; gap: var(--gap); }
.steps .term { display: grid; gap: 6px; }
.steps h3 { font: 600 14px var(--font); color: var(--text); }
.steps p { font: 400 13px/1.5 var(--font); color: var(--subtext); }
.cmd { display: flex; align-items: center; gap: 10px; }
.cmd pre { flex: 1; margin: 0; min-width: 0; overflow-x: auto; white-space: pre; }
.cmd pre::before { content: "$ "; color: var(--term-prompt); }
.cmd button { flex: none; height: 26px; padding-inline: 10px; border-radius: 13px; border: 1px solid var(--rim); font: 600 11px var(--font); color: var(--muted); }
.cmd button:hover { background: var(--tile-hover); color: var(--text); }
.ask { margin-top: 32px; }
.ask h3 { font-size: 15px; margin-bottom: 8px; }
.ask details { border-top: 1px solid var(--line); }
.ask summary { display: flex; justify-content: space-between; gap: 16px; padding: 11px 2px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.ask summary::after { content: "+"; color: var(--quiet); font-family: var(--mono); }
.ask details[open] summary::after { content: "\2212"; }
.ask p { padding: 0 2px 14px; color: var(--subtext); max-width: 72ch; font-size: 14px; }

.get-short { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.get-short .do { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.big { height: 44px; padding-inline: 22px; border-radius: 22px; font-size: 14px; }

/* ---- the wiki: a side menu of the system's measure, and text you can read ---- */
.wiki { display: flex; gap: 32px; max-width: 1240px; margin-inline: auto; padding: calc(var(--bar) + 32px) var(--gutter) 96px; align-items: flex-start; }
.side { position: sticky; top: calc(var(--bar) + 24px); flex: none; width: 232px; max-height: calc(100svh - var(--bar) - 48px); overflow-y: auto; padding-right: 16px; border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.side .search { display: flex; align-items: center; gap: 10px; margin: 1px 1px 16px; height: var(--control); padding: 0 6px 0 5px; border: 1px solid var(--rim); border-radius: 18px; background: var(--tile); }
.side .search:focus-within { border-color: var(--ink); }
.side .search i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.side .search input { font-size: 13px; background: none; border: 0; outline: 0; min-width: 0; flex: 1; }
.side .search input::-webkit-search-cancel-button { display: none; }
.side .search b { flex: none; min-width: 24px; padding-inline: 6px; height: 24px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 600 11px var(--mono); }
#wiki-hits a { display: block; padding: 7px 10px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 13px; }
#wiki-hits a small { display: block; color: var(--quiet); font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#wiki-hits a:hover { background: var(--tile-hover); }
#wiki-hits a[data-on] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
#wiki-hits a[data-on] small { color: inherit; font-weight: 400; }
#wiki-hits mark { background: none; color: var(--ink); font-weight: 600; }
#wiki-hits a[data-on] mark { color: inherit; }
#wiki-hits p { padding: 10px; color: var(--muted); font-size: 13px; }
.toc summary { padding: 0 0 8px; margin-bottom: 8px; border-bottom: 1px solid var(--subtext); font-weight: 700; font-size: 14px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc a { display: flex; gap: 8px; padding: 4px 0; color: var(--ink); font-size: 14px; line-height: 1.35; text-decoration: none; }
.toc a span { flex: none; }
.toc a.l3 { padding-left: 12px; }
.toc a:hover { text-decoration: underline; }
.toc a[aria-current] { font-weight: 700; color: var(--text); }
.doc { flex: 1; min-width: 0; max-width: 860px; font-size: 16px; line-height: 1.6; }
.doc h1 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; padding-bottom: 6px; border-bottom: 1px solid var(--subtext); margin-bottom: 16px; }
.doc h2 { clear: both; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin: 36px 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--subtext); scroll-margin-top: calc(var(--bar) + 24px); }
.doc h3 { font-size: 18px; line-height: 1.35; font-weight: 700; margin: 24px 0 6px; scroll-margin-top: calc(var(--bar) + 24px); }
.doc .n { color: var(--muted); font-weight: 600; margin-right: 10px; }
.doc p { margin: 10px 0; color: var(--text); }
.doc ul, .doc ol { list-style: disc; margin: 8px 0; padding-left: 22px; color: var(--text); }
.doc ol { list-style: decimal; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc code { font-size: .88em; padding: 1px 5px; border-radius: 6px; background: var(--mantle); border: 1px solid var(--line); overflow-wrap: anywhere; }
.doc .cmd { margin: 10px 0; border-radius: var(--r-window); border: 1px solid var(--surface); background: var(--mantle); padding: 10px 14px; }
.doc .cmd code, .doc pre { background: none; border: 0; }
/* as on the desktop's wiki (config/quickshell/assets/wiki.css) */
.box { margin: 12px 0; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--surface)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--mantle)); }
.box.warn { border-color: color-mix(in srgb, var(--red) 45%, var(--surface)); background: color-mix(in srgb, var(--red) 10%, var(--mantle)); }
.box b { display: block; margin-bottom: 4px; font-weight: 700; font-size: 15px; color: var(--ink); }
.box.warn b { color: var(--red); }
.box p { margin: 0; }
.related { float: right; width: 210px; margin: 0 0 12px 24px; }
.related b { display: block; padding-bottom: 4px; margin-bottom: 6px; border-bottom: 3px solid var(--surface); text-align: center; color: var(--muted); font-size: 14px; }
.related a { display: block; padding: 3px 4px; font-size: 14px; line-height: 1.4; }
.doc details { border-top: 1px solid var(--line); }
.doc summary { padding: 10px 2px; cursor: pointer; font-weight: 600; color: var(--text); }
.doc details p { margin-top: 0; padding-bottom: 8px; }
.doc .win { margin: 16px 0; }
.doc .fine { font-size: 13px; color: var(--muted); }
.doc .real { display: block; margin: 12px 0 0; }
/* no room beside the cubes: the picture is still the whole background, pushed down so the words sit above them */
@media (max-width: 1100px), (max-aspect-ratio: 3 / 2) {
  .desk { display: flex; flex-direction: column; min-height: max(100svh, 720px); padding: calc(var(--bar) + 40px) var(--gutter) 0; background: #151f28; }
  .pitch { width: auto; max-width: 560px; align-self: flex-start; padding: 0; }
  .pitch h1 { font-size: clamp(44px, 9vw, 72px); }
  .wall { inset: auto auto 0 50%; transform: translateX(-50%); width: max(100%, min(190%, 110vh)); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; -webkit-mask-image: linear-gradient(transparent, #000 16%); mask-image: linear-gradient(transparent, #000 16%); }
}
@media (min-width: 700px) and (max-width: 1100px), (min-width: 700px) and (max-aspect-ratio: 3 / 2) {
  .pitch { max-width: 300px; }
  .pitch h1 { font-size: 44px; }
}
@media (max-width: 640px) {
  .get-big .do { flex-direction: column; }
  .get-big .do .btn { width: 100%; }
  .pitch .do .btn { flex: 1 1 0; padding-inline: 10px; }
}
.wiki.solo { max-width: 860px; }
main img { transition: opacity .45s cubic-bezier(.2, 0, 0, 1), filter .45s cubic-bezier(.2, 0, 0, 1), transform .45s cubic-bezier(.2, 0, 0, 1); }
main img.arriving { opacity: 0; filter: blur(10px); transform: scale(1.012); }
.stage:not([hidden]), .pages > :not([hidden]) { animation: pane .32s cubic-bezier(.2, 0, 0, 1); }
.screen { position: relative; aspect-ratio: 1216 / 760; overflow: hidden; border-radius: var(--r-window); border: 1px solid var(--rim); background: var(--crust); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.screen > img:first-child { transition: opacity .4s cubic-bezier(.2, 0, 0, 1); }
.screen.waiting > img:first-child { opacity: 0; }
/* a panel goes back up into the island, and the next comes down out of it with the shell's own spring */
.screen .shot { opacity: 0; transform-origin: 50% 0; transform: translateY(-5%) scale(.42, .08); transition: transform .24s cubic-bezier(.4, 0, 1, 1), opacity .12s linear .12s; }
.screen .shot.on { z-index: 1; opacity: 1; transform: none; transition: transform .68s linear(0, .143, .425, .679, .866, .97, 1.012, 1.029, 1.027, 1.019, 1.011, 1.005, 1) .2s, opacity .1s linear .2s; }
@keyframes pane { from { opacity: 0; transform: translateY(6px); } }
.xp-pin { background: radial-gradient(ellipse 62% 56% at 50% 58%, color-mix(in oklab, var(--accent) 13%, var(--base)), var(--crust) 78%); }
.xp-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s cubic-bezier(.2, 0, 0, 1) calc(var(--i, 0) * 50ms); }
.xp-lines g.on path { stroke-dashoffset: 0; }
.xp-labels li:not(.pill) { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rim); background: color-mix(in oklab, var(--crust) 86%, transparent); backdrop-filter: blur(6px); }
.xp-steps { position: absolute; left: var(--gutter); bottom: 24px; z-index: 3; display: flex; gap: 14px; font-size: 12px; color: var(--quiet); pointer-events: none; }
.xp-steps li { display: flex; align-items: center; gap: 6px; transition: color .2s; }
.xp-steps li::before { content: ""; width: 18px; height: 6px; border-radius: 2px; background: var(--track); transition: background-color .2s, height .14s; }
.xp-steps li[data-on] { color: var(--text); font-weight: 600; }
.xp-steps li[data-on]::before { background: var(--accent); height: 10px; }
.xp.narrow .xp-steps, .xp.still .xp-steps, .xp.nogl .xp-steps { display: none; }
#download { position: relative; overflow: hidden; display: grid; align-items: center; min-height: 100svh; padding-block: calc(var(--bar) + 48px) 64px; background: radial-gradient(ellipse 70% 80% at 74% 46%, color-mix(in oklab, var(--accent) 22%, var(--crust)), var(--crust) 72%); }
.get-big { position: relative; width: 100%; max-width: none; margin: 0; }
.get-big h2 { margin-top: 12px; font-size: clamp(64px, 8.2vw, 170px); line-height: .94; letter-spacing: -.045em; font-weight: 800; }
.get-note { margin-top: 24px; font-size: clamp(19px, 1.7vw, 28px); color: var(--subtext); }
.get-big .do { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn.huge { height: 64px; padding-inline: 34px; border-radius: 32px; font-size: 18px; }
.btn.huge .ic { width: 22px; height: 22px; }
.needs { display: flex; flex-wrap: wrap; max-width: 58vw; gap: 24px clamp(28px, 3.4vw, 64px); margin-top: clamp(48px, 7vh, 88px); }
.needs dd { font: 300 clamp(30px, 3vw, 52px)/1 var(--mono); letter-spacing: -.03em; color: var(--text); }
.needs dt { margin-top: 8px; font-size: 14px; color: var(--muted); }
.get-logo { position: absolute; right: 2vw; top: 50%; width: 36vw; height: auto; transform: translateY(-50%); opacity: .9; filter: drop-shadow(0 0 80px color-mix(in oklab, var(--accent) 40%, transparent)); pointer-events: none; }
@media (max-width: 1100px) { .needs { max-width: none; } .get-logo { top: auto; bottom: -8vw; right: -18vw; transform: none; width: 90vw; opacity: .16; } }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; min-height: 44px; padding: 10px var(--gutter); background: var(--glass); border-top: 1px solid var(--accent); font-size: 12px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 1180px) {
  .film-row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ws, .title, .brand span { display: none; }
  .wiki { flex-direction: column; align-items: stretch; gap: 24px; padding-top: calc(var(--bar) + 24px); }
  .doc { flex: none; width: 100%; max-width: 100%; }
  .doc .fetch-body { overflow-x: auto; }
  .side { position: static; width: 100%; max-height: none; padding-right: 0; border-right: 0; }
  .related { display: none; }
  .toc summary { display: flex; justify-content: space-between; cursor: pointer; }
  .toc summary::after { content: "+"; color: var(--quiet); font-family: var(--mono); }
  .toc[open] summary::after { content: "\2212"; }
  .bar { padding-inline: 8px; }
  .bar-right { gap: 2px; }
  .island { padding-inline: 12px; font-size: 12px; }
  .mod { padding-inline: 5px; height: 32px; }
  .mod span { display: none; }
  .switcher { flex-direction: column; }
  .switcher .nav { width: 100%; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .system { grid-template-columns: 1fr; }
  .w-half { grid-column: 1 / -1; }
  .real { grid-template-columns: 1fr; }
  .fetch-body { grid-template-columns: 1fr; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
