@font-face {
  font-family: "Neue Haas Grotesk";
  src: url("fonts/NeueHaasDisplayRoman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Neue Haas Grotesk";
  src: url("fonts/NeueHaasDisplayRomanItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Neue Haas Grotesk";
  src: url("fonts/NeueHaasDisplayMediu.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Neue Haas Grotesk";
  src: url("fonts/NeueHaasDisplayBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

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

body {
  font-family: "Neue Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #000;
  background: #fff;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Sidebar ── */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  padding: 44px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-name {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 0;
}

.sidebar-email {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.sidebar-email a {
  color: #888;
}

.sidebar-email a:hover {
  text-decoration: underline;
}

.sidebar-photo {
  width: 100%;
  display: block;
  margin-bottom: 18px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-nav a {
  font-size: 15px;
  font-weight: 400;
  display: block;
  color: #000;
}

.sidebar-nav a.active {
  text-decoration: underline;
}

/* ── Main content ── */

.main {
  margin-left: 270px;
  padding: 44px 56px 80px 44px;
  max-width: 620px;
}

/* ── Home / Bio ── */

.bio p {
  margin-bottom: 10px;
}

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

/* ── Writing ── */

.main--writing,
.main--offset {
  padding-top: 112px;
}

.writing-list {
  list-style: none;
}

.writing-list li {
  margin-bottom: 4px;
}

/* ── CV ── */

.cv-section {
  margin-bottom: 24px;
}

.cv-section-title {
  font-size: 15px;
  font-weight: 400;
  text-decoration: underline;
  margin-bottom: 8px;
}

.cv-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}

.cv-entry-left {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cv-entry-institution {
  font-weight: 400;
}

.cv-entry-role {
  color: #555;
}

.cv-entry-role::before {
  content: "— ";
}

.cv-entry-date {
  font-size: 15px;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-download {
  margin-top: 32px;
  font-size: 15px;
}

/* ── Mobile ── */

@media (max-width: 720px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 28px 24px 20px;
    border-bottom: 1px solid #e8e8e8;
  }

  .sidebar-photo {
    max-width: 180px;
  }

  .main {
    margin-left: 0;
    padding: 28px 24px 60px;
    max-width: 100%;
  }

  .cv-entry {
    flex-direction: column;
    gap: 0;
  }
}
