/*
 * Single stylesheet for the whole site. Every page links it, so the shared
 * header/footer markup that each page duplicates still has one source of truth
 * for the styling.
 */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e3e6ea;
  --text: #14181f;
  --text-muted: #5c6673;
  --accent: #1f6feb;
  --accent-soft: #eaf1fe;
  --radius: 12px;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --border: #272d36;
    --text: #e8ebef;
    --text-muted: #99a2ae;
    --accent: #6ea8ff;
    --accent-soft: #1b2735;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* ---------- layout ---------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  color: var(--text);
  margin-right: auto;
}

.brand img {
  width: 26px;
  height: 26px;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
}

main {
  padding: 40px 0 8px;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .nav {
  margin-bottom: 12px;
}

.site-footer p {
  margin: 4px 0;
}

/* ---------- typography ---------- */

h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 22px;
  font-weight: 650;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 28px 0 6px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.lead {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.meta {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.kbd-path {
  white-space: nowrap;
  font-weight: 600;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-accent {
  background: var(--accent-soft);
  border-color: transparent;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 10px;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-list strong {
  display: block;
  font-weight: 650;
}

.contact-list span {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- faq ---------- */

.faq h3 {
  margin-top: 32px;
}

.faq h3:first-of-type {
  margin-top: 16px;
}

/* ---------- narrow screens ---------- */

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 27px;
  }

  main {
    padding-top: 28px;
  }

  .lead {
    font-size: 17px;
  }
}
