:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --border: #e1e1e1;
  --text: #1a1a1a;
  --text-muted: #737373;
  --accent: #2e2e2e;
  --accent-hover: #000000;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 3.5rem 2rem;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
}

.layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

/* Profile Header */
.profile-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding-right: 2.5rem;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 2rem;
  align-self: start;
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.profile-info h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
  color: #111;
}

.headline {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.25rem;
  font-weight: 500;
}

.location {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.location a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.location a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

.social-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.about-text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
}

/* Sections */
.section {
  margin-bottom: 2rem;
}

.section h2,
.section summary {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

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

.section summary::marker {
  content: "";
}

.section summary::after {
  content: "+";
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section[open] summary::after {
  content: "-";
}

.section summary:hover {
  color: var(--accent-hover);
}

.section-body {
  margin-top: 1rem;
}

.section > p {
  margin: 0;
  color: var(--text);
}

/* Subsections */
.subsection {
  margin-bottom: 1.5rem;
}

.subsection:last-child {
  margin-bottom: 0;
}

.subsection h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

/* Link Lists */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.link-list a:hover {
  color: var(--accent-hover);
}

.year {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.item-desc {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Experience */
.experience-item {
  margin-bottom: 1rem;
}

.experience-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.experience-header strong {
  font-weight: 600;
}

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

.company::before {
  content: "·";
  margin-right: 0.5rem;
}

.experience-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Project List */
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.project-list li:last-child {
  border-bottom: none;
}

.project-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.project-list a:hover {
  color: var(--accent-hover);
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* Video Reveal */
.video-reveal {
  margin-top: 0.75rem;
}

.video-reveal summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.video-reveal summary:hover {
  color: var(--accent-hover);
}

.video-reveal video {
  width: 100%;
  max-width: 100%;
  margin-top: 0.75rem;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: none;
    padding-right: 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    position: static;
  }

  .social-links {
    justify-content: center;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .profile-header {
    border-right: none;
    padding-right: 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    position: static;
  }
}
