:root {
  color-scheme: dark;
  --background: #111014;
  --ink: #eee8dc;
  --secondary: #c5baca;
  --quiet: #b2a5bd;
  --rule: #514657;
  --accent: #9682ab;
  --display: "Cinzel", "Times New Roman", serif;
  --body: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  color: var(--ink);
  scrollbar-color: var(--rule) var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 6vh, 72px) clamp(20px, 5vw, 64px) 28px;
  font-family: var(--body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--secondary); color: var(--background); }

.composition {
  width: 100%;
  max-width: 760px;
  margin: auto;
  padding-block: 24px 48px;
  text-align: center;
}

.inscription { container-type: inline-size; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 10cqi, 4.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .065em;
  text-indent: .065em;
  text-transform: uppercase;
  text-wrap: balance;
}

.citation {
  margin: 16px 0 0;
  color: var(--secondary);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.5;
  font-style: italic;
}

.fresco {
  margin: clamp(32px, 5vh, 48px) 0 24px;
  border-bottom: 1px solid var(--rule);
}

.guard-dog {
  display: block;
  width: 100%;
  height: auto;
  opacity: .96;
}

.poem {
  margin: 0 auto;
  max-width: 44ch;
  color: var(--secondary);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.poem span { display: block; }

.colophon {
  width: 100%;
  text-align: center;
  color: var(--quiet);
  font-family: var(--display);
  font-size: .875rem;
  line-height: 1.8;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.colophon p { margin: 0; }
.colophon span { display: inline-block; }
.date-separator { margin-inline: .4em; }

@media (prefers-reduced-motion: no-preference) {
  .composition { animation: settle 700ms cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes settle {
    from { transform: translateY(5px); }
    to { transform: translateY(0); }
  }
}

@media (max-width: 480px) {
  .composition { padding-block: 16px 40px; }
  .fresco { margin-top: 32px; }
  .colophon { letter-spacing: .025em; }
}
