:root {
  color-scheme: light;
  --paper: #faf9f5;
  --white: #fffefa;
  --ink: #233a35;
  --green: #173f3a;
  --muted: #5d6862;
  --line: #dcded5;
  --wash: #edf0e8;
  --accent: #8c5833;
  --lyric-size: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button, .button { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: .55rem 1rem; color: var(--green); background: var(--white); cursor: pointer; }
button:hover, .button:hover { background: var(--wash); }
button:disabled { opacity: .4; cursor: default; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ad713e; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.35rem, 5vw, 3.8rem); letter-spacing: -.035em; margin-bottom: 1.25rem; }
h2 { font-size: 1.85rem; letter-spacing: -.02em; }
h3 { font-size: 1.4rem; }
.small, small { font-size: .875rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--white); padding: 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.shell, .header-inner, .footer-inner { max-width: 1152px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.3; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 56px; background: var(--green); border-radius: 2px 10px 10px 2px; color: var(--white); font-size: 1rem; letter-spacing: .08em; box-shadow: inset 5px 0 #ffffff14; }
.brand-subtitle { display: block; margin-top: 3px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .7rem; letter-spacing: .035em; color: var(--muted); }
.main-nav { display: flex; gap: 28px; font-size: .88rem; }
.main-nav a { text-decoration: none; padding: .6rem 0; }
.main-nav [aria-current="page"] { box-shadow: 0 2px var(--green); }
.hero { padding: 65px 0 45px; max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .7rem; font-weight: 650; color: var(--muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.8rem, 5.5vw, 4.5rem); margin-bottom: 20px; }
.hero h1 em { color: var(--green); font-weight: 400; }
.intro { font-size: 1.05rem; line-height: 1.75; color: var(--muted); max-width: 720px; }
.search-form { margin-top: 30px; max-width: 745px; }
.search-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.search-field { display: flex; align-items: center; background: var(--white); border: 1px solid #9cae9f; border-radius: 8px; padding: 7px; box-shadow: 0 3px 9px #233a3505; }
.search-field > span { font-family: Georgia, serif; font-size: 2rem; line-height: 1; padding: 0 8px 5px 11px; }
.search-field input { width: 100%; min-width: 0; background: transparent; color: var(--ink); border: 0; padding: .6rem .5rem; border-radius: 3px; font-size: 1rem; }
.search-field button, .button { display: inline-block; color: var(--white); background: var(--green); border-color: var(--green); text-decoration: none; }
.search-field button:hover, .button:hover { color: var(--white); background: #28574d; }
.search-form .small { margin-top: 10px; margin-bottom: 0; }
.browse-links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.browse-links > a { padding: 22px 24px; text-decoration: none; border-right: 1px solid var(--line); }
.browse-links > a:first-child { padding-left: 0; }
.browse-links > a:last-child { border: 0; }
.browse-links > a > span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.browse-links strong { font-weight: 500; }
.browse-links strong span { margin-left: 15px; }
.collection, .related { margin: 45px 0 65px; }
.section-heading { display: flex; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading > p, .section-heading > a { font-size: .85rem; color: var(--muted); }
.hymn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.hymn-row { border-bottom: 1px solid var(--line); min-width: 0; }
.hymn-row > a { display: flex; align-items: baseline; gap: 17px; padding: 18px 0; text-decoration: none; }
.hymn-row > a:hover .list-title { text-decoration: underline; text-underline-offset: .2em; }
.list-number { flex-shrink: 0; min-width: 35px; color: var(--accent); font-size: .78rem; font-variant-numeric: tabular-nums; }
.list-copy { display: block; min-width: 0; }
.list-title { display: block; font-family: Georgia, serif; font-size: 1.16rem; line-height: 1.4; }
.list-detail { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.row-arrow { margin-left: auto; font-size: .85rem; color: #879389; padding-left: 8px; }
.load-more { text-align: center; margin-top: 28px; }
.empty-state { background: var(--wash); padding: 32px; border-radius: 8px; }
.breadcrumbs { padding-top: 24px; font-size: .75rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; display: inline-block; margin-left: 7px; color: #8f988f; }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { text-decoration: underline; }
.page-heading { padding: 48px 0 32px; }
.page-heading .intro { margin-bottom: 14px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 65px; }
.category-card { display: flex; flex-direction: column; text-decoration: none; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.category-card:hover { border-color: var(--green); }
.category-card .eyebrow { font-size: .65rem; }
.category-card h2 { font-size: 1.5rem; margin-top: 12px; margin-bottom: 25px; }
.category-card > span:last-child { font-size: .78rem; margin-top: auto; color: var(--muted); }
.category-card > span:last-child span { float: right; }
.back-link { margin: 30px 0 60px; }
.index-tabs { display: flex; gap: 24px; margin-bottom: 25px; }
.index-tabs a { text-decoration: none; padding-bottom: 6px; }
.index-tabs [aria-current="page"] { border-bottom: 2px solid var(--green); }
.alphabet { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.alphabet a { width: 39px; min-height: 44px; display: grid; place-items: center; text-decoration: none; background: var(--wash); border-radius: 4px; }
.letter-section { margin: 35px 0 55px; scroll-margin-top: 24px; }
.letter-section h2 { color: var(--accent); }
.hymn-page { max-width: 800px; margin: 0 auto; }
.hymn-heading { padding: 55px 0 16px; }
.hymn-heading h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 760px; }
.hymn-heading .eyebrow a { text-decoration: none; }
.hymn-heading .eyebrow > span { margin: 0 8px; color: #9ca99e; }
.hymn-meta { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.reading-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; }
.font-tools, .action-tools { display: flex; gap: 7px; align-items: center; }
.font-tools > span { font-size: .78rem; color: var(--muted); margin-right: 5px; }
.reading-tools button { font-size: .8rem; padding: .45rem .8rem; }
.font-tools button { font-family: Georgia, serif; font-size: 1rem; min-width: 44px; }
.tool-status { min-height: 1.5em; margin: 8px 0 0; }
.lyrics { max-width: 730px; margin-top: 20px; margin-bottom: 48px; }
.verse { margin: 0 0 35px; }
.verse-label { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); margin-bottom: 13px; }
.lyric-text { white-space: pre-wrap; overflow-wrap: break-word; font-family: Georgia, "Times New Roman", serif; font-size: var(--lyric-size); line-height: 1.75; margin-bottom: 0; color: #243a34; }
.chorus { padding: 23px 28px; border-left: 2px solid #8b9d85; background: var(--wash); border-radius: 0 6px 6px 0; margin: 5px 0 35px; }
.hymn-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 18px 0; font-size: .78rem; color: var(--muted); }
.hymn-end p { margin: 0; }
.source-note { padding: 12px 15px; border: 1px solid var(--line); border-radius: 4px; font-size: .82rem; color: var(--muted); }
.adjacent-hymns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 35px auto 55px; max-width: 800px; }
.adjacent-hymns a { display: block; text-decoration: none; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.adjacent-hymns span { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 8px; }
.adjacent-hymns strong { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 400; }
.next-hymn { grid-column: 2; text-align: right; }
.prose { max-width: 740px; margin: 0 auto 70px; }
.prose section { margin-bottom: 42px; scroll-margin-top: 28px; }
.prose section p { line-height: 1.85; }
.site-footer { border-top: 1px solid var(--line); background: #f0f1eb; padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 35px; align-items: start; font-size: .8rem; }
.footer-inner strong { font-family: Georgia, serif; font-weight: 400; font-size: 1.1rem; }
.footer-inner p { color: var(--muted); margin: 0; }
.footer-inner nav { display: flex; flex-direction: column; gap: 8px; }
.footer-inner a { text-decoration: none; }
@media (max-width: 800px) {
  .shell, .header-inner, .footer-inner { padding-left: 24px; padding-right: 24px; }
  .header-inner { flex-wrap: wrap; gap: 15px; padding-top: 20px; padding-bottom: 15px; }
  .main-nav { gap: 22px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 45px; }
  .browse-links > a { padding: 20px 15px; }
  .browse-links strong { font-size: .9rem; }
  .browse-links strong span { margin-left: 4px; }
  .hymn-list { column-gap: 25px; }
  .hymn-row > a { gap: 10px; }
  .list-number { min-width: 28px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .shell, .header-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .header-inner { gap: 20px; }
  .brand-mark { width: 43px; height: 48px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 10px; font-size: .8rem; }
  .hero { padding-top: 34px; padding-bottom: 30px; }
  .hero h1 { font-size: 2.65rem; }
  .hero .intro { font-size: .95rem; }
  .desktop-break { display: none; }
  .search-field { flex-wrap: wrap; padding: 6px; }
  .search-field > span { display: none; }
  .search-field input { flex: 1; font-size: 1rem; }
  .search-field button { padding-left: .7rem; padding-right: .7rem; }
  .search-form .small { font-size: .75rem; }
  .browse-links { grid-template-columns: 1fr; }
  .browse-links > a, .browse-links > a:first-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .browse-links strong { font-size: .85rem; }
  .browse-links > a > span { font-size: .75rem; }
  .hymn-list { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; gap: 12px; }
  .category-card { padding: 20px; }
  .category-card h2 { margin: 8px 0 20px; }
  .page-heading { padding-top: 34px; }
  .hymn-heading { padding-top: 35px; }
  .hymn-heading .eyebrow { font-size: .65rem; }
  .hymn-heading .eyebrow > span { margin: 0 4px; }
  .hymn-heading h1 { font-size: 2.5rem; }
  .reading-tools { gap: 12px; }
  .action-tools { width: 100%; }
  .action-tools button { flex: 1; }
  .chorus { padding: 20px; }
  .adjacent-hymns { gap: 12px; }
  .adjacent-hymns a { padding: 16px; }
  .adjacent-hymns strong { font-size: 1rem; }
  .section-heading { align-items: baseline; }
  .related .section-heading { flex-direction: column; gap: 10px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
@media print {
  @page { margin: 18mm; }
  :root { --lyric-size: 12pt !important; color: #000; background: #fff; }
  body { background: #fff; }
  .site-header, .site-footer, .breadcrumbs, .reading-tools, .tool-status, .adjacent-hymns, .related, .hymn-end > a, .skip-link, .source-note { display: none !important; }
  .shell, .hymn-page, .lyrics { padding: 0; max-width: none; margin: 0; }
  .hymn-heading { padding: 0 0 15px; }
  .hymn-heading h1 { font-size: 26pt; }
  .verse, .chorus { break-inside: avoid; margin-bottom: 18pt; }
  .chorus { background: none; padding: 8pt 16pt; }
  .lyric-text, a { color: #000; text-decoration: none; }
  .verse-label, .eyebrow { color: #444; }
}
