/* hyppuccin website. Colours are the desktop's colour roles (palette.css, or the
   theme picker in site.js), so every hyppuccin theme recolours the whole site. */

@font-face { font-family: hyp-sans; font-weight: 400; font-display: swap; src: url(../fonts/sans-400.woff2) format("woff2"); }
@font-face { font-family: hyp-sans; font-weight: 500; font-display: swap; src: url(../fonts/sans-500.woff2) format("woff2"); }
@font-face { font-family: hyp-sans; font-weight: 700; font-display: swap; src: url(../fonts/sans-700.woff2) format("woff2"); }
@font-face { font-family: hyp-mono; font-weight: 400; font-display: swap; src: url(../fonts/mono-400.woff2) format("woff2"); }
@font-face { font-family: hyp-icons; font-display: block; src: url(../fonts/icons.woff2) format("woff2"); }

:root {
  --r: 6px;
  --r-lg: 12px;
  --wrap: 1180px;
  --grad: linear-gradient(90deg, var(--magenta), var(--accent), var(--teal));
  --glass: color-mix(in srgb, var(--base) 72%, transparent);
  --line: color-mix(in srgb, var(--border) 85%, transparent);
  --card: color-mix(in srgb, var(--base) 82%, transparent);
  --sans: hyp-sans, "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: hyp-mono, "Ubuntu Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--crust); color: var(--fg);
  font: 400 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
::selection { background: var(--accent-bg); color: var(--white); }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hi); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--bright); line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, kbd, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { font-family: hyp-icons; font-style: normal; font-weight: 400; line-height: 1; display: inline-block; vertical-align: -.12em; speak: never; }

/* ── Background glow ─────────────────────────────────────────────────── */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute; width: min(60vmax, 1100px); height: min(60vmax, 1100px); border-radius: 50%;
  filter: blur(90px); opacity: .16; animation: drift 38s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: var(--magenta); left: -20vmax; top: -25vmax; }
.aurora span:nth-child(2) { background: var(--accent); right: -25vmax; top: 10vh; animation-duration: 46s; animation-delay: -10s; }
.aurora span:nth-child(3) { background: var(--teal); left: 20vw; bottom: -40vmax; animation-duration: 52s; animation-delay: -20s; }
[data-light] .aurora span { opacity: .13; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vh) scale(1.08); }
  100% { transform: translate(-4vw, 8vh) scale(.95); }
}

/* ── Buttons, chips, keys ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 48px; padding: 0 22px; border-radius: var(--r);
  font: 500 16px/1 var(--sans); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--crust); box-shadow: 0 8px 30px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-hi); color: var(--crust); }
.btn-ghost { background: var(--glass); color: var(--bright); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--bright); }
.btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--subtle); font: 500 14px/1 var(--sans); cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--bright); border-color: var(--border-hi); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--crust); }

kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.7em;
  padding: 0 .45em; border-radius: 4px; font-size: .82em; line-height: 1;
  background: var(--header); color: var(--bright); border: 1px solid var(--border-hi);
  box-shadow: inset 0 -2px 0 var(--border); white-space: nowrap;
}
.keys { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--crust) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bright); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand:hover { color: var(--bright); }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: var(--r); color: var(--subtle); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bright); background: var(--hover); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav-tools .nav-toggle { display: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--card); color: var(--subtle); font-size: 20px; cursor: pointer;
}
.icon-btn:hover { color: var(--bright); border-color: var(--border-hi); }

/* theme picker */
.theme-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 10px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--card);
  color: var(--bright); font: 500 14px/1 var(--sans); cursor: pointer; max-width: 240px;
}
.theme-btn:hover { border-color: var(--accent); }
.theme-btn .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dots { display: inline-flex; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--base); margin-left: -4px; }
.dots i:first-child { margin-left: 0; }
.picker {
  position: fixed; z-index: 80; top: 72px; right: max(16px, calc((100vw - var(--wrap)) / 2));
  width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 90px));
  display: none; flex-direction: column;
  background: color-mix(in srgb, var(--base) 88%, transparent);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--border-hi); border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
}
.picker.open { display: flex; animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.picker-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.picker-head p { margin: 0 0 10px; font-size: 13px; color: var(--comment); }
.picker-list { overflow-y: auto; padding: 6px; }
.picker-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r);
  background: transparent; color: var(--fg); font: 400 14px/1.2 var(--sans); text-align: left; cursor: pointer;
}
.picker-item:hover, .picker-item:focus-visible { background: var(--hover); }
.picker-item[aria-selected="true"] { background: var(--accent-bg); color: var(--white); }
.picker-item .sw { display: flex; width: 74px; height: 22px; border-radius: 4px; overflow: hidden; flex: none; border: 1px solid rgba(127, 127, 127, .25); }
.picker-item .sw i { flex: 1; }
.picker-item small { margin-left: auto; color: var(--comment); font-size: 12px; }
.picker-item[aria-selected="true"] small { color: inherit; opacity: .8; }

