/*--------------------------------------------------------------
# Ca Đoàn Hiển Linh  (/hienlinhchoir)
# The choir's own look, apart from mthien.com: a choir book.
# Parchment pages, red rubrics (the red instructions printed in
# chant books), gold leaf and the four-line chant staff.
--------------------------------------------------------------*/
:root {
  --paper: #f7f1e6;
  --paper-2: #efe5d2;
  --card: #fffaf0;
  --ink: #2b211d;
  --ink-soft: #6b5a4f;
  --rubric: #a3322c;
  --rubric-deep: #7e231f;
  --gold: #b0843a;
  --gold-soft: #d8b876;
  --line: rgba(43, 33, 29, .14);
  --night: #1d1215;
  --night-2: #2a1a1d;
  --on-night: #f4eadb;
  --on-night-soft: #c9b8a5;
  --shadow: 0 1px 2px rgba(43, 33, 29, .06), 0 12px 32px -12px rgba(43, 33, 29, .22);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161011;
    --paper-2: #1e1517;
    --card: #231a1b;
    --ink: #f1e7d8;
    --ink-soft: #b8a795;
    --rubric: #e27a6f;
    --rubric-deep: #f0978d;
    --gold: #d6b06a;
    --gold-soft: #8e7140;
    --line: rgba(241, 231, 216, .13);
    --night: #0f0a0b;
    --night-2: #1b1214;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #161011;
  --paper-2: #1e1517;
  --card: #231a1b;
  --ink: #f1e7d8;
  --ink-soft: #b8a795;
  --rubric: #e27a6f;
  --rubric-deep: #f0978d;
  --gold: #d6b06a;
  --gold-soft: #8e7140;
  --line: rgba(241, 231, 216, .13);
  --night: #0f0a0b;
  --night-2: #1b1214;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe, video { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--rubric); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rubric-deep); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
p { margin: 0 0 1em; }

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

.ch-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .ch-wrap { padding: 0 16px; } }

.ch-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 14px; }
.ch-skip:focus { left: 8px; }

/* small red capitals above a heading, like a rubric */
.rubric {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rubric);
  margin-bottom: 14px;
}
.rubric::before { content: ""; width: 9px; height: 8px; background: currentColor; flex: none; }

.ch-title { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.ch-title h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.ch-title p { color: var(--ink-soft); }
.ch-title .chant { width: 220px; color: var(--gold); margin: 6px auto 0; display: block; opacity: .8; }

.ch-section { padding: 96px 0; }
.ch-section.alt { background: var(--paper-2); }
@media (max-width: 700px) { .ch-section { padding: 64px 0; } }

/* chant staff */
.chant { display: block; height: auto; }
.chant-lines { opacity: .55; }

/* buttons */
.ch-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--rubric);
  border-radius: 999px;
  background: var(--rubric);
  color: #fff;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.ch-btn:hover { background: var(--rubric-deep); border-color: var(--rubric-deep); color: #fff; transform: translateY(-1px); }
.ch-btn.ghost { background: transparent; color: var(--on-night); border-color: rgba(244, 234, 219, .45); }
.ch-btn.ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); background: transparent; }
.ch-btn.line { background: transparent; color: var(--rubric); }
.ch-btn.line:hover { background: var(--rubric); color: #fff; }

.ch-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.ch-link:hover { text-decoration: underline; }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.ch-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.ch-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .5); }
.ch-header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }

.ch-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.ch-brand:hover { color: var(--ink); }
.ch-brand img { width: 64px; height: 64px; }
.ch-brand span { font: 600 28px/1 var(--serif); display: flex; flex-direction: column; }
.ch-brand small { font: 600 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--rubric); margin-bottom: 4px; }

.ch-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ch-nav a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  color: var(--ink);
  font-size: 14.5px; font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.ch-nav a .bi { font-size: 11px; opacity: .6; }
.ch-nav a:hover { color: var(--rubric); }
.ch-nav a[aria-current="page"] { color: var(--rubric); background: color-mix(in srgb, var(--rubric) 10%, transparent); }

.ch-menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; color: var(--ink); }
.ch-menu-toggle span, .ch-menu-toggle span::before, .ch-menu-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; transition: transform .25s, opacity .2s; content: "";
}
.ch-menu-toggle span { top: 21px; }
.ch-menu-toggle span::before { left: 0; top: -7px; }
.ch-menu-toggle span::after { left: 0; top: 7px; }
.ch-menu-toggle[aria-expanded="true"] span { background: transparent; }
.ch-menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); background: var(--ink); }
.ch-menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); background: var(--ink); }

