:root {
  color-scheme: light dark;
  font: 100%/1.6 system-ui, sans-serif;
}

body {
  box-sizing: border-box;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  background: Canvas;
  color: CanvasText;
}

h1, h2 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { margin-top: 2rem; }
code { overflow-wrap: anywhere; }
footer { border-top: 1px solid GrayText; margin-top: 2rem; padding-top: 1rem; }

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

.language-picker {
  display: flex;
  gap: 0.25rem;
}

.language-picker button {
  font: inherit;
  color: inherit;
  min-height: 2.5rem;
  min-width: 2.75rem;
  border: 1px solid GrayText;
  border-radius: 0.375rem;
  background: Canvas;
  cursor: pointer;
}

.language-picker button[aria-pressed="true"] {
  background: CanvasText;
  color: Canvas;
}
