/* ==========================================================================
   Whispers from the Soul — poetry section stylesheet.
   Deliberately its own thing: warm paper/ink palette, literary serif
   typography, no shared chrome with site.css. Plain CSS, no build step.
   ========================================================================== */

:root {
  --paper:      #f3ecd8;
  --paper-dim:  #ece2c8;
  --paper-edge: #ddd0ab;
  --ink:        #2b2318;
  --ink-soft:   #5b4f3c;
  --ink-faint:  #8a7c62;
  --wine:       #7a2e2e;
  --wine-soft:  #9a4a3f;
  --gold:       #a8823a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #201a12;
    --paper-dim:  #251f16;
    --paper-edge: #3a3121;
    --ink:        #ece3cd;
    --ink-soft:   #c9bc9c;
    --ink-faint:  #8f8267;
    --wine:       #d98b7c;
    --wine-soft:  #e8a99b;
    --gold:       #cba75c;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .6rem 1rem; background: var(--paper); border: 1px solid var(--ink);
  font-family: sans-serif; font-size: .9rem; color: var(--ink);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.p-wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 3rem 1.25rem 5rem;
}

/* -- quiet header: just a way back, never the site's real nav ----------- */
.p-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: sans-serif;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--paper-edge);
}
.p-header a { color: var(--ink-faint); text-decoration: none; }
.p-header a:hover { color: var(--wine); }

/* -- anthology masthead --------------------------------------------------- */
.p-masthead { text-align: center; margin-bottom: 3.5rem; }
.p-masthead .p-eyebrow {
  display: block;
  font-family: sans-serif;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.p-masthead h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: var(--ink);
}
.p-masthead .p-subtitle {
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 1.5rem;
}
.p-masthead .p-note {
  font-family: sans-serif;
  font-size: .9rem;
  color: var(--ink-faint);
  max-width: 30rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* -- table of contents ---------------------------------------------------- */
.p-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--paper-edge);
}
.p-toc li {
  border-bottom: 1px solid var(--paper-edge);
}
.p-toc a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem .25rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.2rem;
  font-style: italic;
  transition: padding-left .2s ease, color .2s ease;
}
.p-toc a:hover {
  color: var(--wine);
  padding-left: .5rem;
}
.p-toc .p-toc-num {
  font-family: sans-serif;
  font-style: normal;
  font-size: .75rem;
  color: var(--ink-faint);
  flex-shrink: 0;
}

/* -- a single poem ---------------------------------------------------------- */
.p-poem-head { text-align: center; margin-bottom: 3rem; }
.p-poem-head h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.p-rule {
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem auto 0;
  border: none;
}

.p-poem {
  font-size: 1.2rem;
  line-height: 1.95;
  white-space: pre-wrap;
  margin: 0 0 3.5rem;
  color: var(--ink);
}

.p-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: sans-serif;
  font-size: .85rem;
  padding-top: 2rem;
  border-top: 1px solid var(--paper-edge);
}
.p-nav a { text-decoration: none; color: var(--ink-soft); }
.p-nav a:hover { color: var(--wine); }
.p-nav .p-nav-label {
  display: block;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .2rem;
}
.p-nav-next { text-align: right; margin-left: auto; }

.p-footer {
  text-align: center;
  font-family: sans-serif;
  font-size: .75rem;
  color: var(--ink-faint);
  padding: 2rem 1.25rem 3rem;
}
.p-footer a { color: var(--ink-faint); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
