/* === base === */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  background-color: #192a4b;
  color: gold;
}

@media (min-width: 768px) {
  body {
    font-size: 1.3rem;
    padding: 4rem 2rem;
  }
}

/* === typography === */
h1 {
  color: crimson;
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px rgba(220, 20, 60, 0.8), 0 0 30px rgba(220, 20, 60, 0.5), 0 0 60px rgba(220, 20, 60, 0.3);
}

h2 {
  color: azure;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

h2::before {
  content: "── ";
  color: crimson;
}

h3 {
  color: azure;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

h3::before {
  content: "─ ";
  color: crimson;
}

/* === header === */
.top {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(240, 255, 255, 0.15);
}

header a {
  color: inherit;
  text-decoration: none;
}

header a:hover {
  color: inherit;
  text-decoration: none;
}

.second-line {
  font-style: italic;
  color: azure;
  margin: 0;
}

.second-line::after {
  content: "▌";
  color: azure;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* === links === */
a {
  color: crimson;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: goldenrod;
  text-decoration: wavy underline goldenrod;
}

/* === emphasis === */
strong {
  color: darkgoldenrod;
}

/* === lists === */
li {
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

li:hover {
  background-color: rgba(240, 255, 255, 0.05);
}

/* === selection === */
::selection {
  background: crimson;
  color: #192a4b;
}

/* === cta === */
.cta {
  background-color: crimson;
  color: #192a4b;
  font-weight: 700;
  padding: 0.4em 1em;
  border-radius: 3px;
  text-decoration: none;
}

.cta:hover {
  background-color: goldenrod;
  color: #192a4b;
  text-decoration: none;
}

/* === footer === */
footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 255, 255, 0.15);
}

/* === ascii divider === */
.divider::after {
  content: "────────────────────";
  display: block;
  color: rgba(240, 255, 255, 0.2);
  margin: 2rem 0;
}

/* === dividers === */
hr {
  border: none;
  border-top: 1px solid rgba(240, 255, 255, 0.15);
  margin: 2.5rem 0;
}
