:root {
  --fg: #1a1a1a;
  --fg-muted: #555;
  --bg: #ffffff;
  --bg-elev: #f5f5f7;
  --accent: #2666e0;
  --border: #e5e5e7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f5f5f7;
    --fg-muted: #a8a8a8;
    --bg: #0f1115;
    --bg-elev: #1a1d24;
    --accent: #7aa8ff;
    --border: #2a2e36;
  }
}

* { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

header.site {
  text-align: center;
  margin-bottom: 48px;
}

.cta {
  text-align: center;
  margin-top: 32px;
}

/* The store badge is an image link. Cancel the global underline-on-hover and
   instead show an outline that hugs the badge on hover and keyboard focus. */
.cta a {
  display: inline-block;
  line-height: 0;
  border-bottom: none;
  border-radius: 8px;
  outline-offset: 4px;
}

.cta a img {
  display: block;
}

.cta a:hover,
.cta a:focus-visible {
  outline: 2px solid var(--accent);
}

.cta a:focus:not(:focus-visible) {
  outline: none;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 22%;
  margin-bottom: 16px;
}

header.site h1 {
  font-size: 32px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

header.site .tagline {
  color: var(--fg-muted);
  margin: 0;
  font-size: 17px;
}

h1, h2, h3 {
  letter-spacing: -0.01em;
}

h1.page-title {
  font-size: 28px;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--fg);
}

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

p.muted, .updated {
  color: var(--fg-muted);
  font-size: 14px;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

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

th {
  background: var(--bg-elev);
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-elev);
  padding: 1px 6px;
  border-radius: 4px;
}

.lang-switch {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  font-size: 14px;
}

.lang-switch .active {
  color: var(--fg);
  font-weight: 600;
  border-bottom: none;
}

footer.site {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  font-size: 14px;
  color: var(--fg-muted);
}

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

footer.site a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
