/* =======================================================
   1. BASE STYLES (Mobile First - 320px baseline)
======================================================= */

/* --- Layout Engine --- */
.content-container {
  width: 90%;
  margin: 0 auto; /* The auto-centering fix */
  padding: 4rem 0; /* Vertical breathing room */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

h1, 
h2, 
h3, 
.terminal-divider,
.tech-stack span {
  user-select: none;
  -webkit-user-select: none;
}

/* --- Typography --- */
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff; /* Stark white for the hacmatac root name */
}

h2 {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 2rem;
  color: var(--text-muted); /* Terminal comment gray */
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--brand-hacker-green);
}

.subtitle {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.project-card p {
  color: #cccccc; /* Highly readable light gray for body text */
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

/* --- Structural Elements --- */
.terminal-divider {
  border: 0;
  border-bottom: 1px dashed var(--border-muted);
  margin: 2.5rem 0;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-card {
  border-left: 2px solid var(--brand-hacker-green);
  padding-left: 1.5rem;
}

.tech-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-stack span {
  font-size: 1rem;
  border: 1px solid var(--brand-hacker-green);
  color: var(--brand-hacker-green);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

/* --- Routing Links --- */

/* =========================================
   TERMINAL ROUTING LINKS (THE DEFINITIVE FIX)
   ========================================= */

.link-tree li {
  margin-bottom: 1rem;
}

/* 1. Base State (Always Green) */
.link-tree a {
    color: var(--brand-hacker-green); 
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

/* 2. Hover State (Adding an underline or glow since it's already green) */
.link-tree a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px var(--brand-hacker-green); /* Optional terminal glow */
}

/* 3. The HTMX Pointer Override */
[hx-get], [hx-post], [hx-put], [hx-delete] {
    cursor: pointer;
}

/* =======================================================
   2. TABLET / SMALL DESKTOP (480px and up)
======================================================= */
@media screen and (min-width: 480px) {
  
  h1 { font-size: 3.2rem; }
  
  .subtitle {
    font-size: 1.6rem;
    margin-bottom: 4rem; 
  }

  .tech-stack { gap: 1rem; }
  
  .tech-stack span { font-size: 1.1rem; padding: 0.2rem 0.8rem; }

  .terminal-divider { margin: 4rem 0; }
}

/* =======================================================
   3. DESKTOP / ULTRAWIDE (800px and up)
======================================================= */
@media screen and (min-width: 800px) {

  .content-container {
    max-width: 800px; /* Locks the maximum width to prevent eye strain */
  }
  
}