@media (max-width: 1024px) {
  .ch-menu-toggle { display: block; }
  .ch-nav {
    position: absolute; top: 88px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .35);
    display: none;
  }
  .ch-nav.is-open { display: block; }
  .ch-nav ul { flex-direction: column; padding: 8px 16px 18px; }
  .ch-nav a { display: flex; padding: 12px 14px; font-size: 16px; border-radius: var(--radius); }
}

/*--------------------------------------------------------------
# Night bands: hero, page headers, footer
--------------------------------------------------------------*/
.ch-hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: flex-end;
  padding: 140px 0 72px;
  color: var(--on-night);
  background: var(--night);
  isolation: isolate;
  overflow: hidden;
}
.ch-hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ch-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 18% 100%, rgba(29, 18, 21, .92) 0%, rgba(29, 18, 21, .55) 45%, transparent 75%),
    linear-gradient(180deg, rgba(29, 18, 21, .35) 0%, rgba(29, 18, 21, .15) 35%, rgba(29, 18, 21, .9) 100%);
}
.ch-hero .ch-wrap { position: relative; }
.ch-hero-eyebrow { font: 500 13px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.ch-hero h1 { color: var(--on-night); font-weight: 600; font-size: clamp(64px, 11vw, 148px); line-height: .9; margin: 0; letter-spacing: -.02em; }
.ch-hero h1 small { display: block; font-size: .3em; font-style: italic; font-weight: 500; letter-spacing: .02em; color: var(--gold-soft); margin-bottom: .2em; }
.ch-hero .chant { color: var(--gold-soft); width: min(520px, 100%); margin: 26px 0 22px; }
.ch-hero-lead { font: italic 500 clamp(21px, 2.4vw, 27px)/1.4 var(--serif); max-width: 34ch; color: var(--on-night); margin-bottom: 30px; }
.ch-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ch-mass {
  position: absolute; right: 24px; bottom: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(216, 184, 118, .35);
  background: rgba(29, 18, 21, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
}
.ch-mass .day { font: 600 44px/1 var(--serif); color: var(--gold-soft); }
.ch-mass .day small { font-size: .42em; margin-left: 2px; letter-spacing: .05em; }
.ch-mass p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--on-night-soft); }
.ch-mass strong { display: block; color: var(--on-night); font-size: 15px; font-weight: 600; }
@media (max-width: 900px) {
  .ch-mass { position: static; margin-top: 40px; display: inline-flex; }
}

.ch-pagehead {
  position: relative;
  padding: 88px 0 72px;
  background: radial-gradient(ellipse at 80% 0%, var(--night-2), var(--night) 70%);
  color: var(--on-night);
  overflow: hidden;
}
.ch-pagehead .chant.bg { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 760px; color: var(--gold-soft); opacity: .16; }
.ch-pagehead .ch-wrap { position: relative; }
.ch-pagehead .rubric { color: var(--gold-soft); }
.ch-pagehead h1 { color: var(--on-night); font-size: clamp(46px, 7vw, 84px); line-height: 1; margin-bottom: 18px; }
.ch-pagehead p { color: var(--on-night-soft); max-width: 60ch; margin: 0; font-size: 17px; }
.ch-pagehead p strong { color: var(--on-night); font-weight: 500; }
.ch-crumbs { font-size: 14px; margin-bottom: 26px; color: var(--on-night-soft); }
.ch-crumbs a { color: var(--on-night-soft); text-decoration: none; }
.ch-crumbs a:hover { color: var(--gold-soft); }
.ch-crumbs span { margin: 0 8px; opacity: .5; }

/*--------------------------------------------------------------
# Home: about
--------------------------------------------------------------*/
.ch-about { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; }
@media (max-width: 900px) { .ch-about { grid-template-columns: 1fr; gap: 48px; } }

.ch-about h2 { font-size: clamp(36px, 4.6vw, 54px); }
.ch-about .lead { font: italic 500 24px/1.45 var(--serif); color: var(--ink-soft); margin-bottom: 28px; }
.ch-about-text p { color: var(--ink); }
/* the illuminated first letter */
.ch-about-text .drop::first-letter {
  float: left;
  font: 700 84px/.8 var(--serif);
  color: var(--rubric);
  padding: 8px 12px 0 0;
}

