:root {
  --bg: #0c0b08;
  --surface: #17140d;
  --border: #2b2416;
  --text: #f2ede1;
  --muted: #948b76;
  --accent: #e8a33d;
  --status: #4ade80;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image: radial-gradient(ellipse 800px 500px at 50% 28%, rgba(232, 163, 61, 0.07), transparent 70%);
  color: var(--text);
  font-family: var(--font-sans);
  padding: 6rem 1.5rem;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 620px;
  width: 100%;
}

.name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.tagline .slash {
  color: var(--accent);
  margin-right: 0.5em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2.75rem;
  padding: 0;
  list-style: none;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232, 163, 61, 0.08);
}

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

.bio {
  margin: 0 0 2.5rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.paragraph {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

.paragraph a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(232, 163, 61, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.paragraph a:hover,
.paragraph a:focus-visible {
  text-decoration-color: var(--accent);
}

.pills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem 0.55rem 0.85rem;
}

.status.contact {
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.status.contact:hover,
.status.contact:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232, 163, 61, 0.08);
}

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

.mail-icon {
  color: var(--accent);
}

.dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--status);
}

@media (prefers-reduced-motion: no-preference) {
  .name {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 9ch;
    border-right: 0.09em solid var(--accent);
    animation:
      typing 0.8s steps(9, end) 0.1s both,
      caret 0.8s step-end infinite;
  }

  .tagline,
  .links,
  .bio,
  .status {
    opacity: 0;
    transform: translateY(6px);
    animation: rise 0.5s ease forwards;
  }

  .tagline { animation-delay: 0.9s; }
  .links   { animation-delay: 1.05s; }
  .bio     { animation-delay: 1.2s; }
  .status  { animation-delay: 1.4s; }

  .dot {
    animation: pulse 2s ease-in-out infinite;
  }
}

@keyframes typing {
  from { width: 0; }
}

@keyframes caret {
  50% { border-color: transparent; }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  50%      { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}

@media (max-width: 480px) {
  body { padding: 4.5rem 1.25rem; }
  .status { font-size: 0.72rem; }
}
