/* Shared styles of the inner pages (extension pages, directory, 404).
   Same world as the homepage: the logo's night violet and magenta. */
:root {
  --ink: #0d0b14; --ink-2: #15121f; --line: rgba(255, 255, 255, .08);
  --fg: #f1eef8; --dim: #a7a1b8; --faint: #7d778f;
  --magenta: #e81cff; --rose: #ff5ad9; --violet: #7a22d6; --indigo: #3b1d8f;
  --f-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--fg); font: 16px/1.6 var(--f-body); overflow-x: hidden; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--f-mono); font-size: .92em; }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.glow { position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; pointer-events: none; overflow: hidden; opacity: .5; }
.glow::before { content: ""; position: absolute; width: 900px; height: 900px; right: -200px; top: -520px; border-radius: 50%; background: radial-gradient(circle, rgba(232,28,255,.275), rgba(122,34,214,.125) 40%, transparent 68%); filter: blur(40px); }
.glow::after { content: ""; position: absolute; width: 700px; height: 700px; left: -300px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(59,29,143,.3), transparent 65%); filter: blur(60px); }

nav.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(140%); background: color-mix(in srgb, var(--ink) 60%, transparent); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--f-display); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
nav.top .links { display: flex; gap: 24px; font-size: 14px; color: var(--dim); }
nav.top .links a { text-decoration: none; } nav.top .links a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--rose), var(--magenta) 45%, var(--violet)); box-shadow: 0 10px 40px -8px rgba(232,28,255,.35), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.primary:hover { transform: translateY(-2px); }
.btn.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.btn.ghost:hover { background: rgba(255,255,255,.09); }
.btn.sm { padding: 8px 14px; font-size: 14px; margin-left: auto; }

.crumbs { font: 13px var(--f-mono); color: var(--faint); padding-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.hero { padding-block: 26px 10px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.tile { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; font: 800 38px var(--f-display); color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); box-shadow: 0 0 60px -10px color-mix(in srgb, var(--c) 60%, transparent); }
h1 { font: 800 clamp(36px, 6vw, 64px)/1 var(--f-display); letter-spacing: -.04em; margin: 0; text-wrap: balance; }
h1 small { display: block; font: 500 16px var(--f-mono); letter-spacing: 0; color: var(--rose); margin-bottom: 10px; }
.lede { color: var(--dim); font-size: 19px; max-width: 62ch; margin: 18px 0 0; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.meta span { font: 12.5px var(--f-mono); color: var(--dim); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
h2 { font: 700 clamp(26px, 3.4vw, 36px)/1.1 var(--f-display); letter-spacing: -.03em; margin: 0 0 18px; }
section { padding-block: 64px 0; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.cols > * { min-width: 0; }
.cmds { display: grid; gap: 10px; }
.cmd { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.cmd b { display: block; font-weight: 600; }
.cmd span { color: var(--dim); font-size: 15px; }
.box { border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); padding: 20px; }
.box + .box { margin-top: 16px; }
.box h3 { margin: 0 0 10px; font: 650 16px var(--f-display); }
.box ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 14.5px; }
.box p { margin: 0; color: var(--dim); font-size: 14.5px; }
pre.term { margin: 0; padding: 14px 16px; border-radius: 12px; background: #0a0910; border: 1px solid var(--line); font: 13.5px/1.7 var(--f-mono); overflow-x: auto; }
pre.term b { color: var(--rose); font-weight: 500; user-select: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ext { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; min-width: 0; transition: background .18s; }
.ext:hover { background: rgba(232,28,255,.045); }
.ext .mono { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 700 15px var(--f-display); color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.ext div { min-width: 0; }
.ext b { display: block; font-weight: 600; font-size: 14.5px; }
.ext span { display: block; color: var(--faint); font-size: 13px; line-height: 1.4; }
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.cat-nav a { font: 500 13px var(--f-body); text-decoration: none; color: var(--dim); border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; }
.cat-nav a:hover { color: var(--fg); border-color: rgba(255,255,255,.2); }
.cta-band { margin-top: 90px; border-radius: 24px; border: 1px solid var(--line); padding: clamp(28px, 5vw, 56px); background: radial-gradient(120% 140% at 90% 0%, rgba(232,28,255,.175), rgba(122,34,214,.09) 40%, transparent 70%), var(--ink-2); }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--dim); max-width: 60ch; margin: 0; }
footer { margin-top: 100px; border-top: 1px solid var(--line); padding-block: 36px 50px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .fl { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; } footer a:hover { color: var(--fg); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } .grid { grid-template-columns: 1fr 1fr; } nav.top .links { display: none; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr; } .tile { width: 64px; height: 64px; font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }
/* On a phone the download menu spans the button row instead of overflowing it */
@media (max-width: 560px) { .ctas:has(> .dl) { position: relative; z-index: 10; } .ctas > .dl { position: static; } .ctas > .dl .menu { width: 100%; } }

/* Download menu: direct links to the latest release's files */
.dl { position: relative; z-index: 10; }
.dl .btn svg { width: 18px; height: 18px; flex: none; }
.btn .chev { width: 14px; height: 14px; margin-left: 2px; opacity: .85; transition: transform .2s; }
.dl.center .menu { left: 50%; transform: translateX(-50%); }
.dl.open .btn .chev { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 10px); left: 0; width: min(380px, calc(100vw - 32px)); text-align: left;
  background: color-mix(in srgb, var(--ink-2) 92%, transparent); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(232,28,255,.04); }
.menu .mhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 8px 10px 10px; font: 500 12px var(--f-mono); color: var(--faint); }
.menu .mhead b { color: var(--fg); font-weight: 500; }
.arch { flex: none; display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.arch button { font: 500 11px var(--f-mono); color: var(--faint); background: none; border: 0; padding: 4px 9px; cursor: pointer; }
.arch button[aria-pressed="true"] { background: rgba(255,255,255,.1); color: var(--fg); }
.mitems { display: flex; flex-direction: column; gap: 6px; }
.mitems a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.mitems a:hover, .mitems a:focus-visible { background: rgba(255,255,255,.06); }
.mitems a.rec { background: linear-gradient(135deg, rgba(255,90,217,.07), rgba(122,34,214,.07)); box-shadow: inset 0 0 0 1px rgba(232,28,255,.15); }
.mitems .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 600 11px var(--f-mono); background: #1d1929; border: 1px solid var(--line); }
.ico.deb { color: #ff8fb8; } .ico.rpm { color: #7cc4ff; } .ico.tar { color: #ffc56b; }
.mitems .lbl { min-width: 0; }
.mitems strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mitems small { display: block; font: 12px var(--f-mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font: 600 10px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: linear-gradient(90deg, var(--rose), var(--magenta)); padding: 2px 7px; border-radius: 99px; }
.mfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 8px; padding: 12px 10px 6px; border-top: 1px solid var(--line); font-size: 13px; }
.mfoot a { color: var(--dim); text-decoration: none; }
.mfoot a:hover { color: var(--fg); }
/* Menu that opens upward, for buttons at the bottom of a page */
.dl.up .menu { top: auto; bottom: calc(100% + 10px); box-shadow: 0 -30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(232,28,255,.04); }
.dl.up .btn .chev { transform: rotate(180deg); }
.dl.up.open .btn .chev { transform: none; }
