:root {
  --bg: #fafaf8;
  --text: #1c1c1a;
  --muted: #5f5f5a;
  --accent: #b5541c;
  --border: #e3e2dc;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --text: #ecece8;
    --muted: #a3a39c;
    --accent: #e8874e;
    --border: #2e2e2a;
    --card: #1e1e1b;
  }
}

* { box-sizing: border-box; }

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

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

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

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

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
}

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

main { padding: 48px 0 64px; }

h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.3rem;
  margin: 40px 0 8px;
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 4px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 32px;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 16px 0;
}

.card h2 { margin-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 12px 0;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th { color: var(--muted); font-weight: 600; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .wrap {
  padding-top: 20px;
  padding-bottom: 28px;
}

footer.site a { color: var(--muted); }

@media (max-width: 520px) {
  h1 { font-size: 1.8rem; }
  nav a { margin-left: 12px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: none; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  td:first-child { font-weight: 600; }
}

[hidden] { display: none !important; }

.support-form label {
  display: block;
  font-weight: 600;
  margin: 16px 0 4px;
}

.support-form input,
.support-form select,
.support-form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--muted);
  border-radius: 6px;
  font: inherit;
}

.support-form textarea { resize: vertical; }

.support-form button {
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