.ch-seal { position: relative; text-align: center; }
.ch-seal-ring {
  width: min(300px, 80%); aspect-ratio: 1; margin: 0 auto 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--gold-soft), 0 0 0 10px var(--card), 0 0 0 11px var(--gold-soft), var(--shadow);
}
.ch-seal-ring img { width: 72%; }
.ch-seal-ring + .since { font: italic 500 18px/1 var(--serif); color: var(--gold); margin-bottom: 32px; }

/* facts and people: a printed programme with dotted leaders */
.ch-programme { list-style: none; margin: 0; padding: 0; text-align: left; }
.ch-programme li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.ch-programme li::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted color-mix(in srgb, var(--ink) 35%, transparent); transform: translateY(-4px); }
.ch-programme .k { order: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rubric); white-space: nowrap; }
.ch-programme .v { order: 2; font: 600 19px/1.3 var(--serif); text-align: right; }
.ch-programme .v a { color: inherit; }

/* people */
.ch-people { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-top: 96px; }
@media (max-width: 900px) { .ch-people { grid-template-columns: 1fr; gap: 40px; margin-top: 72px; } }

.ch-card-program {
  background: var(--card);
  padding: 44px 40px;
  border: 1px solid var(--line);
  outline: 1px solid var(--gold-soft);
  outline-offset: -10px;
  box-shadow: var(--shadow);
  text-align: center;
}
@media (max-width: 600px) { .ch-card-program { padding: 36px 24px; } }
.ch-card-program h3 { font-size: 32px; margin-bottom: 4px; }
.ch-card-program .sub { font: italic 500 17px/1.4 var(--serif); color: var(--ink-soft); margin-bottom: 18px; }
.ch-card-program .chant { color: var(--rubric); width: 160px; margin: 0 auto 22px; }
.ch-card-program .group + .group { margin-top: 18px; }
.ch-card-program .group-name { font: italic 600 15px/1 var(--serif); color: var(--gold); margin: 0 0 4px; }

.ch-group-photo { margin: 0; }
.ch-group-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/4.2; object-fit: cover; object-position: center 35%; }
.ch-group-photo figcaption { font: italic 500 16px/1.4 var(--serif); color: var(--ink-soft); margin-top: 14px; text-align: center; }

/*--------------------------------------------------------------
# Home: rules
--------------------------------------------------------------*/
.ch-rules { max-width: 860px; margin: 0 auto; }
.ch-rule { border-top: 1px solid var(--line); }
.ch-rule:last-child { border-bottom: 1px solid var(--line); }
.ch-rule summary {
  display: flex; align-items: center; gap: 22px;
  padding: 22px 4px;
  list-style: none;
  cursor: pointer;
  font: 600 25px/1.2 var(--serif);
}
.ch-rule summary::-webkit-details-marker { display: none; }
.ch-rule summary .num { font: 600 30px/1 var(--serif); color: var(--rubric); width: 44px; flex: none; }
.ch-rule summary .bi { margin-left: auto; color: var(--ink-soft); font-size: 18px; transition: transform .25s; }
.ch-rule[open] summary .bi { transform: rotate(45deg); color: var(--rubric); }
.ch-rule summary:hover { color: var(--rubric); }
.ch-rule ul { margin: 0 0 26px; padding: 0 0 0 66px; list-style: none; }
.ch-rule li { position: relative; padding: 5px 0; color: var(--ink); }
.ch-rule li::before { content: ""; position: absolute; left: -22px; top: 15px; width: 7px; height: 6px; background: var(--gold); }
@media (max-width: 600px) {
  .ch-rule summary { gap: 14px; font-size: 21px; }
  .ch-rule summary .num { width: 32px; font-size: 24px; }
  .ch-rule ul { padding-left: 46px; }
}

/*--------------------------------------------------------------
# Home: resources
--------------------------------------------------------------*/
.ch-resources { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
@media (max-width: 900px) { .ch-resources { grid-template-columns: 1fr; } }

.ch-res {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.ch-res:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); color: var(--ink); }
.ch-res .kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rubric); margin-bottom: 10px; }
.ch-res h3 { font-size: 30px; margin-bottom: 10px; }
.ch-res p { color: var(--ink-soft); margin-bottom: 22px; }
.ch-res .more { margin-top: auto; font-weight: 500; color: var(--rubric); display: inline-flex; gap: 8px; align-items: center; }
.ch-res .bi-big { position: absolute; right: 24px; top: 22px; font-size: 30px; color: var(--gold); }

