:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --panel: #17171b;
  --text: #f5f5f7;
  --muted: #b9b9c2;
  --accent: #f28c28;
  --line: #2b2b31;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

header,
main,
footer {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding-block: 28px;
  padding-inline-start: 0;
  padding-inline-end: 170px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: url('/favicon.png') center / contain no-repeat;
  font-size: 0;
  line-height: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a[href='/'] {
  order: -2;
}

nav a[href='/install/'] {
  order: -1;
}

nav a:hover {
  color: var(--text);
}

main {
  padding: 56px 0 72px;
}

.language-switch {
  position: absolute;
  inset-block-start: 28px;
  inset-inline-end: max(16px, calc((100% - 760px) / 2));
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.language-switch button {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.language-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 42px;
  font-size: 1.35rem;
}

p,
li {
  color: var(--muted);
}

.lead {
  max-width: 680px;
  font-size: 1.15rem;
}

.card {
  margin-top: 32px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card h2:first-child {
  margin-top: 0;
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  color: #111;
  background: var(--accent);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.updated {
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    padding-inline-end: 0;
  }
  main {
    padding-top: 42px;
  }
}
