/* Sonnet page — On Constraints */
/* Visual treatment for the walking-couplet form */

.sonnet-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.sonnet-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 0.4rem;
}

.sonnet-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.sonnet-subtitle {
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.65);
  margin: 0.2rem 0 0.1rem;
}

.sonnet-subtitle-secondary {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 1.4rem;
}

.sonnet-meta {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 2rem;
  border-left: 2px solid rgba(0, 0, 0, 0.15);
  padding-left: 0.9rem;
}

.sonnet-dedication-note {
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.5;
}

.sonnet-body {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 2.5rem 0;
}

.sonnet-couplet {
  margin-bottom: 1.6rem;
}

.sonnet-couplet-final {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sonnet-line {
  margin: 0;
  font-style: italic;
}

/* The indentation arc — these create the cummings-style walking pattern.
   Adjust the rem values to taste; current values produce a visible arc
   while remaining readable on narrow viewports. */

.sonnet-line-flush {
  margin-left: 0;
}

.sonnet-line-indent-1 {
  margin-left: 1.5rem;
}

.sonnet-line-indent-2 {
  margin-left: 3rem;
}

.sonnet-line-indent-3 {
  margin-left: 4.5rem;
}

.sonnet-line-indent-4 {
  margin-left: 6rem;
}

/* On narrower viewports, compress the arc so the poem still walks
   but does not break readability on phones */
@media (max-width: 640px) {
  .sonnet-line-indent-1 { margin-left: 0.75rem; }
  .sonnet-line-indent-2 { margin-left: 1.5rem; }
  .sonnet-line-indent-3 { margin-left: 2.25rem; }
  .sonnet-line-indent-4 { margin-left: 3rem; }
}

/* On very narrow viewports, fall back to flush left so the lines do not wrap awkwardly */
@media (max-width: 380px) {
  .sonnet-line-indent-1,
  .sonnet-line-indent-2,
  .sonnet-line-indent-3,
  .sonnet-line-indent-4 {
    margin-left: 0;
  }
}

.sonnet-coda {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.7);
}

.sonnet-coda > p:first-child {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.sonnet-coda-secondary {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
}

.sonnet-license {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 1rem;
}

.sonnet-license .note {
  font-style: italic;
  margin-top: 0.3rem;
}

.sonnet-license a {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: underline;
}
