
:root {
  --bg: #f5f1e8;
  --card: #ffffff;
  --muted: #64635f;
  --text: #1a1a1a;
  --accent: #1a1a1a;
  --border: #e5dfd4;
  --surface: #ece6db;
  --hover: rgba(26, 26, 26, 0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

::selection {
  background-color: rgba(26, 26, 26, 0.12);
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sidebar */
.sidebar {
  width: 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 100px 60px 100px 48px;
  display: flex;
  flex-direction: column;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 380px;
  width: 100%;
}

.intro {
  margin-bottom: 36px;
}

.headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
  margin: 28px auto 0 auto;
}

.sidebar h1 {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
  white-space: nowrap;
}

.sidebar h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar .tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 10px;
}

/* Navigation */
.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 48px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-indicator {
  width: 32px;
  height: 1px;
  background: var(--muted);
  transition: all 0.2s ease;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
  width: 64px;
  background: var(--text);
}

/* Social Links */
.social-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-top: auto;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--text);
}

.social-links svg {
  width: 22px;
  height: 22px;
}

/* Main Content */
.main-content {
  width: 50%;
  padding: 100px 12px 100px 24px;
}

/* Sections */
.section {
  margin-bottom: 96px;
  scroll-margin-top: 100px;
}

.section-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 32px;
}

.section-content p {
  color: var(--muted);
  margin-bottom: 16px;
}

.section-content p strong {
  color: var(--text);
  font-weight: 500;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Experience List */
.experience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.experience-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 24px;
  margin: -24px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.experience-item:hover {
  background: var(--hover);
}

.experience-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.experience-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.company-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.company-link:hover {
  color: var(--muted);
}

.arrow {
  font-size: 14px;
  display: inline-block;
  transition: transform 0.15s;
}

.experience-item:hover .arrow,
.project-item:hover .arrow {
  transform: translate(2px, -2px);
}

.experience-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-style: italic;
}

.experience-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.experience-authors {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.experience-note {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  margin-top: 4px;
}

/* Tags */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Resume Link */
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.resume-link:hover {
  color: var(--muted);
}

.resume-link:hover .arrow {
  transform: translate(2px, -2px);
}

/* Projects List */
.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-item {
  border-radius: 8px;
  transition: background 0.2s ease;
}

.project-item:hover {
  background: var(--hover);
}

.project-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 20px;
  margin: -20px;
  text-decoration: none;
  border-radius: 8px;
  align-items: start;
}

.project-link.project-link-no-image {
  grid-template-columns: 1fr;
}

.project-image {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-image img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.project-info {
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.project-title-link {
  color: inherit;
  text-decoration: none;
}

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

.project-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-stats {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  transition: background 0.15s ease;
}

.tag-link:hover {
  background: var(--hover);
}

.tag-link:visited {
  color: var(--accent);
}


.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.award-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.award-name {
  color: var(--text);
}

.award-detail {
  color: var(--muted);
  font-size: 13px;
}

/* Footer */
.footer {
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

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

/* Mobile Responsive */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    padding: 0 20px;
  }

  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
    padding: 60px 0 40px;
  }

  .sidebar-content {
    max-width: none;
  }

  .sidebar h1 {
    font-size: 36px;
  }

  .intro {
    margin-bottom: 40px;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 24px;
  }

  .nav-indicator {
    display: none;
  }

  .social-links {
    margin-top: 40px;
  }

  .main-content {
    width: 100%;
    padding: 40px 0 80px;
  }

  .section {
    margin-bottom: 64px;
  }

  .section-heading {
    padding: 12px 0;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 5;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px;
    margin: 0 -16px;
  }

  .experience-date {
    padding-top: 0;
    margin-bottom: 4px;
  }

  .project-link {
    grid-template-columns: 72px 1fr;
    padding: 16px;
    margin: 0 -16px;
  }

  .project-image {
    width: 72px;
    height: 72px;
  }

  .award-item {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .intro-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sidebar h1 {
    font-size: 28px;
  }

  .sidebar h2 {
    font-size: 16px;
  }

  .sidebar .tagline {
    font-size: 14px;
  }
}
