:root {
  --bg: #0e0f0d;
  --bg-2: #16181550;
  --fg: #e8e6df;
  --fg-dim: #8a8880;
  --fg-dimmer: #4d4c47;
  --rule: #232520;
  --accent: #7fd3a2;
  --accent-dim: #4a8a6a;
  --warn: #d4a574;
  --pink: #d48aae;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  font-feature-settings: 'ss01', 'ss02', 'calt', 'zero';
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(127, 211, 162, 0.04), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(212, 138, 174, 0.025), transparent 50%);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ============ LAYOUT ============ */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 60px;
}

/* ============ HEADER ============ */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  font-size: 12px;
  color: var(--fg-dim);
}
.brand {
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
}
.brand .prompt { color: var(--accent); margin-right: 4px; }
.brand .cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: -1px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}
.status::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: url('https://s3.mvaldes.dev/me.png') center/cover;
}
h1 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 4px;
}
.handle {
  color: var(--fg-dim);
  font-size: 13px;
}
.handle .at { color: var(--accent); }

/* ============ INTRO ============ */
.intro {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 600px;
}
.intro .accent { color: var(--accent); }

/* ============ SECTION ============ */
section { margin-bottom: 48px; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.section-label .meta {
  color: var(--fg-dimmer);
  margin-left: auto;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
}

/* ============ NOW BLOCK ============ */
.now {
  border: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.75;
}
.now ul {
  list-style: none;
}
.now li {
  padding: 4px 0;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: baseline;
  color: var(--fg-dim);
}
.now li::before {
  content: '→';
  color: var(--accent);
  font-size: 12px;
}
.now li strong {
  color: var(--fg);
  font-weight: 500;
}
.now li a {
  color: var(--fg);
}
.now li a:hover {
  color: var(--accent);
}
.post-date {
  display: block;
  font-size: 11px;
  color: var(--fg-dimmer);
  margin-top: 2px;
}

.now .timestamp {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  color: var(--fg-dimmer);
  font-size: 11px;
}

/* ============ LINKS / ELSEWHERE ============ */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.link-cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg);
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.link-cell:hover {
  background: rgba(127, 211, 162, 0.04);
  color: var(--accent);
}
.link-cell .platform {
  color: var(--fg);
}
.link-cell:hover .platform {
  color: var(--accent);
}
.link-cell .handle-small {
  font-size: 11px;
  color: var(--fg-dimmer);
}
.link-cell .arrow {
  color: var(--fg-dimmer);
  font-size: 12px;
  margin-left: 8px;
}

/* ============ FOOTER ============ */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  color: var(--fg-dimmer);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer a { color: var(--fg-dim); }
footer a:hover { color: var(--accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .page { padding: 48px 20px; }
  .top-bar { margin-bottom: 48px; }
  .hero { grid-template-columns: 64px 1fr; gap: 16px; margin-bottom: 32px; }
  .avatar { width: 64px; height: 64px; font-size: 24px; }
  h1 { font-size: 22px; }
  .intro { font-size: 14px; }
  .links-grid { grid-template-columns: 1fr; }
}

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(8px); animation: reveal 0.6s ease-out forwards; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
