:root {
  --bg:     #002b36;
  --bg-alt: #073642;
  --fg:     #839496;
  --emph:   #93a1a1;
  --muted:  #586e75;
  --accent: #2aa198;
  --font:   ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
}

body {
  padding: 3rem 1.25rem;
}

main {
  max-width: 40rem;
  margin: 0 auto;
}

h1 {
  color: #b58900;
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 2rem;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  box-sizing: content-box;
  border-right: 0.6em solid #b58900;
  animation:
    h1-typing 0.8s steps(11) 0.2s forwards,
    h1-cursor 0.6s step-end 5,
    h1-cursor-hide 0s 3.2s forwards;
}

@keyframes h1-typing {
  to { width: 11ch; }
}

@keyframes h1-cursor {
  50% { border-color: transparent; }
}

@keyframes h1-cursor-hide {
  to { border-color: transparent; }
}


h2 {
  color: #b58900;
  font-size: 1rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2rem 0 0.75rem;
}

h2::before {
  content: "# ";
  color: #586e75;
}

p {
  margin-bottom: 0.85rem;
}

ul {
  list-style: none;
  margin-bottom: 0.85rem;
}

ul li::before {
  content: "- ";
  color: var(--muted);
}

ul li:nth-child(1)::before { color: #d33682; }
ul li:nth-child(2)::before { color: #b58900; }
ul li:nth-child(3)::before { color: #268bd2; }
ul li:nth-child(4)::before { color: #cb4b16; }
ul li:nth-child(5)::before { color: #859900; }

ul li::before { transition: color 0.2s ease; }
ul li:hover::before { color: #ffffff; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: transparent;
  animation: underline-fade 0.2s ease forwards;
}

@keyframes underline-fade {
  from { text-decoration-color: transparent; }
  to   { text-decoration-color: currentColor; }
}

::selection {
  background: #2aa198;
  color: #002b36;
}

.reeds {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 75%;
  margin-bottom: 2rem;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

