* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eee9dd;
  color: #15120d;
  font-family: Georgia, "Times New Roman", serif;
  --heading-1: clamp(0.95rem, 1dvw, 1.15rem);
  --heading-2: clamp(1.1rem, 1.35dvw, 1.55rem);
  --heading-3: clamp(1.35rem, 1.85dvw, 2rem);
}

.page {
  min-height: 100dvh;
  width: 100dvw;
  padding: 1rem;
}

.paper {
  display: flex;
  min-height: calc(100dvh - 2rem);
  width: 100%;
  flex-direction: column;
  border-block: 3px solid #15120d;
}

.masthead {
  border-bottom: 3px solid #15120d;
  padding-block: 0.5rem;
  text-align: center;
}

.source {
  margin: 0;
  color: #6e1d18;
  font-size: 0.65rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  font-size: clamp(2.5rem, 5.9dvw, 6.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.78;
  text-transform: uppercase;
}

.edition {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.5rem;
  border-block: 1px solid #15120d;
  padding-block: 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.newspaper-masonry {
  display: block;
  flex: 1;
}

.newspaper-article {
  border-bottom: 1px solid #15120d;
  padding: 0.75rem;
}

.article-meta {
  margin: 0 0 0.25rem;
  color: #6e1d18;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.newspaper-heading {
  margin: 0 0 0.25rem;
  font-size: var(--heading-size);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.newspaper-copy {
  margin: 0;
  column-count: 1;
  color: #282018;
  font-size: 0.72rem;
  line-height: 1.05;
  text-align: justify;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .page {
    padding-inline: 1.5rem;
  }

  .edition {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .page {
    padding: 1.5rem;
  }

  .masthead {
    padding-block: 0.25rem;
  }

  .edition {
    margin-top: 0.25rem;
  }

  .newspaper-masonry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .newspaper-masonry-column {
    border-right: 1px solid #15120d;
  }

  .newspaper-copy {
    column-count: var(--copy-columns);
  }
}
