:root {
  --color-bg: #fafaf9;
  --color-text: #1a1a1a;
  --color-text-secondary: #6b6b6b;
  --color-border: #e8e8e6;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-width: 640px;
}

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

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Hero ---- */

.hero {
  padding: 8rem 0 6rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

/* ---- Sections ---- */

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

section p {
  color: var(--color-text);
}

/* ---- Experience ---- */

.experience-item {
  margin-bottom: 2rem;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.experience-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.experience-date {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.experience-role {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
}

.experience-item > p:last-child {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Projects ---- */

.project-item {
  margin-bottom: 1.5rem;
}

.project-item:last-child {
  margin-bottom: 0;
}

.project-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Interests ---- */

.interests p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Writing ---- */

.writing .coming-soon {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ---- Footer ---- */

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid var(--color-border);
}

footer a {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-decoration: none;
}

footer a:hover {
  color: var(--color-text);
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
  .hero {
    padding: 5rem 0 4rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .experience-header {
    flex-direction: column;
    gap: 0;
  }

  .experience-date {
    font-size: 0.8rem;
  }
}
