/* The site's one stylesheet (lane 24b): system fonts, no images, WCAG AA contrast. */

:root {
  --text: #1c1c1e;
  --muted: #4a4a50;
  --accent: #0b5cad;
  --surface: #ffffff;
  --panel: #f2f5f9;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

/* A class's display never shows what the script keeps hidden. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  font:
    1rem/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

header,
main,
footer {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

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

main {
  flex: 1;
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 1.5rem 0 1rem;
}

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

button {
  font: inherit;
  color: var(--accent);
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  min-height: 44px;
  cursor: pointer;
}

button[aria-pressed='true'],
button[data-copy] {
  color: var(--surface);
  background: var(--accent);
}

.languages {
  display: flex;
  gap: 0.5rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -100vw;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem;
}

.hint {
  font-weight: 600;
}

.badges {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--panel);
  color: var(--muted);
}

footer {
  color: var(--muted);
  font-size: 0.875rem;
}
