@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --border: #e5e5e5;
  --max-w: 720px;
  --pad: 1.5rem;
  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--fg);
}

/* ── Main wrapper ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Section layout ── */
section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ── About ── */
.about-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.about-text {
  flex: 1;
}

.about-photo-frame {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: scale(1.1);
  transform-origin: top center;
}

@media (max-width: 520px) {
  .about-row {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .about-photo-frame {
    width: 180px;
    height: 180px;
  }
}

.about-name {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.about-tagline {
  margin-top: 1.25rem;
  color: var(--fg);
}

.about-cursor {
  font-weight: 300;
  margin-left: 1px;
  animation: blink 0.7s step-start infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.about-static {
  margin-top: 0.4rem;
  color: var(--muted);
}

.about-tagline {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.about-bio {
  color: var(--fg);
  max-width: 56ch;
}

/* ── Entry rows (education / experience) ── */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

details.entry {
  border-top: 1px solid var(--border);
}

details.entry:last-child {
  border-bottom: 1px solid var(--border);
}

details.entry summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

details.entry summary::-webkit-details-marker {
  display: none;
}

.entry-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.entry-title {
  font-weight: 500;
  font-size: 0.9rem;
}

.entry-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.entry-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.entry-body {
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 52ch;
}

/* ── Projects ── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.project-item:last-child {
  border-bottom: 1px solid var(--border);
}

.project-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.project-name a {
  color: inherit;
  text-decoration: none;
}

.project-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-desc {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-link:hover {
  color: var(--fg);
}

/* ── Contact ── */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.contact-links li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.contact-links li:last-child {
  border-bottom: 1px solid var(--border);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-links a {
  font-size: 0.875rem;
  color: var(--fg);
  text-decoration: none;
}

.contact-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer ── */
footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--pad);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}
