/* Shared by index.html and faq.html: palette, header, buttons, footer. */
:root {
  color-scheme: dark;
  --text: #ecebe6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  /* the four bands of 4.7 kΩ ±5 %: yellow 4, violet 7, red ×100, gold ±5 % */
  --yellow: #f2c230;
  --violet: #7a3fb0;
  --red: #d6382f;
  --gold: #d7a63a;
  --ink-yellow: #f2c230;
  --ink-violet: #b88ce8;
  --ink-red: #f06b60;
  --ink-gold: #e2b75c;

  --bg: #121211;
  --panel: #1b1a18;
  --line: #2e2c28;
  --muted: #9b958a;
  --body: #d9c69f;

  --ui-bg: #0e1526;
  --ui-line: #25324c;
  --ui-text: #e6ecf5;
  --ui-muted: #8a96ab;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  font: 16px/1.55 var(--sans); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code, .mono { font-family: var(--mono); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink-gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 520px) { .wrap { padding: 0 18px; } }

.pill {
  display: inline-block; padding: 3px 7px 2px; border-radius: 5px; vertical-align: 1px;
  font: 700 10.5px/1.1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: #1a1408; background: var(--gold);
}

/* ---------- header ---------- */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.brand svg { width: 40px; height: 20px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav [aria-current="page"] { color: var(--text); }
@media (max-width: 520px) { .top nav { gap: 15px; } .top nav .gh { display: none; } }

/* ---------- buttons ---------- */
.install { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.dl {
  display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; font-weight: 650;
  padding: 12px 20px; border-radius: 10px; color: #1a1408; background: var(--gold);
  box-shadow: 0 10px 30px -12px rgba(215, 166, 58, .55);
}
.dl:hover { filter: brightness(1.08); }
.dl small { font-weight: 500; font-size: 12.5px; opacity: .72; }
.others { font-size: 13.5px; color: var(--muted); }
.others a { color: var(--body); text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 5; font: 12.5px/1.4 var(--mono); color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 18px; }
.foot a { text-decoration: none; margin-left: 16px; }
.foot a:first-child { margin-left: 0; }
.foot a:hover { color: var(--text); }
.bands-mini { display: inline-flex; gap: 3px; margin-right: 9px; vertical-align: -2px; }
.bands-mini i { display: block; width: 4px; height: 12px; border-radius: 1px; }
