/* ISPConfig website ------------------------------------------------------
   Theme tokens first, then base, layout, components, pages.
   Dark is the default theme, light is set via html[data-theme="light"].  */

@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --font: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --red: #d0171f;
  --red-hover: #e1262e;
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121416;
  --bg-2: #16191b;
  --surface: #1b1f22;
  --surface-2: #22272b;
  --line: #2a3035;
  --line-strong: #3a4147;
  --text: #e8eaeb;
  --text-2: #b6bcc1;
  --muted: #858d94;
  --link: #ff7e83;
  --accent-soft: rgba(208, 23, 31, .14);
  --ok: #4cc38a;
  --ok-soft: rgba(76, 195, 138, .12);
  --warn: #e7b04a;
  --warn-soft: rgba(231, 176, 74, .12);
  --code-bg: #0d0f10;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 40px -24px rgba(0, 0, 0, .8);
  --shot-border: #2e3439;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f4;
  --bg-2: #efefec;
  --surface: #ffffff;
  --surface-2: #f2f2ef;
  --line: #e0e0db;
  --line-strong: #c9c9c3;
  --text: #16181a;
  --text-2: #3d4247;
  --muted: #666d73;
  --link: #b3141b;
  --accent-soft: rgba(208, 23, 31, .08);
  --ok: #1f8a57;
  --ok-soft: rgba(31, 138, 87, .1);
  --warn: #9a6a09;
  --warn-soft: rgba(154, 106, 9, .1);
  --code-bg: #1a1d20;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -26px rgba(0, 0, 0, .35);
  --shot-border: #d6d6d0;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

code, pre, kbd { font-family: var(--mono); font-size: .9em; }
:not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .05em .35em;
  font-size: .85em;
  word-break: break-word;
}
pre {
  background: var(--code-bg);
  color: #e4e6e8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  line-height: 1.55;
  font-size: .86rem;
  position: relative;
  tab-size: 4;
}

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }

::selection { background: color-mix(in srgb, var(--red) 45%, transparent); color: #fff; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: .5rem .8rem; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 550; font-size: .95rem; line-height: 1;
  padding: .8rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--text-2); background: var(--surface-2); }
.btn--sm { padding: .55rem .8rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line);
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }

.arrow-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 550; text-decoration: none; color: var(--text);
}
.arrow-link .icon { transition: transform .2s var(--ease); color: var(--red); }
.arrow-link:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.site-header__tools { display: flex; gap: .5rem; margin-left: auto; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 34px; height: 34px; }
.brand__word { font-size: 1.28rem; letter-spacing: .01em; font-weight: 300; color: var(--text-2); line-height: 1; }
.brand__word b { font-weight: 700; color: var(--text); }

.nav { display: flex; align-items: center; gap: 1rem; flex: 1; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .5rem .7rem; border-radius: var(--radius);
  color: var(--text-2); text-decoration: none; font-size: .94rem; font-weight: 500;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__link:hover, .nav__group:hover > .nav__link { color: var(--text); background: var(--surface-2); }
.nav__link[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); border-radius: var(--radius) var(--radius) 0 0; }
.nav__cta { margin-left: auto; }

.nav__group { position: relative; }
.nav__sub {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav__sub::before { content: ""; position: absolute; inset: -8px 0 auto; height: 8px; }
.nav__group:hover .nav__sub,
.nav__group:focus-within .nav__sub,
.nav__toggle[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: .45rem .7rem; border-radius: 4px; color: var(--text-2); text-decoration: none; font-size: .92rem; }
.nav__sub a:hover { background: var(--surface-2); color: var(--text); }
.nav__sub a[aria-current] { color: var(--text); }
.nav__toggle .icon { transition: transform .15s; }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.theme-toggle__dark, .theme-toggle__light { display: inline-grid; }
[data-theme="dark"] .theme-toggle__dark { display: none; }
[data-theme="light"] .theme-toggle__light { display: none; }

.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-grid; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 1rem var(--gutter) 2rem;
    overflow-y: auto;
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: .95rem .25rem; font-size: 1.05rem; border-radius: 0; }
  .nav__link:hover, .nav__group:hover > .nav__link { background: none; }
  .nav__link[aria-current] { box-shadow: inset 3px 0 0 var(--red); padding-left: .8rem; border-radius: 0; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; background: none; padding: 0 0 .8rem .6rem; display: none;
  }
  .nav__sub::before { display: none; }
  .nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
  .nav__group:hover .nav__sub { opacity: 1; }
  .nav__cta { margin: 1.5rem 0 0; }
}

