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

:root {
  --bg:        #0c0c0d;
  --surface:   #131315;
  --border:    #222226;
  --muted:     #4a4a52;
  --subtle:    #7a7a88;
  --text:      #e2e2e8;
  --bright:    #f5f5f8;
  --accent:    #a78bfa;
  --accent2:   #6ee7b7;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 120px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* subtle grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
}

/* ── HEADER ── */
.header {
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards 0.1s;
}

.name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 400;
  color: var(--bright);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.name em {
  font-style: italic;
  color: var(--accent);
}

.role {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
}

.role span {
  color: var(--accent2);
}

/* ── DIVIDER ── */
.divider {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── SECTIONS ── */
section {
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s ease forwards;
}

section:nth-child(2) { animation-delay: 0.25s; }
section:nth-child(3) { animation-delay: 0.38s; }
section:nth-child(4) { animation-delay: 0.50s; }
section:nth-child(5) { animation-delay: 0.62s; }

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── BIO ── */
.bio p {
  font-size: 0.875rem;
  color: var(--subtle);
  line-height: 1.85;
}

.bio p + p { margin-top: 14px; }

.bio strong {
  color: var(--text);
  font-weight: 500;
}

/* ── LINK LIST ── */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  gap: 12px;
}

.link-list li a:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--bright);
}

.link-list li a:hover .arrow { opacity: 1; transform: translateX(0); }

.link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border-radius: 5px;
  flex-shrink: 0;
}

.link-icon svg { width: 13px; height: 13px; }

.link-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.link-title { color: var(--text); font-weight: 500; font-size: 0.82rem; }
.link-sub   { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.02em; }

.arrow {
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}

/* ── PROJECTS ── */
.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 16px 14px;
  transition: background 0.18s, border-color 0.18s;
  cursor: default;
}

.project-item:hover { background: var(--surface); border-color: #333340; }

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.project-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bright);
}

.project-tag {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(110, 231, 183, 0.08);
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── POSTS ── */
.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-list li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

.post-list li a:hover {
  background: var(--surface);
  border-color: var(--border);
}

.post-title {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 400;
}

.post-list li a:hover .post-title { color: var(--bright); }

.post-date {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0;
  animation: rise 0.6s ease forwards 0.85s;
}

/* ── ANIMATION ── */
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  body { padding: 56px 20px 80px; }
}
