/* Neutral colors that pass the WCAG AA contrast check on white. */
:root {
  --text: #1a1a1a;
  --muted: #4a4a4a;
  --border: #c4c4c4;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --error: #b00020;
  --surface: #f2f4f7;
  --background: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
}

.page,
.page-header {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.page {
  padding-bottom: 3rem;
}

.page-header {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.75rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0.75rem 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1.5rem 0 0.5rem;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.language-switch {
  display: flex;
  gap: 0.25rem;
}

.language-switch button {
  font: inherit;
  min-height: 2.75rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--background);
  color: var(--text);
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}
