:root {
  --ink: #666;
  --heading: #121212;
  --muted: #a3a3a3;
  --link: #08f;
  --rule: #bbb;
  --body: proxima-nova, "Helvetica Neue", Arial, sans-serif;
  --title: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

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

a:hover,
a:focus-visible {
  color: #60a5dd;
}

a:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: 3px;
}

.canvas {
  position: relative;
  width: min(100%, 1233px);
  min-height: 100vh;
  margin: 0;
  padding: 50px;
}

.sidebar {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 180px;
}

.site-title {
  display: inline-block;
  color: var(--heading);
  font-family: var(--title);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
}

.site-title:hover {
  color: var(--heading);
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 30px;
}

.site-nav a {
  display: block;
  padding: 0.2em;
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
}

.site-nav a:hover {
  color: #000;
}

.site-nav a[aria-current="page"] {
  color: var(--muted);
}

.content {
  margin-left: 250px;
  margin-top: 14px;
  border-top: 1px solid var(--rule);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  padding: 48px 0 47px;
  border-bottom: 1px solid var(--rule);
}

.home-copy {
  font-size: 14px;
}

.home-copy p {
  margin: 0 0 14px;
}

.home-copy .welcome {
  margin-bottom: 14px;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 425 / 490;
  object-fit: cover;
  object-position: center;
}

.page-section {
  padding: 48px 0 55px;
  border-bottom: 1px solid var(--rule);
}

.page-section h1,
.page-section h2 {
  margin: 0 0 20.8px;
  color: var(--heading);
  font-size: 20.8px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-transform: lowercase;
}

.page-section ul {
  margin: 14px 0 0;
  padding-left: 40px;
}

.page-section li {
  margin: 0 0 7px;
  padding-left: 0;
}

.page-section > ul > li:last-child {
  margin-bottom: 0;
}

.page-section > ul > li {
  position: relative;
  list-style: none;
}

.page-section > ul > li::before {
  position: absolute;
  top: 9.47px;
  left: -13.56px;
  width: 3.56px;
  height: 3.56px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.page-section > ul > li:has(> .teaching-level)::before {
  top: 7.57px;
}

.page-section li::marker {
  font-size: 8px;
  line-height: 22.4px;
}

.page-section li > ul {
  margin: 7px 0;
  padding-left: 40px;
}

.page-section > ul > li:last-child > ul:last-child {
  margin-bottom: 0;
}

.page-section > ul > li:last-child > ul:last-child > li:last-child {
  margin-bottom: 0;
}

.page-section li > ul li {
  position: relative;
  margin-bottom: 7px;
  list-style: none;
}

.page-section li > ul li::before {
  position: absolute;
  top: 8.53px;
  left: -15.33px;
  width: 4.33px;
  height: 4.33px;
  border: 0.89px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.page-section li > ul li::marker {
  font-size: 8px;
}

.paper-links {
  white-space: nowrap;
}

.teaching-level {
  margin: 7.8px 0;
  color: var(--heading);
  font-size: 15.6px;
  font-weight: 500;
  line-height: 1.2;
}

em {
  font-style: italic;
}

.menu-toggle {
  display: none;
}

@media (max-width: 800px) {
  .canvas {
    width: 100%;
    padding: 20px;
  }

  .sidebar {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
  }

  .menu-toggle {
    position: absolute;
    top: 2px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 4px 0;
    border: 0;
    color: #1f1f1f;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
  }

  .menu-toggle::after {
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
  }

  .menu-toggle[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(225deg);
  }

  .menu-toggle:focus-visible {
    outline: 1px dotted currentColor;
    outline-offset: 4px;
  }

  .site-nav {
    position: absolute;
    z-index: 10;
    top: calc(100% + 20px);
    right: 0;
    left: auto;
    display: flex;
    width: 120px;
    gap: 0;
    margin: 0;
    padding: 13px 12px 10px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: #fff;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 5px 0;
    font-size: 15px;
    line-height: 1.4;
  }

  .content {
    margin-left: 0;
    margin-top: 20px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px 0;
  }

  .portrait {
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .page-section {
    padding: 35px 0 38px;
  }
}

@media (max-width: 480px) {
  .home-grid {
    display: flex;
    flex-direction: column;
  }
}
