:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  --background: #f7f8fa;
  --surface: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --border: #dfe1e5;
  --accent: #3157a4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #15171a;
    --surface: #202327;
    --text: #f1f3f4;
    --muted: #bdc1c6;
    --border: #3c4043;
    --accent: #8ab4f8;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}

main,
header,
footer {
  width: min(100% - 32px, 800px);
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 16px;
}

main {
  padding: 28px clamp(20px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

footer {
  padding-block: 24px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 12px 0 0;
}

.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.footer-navigation a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.3;
}

h2 {
  margin-top: 2.2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
}

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

.button {
  display: inline-block;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #15171a;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 24px;
}

dt {
  margin-top: 1.2rem;
  font-weight: 700;
}

dd {
  margin-left: 0;
}

.language-switcher {
  white-space: nowrap;
}

.updated-at,
.note {
  color: var(--muted);
}

ul {
  padding-left: 1.4rem;
}

@media (max-width: 520px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    border-radius: 12px;
  }
}
