:root {
  --bg: #2f6b45;
  --surface: #285d3b;
  --text: #f4f1e8;
  --muted: #d6e5da;
  --accent: #f4f1e8;
  --accent-soft: rgba(244, 241, 232, 0.14);
  --border: rgba(244, 241, 232, 0.22);
  --max: 42rem;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13241a;
    --surface: #1a3022;
    --text: #e6ece7;
    --muted: #a9c2b1;
    --accent: #9ad4b0;
    --accent-soft: rgba(154, 212, 176, 0.14);
    --border: rgba(230, 236, 231, 0.14);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Main */
main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero svg {
  width: 4.5rem;
  height: 4.5rem;
  color: var(--accent);
}

.hero h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 auto;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.card {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

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

/* Long-form pages (privacy, support) */
.prose h1 {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
}

.prose .updated {
  color: var(--muted);
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

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

th {
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

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

.contact {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}