.ch-res.feature {
  background: radial-gradient(ellipse at 100% 0%, var(--night-2), var(--night) 70%);
  border-color: transparent;
  color: var(--on-night);
  justify-content: flex-end;
  min-height: 320px;
}
.ch-res.feature:hover { color: var(--on-night); }
.ch-res.feature .chant { position: absolute; left: 34px; right: 34px; top: 54px; width: calc(100% - 68px); color: var(--gold-soft); opacity: .7; }
.ch-res.feature .kicker, .ch-res.feature .more { color: var(--gold-soft); }
.ch-res.feature .kicker { margin-top: auto; }
.ch-res.feature .more { margin-top: 0; }
.ch-res.feature h3 { color: var(--on-night); font-size: 40px; }
.ch-res.feature p { color: var(--on-night-soft); max-width: 40ch; }

.ch-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .ch-links { grid-template-columns: 1fr; } }
.ch-links a {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px 20px 24px 0;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.ch-links a:hover strong { color: var(--rubric); }
.ch-links .bi { font-size: 22px; color: var(--rubric); line-height: 1.2; }
.ch-links strong { display: block; font: 600 21px/1.25 var(--serif); margin-bottom: 4px; transition: color .2s; }
.ch-links span span { color: var(--ink-soft); font-size: 14.5px; }

/*--------------------------------------------------------------
# Home: photos and the photo viewer
--------------------------------------------------------------*/
/* each album is a spread: a header, then a mosaic with the first photo large */
.ch-album {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.ch-album + .ch-album { margin-top: 40px; }
@media (max-width: 600px) { .ch-album { padding: 20px 16px; } }

.ch-album-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.ch-album-head .rubric { margin-bottom: 8px; }
.ch-album-head h3 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 4px; }
.ch-album-head p { margin: 0; font: italic 500 18px/1.4 var(--serif); color: var(--ink-soft); }
.ch-album-head .ch-btn { padding: 11px 20px; font-size: 14px; }

.ch-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(110px, 13vw, 168px);
  grid-auto-flow: dense;
  gap: 10px;
}
.ch-photos a:first-child { grid-column: 1 / span 2; grid-row: span 2; }
.ch-album.flip .ch-photos a:first-child { grid-column: 3 / span 2; }
@media (max-width: 700px) {
  .ch-photos { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: 8px; }
  .ch-photos a:first-child, .ch-album.flip .ch-photos a:first-child { grid-column: 1 / span 2; grid-row: span 2; }
}

.ch-photos a { position: relative; display: block; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.ch-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s; }
.ch-photos a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(29, 18, 21, .55));
  opacity: 0; transition: opacity .35s;
}
.ch-photos .zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 250, 240, .92); color: var(--rubric); font-size: 14px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.ch-photos a:hover img, .ch-photos a:focus-visible img { transform: scale(1.05); filter: saturate(1.1); }
.ch-photos a:hover::after, .ch-photos a:focus-visible::after { opacity: 1; }
.ch-photos a:hover .zoom, .ch-photos a:focus-visible .zoom { opacity: 1; transform: none; }

