/* HMRG - Synthwave Academic Theme */

/* --- Variables --- */
:root {
  --bg: #0d0d1a;
  --bg-gradient: #2d1b4e;
  --text: #f4f2f9;
  --text-muted: #a8a3b8;
  --accent: #5bc0be;
  --accent-hover: #7dd3d1;
  --accent-secondary: #c77dff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

body, h1, h2, p, ul {
  margin: 0;
}

/* --- Base --- */
body {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-gradient) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* --- Typography --- */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 2rem;
  text-shadow: 0 0 40px rgba(91, 192, 190, 0.15);
}

h1 small {
  display: block;
  font-size: 0.5em;
  margin-top: 0.1em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* --- Links --- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 0 0 8px rgba(91, 192, 190, 0.4);
}

h2 a {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

h2 a:hover {
  color: var(--accent);
  text-shadow: none;
}

a em {
  color: var(--accent-secondary);
}

/* --- Lists --- */
ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

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

/* --- Responsive --- */
@media (min-width: 576px) {
  h1 {
    font-size: 3.5rem;
  }

  .container {
    padding: 2.5rem 2rem 5rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 4.5rem;
  }

  .container {
    max-width: 800px;
  }
}

/* --- Accessibility --- */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: rgba(91, 192, 190, 0.3);
  color: var(--text);
}
