:root {
  --bg: #2b3339;
  --bg-dark: #272e33;
  --fg: #d3c6aa;
  --grey: #859289;
  --green: #a7c080;
  --yellow: #dbbc7f;
  --aqua: #83c092;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg-dark);
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, var(--bg) 0%, var(--bg-dark) 75%);
  color: var(--fg);
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, 'SF Mono', Consolas, monospace;
  font-variant-ligatures: none;
  font-size: clamp(17px, 1.1rem + 0.3vw, 21px);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: var(--bg-dark);
}

.page {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(56px, 14vh, 110px) clamp(20px, 6vw, 24px);
}

@media (min-width: 700px) {
  .page::before {
    content: "";
    position: absolute;
    left: 0;
    top: 70px;
    bottom: 70px;
    width: 1px;
    background: linear-gradient(
      to bottom,
      transparent,
      rgba(133, 146, 137, 0.3) 12%,
      rgba(133, 146, 137, 0.3) 88%,
      transparent
    );
  }
}

.line {
  margin: 0 0 1.6em 0;
}

.line:last-child {
  margin-bottom: 0;
}

.line:first-child::before {
  content: "~ ";
  color: var(--grey);
}

.group-label {
  margin: 2.3em 0 0.7em 0;
  color: var(--grey);
  font-size: 0.72em;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.closing {
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid rgba(133, 146, 137, 0.35);
  color: var(--grey);
}

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--aqua);
  text-decoration-color: var(--aqua);
}

a:focus-visible {
  outline: 1px dashed var(--grey);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  body {
    line-height: 1.65;
  }

  .line {
    margin-bottom: 1.4em;
  }

  .closing {
    margin-top: 2em;
    padding-top: 1.3em;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .page > * {
    opacity: 0;
    animation: rise-in 0.5s ease forwards;
  }

  .page > *:nth-child(1) { animation-delay: 0.05s; }
  .page > *:nth-child(2) { animation-delay: 0.11s; }
  .page > *:nth-child(3) { animation-delay: 0.2s; }
  .page > *:nth-child(4) { animation-delay: 0.26s; }
  .page > *:nth-child(5) { animation-delay: 0.32s; }
  .page > *:nth-child(6) { animation-delay: 0.41s; }
  .page > *:nth-child(7) { animation-delay: 0.47s; }
  .page > *:nth-child(8) { animation-delay: 0.56s; }
  .page > *:nth-child(9) { animation-delay: 0.62s; }
  .page > *:nth-child(10) { animation-delay: 0.68s; }
  .page > *:nth-child(11) { animation-delay: 0.74s; }
  .page > *:nth-child(12) { animation-delay: 0.8s; }
  .page > *:nth-child(13) { animation-delay: 0.86s; }
  .page > *:nth-child(14) { animation-delay: 0.92s; }
  .page > *:nth-child(15) { animation-delay: 0.98s; }
  .page > *:nth-child(16) { animation-delay: 1.04s; }
}
