:root {
  --paper: #f7f3ea;
  --ink: #171511;
  --muted: #70685d;
  --line: #d8d0c2;
  --soft: #efe8dc;
  --accent: #8f2f22;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.page {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 28px 22px 48px;
}

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(247, 243, 234, 0.58), rgba(247, 243, 234, 0.96) 58%),
    url("/assets/paper-ink.png");
  background-size: cover;
  background-position: center;
  opacity: 0.34;
}

.eyebrow,
.section__label,
.poem__number,
.muted {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: lowercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 10ch;
  font-size: clamp(3.3rem, 12vw, 8.8rem);
  line-height: 0.92;
  font-weight: 400;
}

h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 400;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  font-weight: 400;
}

.lead {
  max-width: 650px;
  margin-bottom: 34px;
  font-size: clamp(1.18rem, 3.2vw, 2rem);
  line-height: 1.26;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.support {
  color: var(--accent);
}

.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.section p {
  max-width: 650px;
  font-size: 1.16rem;
}

.poems {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.poem {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--soft);
}

.poem:last-child {
  border-bottom: 0;
}

.poem--empty p:last-child {
  color: var(--muted);
}

.poem-link {
  text-decoration: none;
}

.poem-link:hover,
.poem-link:focus-visible {
  text-decoration: underline;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  align-items: center;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.poem-page {
  max-width: 780px;
}

.single-poem {
  padding: 34px 0 72px;
  border-bottom: 1px solid var(--line);
}

.single-poem h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
}

.poem-actions {
  margin-bottom: 42px;
}

.poem-text {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 2.5vw, 1.55rem);
  line-height: 1.72;
}

.poem-text .indent {
  display: inline-block;
  padding-left: 1.4em;
}

.poem-footer {
  display: grid;
  gap: 18px;
  padding: 34px 0 0;
  font-family: Arial, Helvetica, sans-serif;
}

.poem-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.fragments ul {
  max-width: 680px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fragments li {
  padding: 18px 0;
  border-bottom: 1px solid var(--soft);
  font-size: 1.2rem;
}

.fragments li:first-child {
  padding-top: 0;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 32px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 620px) {
  .page {
    padding-inline: 18px;
  }

  .hero {
    min-height: 88vh;
  }

  .links {
    gap: 8px 15px;
  }

  .section {
    padding: 58px 0;
  }

  .site-header {
    align-items: flex-start;
    padding-bottom: 22px;
  }

  .single-poem {
    padding: 30px 0 58px;
  }

  .poem-actions {
    margin-bottom: 34px;
  }

  .poem-text .indent {
    padding-left: 0.8em;
  }
}
