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

/* Base */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  padding: 5% 5%;
  background: #202020;
  font-family: "brandon-grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

@media (min-width: 400px)  { body { font-size: 18px; } }
@media (min-width: 650px)  { body { font-size: 20px; } }
@media (min-width: 900px)  { body { font-size: 22px; } }
@media (min-width: 1050px) { body { font-size: 24px; } }
@media (min-width: 1200px) { body { font-size: 26px; } }
@media (min-width: 1400px) { body { font-size: 28px; } }
@media (min-width: 1600px) { body { font-size: 30px; } }

/* Background canvas */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Main content */
main {
  margin: 0 auto;
  max-width: 32em;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
h1, h2, h3 {
  line-height: 1.4;
}

h1 {
  font-size: 1.6em;
  font-weight: 700;
}

h2 {
  font-size: 1.25em;
  font-weight: 700;
  margin-top: 2em;
}

h3 {
  font-weight: 700;
  margin-top: 2em;
}

li, p {
  line-height: 1.6;
}

@media (min-width: 400px) { li, p { line-height: 1.65; } }
@media (min-width: 650px) { li, p { line-height: 1.7; } }
@media (min-width: 900px) { li, p { line-height: 1.8; } }

p, figure, main > ul, main > ol {
  margin-top: 1em;
  margin-bottom: 1em;
}

li strong, p strong { font-weight: 700; }
li em, p em { font-style: italic; }

/* Links */
a {
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border-bottom: 0.15em solid #fff;
  transition: border-bottom-color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.4);
  opacity: 0.85;
}

a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Misc */
img {
  display: block;
  max-width: 100%;
  margin: 1em auto;
}

hr {
  border: none;
  border-top: solid 0.15em #ddd;
  margin: 2em 0;
}

blockquote {
  border-left: 0.15em solid #ddd;
  padding-left: 1em;
  color: #999;
}

ul, ol { padding-left: 1.4em; }
ul { list-style-type: square; }
ol { list-style-type: decimal; }
