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

html {
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: #0d0d0d;
  max-width: 650px;
  margin: 0 auto;
  padding: 5rem 2rem 8rem;
}

header {
  text-align: center;
  margin-bottom: 5rem;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 a {
  color: #ffffff;
  text-decoration: none;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.8rem;
  margin-bottom: 0.1rem;
  font-size: 1.25rem;
}

nav a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
  color: #93c5fd;
  text-decoration: none;
}

nav a:visited {
  color: #60a5fa;
  text-decoration: none;
}

nav a:visited:hover,
nav a:visited:focus {
  color: #60a5fa;
  text-decoration: none;
}

main {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.75rem;
}

hr {
  border: 0;
  height: 1px;
  background: #222;              /* subtle dark gray for dark mode */
  margin: 4rem 0 4rem 0;     /* more breathing room after header */
  max-width: 100%;               /* full width or adjust if you want narrower */
}

/* Mobile */
@media (max-width: 600px) {
  body {
    padding: 4rem 1.5rem 7rem;
  }
  h1 {
    font-size: 2.4rem;
  }
}

/* Style for the special "X" link in paragraph */
.x-link {
  color: #60a5fa;                    /* same blue as nav links */
  text-decoration: none;             /* no underline ever */
  transition: color 0.2s ease;
}

/* Hover: slight brightening (optional, matches nav feel) */
.x-link:hover {
  color: #93c5fd;                    /* lighter blue on hover, same as nav */
  text-decoration: none;
}

/* Visited: change to a different color after click (like visited nav links) */
.x-link:visited {
  color: #60a5fa;                    /* softer purple-ish blue - feels "visited" */
  text-decoration: none;
  /* You can change this to any color you like, e.g. #c084fc, #818cf8, etc. */
}