@font-face {
  font-family: "Mrs Eaves";
  src: url("mrs-eaves-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mrs Eaves";
  src: url("mrs-eaves-regular-italic.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

:root {
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--s-4);
  padding: var(--s-3);
  box-sizing: border-box;
  font-size: 18px;

  background-color: #FAF1DC;
}

@media (min-width: 600px) {
  body {
    padding: var(--s-5) var(--s-3);
  }
}

.hero {
  display: block;
  max-width: min(100%, 480px);
  height: auto;
  border: 1px solid rgba(42, 32, 24, 0.2);
}

.poem {
  width: max-content;
  max-width: 100%;
  text-align: left;
  line-height: 1.5;
  font-family: "Mrs Eaves", Georgia, serif;
  color: #2A2018;
}

.poem h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.778rem;
  line-height: 1.2;
}

.poem .date {
  margin-top: 0;
  margin-bottom: var(--s-3);
  font-style: italic;
  opacity: 0.7;
}

.poem .date + p {
  margin-top: 0;
}
