:root {
  --bg: #e9e4dc;
  --bg-deep: #ddd6cc;
  --text: #151515;
  --muted: #5d5a56;
  --shadow: rgba(0, 0, 0, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.02)),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

.masthead {
  width: min(100%, 42rem);
  padding: 0.4rem 0 2.25rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 11ch;
}

.subtitle {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--muted);
  max-width: 34rem;
}

.dialogue {
  width: 100%;
}

.dialogue-line {
  width: min(100%, 46rem);
  margin: 0 auto;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.62;
}

.dialogue-line.no-speaker {
  display: block;
}

.speaker {
  flex: 0 0 2rem;
  font-size: 0.78rem;
  line-height: 1.8;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.08rem;
}

.line-text {
  display: block;
  min-width: 0;
}

.spacer {
  height: 0.82rem;
}

.photo-block {
  width: min(100%, 56rem);
  margin: 1.3rem auto 1.5rem;
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.42);
  box-shadow: 0 14px 40px var(--shadow);
  background: var(--bg-deep);
}

.quiet-link {
  color: inherit;
  text-decoration: none;
}

.quiet-link:visited {
  color: inherit;
}

.quiet-link:hover,
.quiet-link:focus {
  color: inherit;
  text-decoration: none;
}

.author-note {
  width: min(100%, 46rem);
  margin: 4.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(21, 21, 21, 0.18);
}

.author-note p {
  margin: 0;
  color: var(--muted);
  opacity: 0.72;
  font-size: 0.92rem;
  line-height: 1.55;
  font-style: italic;
}

@media (max-width: 740px) {
  .page {
    padding: 1.2rem 0.9rem 3rem;
  }

  .masthead {
    padding-bottom: 1.7rem;
  }

  .dialogue-line {
    width: 100%;
    gap: 0.65rem;
    font-size: 0.98rem;
  }

  .speaker {
    flex-basis: 1.65rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .photo-block {
    width: 100%;
    margin: 1.1rem auto 1.25rem;
  }

  .spacer {
    height: 0.72rem;
  }
}
