:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #555555;
  --link: #0000ee;
  --link-visited: #551a8b;
}

html.dark {
  --bg: #111111;
  --fg: #e5e5e5;
  --muted: #999999;
  --link: #6ea8fe;
  --link-visited: #b197fc;
}

body {
  font-family: sans-serif;
  max-width: 40rem;
  margin: 2rem auto;
  padding: 0 1rem;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

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

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

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: -2px;
}

.flag-icon {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}

.tech-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  vertical-align: middle;
}

.tech-icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.text-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
}

footer {
  margin-top: 2rem;
}

footer img {
  max-width: 100%;
  height: auto;
}