/* ---------------------------------------------------------------- page head */

.page-head {
  padding: clamp(3rem, 7vw, 5.25rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background: var(--bg-2);
  position: relative;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 65%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 65%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .75) 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .75) 30%, transparent 100%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: .35em; max-width: 24ch; }
.page-head .lead { max-width: 64ch; margin: 0; }
@media (max-width: 600px) { .page-head h1 { max-width: none; } }

.kicker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--red); }

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--text-2); line-height: 1.55; }

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 640px; margin-bottom: 2.5rem; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; }
.section__head--row > div { max-width: 640px; }
.section__head p { color: var(--text-2); margin: 0; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.split--wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.split--aside { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 860px) {
  .split, .split--wide-left, .split--aside { grid-template-columns: minmax(0, 1fr); }
}

.stack > * + * { margin-top: 2.5rem; }

/* ---------------------------------------------------------------- home: hero */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 0; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: end; }
.hero__copy { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.3rem); line-height: 1.05; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--text-2); font-weight: 400; }
.hero .lead { margin-bottom: 2rem; max-width: 34em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; font-size: .875rem; color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }

.release-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .85rem; color: var(--text-2); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .8rem .3rem .35rem; margin-bottom: 1.6rem;
  background: var(--surface);
}
.release-pill b { font-family: var(--mono); font-weight: 500; font-size: .78rem; background: var(--accent-soft); color: var(--link); padding: .15rem .5rem; border-radius: 999px; }
.release-pill:hover { border-color: var(--line-strong); color: var(--text); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); display: inline-block; }

.hero__visual { position: relative; margin-right: calc(-1 * var(--gutter) - 6vw); }

