/* THE HOMELAB PAGE (/homelab) - a standalone showcase for recruiters.
   House rules: warm DIM neutrals (R > G > B), amber accents on dark bands,
   light ink on dark, nothing readable under 12px, no pure white, centred
   column, motion only behind prefers-reduced-motion. Mono for headings and
   labels (the terminal voice), a plain sans for the body so long text reads
   easily. test_homelab.py pins the 12px floor and the no-white rule. */
:root {
  --hl-bg:        #0d0a06;
  --hl-band:      #15100a;
  --hl-card:      #1a140c;
  --hl-line:      #3a2c16;
  --hl-amber:     #e0a238;
  --hl-amber-dim: #b07c2a;
  --hl-ink:       #d8c6a4;
  --hl-ink-dim:   #a8946f;
  --hl-mono: "Courier New", Courier, monospace;
  --hl-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--hl-bg); }
body.hl {
  margin: 0;
  background: var(--hl-bg);
  color: var(--hl-ink);
  font-family: var(--hl-sans);
  font-size: 1rem;
  line-height: 1.6;
}

.hl-page { width: 100%; }

.hl-hero,
.hl-sec,
.hl-band-inner,
.hl-foot {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* -- hero -- */
.hl-hero { padding-top: clamp(40px, 8vw, 88px); padding-bottom: 40px; text-align: center; }
.hl-kicker {
  margin: 0 0 12px;
  font-family: var(--hl-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--hl-amber-dim);
}
.hl-title {
  margin: 0;
  font-family: var(--hl-mono);
  font-size: clamp(2rem, 7vw, 3.6rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--hl-amber);
  text-shadow: 0 0 18px rgba(224, 162, 56, 0.18);
}
.hl-lead {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}
.hl-cred {
  margin: 14px 0 0;
  font-family: var(--hl-mono);
  font-size: 0.95rem;
  color: var(--hl-amber-dim);
}
.hl-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}
.hl-tags li {
  padding: 4px 12px;
  border: 1px solid var(--hl-line);
  border-radius: 3px;
  background: var(--hl-card);
  font-family: var(--hl-mono);
  font-size: 0.85rem;
  color: var(--hl-ink);
}

/* -- dark bands -- */
.hl-band {
  background: var(--hl-band);
  border-top: 1px solid var(--hl-line);
  border-bottom: 1px solid var(--hl-line);
}
.hl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 16px;
  text-align: center;
}
.hl-stat { display: flex; flex-direction: column; gap: 4px; }
.hl-num {
  font-family: var(--hl-mono);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: bold;
  color: var(--hl-amber);
}
.hl-lbl {
  font-family: var(--hl-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--hl-ink-dim);
}
.hl-band-sec { margin-top: 56px; }
.hl-band-sec .hl-band-inner { padding-top: 40px; padding-bottom: 40px; }

/* -- sections -- */
.hl-sec { padding-top: 56px; }
.hl-h2 {
  margin: 0 0 20px;
  font-family: var(--hl-mono);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: 0.08em;
  color: var(--hl-amber);
  text-align: center;
}
.hl-sub { margin: -8px 0 20px; text-align: center; color: var(--hl-ink-dim); }
.hl-h3 {
  margin: 0 0 6px;
  font-family: var(--hl-mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--hl-amber);
}

.hl-card {
  padding: 20px;
  border: 1px solid var(--hl-line);
  border-radius: 4px;
  background: var(--hl-card);
}
.hl-card p { margin: 0; }
.hl-role { color: var(--hl-ink-dim); margin-bottom: 12px !important; }

.hl-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
/* eight cards: two even columns (four full rows, no orphan slot), one on phones */
.hl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hl-spec {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0;
}
.hl-spec dt {
  font-family: var(--hl-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--hl-amber-dim);
  padding-top: 2px;
}
.hl-spec dd { margin: 0; }

.hl-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.hl-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--hl-line);
}
.hl-list li:last-child { border-bottom: 0; }
.hl-list li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--hl-amber);
}
.hl-list b { color: var(--hl-amber); font-weight: normal; }

.hl-log {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.hl-log li {
  padding: 16px 20px;
  border-left: 3px solid var(--hl-amber-dim);
  background: var(--hl-card);
}
.hl-log p { margin: 0; }

.hl-prose { max-width: 720px; margin: 0 auto; text-align: center; }

/* -- footer -- */
.hl-foot {
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 48px;
  border-top: 1px solid var(--hl-line);
  text-align: center;
  color: var(--hl-ink-dim);
  font-size: 0.9rem;
}
.hl-foot p { margin: 0 0 12px; }
.hl-home {
  font-family: var(--hl-mono);
  color: var(--hl-amber);
  text-decoration: none;
  transition: color 0.15s ease;
}
.hl-home:hover,
.hl-home:focus-visible { color: var(--hl-ink); text-decoration: underline; }

a:focus-visible { outline: 2px solid var(--hl-amber); outline-offset: 3px; }

/* -- phones -- */
@media (max-width: 720px) {
  .hl-stats { grid-template-columns: repeat(2, 1fr); }
  .hl-two,
  .hl-grid { grid-template-columns: 1fr; }
}

/* -- big screens (1440p and up): a wider column and a touch larger type, so
   the page fills the screen instead of a narrow strip down the middle -- */
@media (min-width: 1800px) {
  html { font-size: 18px; }
  .hl-hero,
  .hl-sec,
  .hl-band-inner,
  .hl-foot,
  .hl-stats { max-width: 1280px; }
  .hl-list,
  .hl-log { max-width: 960px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
