:root {
  color-scheme: dark;
  --bg: #333;
  --text: #f7f7f7;
  --muted: #aaa;
  --link: #0097fc;

  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.55 system-ui, sans-serif;
}

/* Crossfade the whole page when switching between the SFW and NSFW pages. */
@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 0.4s;
}

body {
  margin: 0 auto;
  max-width: 1080px;
  padding: 1rem 1rem 3rem;
}

article,
footer {
  max-width: 68ch;
}

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

nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a[aria-current] {
  color: var(--text);
  text-decoration: underline 2px;
  text-underline-offset: 0.35em;
}

img {
  background: #a9cbe0; /* the reference sheet's own background */
  display: block;
  height: auto;
  max-width: 100%;
}

table {
  border-spacing: 0;
  margin: 1.25rem 0;
}

th {
  color: var(--muted);
  font-weight: normal;
  padding: 0.1rem 1.5rem 0.1rem 0;
  text-align: left;
}

h1,
h2 {
  font-size: 1rem;
  margin: 1.75rem 0 0.25rem;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

footer {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 3rem;
}
