/* Layout only: enough to place margin notes. The look comes later. */

body {
  margin: 0;
  padding: 0 1rem;
  font-family: Georgia, serif;
  line-height: 1.5;
}

header, main {
  max-width: 40rem;
  margin: 0 auto;
}

.note {
  margin: 1em 0;
  padding-left: 0.75em;
  border-left: 2px solid #c4473a;
  font-size: 0.85em;
}

.note .signature {
  font-style: italic;
}

/* Wide screens: notes move into a right-hand margin beside their paragraph. */
@media (min-width: 62rem) {
  header, main {
    max-width: 57rem;
  }

  article > * {
    max-width: 40rem;
  }

  article > .annotated {
    display: grid;
    grid-template-columns: 40rem 15rem;
    column-gap: 2rem;
    align-items: start;
    max-width: none;
  }

  .annotated > .notes > .note:first-child {
    margin-top: 0;
  }
}
