* {
  box-sizing: border-box;
}

:root {
  --ink: #1f1f1f;
  --soft-ink: #5c5c5c;
  --paper: #efefed;
  --sidebar: #292929;
  --line: #cfcfca;
  --max-width: 1440px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #d9d9d6;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(320px, 34%) 1fr;
  max-width: var(--max-width);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.sidebar {
  background: var(--sidebar);
  color: white;
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
  filter: grayscale(1);
}

.sidebar-content {
  position: sticky;
  top: 0;
  display: grid;
  gap: 3rem;
  padding: 3rem 2.5rem 4rem;
}

.sidebar section {
  display: grid;
  gap: 0.8rem;
}

.sidebar a {
  width: fit-content;
}

.eyebrow,
.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: #c8c8c8;
}

.plain-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.55rem;
}

.plain-list small,
.muted {
  color: #c8c8c8;
}

.content {
  padding: clamp(2.5rem, 6vw, 6rem);
}

.hero {
  max-width: 820px;
  padding-bottom: 5rem;
}

.kicker {
  margin-bottom: 1.2rem;
  color: var(--soft-ink);
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.role {
  margin: 2rem 0 1.2rem;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
}

.intro {
  max-width: 760px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.05rem;
}

.section {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
}

.section h2 {
  margin: 0 0 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
}

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

.entry-meta {
  color: var(--soft-ink);
  font-size: 0.9rem;
}

.entry h3,
.project-card h3,
.skill-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.entry p,
.project-card p,
.skill-grid p {
  margin: 0;
  color: var(--soft-ink);
}

.institution {
  margin-bottom: 0.7rem !important;
  color: var(--ink) !important;
  font-weight: 600;
}

.featured {
  padding: 2rem;
  background: #deded9;
}

.project-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
}

.project-card + .project-card {
  border-top: 1px solid var(--line);
}

.project-number {
  color: var(--soft-ink) !important;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.skill-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  color: var(--soft-ink);
  font-size: 0.85rem;
}

@media (max-width: 850px) {
  .page-shell {
    display: block;
  }

  .portrait {
    max-height: 620px;
    object-position: center 25%;
  }

  .sidebar-content {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content {
    padding: 3rem 1.4rem;
  }

  .hero {
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 560px) {
  .sidebar-content {
    grid-template-columns: 1fr;
    padding: 2.2rem 1.4rem 3rem;
  }

  h1 {
    font-size: clamp(3.2rem, 20vw, 5rem);
  }

  .entry,
  .project-card,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .entry {
    gap: 0.7rem;
  }

  footer {
    flex-direction: column;
  }
}
