/* St. Lou-kulele Sing-Along: shared styles for every page.
   Black and white. Change the colors in the :root block below. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --fg: #0a0a0a;
  --muted: #555555;
  --line: #0a0a0a;
  --soft: #e9e9e9;
  --accent: #0a0a0a;
  --accent-ink: #ffffff;
  --band: #0a0a0a;
  --band-fg: #ffffff;
  --ph-a: #e4e4e4;
  --ph-b: #f4f4f4;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Karla", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --surface: #0a0a0a; --fg: #f5f5f5; --muted: #a8a8a8; --line: #f5f5f5; --soft: #232323;
    --accent: #f5f5f5; --accent-ink: #0a0a0a; --band: #f5f5f5; --band-fg: #0a0a0a;
    --ph-a: #1c1c1c; --ph-b: #2a2a2a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --surface: #0a0a0a; --fg: #f5f5f5; --muted: #a8a8a8; --line: #f5f5f5; --soft: #232323;
  --accent: #f5f5f5; --accent-ink: #0a0a0a; --band: #f5f5f5; --band-fg: #0a0a0a;
  --ph-a: #1c1c1c; --ph-b: #2a2a2a; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Header */
header.brand { padding-block: 24px 8px; }
.logo-link { display: inline-block; text-decoration: none; }
.logo-img { display: block; max-width: min(100%, 220px); width: auto; height: auto; margin-bottom: 6px; }
.site-name { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 52px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.tagline { max-width: 60ch; margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-img { filter: invert(1); } }
:root[data-theme="dark"] .logo-img { filter: invert(1); }
nav ul { list-style: none; margin: 18px 0 0; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 4px 6px; border-block: 1px solid var(--line); }
nav a { display: inline-block; padding: 6px 12px; text-decoration: none; font-family: var(--display); font-weight: 700; border-radius: 4px; }
nav a:hover, nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* Contact bar */
.util { margin-top: 20px; background: var(--band); color: var(--band-fg); font-size: 14px; }
.util .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 10px; }
.social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.util a { text-decoration: none; }
.util a:hover, footer a:hover { text-decoration: underline; }

/* Home */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 28px; }
.tile { position: relative; display: block; text-decoration: none; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 7; max-width: 100%; }
.tile .media { position: absolute; inset: 0; }
.tile .label { position: absolute; left: 0; bottom: 0; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-size: 22px; }
.ph, .media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--ph-a) 0 14px, var(--ph-b) 14px 28px); color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; padding: 8px; }
.intro { padding-block: 36px 12px; max-width: 68ch; }
.intro p { margin: 0 0 1em; font-weight: 600; }
.intro a, .prose a, .faq a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h2.section { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 32px 0 14px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; min-width: 0; }
.post .media { aspect-ratio: 8 / 5; max-width: 100%; }
.post .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.post h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.2; text-wrap: balance; }
.post h3 a { text-decoration: none; }
.post h3 a:hover { text-decoration: underline; }
.post time, .entry time { font-size: 14px; color: var(--muted); }
.post p { margin: 0; color: var(--muted); font-size: 15.5px; }
.post .more { margin-top: auto; font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.older { margin: 28px 0 0; font-weight: 600; }

/* Inner pages */
.page { padding-block: 32px 8px; }
.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6vw, 48px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 24px; text-wrap: balance; }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 32px 0 8px; text-wrap: balance; }
.prose p { margin: 0 0 1em; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.2em 0; border-radius: 4px; }
.lede { font-size: 19px; font-weight: 600; }

/* Blog */
.entry { max-width: 68ch; padding-block: 8px 28px; border-bottom: 1px solid var(--soft); margin-bottom: 28px; }
.entry h2 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.15; margin: 4px 0 12px; text-wrap: balance; }
.entry p { margin: 0 0 1em; }
.entry img { display: block; max-width: 100%; height: auto; margin: 0 0 1em; border-radius: 4px; }

/* Songbooks */
.books { list-style: none; margin: 0; padding: 0; max-width: 68ch; border-top: 1px solid var(--line); }
.books li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.books .t { font-family: var(--display); font-weight: 700; font-size: 20px; min-width: 0; }
.books .n { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 15.5px; }
.btn { display: inline-block; padding: 8px 16px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 15px; border-radius: 4px; }
.btn:hover { opacity: 0.85; }

/* FAQ */
.faq { max-width: 68ch; margin: 0; }
.faq dt { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 28px 0 6px; text-wrap: balance; }
.faq dd { margin: 0; }
.faq dd p { margin: 0 0 0.8em; }

/* Calendar */
.cal-frame { width: 100%; height: 640px; max-height: 80vh; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.note { max-width: 68ch; padding: 16px 18px; border: 2px dashed var(--line); border-radius: 4px; }
.note p { margin: 0 0 0.7em; }
.note p:last-child { margin: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.contact-list a { font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Footer */
footer { margin-top: 48px; background: var(--band); color: var(--band-fg); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 22px; }
footer a { text-decoration: none; }

@media (prefers-reduced-motion: no-preference) { nav a { transition: background 0.15s; } }
