/* =========================================================
   jtax.dev — linktree
   Aesthetic: terminal/dev oscuro + toque editorial serif
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --border: #1f1f1f;
  --border-hover: #2a2a2a;
  --fg: #ededed;
  --fg-dim: #8a8a8a;
  --fg-muted: #5a5a5a;
  --accent: #c9f266;          /* verde lima tipo terminal */
  --accent-soft: #c9f26622;
  --danger: #ff5a5f;

  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: 'Fraunces', 'Times New Roman', serif;

  --radius: 4px;
  --maxw: 560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding: 64px 20px 80px;
  position: relative;
  overflow-x: hidden;
}

/* Grano sutil para profundidad */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Shell principal */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- Intro ---------- */
.intro { margin-bottom: 48px; }

.prompt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fade-in 0.5s var(--ease) forwards;
}
.prompt__user { color: var(--accent); }
.prompt__at   { color: var(--fg-muted); }
.prompt__host { color: var(--fg-dim); }
.prompt__sep  { color: var(--fg-muted); margin-right: 8px; }
.prompt__cmd  { color: var(--fg); }
.prompt__cmd::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: -1px;
  animation: blink 1s step-end infinite;
}

.name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 10vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variation-settings: "opsz" 144;
  opacity: 0;
  animation: slide-up 0.6s var(--ease) 0.1s forwards;
}
.name__dot { color: var(--accent); }

.tagline {
  margin-top: 16px;
  color: var(--fg-dim);
  font-size: 14px;
  max-width: 440px;
  opacity: 0;
  animation: slide-up 0.6s var(--ease) 0.2s forwards;
}

.inline-link {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hover);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.inline-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Links ---------- */
.links__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link {
  opacity: 0;
  transform: translateY(8px);
  animation: slide-up 0.5s var(--ease) forwards;
}

.link__anchor {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.2s var(--ease),
              background 0.2s var(--ease),
              transform 0.2s var(--ease);
  position: relative;
}

.link__anchor:hover {
  border-color: var(--accent);
  background: var(--bg-elev);
  transform: translateX(2px);
}

.link__anchor:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.link__icon {
  width: 20px;
  height: 20px;
  color: var(--fg-dim);
  transition: color 0.2s var(--ease);
}
.link__anchor:hover .link__icon { color: var(--accent); }

.link__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.link__name {
  font-weight: 500;
  font-size: 14px;
  color: var(--fg);
}
.link__handle {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

.link__arrow {
  color: var(--fg-muted);
  font-size: 14px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.link__anchor:hover .link__arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 56px;
  opacity: 0;
  animation: fade-in 0.5s var(--ease) 1.2s forwards;
}
.foot__line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--border-hover);
  margin-bottom: 16px;
}
.foot__text {
  font-size: 12px;
  color: var(--fg-muted);
}
.foot__prompt { color: var(--accent); margin-right: 4px; }

/* ---------- Animaciones ---------- */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes fade-in {
  to { opacity: 1; }
}
@keyframes slide-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Respeta preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .prompt__cmd::after { animation: none; opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  body { padding: 40px 16px 60px; }
  .intro { margin-bottom: 36px; }
  .link__anchor { padding: 14px 16px; gap: 14px; }
}
