body {
  margin: 0;
  /* left gutter grows with the window: 20px on phones, up to 96px on wide screens */
  padding: 24px 20px 48px clamp(20px, 6vw, 96px);
  font-family: "IBM Plex Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  background-color: #fbf9f4;
  color: #212529;
}

a {
  color: #1f4fa3;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1em;
}

p {
  margin: 0 0 1em;
}

/* Home page: picture column on the left, text on the right */

.container {
  --pic-width: 300px;
  --pic-border: 4px;
  max-width: 1400px;
  margin: 0;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.left {
  flex: 0 0 var(--pic-width);
}

/* As tall as the picture (600x812 image + border), so the last line can sit at its bottom edge */
.right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: calc((var(--pic-width) - 2 * var(--pic-border)) * 812 / 600 + 2 * var(--pic-border));
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  border: var(--pic-border) solid #000;
  box-sizing: border-box;
}

.portrait-link {
  display: block;
}

/* Under the picture: section links on the left, social icons on the right */
.sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.nav-link {
  font-size: 1.25rem;
}

/* the section you're currently in */
.nav-link[aria-current] {
  font-weight: 600;
}

.socials {
  display: flex;
  gap: 12px;
  padding-top: 5px;
}

.socials a {
  color: #212529;
}

.socials a:hover {
  color: #1f4fa3;
}

.socials svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.quote {
  margin: 0 0 1.5em;
}

.quote p {
  margin: 0 0 0.25em;
}

.attribution {
  padding-left: 1.5em;
}

.small {
  font-size: 0.8rem;
  margin: auto 0 0;
  padding-top: 0.5em;
}

/* Blog pages: same picture column, page content on the right */

.back {
  align-self: flex-start;
  margin-bottom: 1.5em;
}

.posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.posts li {
  margin: 0 0 0.5em;
}

.coming-soon {
  font-size: 1.25rem;
}

@media (max-width: 720px) {
  .container {
    flex-direction: column;
    gap: 24px;
  }

  .left {
    flex: 0 0 auto;
    width: 240px;
  }

  .right {
    min-height: 0;
  }
}
