/* ============================================================
   xclife — minimal. Black, off-white, one quiet accent.
   ============================================================ */

:root {
  --bg:      #0b0b0c;
  --fg:      #ecebe6;
  --fg-2:    #a6a6a0;
  --muted:   #6c6c66;
  --line:    #222226;
  --accent:  #7fcfa4;   /* soft mint — alive, used sparingly */

  --font:  'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* Crosshair cursor */
body { cursor: none; }
.crosshair {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  pointer-events: none;
  z-index: 999;
  will-change: transform;
}
.ch-h, .ch-v {
  position: absolute;
  background: var(--fg-2);
  opacity: 0.6;
}
.ch-h {
  width: 100%; height: 1px;
  top: 50%; left: 0;
  transform: translateY(-50%);
}
.ch-v {
  width: 1px; height: 100%;
  left: 50%; top: 0;
  transform: translateX(-50%);
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  body { cursor: auto; }
  .crosshair { display: none; }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
::selection { background: var(--accent); color: #07120d; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ---------- Cover (click to enter) ---------- */
.cover {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.cover.hidden { opacity: 0; visibility: hidden; }
.cover-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.1rem;
}
.cover-word {
  font-family: var(--font);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.cover-hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.9; } }

/* ---------- Top ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 10;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 5vw, 3.5rem);
}
.wordmark {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  transition: color 0.25s ease;
}
.wordmark:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.4rem, 3vw, 2rem);
  max-width: 1100px;
  margin-inline: auto;
  padding: 7rem clamp(1.5rem, 5vw, 3.5rem) 6rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.name {
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--fg);
}

.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  margin-top: 0.4rem;
}
.skills li {
  font-size: 1.02rem;
  color: var(--fg-2);
  transition: color 0.2s ease;
}
.skills li:hover { color: var(--fg); }

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 0.6rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.dot.online  { background: var(--accent); }
.dot.idle    { background: #d6a93c; }
.dot.dnd     { background: #e0564f; }
.dot.offline { background: #54544f; }
.status .sep { color: var(--line); }
.status .since { color: var(--muted); }

/* ---------- Bottom ---------- */
.bottom {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.6rem) clamp(1.5rem, 5vw, 3.5rem);
}
.sound {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.sound:hover { color: var(--fg); }
.sound-icon { width: 16px; height: 16px; }
.sound-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.hidden { display: none; }
.copy {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------- Entrance ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.rise { opacity: 0; transform: translateY(12px); }
body.entered .rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.rise-1 { animation-delay: 0.07s; }
.rise-2 { animation-delay: 0.14s; }
.rise-3 { animation-delay: 0.21s; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; }
  body.entered .rise { animation: none; }
  .cover-hint { animation: none; }
}