.field {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r);
  background: var(--field); border: 1px solid var(--line); color: var(--comment);
}
.field:focus-within { border-color: var(--accent); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--bright); font: 400 15px var(--sans); }
.field input::placeholder { color: var(--muted); }

/* ── Sections ────────────────────────────────────────────────────────── */
section { position: relative; }
.section { padding: 110px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font: 400 14px/1 var(--mono); color: var(--teal); letter-spacing: .04em;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head p { margin: 16px 0 0; font-size: 19px; color: var(--subtle); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 0; text-align: center; }
.mug { width: 118px; height: 128px; margin: 0 auto 6px; overflow: visible; }
.mug .steam path { stroke-dasharray: 60; animation: steam 3.2s ease-in-out infinite; }
.mug .steam path:nth-child(2) { animation-delay: -1.1s; }
.mug .steam path:nth-child(3) { animation-delay: -2.2s; }
@keyframes steam {
  0% { stroke-dashoffset: 60; opacity: 0; transform: translateY(8px); }
  30% { opacity: 1; }
  70% { opacity: .9; }
  100% { stroke-dashoffset: -60; opacity: 0; transform: translateY(-10px); }
}
.hero h1 { font-size: clamp(54px, 11vw, 112px); letter-spacing: -.035em; line-height: 1; padding-bottom: .08em; }
.hero .tagline { max-width: 660px; margin: 18px auto 0; font-size: clamp(18px, 2.3vw, 22px); color: var(--subtle); }
.hero .tagline b { color: var(--bright); font-weight: 500; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { margin-top: 18px; font: 400 14px/1.4 var(--mono); color: var(--comment); }
.hero-meta span + span::before { content: "·"; margin: 0 10px; color: var(--muted); }

.wave { display: inline-flex; gap: 8px; height: 22px; align-items: flex-end; }
.wave i { width: 9px; height: 9px; border-radius: 50%; animation: wave 1.44s ease-in-out infinite; }
.wave i:nth-child(1) { background: var(--red); }
.wave i:nth-child(2) { background: var(--yellow-hi); animation-delay: .126s; }
.wave i:nth-child(3) { background: var(--yellow); animation-delay: .252s; }
.wave i:nth-child(4) { background: var(--green); animation-delay: .378s; }
.wave i:nth-child(5) { background: var(--teal); animation-delay: .504s; }
.wave i:nth-child(6) { background: var(--accent); animation-delay: .63s; }
.wave i:nth-child(7) { background: var(--magenta); animation-delay: .756s; }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 25% { transform: translateY(-11px); opacity: 1; } }

/* the desktop mock: sized in em, the em follows the frame's width */
.desk-wrap { container-type: inline-size; max-width: 1120px; margin: 56px auto 0; position: relative; }
.desk-wrap::after {
  content: ""; position: absolute; inset: 12% 8% -6%; z-index: -1; border-radius: 50%;
  background: var(--grad); filter: blur(70px); opacity: .35;
}
.desk {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; text-align: left;
  font-size: 1.22cqw; line-height: 1.45; border-radius: var(--r-lg);
  border: 1px solid var(--border-hi); background: #11111b url(../img/hero-space.webp) center / cover;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7);
}
.desk .glass {
  background: color-mix(in srgb, var(--base) 78%, transparent);
  backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid var(--border); border-radius: .35em;
}
.dbar { position: absolute; left: .8em; right: .8em; top: .8em; height: 2.3em; display: flex; align-items: center; padding: 0 .5em; color: var(--fg); font-size: .92em; }
.dbar .ws { display: flex; gap: .25em; align-items: center; }
.dbar .ws b { display: grid; place-items: center; width: 1.8em; height: 1.55em; border-radius: .25em; font-weight: 500; color: var(--subtle); }
.dbar .ws b.on { background: var(--accent); color: var(--crust); }
.dbar .ws b.m { color: var(--magenta); }
.dbar .ws .logo { color: var(--accent); margin-right: .35em; font-size: 1.15em; }
.dbar .mid { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 1em; align-items: center; color: var(--bright); }
.dbar .mid .i { color: var(--teal); margin-right: .3em; }
.dbar .mid span:last-child .i { color: var(--yellow); }
.dbar .right { margin-left: auto; display: flex; gap: .85em; align-items: center; font-size: 1.05em; color: var(--subtle); }
.dbar .right .i:nth-child(1) { color: var(--red); }
.dbar .right .i:nth-child(3) { color: var(--accent); }
.dbar .right .i:nth-child(4) { color: var(--green); }
.dbar .right .sep { width: 1px; height: 1.1em; background: var(--border); }
.dwin { position: absolute; top: 3.95em; bottom: .8em; overflow: hidden; }
.dwin.term { left: .8em; width: calc(57% - 1.2em); border-color: var(--accent); font: 400 1.02em/1.55 var(--mono); padding: .9em 1.1em; color: var(--fg); }
.dwin.term .p { color: var(--green); }
.dwin.term .c { color: var(--bright); }
.dwin.term .d { color: var(--comment); }
.dwin.term .a { color: var(--accent); }
.dwin.term .cursor { display: inline-block; width: .55em; height: 1.1em; background: var(--fg); vertical-align: -.2em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fetch { display: flex; gap: 1.4em; margin: .6em 0 .9em; }
.fetch svg { width: 6.2em; flex: none; }
.fetch dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: .8em; }
.fetch dt { color: var(--accent); }
.fetch dd { margin: 0; color: var(--fg); white-space: nowrap; }
.blocks { display: flex; gap: .25em; margin-top: .5em; }
.blocks i { width: 1.6em; height: .9em; border-radius: .15em; }
.dwin.set { left: 57%; right: .8em; display: flex; font-size: .95em; }
.dwin.set nav { width: 34%; padding: .8em .5em; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--crust) 35%, transparent); }
.dwin.set nav b { display: block; color: var(--bright); padding: 0 .5em .6em; font-size: 1.1em; }
.dwin.set nav span { display: flex; gap: .55em; align-items: center; padding: .35em .5em; border-radius: .25em; color: var(--subtle); }
.dwin.set nav span.on { background: var(--accent); color: var(--crust); }
.dwin.set .pane { flex: 1; padding: .9em 1em; min-width: 0; }
.dwin.set h4 { font-size: 1.25em; margin-bottom: .1em; }
.dwin.set .sub { color: var(--comment); font-size: .85em; margin-bottom: .8em; }
.dwin.set .lbl { color: var(--teal); font: 700 .72em/1 var(--sans); letter-spacing: .12em; margin: .9em 0 .45em; }
.dwin.set .rows { border: 1px solid var(--border); border-radius: .3em; }
.dwin.set .row { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .55em .7em; }
.dwin.set .row + .row { border-top: 1px solid var(--border); }
.dwin.set .row small { display: block; color: var(--comment); font-size: .78em; }
.dwin.set .val {
  display: inline-flex; align-items: center; gap: .35em; padding: .25em .6em; border-radius: .25em; max-width: 55%;
  background: var(--field); border: 1px solid var(--border); color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dwin.set button.val { font: inherit; cursor: pointer; }
.dwin.set button.val:hover { border-color: var(--accent); }
.slider { width: 38%; height: .35em; border-radius: 1em; background: var(--border); position: relative; }
.slider::before { content: ""; position: absolute; inset: 0 30% 0 0; background: var(--accent); border-radius: inherit; }
.slider::after { content: ""; position: absolute; left: 70%; top: 50%; width: .9em; height: .9em; border-radius: 50%; background: var(--bright); transform: translate(-50%, -50%); }

/* ── Features ────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.feature {
  --h: var(--accent);
  padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, background-color .35s;
}
.feature:hover { border-color: color-mix(in srgb, var(--h) 60%, var(--border)); transform: translateY(-2px); }
.feature .ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px; font-size: 24px;
  color: var(--h); background: color-mix(in srgb, var(--h) 16%, transparent); border: 1px solid color-mix(in srgb, var(--h) 30%, transparent);
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--subtle); line-height: 1.6; }
.feature code { font-size: .92em; color: var(--teal); }

/* ── Themes ──────────────────────────────────────────────────────────── */
.theme-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.theme-tools .field { width: min(320px, 100%); }
.theme-tools .count { margin-left: auto; font: 400 14px var(--mono); color: var(--comment); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.tcard {
  position: relative; padding: 14px; border-radius: var(--r); cursor: pointer; text-align: left;
  border: 1px solid; font: 500 14px/1.3 var(--sans); transition: transform .15s, box-shadow .15s;
}
.tcard:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6); }
.tcard[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.tcard .bar { display: flex; gap: 4px; margin-bottom: 12px; }
.tcard .bar i { flex: 1; height: 6px; border-radius: 3px; }
.tcard .tn { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard small { display: block; margin-top: 2px; font: 400 12px var(--mono); opacity: .75; }
.tcard .tick { position: absolute; bottom: 12px; right: 12px; font-size: 16px; display: none; }
.tcard[aria-pressed="true"] .tick { display: block; }
.more { display: flex; justify-content: center; margin-top: 18px; }
.theme-note { margin-top: 18px; color: var(--comment); font-size: 15px; }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.shot {
  position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--base); cursor: zoom-in; padding: 0;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: var(--r);
  background: color-mix(in srgb, var(--crust) 75%, transparent); backdrop-filter: blur(8px);
  color: var(--bright); font: 500 13px/1.2 var(--sans);
}
.shot.wide { grid-column: span 6; aspect-ratio: 16 / 9; }
.shot.third { grid-column: span 2; aspect-ratio: 10 / 7; }
.walls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; }
.walls .shot { aspect-ratio: 16 / 10; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--crust) 86%, transparent); backdrop-filter: blur(10px); cursor: zoom-out;
}
.lightbox.open { display: grid; animation: pop .18s ease-out; }
.lightbox img { max-height: 88vh; width: auto; border-radius: var(--r-lg); border: 1px solid var(--border-hi); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.lightbox p { margin: 14px 0 0; text-align: center; color: var(--subtle); }

/* ── Install steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 22px; right: 22px; font: 700 44px/1 var(--sans); color: transparent;
  -webkit-text-stroke: 1px var(--border-hi); opacity: .9;
}
.step .ico { font-size: 26px; color: var(--accent); margin-bottom: 14px; display: block; }
.step:nth-child(2) .ico { color: var(--teal); }
.step:nth-child(3) .ico { color: var(--green); }
.step:nth-child(4) .ico { color: var(--yellow); }
.step:nth-child(5) .ico { color: var(--magenta); }
.step:nth-child(6) .ico { color: var(--red); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--subtle); font-size: 15.5px; }

/* ── The honest part ─────────────────────────────────────────────────── */
.honest { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.spec {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--crust) 55%, var(--base)); font: 400 15px/1.7 var(--mono);
}
.spec .titlebar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--comment); font-size: 13px; }
.spec .titlebar i { width: 11px; height: 11px; border-radius: 50%; }
.spec .titlebar i:nth-child(1) { background: var(--red); }
.spec .titlebar i:nth-child(2) { background: var(--yellow); }
.spec .titlebar i:nth-child(3) { background: var(--green); }
.spec .titlebar span { margin-left: 8px; }
.spec .body { padding: 18px 20px 20px; overflow-x: auto; }
.spec .cmd { color: var(--bright); }
.spec .cmd::before { content: "❯ "; color: var(--green); }
.spec table { border-collapse: collapse; margin: 10px 0 14px; }
.spec td { padding: 3px 0; vertical-align: top; }
.spec td:first-child { color: var(--accent); padding-right: 18px; white-space: nowrap; }
.spec td:nth-child(2) { color: var(--bright); padding-right: 18px; white-space: nowrap; }
.spec td:nth-child(3) { color: var(--comment); }
.spec td.ok { color: var(--green); }
.spec td.no { color: var(--red); }
.spec td.meh { color: var(--yellow); }
.verdict { color: var(--subtle); margin: 0; font: 400 16px/1.65 var(--sans); }
.verdict b { color: var(--bright); font-weight: 500; }
.honest-side { display: grid; gap: 18px; }
.panel { padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.panel h3 { font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.panel h3 .i { font-size: 22px; }
.panel p { color: var(--subtle); font-size: 15.5px; }
.panel p:last-child { margin-bottom: 0; }
.labels { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.label {
  padding: 6px 12px; border-radius: 999px; font: 400 14px/1.2 var(--mono);
  border: 1px dashed var(--border-hi); color: var(--fg); background: var(--field);
  transform: rotate(var(--tilt, 0deg)); transition: transform .2s;
}
.label:hover { transform: rotate(0deg) scale(1.06); border-color: var(--accent); }
.label::before { content: "✓ "; color: var(--green); }
.distros { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.distros a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r);
  background: var(--field); border: 1px solid var(--line); color: var(--bright); font-size: 14.5px; font-weight: 500;
}
.distros a:hover { border-color: var(--accent); }
.distros a .i { color: var(--comment); font-size: 13px; }

/* ── Download ────────────────────────────────────────────────────────── */
.dl {
  display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--border-hi);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--base)), color-mix(in srgb, var(--magenta) 10%, var(--base)));
}
.dl-main { padding: 40px; }
.dl-main h2 { font-size: clamp(28px, 3.6vw, 40px); }
.dl-main .ver { margin: 14px 0 26px; font: 400 15px/1.6 var(--mono); color: var(--subtle); }
.dl-main .ver b { color: var(--bright); font-weight: 400; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-soon { margin-top: 14px; font-size: 14px; color: var(--comment); }
.dl-soon[hidden] { display: none; }
.dl-check { margin-top: 26px; }
.dl-check p { margin: 0 0 8px; font-size: 14px; color: var(--comment); }
.req { padding: 40px; background: color-mix(in srgb, var(--crust) 40%, transparent); border-left: 1px solid var(--line); }
.req h3 { font-size: 17px; margin-bottom: 16px; }
.req ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.req li { display: flex; gap: 12px; font-size: 15px; color: var(--subtle); }
.req li .i { color: var(--teal); font-size: 20px; flex: none; }
.req li b { color: var(--bright); font-weight: 500; }

/* ── Code ────────────────────────────────────────────────────────────── */
pre {
  position: relative; margin: 0 0 1.2em; padding: 14px 16px; overflow-x: auto; border-radius: var(--r);
  background: var(--field); border: 1px solid var(--line); color: var(--fg); font-size: 14.5px; line-height: 1.6;
}
pre .cm { color: var(--comment); }
pre .pr { color: var(--green); user-select: none; }
.copy {
  position: absolute; top: 7px; right: 7px; display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--line); background: var(--base);
  color: var(--comment); font: 500 12px var(--sans); cursor: pointer; opacity: 0; transition: opacity .15s;
}
pre:hover .copy, .copy:focus-visible { opacity: 1; }
.copy:hover { color: var(--bright); border-color: var(--border-hi); }
.copy.done { color: var(--green); opacity: 1; }
:not(pre) > code {
  padding: .12em .38em; border-radius: 4px; font-size: .88em;
  background: color-mix(in srgb, var(--field) 80%, transparent); border: 1px solid var(--line); color: var(--teal);
  word-break: break-word;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--border-hi); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
  cursor: pointer; list-style: none; color: var(--bright); font-weight: 500; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--comment); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--accent); }