.ch-viewer { position: fixed; inset: 0; z-index: 200; background: rgba(15, 9, 10, .96); display: none; color: #fff; }
.ch-viewer.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.ch-viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 14px; color: #d8cbbb; }
.ch-viewer figure { margin: 0; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.ch-viewer img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; object-fit: contain; }
.ch-viewer figcaption { text-align: center; padding: 14px 16px 22px; font: italic 500 18px/1.4 var(--serif); color: #d8cbbb; }
.ch-viewer button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 30px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.ch-viewer button:hover { background: rgba(255, 255, 255, .1); }
.ch-viewer .prev, .ch-viewer .next { position: absolute; top: 50%; transform: translateY(-50%); }
.ch-viewer .prev { left: 8px; }
.ch-viewer .next { right: 8px; }
@media (max-width: 600px) { .ch-viewer figure { padding: 0 8px; } .ch-viewer .prev, .ch-viewer .next { top: auto; bottom: 8px; transform: none; } }

/*--------------------------------------------------------------
# Home: videos
--------------------------------------------------------------*/
.ch-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .ch-videos { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.ch-video .frame { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; box-shadow: var(--shadow); }
.ch-video .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .88; }
.ch-video .frame:hover img { transform: scale(1.04); opacity: 1; }
.ch-video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ch-video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(163, 50, 44, .92); color: #fff; display: grid; place-items: center; font-size: 34px; padding-left: 4px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .15); transition: transform .25s; }
.ch-video .frame:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.ch-video .kicker { display: block; margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rubric); }
.ch-video h3 { font-size: 26px; margin: 4px 0 6px; }
.ch-video a { font-size: 14.5px; }

/*--------------------------------------------------------------
# Tập Hát: this week, and all songs
--------------------------------------------------------------*/
.ch-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 980px; margin: 0 auto; }
.ch-week .ch-card-program { text-align: left; }
.ch-week .ch-card-program h3 { text-align: center; font-size: 26px; line-height: 1.25; }
.ch-week .ch-card-program .sub { text-align: center; }
.ch-week ol { list-style: none; counter-reset: song; margin: 0; padding: 0; }
.ch-week li { counter-increment: song; display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ch-week li::before { content: counter(song, upper-roman) "."; font: 600 19px/1 var(--serif); color: var(--rubric); width: 34px; flex: none; }
.ch-week li a, .ch-week li .t { font: 600 21px/1.3 var(--serif); color: var(--ink); text-decoration: none; flex: 1; }
.ch-week li a:hover { color: var(--rubric); }
.ch-week li .has { color: var(--gold); font-size: 15px; display: inline-flex; gap: 6px; }

.ch-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ch-search { position: relative; flex: 1 1 320px; max-width: 520px; }
.ch-search .bi { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.ch-search input {
  width: 100%; padding: 14px 18px 14px 48px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font: 400 16px/1.2 var(--sans);
}
.ch-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.ch-count { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.ch-count span { font: 600 22px/1 var(--serif); color: var(--rubric); margin-right: 4px; }

.ch-letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 40px; padding: 0; list-style: none; }
.ch-letters a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: var(--radius); font: 600 18px/1 var(--serif); color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--card); }
.ch-letters a:hover { color: #fff; background: var(--rubric); border-color: var(--rubric); }

.ch-letter-group { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.ch-letter-group > h3 { font: 700 54px/1 var(--serif); color: var(--rubric); margin: 0; }
@media (max-width: 700px) {
  .ch-letter-group { grid-template-columns: 1fr; gap: 8px; }
  .ch-letter-group > h3 { font-size: 40px; }
}
.ch-songs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 28px; }
.ch-songs a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background .2s; }
.ch-songs a:hover { background: var(--card); }
.ch-songs a:hover strong { color: var(--rubric); }
.ch-songs .t { flex: 1; min-width: 0; }
.ch-songs strong { display: block; font: 600 20px/1.25 var(--serif); transition: color .2s; }
.ch-songs .who { display: block; font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-songs .has { color: var(--gold); font-size: 13px; white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; }
.ch-empty { text-align: center; padding: 48px 0; color: var(--ink-soft); font: italic 500 22px/1.4 var(--serif); }

/*--------------------------------------------------------------
# Tập Hát: one song
--------------------------------------------------------------*/
.ch-song-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; }
.ch-song-meta span { display: inline-flex; gap: 8px; align-items: center; color: var(--on-night-soft); font-size: 15px; }
.ch-song-meta .bi { color: var(--gold-soft); }
.ch-song-meta strong { color: var(--on-night); font-weight: 500; }

.ch-practice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .ch-practice { grid-template-columns: 1fr; } }
.ch-practice h2 { font-size: 32px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.ch-practice h2 .bi { color: var(--rubric); font-size: 22px; }

.ch-player {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  border-left: 3px solid var(--rubric);
  transition: box-shadow .25s;
}
.ch-player.harmony { border-left-color: var(--gold); }
.ch-player.is-playing { box-shadow: var(--shadow); }
.ch-player-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 14px; }
.ch-player-label .part { font: 600 22px/1.2 var(--serif); }
.ch-player-label .who { font-size: 13.5px; color: var(--ink-soft); }
.ch-player audio { width: 100%; }
.ch-player.enhanced audio { display: none; }

