:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --font-serif: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
  html {
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  padding: 2rem 1rem;
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-serif);
  line-height: 1.55;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--font-mono);
}

/* base-header: site-wide nav, ported from frontend/src/components/Header.module.css */
.base-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 74rem;
  padding-bottom: 1rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.base-header__brand {
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
}

.base-header__groups {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.base-header__countries {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

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

.base-header__country-active {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.base-header__country-inactive {
  opacity: 0.55;
}

.base-header__badge {
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: 1rem;
  font-size: 0.7rem;
  vertical-align: middle;
}

.base-header__nav {
  display: flex;
  gap: 1.25rem;
}

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

.base-header__nav a:hover,
.base-header__nav a--active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.base-header__nav-active {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

@media (max-width: 40rem) {
  .base-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .base-header__groups {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  .base-header__nav {
    gap: 0.75rem;
    font-size: 0.86rem;
  }
}
