/* Styles for the generated hymn and edition pages (see tools/build-seo.mjs). */
:root {
    --navy: #162b3a;
    --ink: #22313b;
    --muted: #687983;
    --paper: #ffffff;
    --canvas: #eef2f1;
    --line: #d7e0df;
    --gold: #b5853d;
    --focus: #3c82a4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    padding: 0 16px 48px;
    color: var(--ink);
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background: var(--canvas);
}

.masthead {
    margin: 0 -16px 24px;
    padding: clamp(20px, 3vw, 36px) 16px;
    background: var(--navy);
    color: #fff;
    border-bottom: 4px solid var(--gold);
}

.container { width: min(100%, 900px); margin: auto; }

.crumbs { font-size: .9rem; color: #c9d6dc; }
.crumbs a { color: #fff; }
.edition { margin: 14px 0 4px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #e1c691; }

h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: normal; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.first-line { margin: 8px 0 0; color: #dbe5e9; }
.first-line a { color: #fff; }

a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.button {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--navy);
    text-decoration: none;
}
.button.primary { background: var(--navy); border-color: var(--navy); color: #fff; }

.sheet {
    display: block;
    width: 100%;
    height: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; }
.pager a { color: var(--navy); }

.hymn-index { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 20px; }
.hymn-index a { display: block; padding: 8px 4px; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.hymn-index a:hover { background: var(--paper); }
.hymn-index .num { display: inline-block; min-width: 2.6em; font-weight: bold; color: var(--gold); }

.site-footer { margin: 40px auto 0; width: min(100%, 900px); color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--muted); }