.ch-controls { display: flex; align-items: center; gap: 14px; }
.ch-play {
  flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: var(--rubric); color: #fff; font-size: 26px;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, transform .2s;
}
.ch-player.harmony .ch-play { background: var(--gold); }
.ch-play:hover { transform: scale(1.06); }
.ch-play .bi-play-fill { padding-left: 3px; }
.ch-bar { flex: 1; min-width: 0; }
.ch-bar input[type=range] {
  --tone: var(--rubric);
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer;
}
.ch-player.harmony .ch-bar input[type=range] { --tone: var(--gold); }
.ch-bar input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--tone) var(--p, 0%), var(--line) var(--p, 0%)); }
.ch-bar input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.ch-bar input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--tone); }
.ch-bar input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--tone); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--tone); }
.ch-bar input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--tone); border: 2px solid var(--card); }
.ch-time { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: 2px; }
.ch-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ch-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  font: 500 13px/1 var(--sans); cursor: pointer;
  transition: all .2s;
}
.ch-chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.ch-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.ch-sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.ch-sheet iframe { display: block; width: 100%; height: 78vh; min-height: 520px; border: 0; background: #fff; }
.ch-sheet-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 20px; }
.ch-nosheet { padding: 40px 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); font: italic 500 20px/1.45 var(--serif); }
.ch-back { margin-top: 24px; }

/*--------------------------------------------------------------
# Liên Lạc
--------------------------------------------------------------*/
.ch-contact { display: grid; grid-template-columns: 1fr 1.3fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 900px) { .ch-contact { grid-template-columns: 1fr; } }
.ch-contact-info { display: flex; flex-direction: column; position: relative; padding: 48px 40px; background: radial-gradient(ellipse at 0% 100%, var(--night-2), var(--night) 70%); color: var(--on-night); overflow: hidden; }
.ch-contact-info .chant { color: var(--gold-soft); opacity: .6; width: 220px; margin-bottom: 26px; }
.ch-contact-info h3 { color: var(--on-night); font-size: 38px; }
.ch-contact-info p { color: var(--on-night-soft); }
.ch-contact-info ul { list-style: none; margin: 28px 0 0; padding: 0; }
.ch-contact-info li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(244, 234, 219, .12); color: var(--on-night); }
.ch-contact-info li .bi { color: var(--gold-soft); }
.ch-contact-info a { color: var(--on-night); }
.ch-contact-art { display: block; width: 100%; max-width: 300px; margin: auto auto 0; padding-top: 32px; color: var(--gold-soft); }
.ch-form { padding: 48px 40px; background: var(--card); }
@media (max-width: 600px) { .ch-contact-info, .ch-form { padding: 36px 22px; } }
.ch-form h3 { font-size: 34px; margin-bottom: 26px; }
.ch-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ch-fields .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .ch-fields { grid-template-columns: 1fr; } }
.ch-fields label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.ch-fields input, .ch-fields textarea {
  width: 100%; padding: 12px 0;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  background: transparent; color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  border-radius: 0;
  transition: border-color .2s;
}
.ch-fields textarea { resize: vertical; }
.ch-fields input:focus, .ch-fields textarea:focus { outline: none; border-bottom-color: var(--rubric); box-shadow: 0 1px 0 var(--rubric); }
.ch-status { min-height: 1.5em; margin: 6px 0 14px; font-size: 15px; }
.ch-status.is-success { color: #2f7a46; }
.ch-status.is-error { color: var(--rubric); }
.ch-map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ch-map iframe { display: block; width: 100%; height: 380px; border: 0; filter: sepia(.25) saturate(.9); }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.ch-footer { background: var(--night); color: var(--on-night-soft); padding: 56px 0 28px; font-size: 15px; }
.ch-footer .chant-footer { color: var(--gold-soft); opacity: .35; margin-bottom: 44px; width: 100%; }
.ch-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 36px; }
@media (max-width: 900px) { .ch-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ch-footer-grid { grid-template-columns: 1fr; } }
.ch-footer h2 { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.ch-footer p { margin: 0; }
.ch-footer-brand { display: flex; gap: 16px; align-items: center; }
.ch-footer-brand img { width: 64px; height: 64px; flex: none; }
.ch-footer-brand strong { display: block; font: 600 26px/1.1 var(--serif); color: var(--on-night); margin-bottom: 6px; }
.ch-footer-brand em { font: italic 500 16px/1.4 var(--serif); }
.ch-footer ul { list-style: none; margin: 0; padding: 0; }
.ch-footer li { padding: 2px 0; }
.ch-footer a { color: var(--on-night-soft); text-decoration: none; }
.ch-footer a:hover { color: var(--gold-soft); }
.ch-footer-meta { margin-top: 44px !important; padding-top: 22px; border-top: 1px solid rgba(244, 234, 219, .1); font-size: 13.5px; }

/*--------------------------------------------------------------
# Fade-in as sections scroll into view
--------------------------------------------------------------*/
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