.faq details > div { padding: 0 22px 18px; color: var(--subtle); font-size: 16px; }
.faq details > div p:last-child { margin: 0; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { margin-top: 120px; padding: 48px 0 40px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--crust) 70%, transparent); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer p { color: var(--comment); font-size: 14.5px; margin: 12px 0 0; max-width: 420px; }
.footer h4 { font-size: 14px; color: var(--subtle); margin-bottom: 12px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer ul a { color: var(--comment); }
.footer ul a:hover { color: var(--bright); }
.footer .fine { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .fine .wave { height: 16px; gap: 5px; }
.footer .fine .wave i { width: 6px; height: 6px; }

/* ── Reveal on scroll ────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Manual ──────────────────────────────────────────────────────────── */
.doc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; padding-top: 40px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.toc .field { margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > ol > li { margin-bottom: 4px; }
.toc a { display: block; padding: 5px 10px; border-radius: var(--r); color: var(--subtle); font-size: 14.5px; line-height: 1.35; border-left: 2px solid transparent; }
.toc a:hover { color: var(--bright); background: var(--hover); }
.toc a.active { color: var(--bright); border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 0 var(--r) var(--r) 0; }
.toc > ol > li > a { font-weight: 500; color: var(--fg); }
.toc ol ol { margin: 2px 0 6px 10px; }
.toc ol ol a { font-size: 13.5px; padding: 3px 10px; }
.toc-toggle { display: none; }
.search-results { display: none; margin: -6px 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--base); overflow: hidden; }
.search-results.open { display: block; }
.search-results a { display: block; padding: 8px 12px; border-left: 0; border-radius: 0; color: var(--fg); }
.search-results a + a { border-top: 1px solid var(--line); }
.search-results a small { display: block; color: var(--comment); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results mark { background: color-mix(in srgb, var(--yellow) 35%, transparent); color: inherit; border-radius: 2px; }
.search-results .none { padding: 10px 12px; color: var(--comment); font-size: 14px; }

.prose { max-width: 800px; min-width: 0; }
.prose .intro { margin-bottom: 40px; }
.prose .intro h1 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -.03em; }
.prose .intro p { font-size: 19px; color: var(--subtle); margin: 14px 0 0; }
.prose h2 {
  font-size: 30px; margin: 72px 0 18px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.prose h2 .i { font-size: 28px; color: var(--accent); }
.prose h2 .num { font: 400 15px var(--mono); color: var(--comment); margin-left: auto; }
.prose h3 { font-size: 21px; margin: 40px 0 12px; }
.prose h4 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--fg); }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--bright); font-weight: 500; }
.prose a { border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.prose a:hover { border-bottom-color: var(--accent-hi); }
.prose h2 a, .prose h3 a { border: 0; color: inherit; }
.anchor { opacity: 0; margin-left: 6px; color: var(--muted) !important; font-weight: 400; transition: opacity .15s; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--r); }
.table-wrap table { margin: 0; }
.prose th { text-align: left; color: var(--bright); font-weight: 500; background: var(--header); }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { white-space: nowrap; }
.prose td.wrap-ok { white-space: normal; }
.callout { display: flex; gap: 14px; margin: 0 0 1.3em; padding: 16px 18px; border-radius: var(--r); border: 1px solid; font-size: 16px; }
.callout > .i { font-size: 22px; margin-top: 1px; flex: none; }
.callout p:last-child { margin: 0; }
.callout.note { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.callout.note > .i { color: var(--accent); }
.callout.tip { border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.callout.tip > .i { color: var(--green); }
.callout.warn { border-color: color-mix(in srgb, var(--yellow) 45%, transparent); background: color-mix(in srgb, var(--yellow) 8%, transparent); }
.callout.warn > .i { color: var(--yellow); }
.kb-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.kb-tools .field { flex: 1; min-width: 220px; }
.kb-group { margin-bottom: 26px; }
.kb-group h4 { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; color: var(--subtle); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.kb-group h4 .i { color: var(--accent); font-size: 18px; }
.kb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
.kb > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.kb > div[hidden] { display: none; }
.kb .keys { justify-content: flex-end; flex: none; }
.figure { margin: 0 0 1.4em; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.figure figcaption { padding: 10px 14px; font-size: 14px; color: var(--comment); background: var(--base); border-top: 1px solid var(--line); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 1.3em; font-size: 14.5px; }
.flow span { padding: 6px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--bright); }
.flow .i { color: var(--comment); }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.3em; }
.cards2 > div { padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.cards2 h4 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.cards2 h4 .i { color: var(--accent); }
.cards2 p { margin: 0; font-size: 15px; color: var(--subtle); }
.page-end { margin-top: 64px; padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); text-align: center; color: var(--subtle); }

/* ── Small screens ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .honest, .dl { grid-template-columns: 1fr; }
  .req { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .walls { grid-template-columns: repeat(3, 1fr); }
  .doc { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .toc { position: static; max-height: none; overflow: visible; padding: 0; margin-bottom: 8px; }
  .toc-toggle { display: flex; width: 100%; justify-content: space-between; }
  .toc nav { display: none; padding-top: 12px; }
  .toc.open nav { display: block; }
}
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 10px 16px 16px; background: var(--base); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-tools .nav-toggle { display: inline-grid; }
  .nav-tools { margin-left: auto; }
  .theme-btn .name { display: none; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-top: 80px; }
  .hero { padding-top: 40px; }
  .steps { grid-template-columns: 1fr; }
  .shot.third { grid-column: span 6; }
  .walls { grid-template-columns: repeat(2, 1fr); }
  .dl-main, .req { padding: 26px 22px; }
  .kb, .cards2 { grid-template-columns: 1fr; }
  .dwin.set { display: none; }
  .dwin.term { width: auto; right: .8em; font-size: 1.5em; }
  .dbar { font-size: 1.3em; }
  .dbar .right .i:nth-child(n+5), .dbar .mid span:last-child { display: none; }
  .fetch svg { display: none; }
  .theme-tools .count { margin-left: 0; width: 100%; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tcard { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
