/* ================= Base Reset ================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Protects the logo and footer from being highlighted */
.site-logo, 
.site-footer {
  user-select: none;
  -webkit-user-select: none; /* Required for Safari/iOS */
}

/* ================= Design System Tokens ================= */
:root {
  --brand-charcoal: #111111;
  --brand-hacker-green: #39ff14;
  --border-muted: #444444; 
  --text-muted: #8a8a8a; /* The readable 4.5:1 contrast gray */
  --font-monospace: 'IBM Plex Mono', 'Fira Code', 'JetBrains Mono', monospace;
}

/* ================= Global Document ================= */
html {
  background-color: var(--brand-charcoal);
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  background-color: var(--brand-charcoal);
  color: var(--brand-hacker-green);
  font-family: var(--font-monospace);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  
  /* Initial load animation */
  opacity: 0;
  animation: fadeInBody 0.5s ease-out forwards;
}

@keyframes fadeInBody {
  to { opacity: 1; }
}

/* ================= Element Normalization ================= */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

li {
  list-style-type: none;
}

/* ================= Global Layout (Header/Footer) ================= */
.site-header {
  border-bottom: 1px solid var(--border-muted);
  height: 10dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Matches the main content width for perfect vertical alignment */
.header-container {
  width: 90%;
  max-width: 800px;
  display: flex;
  align-items: center;
}

.site-logo {
  width: 8dvh;
  height: 8dvh;
}

.site-footer {
  border-top: 1px solid var(--border-muted);
  height: 10dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container {
  width: 90%;
  max-width: 800px;
  font-size: 1.2rem;
  color: var(--border-muted);
}