.window {
  border: 1px solid var(--shot-border);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; gap: .9rem;
  height: 38px; padding: 0 .9rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window__url {
  flex: 1; max-width: 340px;
  font-family: var(--mono); font-size: .74rem; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: .2rem .6rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window img { width: 100%; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding-bottom: 0; }
  .hero__visual { margin-right: calc(-1 * var(--gutter)); }
}

/* ---------------------------------------------------------------- facts strip */

.facts-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts-strip > div { padding: 1.6rem var(--gutter) 1.6rem 0; }
.facts-strip > div + div { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.facts-strip strong { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.facts-strip span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- feature list */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.features > div { padding: 1.6rem 1.5rem 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; margin-bottom: .5rem; }
.features h3 .icon { color: var(--red); width: 22px; height: 22px; }
.features p { color: var(--text-2); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- multiserver overview */

.fleet-layout { align-items: center; }
.fleet-copy h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 1.25rem; }
.fleet-copy > p:not(.kicker) { color: var(--text-2); }
.fleet-copy .lead { margin-bottom: 1rem; }
.fleet-notes { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; color: var(--muted); font-size: .78rem; }
.fleet-notes li { display: inline-flex; align-items: center; gap: .4rem; }
.fleet-notes .icon { width: 15px; height: 15px; color: var(--red); }
.server-map { --node-gap: .65rem; margin: 0; min-width: 0; width: 100%; max-width: 600px; justify-self: center; }
.server-map__management { display: flex; align-items: center; justify-content: center; gap: 1rem; max-width: 290px; margin-inline: auto; padding: 1.3rem; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.server-map__management strong { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.server-map__management span { display: block; font-size: .8rem; color: var(--text-2); }
.server-map__branches { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--node-gap); height: 64px; }
.server-map__branches::before { content: ""; position: absolute; top: 0; left: 50%; height: 32px; border-left: 1px solid var(--line-strong); }
.server-map__branches::after { content: ""; position: absolute; top: 32px; left: calc((100% - 3 * var(--node-gap)) / 8); right: calc((100% - 3 * var(--node-gap)) / 8); border-top: 1px solid var(--line-strong); }
.server-map__branches span { justify-self: center; align-self: end; height: 32px; border-left: 1px solid var(--line-strong); }
.server-map__nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--node-gap); list-style: none; padding: 0; margin: 0; }
.server-map__nodes li { display: flex; flex-direction: column; align-items: center; padding: 1.1rem .3rem .9rem; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.server-map__nodes .icon { width: 24px; height: 24px; margin-bottom: .6rem; color: var(--text-2); }
.server-map__nodes strong { font-size: .85rem; font-weight: 500; }
.server-map__nodes span { margin-top: .25rem; font-size: .64rem; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.server-map figcaption { margin-top: 1.2rem; font-size: .7rem; text-align: center; color: var(--muted); }
@media (max-width: 480px) {
  .server-map { --node-gap: .4rem; }
  .server-map__management { max-width: 255px; padding: 1.1rem; }
  .server-map__nodes li { padding: .9rem .2rem .7rem; }
  .server-map__nodes .icon { width: 20px; height: 20px; }
  .server-map__nodes strong { font-size: .7rem; }
  .server-map__nodes span { font-size: .56rem; }
  .server-map figcaption { font-size: .63rem; }
}

/* ---------------------------------------------------------------- terminal */

.terminal {
  background: var(--code-bg); color: #d8dadc;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  font-family: var(--mono); font-size: .86rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.terminal__bar { display: flex; justify-content: space-between; align-items: center; padding: .55rem .9rem; border-bottom: 1px solid #25292d; color: #7d858c; font-size: .75rem; }
.terminal__body { padding: 1rem 1.1rem 1.2rem; line-height: 1.7; overflow-x: auto; }
.terminal__body p { margin: 0; white-space: pre; }
.terminal .c { color: #737b82; }
.terminal .p { color: #ff7a7f; user-select: none; }
.terminal .o { color: #9fb6a8; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: .7rem .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--text-2); background: var(--surface-2); font-size: .82rem; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
td.mono, .mono { font-family: var(--mono); font-size: .86rem; }

/* ---------------------------------------------------------------- badges, tags, chips */

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 4px;
  border: 1px solid var(--line-strong); color: var(--text-2);
}
.badge--available { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
.badge--beta { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.badge--planned { color: var(--muted); }
.badge--recommended { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }

.tag {
  font-size: .75rem; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: .1rem .55rem;
}
a.tag:hover { color: var(--text); border-color: var(--line-strong); }
.tag--security { color: var(--link); border-color: color-mix(in srgb, var(--red) 35%, transparent); }

.chip-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-nav a {
  font-size: .88rem; text-decoration: none; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem;
}
.chip-nav a:hover { border-color: var(--line-strong); color: var(--text); }
.chip-nav a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------------------------------------------------------------- lists */

.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .4rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 10px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.ticks--cols { columns: 2; column-gap: 2rem; }
.ticks--cols li { break-inside: avoid; }
@media (max-width: 580px) { .ticks--cols { columns: 1; } }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; text-decoration: none; color: var(--text); }
.link-list a:hover { color: var(--link); }
.link-list--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.link-list--cards li + li { border-top: 0; }
.link-list--cards a {
  flex-direction: column; justify-content: flex-start; gap: .3rem; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem;
  background: var(--surface);
}
.link-list--cards a:hover { border-color: var(--line-strong); color: var(--text); }
.link-list--cards span { color: var(--text-2); font-size: .92rem; }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list a {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none;
}
.news-list li:first-child a { border-top: 1px solid var(--line); }
.news-list time { color: var(--muted); font-family: var(--mono); font-size: .8rem; padding-top: .15rem; }
.news-list a:hover span { color: var(--link); }
@media (max-width: 480px) { .news-list a { grid-template-columns: minmax(0, 1fr); gap: .2rem; } }

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.card h2, .card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card--flat { background: transparent; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.card__icon { color: var(--red); margin-bottom: .9rem; }
.card__icon .icon { width: 26px; height: 26px; }

.aside-card { border-left: 2px solid var(--red); padding: .2rem 0 .2rem 1.2rem; }
.aside-card h3 { margin-bottom: .3rem; }
.aside-card p { color: var(--text-2); font-size: .95rem; }
.aside-card a { display: inline-flex; align-items: center; gap: .3rem; }

.notice {
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  background: var(--warn-soft); color: var(--text);
  border-radius: var(--radius); padding: .8rem 1rem; font-size: .93rem;
}
.notice--info { border-color: var(--line-strong); background: var(--surface-2); }

.disclosure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.disclosure + .disclosure { margin-top: .6rem; }
.disclosure summary {
  cursor: pointer; padding: .85rem 1rem; font-weight: 550; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-family: var(--mono); color: var(--muted); margin-left: auto; }
.disclosure[open] summary::after { content: "–"; }
.disclosure summary .muted { font-weight: 400; font-size: .88rem; }
.disclosure > :not(summary) { padding: 0 1rem 1rem; margin: 0; }
.disclosure .plain-list li { font-size: .93rem; }

/* ---------------------------------------------------------------- products */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.product {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.2rem;
  transition: border-color .15s;
}
.product:hover { border-color: var(--line-strong); }
.product__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.product__cat { font-size: .8rem; color: var(--muted); }
.product h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.product h3 a { color: var(--text); text-decoration: none; }
.product h3 a::after { content: ""; position: absolute; inset: 0; }
.product { position: relative; }
.product > p { color: var(--text-2); font-size: .95rem; }
.product .ticks { font-size: .9rem; color: var(--text-2); }
.product__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.product__foot .btn { position: relative; z-index: 1; }
.product__price { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.product__price span { display: block; font-size: 1.25rem; font-weight: 600; color: var(--text); }
.product__price--none { font-size: .88rem; }

.buy-box {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.buy-box__title { font-size: 1.25rem; margin: .9rem 0 .3rem; }
.buy-box__price { margin: 0; color: var(--muted); font-size: .9rem; }
.buy-box__price span { font-size: 2.2rem; font-weight: 600; color: var(--text); letter-spacing: -.02em; margin-right: .4rem; }
.buy-box__price--soon { font-size: 1.3rem; color: var(--text); font-weight: 600; }
.buy-box__note { color: var(--muted); font-size: .85rem; margin-bottom: 1.2rem; }
.buy-box__small { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; }
.facts { margin: 1.3rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
@media (max-width: 860px) { .buy-box { position: static; } }

/* ---------------------------------------------------------------- prose (blog posts, legal) */

.prose { font-size: 1.04rem; line-height: 1.72; color: var(--text-2); }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: 1.5rem; color: var(--text); margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.17rem; color: var(--text); margin: 1.9em 0 .5em; }
.prose h4 { font-size: 1rem; color: var(--text); margin: 1.6em 0 .4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose li { margin-bottom: .35em; }
.prose li > ul { margin: .35em 0 0; }
.prose img { border: 1px solid var(--shot-border); border-radius: var(--radius); margin: 1.5em 0; }
.prose p > a:only-child > img { margin: .5em 0; }
.prose pre { margin: 1.3em 0; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2rem; border-left: 2px solid var(--line-strong); }
.prose--legal { max-width: 760px; }
.prose--legal h2 { font-size: 1.3rem; }

.page-body { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem); }

/* ---------------------------------------------------------------- blog */

.blog-layout { padding-block: 2.5rem 4rem; max-width: calc(900px + 2 * var(--gutter)); }
.blog-tools { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }
.blog-search input {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .75rem .95rem;
}
.blog-search input::placeholder { color: var(--muted); }
.blog-search input:focus { outline: 2px solid var(--link); outline-offset: 1px; }

.post-row {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.post-row:first-child { border-top: 0; padding-top: 0; }
.post-row time { font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-top: .35rem; }
.post-row h2 { font-size: 1.22rem; margin-bottom: .35rem; }
.post-row h2 a { color: var(--text); text-decoration: none; }
.post-row h2 a:hover { color: var(--link); }
.post-row p { color: var(--text-2); font-size: .95rem; margin-bottom: .6rem; }
.post-row__meta { display: flex; gap: .4rem; flex-wrap: wrap; }
@media (max-width: 600px) { .post-row { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager__pages { display: flex; gap: .25rem; flex-wrap: wrap; }
.pager__pages a, .pager__pages span {
  min-width: 2.2rem; height: 2.2rem; display: inline-grid; place-items: center;
  border-radius: var(--radius); text-decoration: none; color: var(--text-2); font-size: .9rem; font-family: var(--mono);
}
.pager__pages a:hover { background: var(--surface-2); color: var(--text); }
.pager__pages [aria-current] { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.pager__gap { color: var(--muted); }
.pager__step { font-weight: 550; text-decoration: none; color: var(--text); }
.pager__step:hover { color: var(--link); }

.post__header { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 1.5rem; }
.post__header h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin: .8rem 0 1rem; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--muted); font-size: .88rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.post__meta time { font-family: var(--mono); font-size: .82rem; }
.post { padding-bottom: 4rem; }
.post .notice { margin-bottom: 2rem; }
.back-link { font-size: .88rem; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.back-link::before { content: "←"; }
.back-link:hover { color: var(--text); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; line-height: 1.4; }
.post-nav a span { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-bottom: .25rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.post-nav a:hover { color: var(--link); }
.post-nav__next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { text-align: left; } }

/* ---------------------------------------------------------------- code copy button */

.copy-btn {
  position: absolute; top: .5rem; right: .5rem;
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 4px;
  background: #1f2326; color: #9aa2a8; border: 1px solid #30363b; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
pre:hover .copy-btn, .copy-btn:focus-visible, .terminal:hover .copy-btn { opacity: 1; }
.copy-btn:hover { color: #fff; }
.copy-btn.is-done { color: var(--ok); opacity: 1; }
.terminal { position: relative; }
.terminal .copy-btn { top: .35rem; right: .45rem; }

/* ---------------------------------------------------------------- screenshots + lightbox */

.shot { margin: 0; }
.shot a { display: block; border: 1px solid var(--shot-border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.shot img { width: 100%; transition: transform .4s var(--ease); }
.shot a:hover img { transform: scale(1.015); }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem 1.5rem; }
.shot--hero { margin-bottom: 3rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(8, 9, 10, .88); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; border-radius: var(--radius); }
.lightbox p { color: #c8cdd1; text-align: center; margin: .8rem 0 0; font-size: .9rem; }
.lightbox button { position: fixed; top: 1rem; right: 1rem; color: #fff; border-color: #444; }

/* ---------------------------------------------------------------- misc page blocks */

.distro-table td:first-child { font-weight: 550; color: var(--text); white-space: nowrap; }
.stat-inline { font-family: var(--mono); font-size: .85rem; color: var(--muted); }

.cta-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 55%),
    var(--surface);
}
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: var(--text-2); }
@media (max-width: 700px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

.partner { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.partner img { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.partner h3 { margin-bottom: .2rem; }
.partner h3 + p { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
@media (max-width: 520px) { .partner { grid-template-columns: 80px minmax(0, 1fr); gap: 1rem; } }

.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.creds .card { padding: 1.2rem 1.3rem; }
.creds dl { margin: .6rem 0 0; font-family: var(--mono); font-size: .88rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.creds dt { color: var(--muted); }
.creds dd { margin: 0; color: var(--text); }

.toc-cols { columns: 2; column-gap: 2.5rem; font-size: .92rem; }
.toc-cols li { break-inside: avoid; }
@media (max-width: 640px) { .toc-cols { columns: 1; } }

.manual-intro { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; align-items: start; }
.manual-edition { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.3rem; border: 1px solid var(--line-strong); border-left: 4px solid var(--red); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.manual-edition__brand { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; }
.manual-edition__version { display: block; font-size: 3.4rem; font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.manual-edition strong { display: block; margin-top: .4rem; font-size: 1.6rem; line-height: 1.2; }
.manual-edition p { margin: 0; color: var(--text-2); font-size: .78rem; line-height: 1.5; }
.manual-edition__format { font-family: var(--mono); font-size: .65rem; color: var(--muted); }
@media (max-width: 600px) {
  .manual-intro { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .manual-edition { max-width: 200px; }
}

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3.5rem 0 2rem; font-size: .92rem; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 3rem; }
.site-footer__about p { color: var(--muted); max-width: 30ch; margin: 1rem 0 0; }
.site-footer__release { display: flex; align-items: center; gap: .6rem; }
.site-footer__release a { color: var(--text); font-family: var(--mono); font-size: .85rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.site-footer h2 { font-size: .78rem; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer__bottom li { margin: 0; }
.site-footer__bottom a { display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- 404 */

.not-found { padding: clamp(4rem, 12vw, 8rem) 0; }
.not-found code { font-size: 1rem; }

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

@media print {
  .site-header, .site-footer, .copy-btn, .post-nav { display: none; }
  body { background: #fff; color: #000; }
}

.h3 { font-size: 1.15rem; }
[data-theme="dark"] .window img, [data-theme="dark"] .shot img, [data-theme="dark"] .prose img { filter: brightness(.9); }
.terminal { align-self: start; }
/* backdrop-filter would make the header the containing block of the fixed mobile menu */
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
