:root {
  --bg: #0d0e10;
  --panel: #16181b;
  --ink: #e7e8ea;
  --ink-dim: #9aa0a6;
  --line: #2a2d31;
  --accent: #3ddc84; /* door-open green — a lit LED means the door is open */
  --max: 64rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  /* subtle brushed-metal grain */
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
}

/* --- header / wordmark (placeholder for the real logo, #53) --- */
.site-header {
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.wordmark__name {
  color: var(--ink);
  font-size: 1.05rem;
}

.wordmark__mark {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  /* idle: a slow LED "breathing" glow */
  animation: mark-idle 3.4s ease-in-out infinite;
  transition: filter 0.18s ease;
}

/* hover: the lamp lights up brighter green */
.wordmark:hover .wordmark__mark {
  animation: none;
  filter: brightness(1.12) saturate(1.15) drop-shadow(0 0 9px rgba(61, 220, 132, 0.6));
}

/* press: the button flashes red while held, like a triggered control */
.wordmark:active .wordmark__mark {
  filter: hue-rotate(-150deg) saturate(1.5) brightness(1.1) drop-shadow(0 0 13px rgba(255, 72, 60, 0.8));
}

@keyframes mark-idle {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(61, 220, 132, 0.0)); }
  50%      { filter: drop-shadow(0 0 7px rgba(61, 220, 132, 0.4)); }
}

/* --- hero --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 8vh, 6rem) clamp(1.25rem, 5vw, 4rem);
}

.hero__eyebrow {
  margin: 0;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink-dim);
}

.hero__status {
  margin: 0.5rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.hero__status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.5rem var(--accent);
}

/* --- footer --- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1.75rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

.site-footer__mark { color: var(--ink); }

.site-footer__links {
  display: flex;
  gap: 1.25rem;
  margin-right: auto;
}

.site-footer a {
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-footer a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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