/* Hymn pages (/hymn/...) built by scripts/build-pages.mjs. Same colors and type as the app. */
:root {
  --paper: #FDF7F0;
  --ivory: #F6EBDD;
  --teal: #184E4D;
  --gold: #A9771A;
  --lacquer: #0E3433;
  --muted: #5B6B68;
  --rule: #E7DAC6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--lacquer);
  font: 17px/1.55 var(--sans); -webkit-text-size-adjust: 100%;
}
main, .top, .foot { max-width: 640px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.top { padding-top: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px var(--serif); text-decoration: none; }
.brand img { border-radius: 8px; }

.crumbs { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
h1 { font: 600 34px/1.1 var(--serif); color: var(--teal); margin: 10px 0 8px; }
h2 { font: 600 22px/1.2 var(--serif); color: var(--teal); margin: 34px 0 8px; }
.lede { margin: 0 0 18px; font: 19px/1.45 var(--serif); color: var(--muted); }
.hint { margin: -6px 0 0; font-size: 14px; color: var(--muted); }

.play {
  display: inline-block; border-radius: 999px; padding: 14px 30px;
  background: var(--teal); color: var(--paper); font-weight: 650; font-size: 18px; text-decoration: none;
}
.play:active { opacity: .85; }

.credits { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0 0; padding: 14px 16px; background: var(--ivory); border-radius: 12px; font-size: 15px; }
.credits dt { color: var(--gold); font-weight: 600; }
.credits dd { margin: 0; }

.choices { padding-left: 20px; }
.choices li { margin: 4px 0; }

.hymns { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; font: 16px/1.35 var(--serif); }
.hymns li { break-inside: avoid; padding: 5px 0; }
@media (max-width: 420px) { .hymns { columns: 1; } }

.library { list-style: none; padding: 0; margin: 20px 0 0; }
.library a { display: block; padding: 12px 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
.library b { display: block; font: 600 19px/1.3 var(--serif); color: var(--teal); }
.library span { font-size: 14px; color: var(--muted); }

.foot { margin-top: 40px; padding-top: 18px; padding-bottom: 40px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
