:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #000000;
  --muted: #5f5f5f;
  --border: #dddddd;
  --link: #0000ee;
  --sidebar-width: 220px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--link);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 40px 28px;
  background: var(--background);
  border-right: 1px solid var(--border);
}

.site-name {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: grid;
  gap: 12px;
}

.menu-toggle {
  display: none;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  text-decoration: underline;
}

.page-content {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin-left: var(--sidebar-width);
  padding: 56px 64px 28px;
}

.section {
  flex: 1;
  max-width: 760px;
  width: 100%;
  padding: 28px 0 40px;
  outline: none;
}

.section[hidden] {
  display: none;
}

.about-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.profile-photo {
  flex: 0 0 auto;
  width: 180px;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 40px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 24px;
  font-size: 28px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.3;
}

.list {
  display: grid;
  gap: 20px;
}

article {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.role {
  margin-bottom: 2px;
  color: var(--muted);
}

.experience {
  margin-bottom: 8px;
  color: var(--link);
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: 760px;
  width: 100%;
  margin-top: auto;
  padding: 28px 0 12px;
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    z-index: 3;
    inset: auto 20px 20px auto;
    display: grid;
    justify-items: end;
    width: min(220px, calc(100vw - 40px));
    padding: 0;
    background: transparent;
    border: 0;
  }

  .site-name {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle span:first-child {
    transform: translate(-50%, -8px);
  }

  .menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .menu-toggle span:last-child {
    transform: translate(-50%, 6px);
  }

  .sidebar.menu-open .menu-toggle span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .sidebar.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0);
  }

  .sidebar.menu-open .menu-toggle span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .site-nav {
    order: -1;
    display: none;
    width: 100%;
    margin-bottom: 10px;
    gap: 0;
    overflow: hidden;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  }

  .sidebar.menu-open .site-nav {
    display: grid;
  }

  .nav-link {
    display: block;
    min-height: 48px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 600;
  }

  .nav-link:last-child {
    border-bottom: 0;
  }

  .nav-link.active {
    background: #f6f6f6;
  }

  .page-content {
    margin-left: 0;
    padding: 32px 24px 104px;
  }

  .about-section {
    display: grid;
    justify-items: center;
    gap: 24px;
  }

  .about-section > div {
    width: 100%;
  }

  .profile-photo {
    width: min(180px, 100%);
    height: auto;
  }

  h1 {
    font-size: 34px;
  }

  .site-footer {
    padding: 24px 0 0;
  }
}
