:root {
  --bg: #0d0b12;
  --text: #d8cfe6;
  --muted: #8e839f;
  --link: #b388ff;
  --accent: #d6a4ff;
  --rule: #6d3fc0;
}

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

html {
  font-family: "Fantasque Sans Mono", "JetBrains Mono", "Fira Code", monospace;
  font-size: 18px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  max-width: 768px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 16px;
  line-height: 1.5;
}

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

a:hover:not(#top),
a:active:not(#top) {
  color: var(--bg);
  background-color: var(--link);
}

h1 {
  font-size: 2rem;
  margin: 0.25rem 0 1rem;
}

h2,
h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.25rem;
}

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

h2::before {
  content: "# ";
  color: var(--rule);
}

#email {
  cursor: pointer;
  text-decoration: underline;
}

#top {
  color: var(--accent);
  text-decoration: none;
}

.nav {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

p,
ul,
hr {
  margin: 12px 0;
}

p + p {
  margin-top: 24px;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
}

ul {
  padding-left: 1.5rem;
}

li {
  list-style-type: "> ";
}

li::marker {
  color: var(--rule);
}

li i {
  color: var(--muted);
}

.columns {
  column-count: 2;
}

.posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 12px 0;
}

.posters a:hover:not(#top),
.posters a:active:not(#top) {
  background-color: transparent;
}

.posters img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.posters img:hover {
  border-color: var(--link);
}

@media (max-width: 600px) {
  .posters {
    grid-template-columns: 1fr;
  }
}

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