:root {
  color-scheme: light dark;
  --text: #1d1d1f;
  --muted: #555b61;
  --bg: #ffffff;
  --link: #0b5cad;
  --rule: #d9dde1;
  --focus: #b35c00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8eaed;
    --muted: #b1b7bd;
    --bg: #15171a;
    --link: #8cc4ff;
    --rule: #3a3f45;
    --focus: #ffb35c;
  }
}

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

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 1.5rem 1rem 3rem;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  /* Long URLs and unbroken strings must not widen the page on phones. */
  overflow-wrap: anywhere;
}

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

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

.skip-link {
  position: absolute;
  left: -999rem;
}

.skip-link:focus {
  position: static;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.site-header ul,
.products,
.languages {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header ul {
  display: flex;
  gap: 1rem;
}

/* A taller tap area for the header links on phones. */
.site-header ul a {
  display: inline-block;
  padding: 0.5rem 0;
}

main {
  padding: 1.5rem 0;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.4;
}

.lead {
  color: var(--muted);
}

.products li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.products p {
  margin: 0.25rem 0 0;
}

.languages li {
  margin: 0.75rem 0;
  font-size: 1.25rem;
}

/* The root chooser is the site's only entry point, so its links need a comfortable tap area. */
.languages a {
  display: inline-block;
  padding: 0.5rem 0;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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