:root {
  --ink: #1c1917; --mute: #78716c; --line: #e7e5e4; --line-2: #d6d3d1; --bg: #fafaf9; --card: #fff;
  --accent: #c2410c; --accent-tint: #fff7ed; --link: #1c1917; --soft: #f5f5f4;
  --ok: #15803d; --warn: #b45309; --radius: 14px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); padding-bottom: 96px;
  -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1 { font: 600 2rem/1.2 var(--serif); letter-spacing: -.01em; margin: .5em 0 .35em; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 1.8em 0 .6em; }
h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .3em; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--mute); } .small { font-size: .85rem; }
.inline { display: inline; }
button, input, select, textarea { font-family: inherit; }

/* header (inner pages) */
.top { background: rgba(250,250,249,.85); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { color: var(--ink); text-decoration: none; font: 600 1rem var(--sans); white-space: nowrap; }
.mark { color: var(--accent); }
.top-sbar { flex: 1; max-width: 460px; }
.top-links { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.top-links a, .top-links .link { color: var(--mute); text-decoration: none; font-size: .88rem; }
.top-links a:hover, .top-links .link:hover { color: var(--ink); }

/* the search bar */
.sbar { position: relative; display: flex; align-items: center; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 999px; transition: border-color .15s, box-shadow .15s; }
.sbar:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(28,25,23,.06); }
.sbar-ico { width: 18px; height: 18px; margin-left: 14px; flex: none; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; }
.sbar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55em .7em; font-size: .95rem; color: var(--ink); }
.sbar input:focus { outline: none; }
.sbar-go { flex: none; width: 34px; height: 34px; margin: 3px; border: 0; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 1rem; cursor: pointer; display: grid; place-items: center; }
.sbar-go:hover { background: var(--accent); }
.sbar-go.busy { color: transparent; position: relative; }
.sbar-go.busy::after { content: ""; position: absolute; inset: 9px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sbar.big { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); }
.sbar.big .sbar-ico { width: 20px; height: 20px; margin-left: 20px; }
.sbar.big input { font-size: 1.1rem; padding: .95em .8em; }
.sbar.big .sbar-go { width: 46px; height: 46px; margin: 6px; font-size: 1.2rem; }

/* home */
.home { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  max-width: 640px; margin: 0 auto; }
.home .sbar { width: 100%; text-align: left; }
.home-brand { font: 600 2.4rem/1.1 var(--serif); letter-spacing: -.02em; color: var(--ink); text-decoration: none; margin-bottom: 28px; }
.home-hint { font-size: .85rem; margin: 14px 0 0; }
.home-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 28px; }
.home-links a, .home-links .link { color: var(--mute); font-size: .9rem; text-decoration: none; }
.home-links a:hover, .home-links .link:hover { color: var(--ink); text-decoration: underline; }

/* controls */
.btn { display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: .6em 1.2em;
  font-size: .9rem; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #000; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn.small { padding: .4em .9em; font-size: .82rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font-size: inherit; }
.link.danger { color: #b91c1c; }
input, select, textarea { width: 100%; font-size: 1rem; padding: .6em .8em; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(28,25,23,.06); }
.sbar input:focus { box-shadow: none; }
label { display: block; font-weight: 500; font-size: .9rem; }
label input, label textarea { margin-top: .35em; font-weight: 400; }
.stack { display: grid; gap: 14px; margin: 1em 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 18px 0; }
.narrow { max-width: 460px; margin: 56px auto; }
.note { padding: .6em .9em; border-radius: 10px; font-size: .9rem; }
.note.warn { background: #fffbeb; color: var(--warn); } .note.ok { background: #f0fdf4; color: var(--ok); }

/* lists of messages */
.row-head { display: flex; justify-content: space-between; align-items: baseline; }
.row-head a { font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.scard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.scard:hover { border-color: var(--line-2); box-shadow: 0 6px 20px rgba(0,0,0,.06); transform: translateY(-1px); }
.scard h3 { font-size: 1rem; }
.scard p { margin: .35em 0 0; font-size: .9rem; color: var(--mute); line-height: 1.5; }
.meta { font-size: .78rem; color: var(--mute); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .84rem; padding: .3em .8em; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.chip span { color: var(--mute); font-size: .76rem; margin-left: 2px; }
.chip:hover { border-color: var(--line-2); background: var(--soft); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on span { color: #d6d3d1; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filters .years { display: flex; flex-wrap: wrap; gap: 6px; }
.filters select { width: auto; min-width: 220px; border-radius: 999px; }

/* ask */
.ask { padding-top: 28px; }
.answer { font: 1.08rem/1.75 var(--serif); margin-top: 28px; white-space: pre-wrap; }
.answer.loading::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.cite { display: inline-block; font: 600 .7rem var(--sans); background: var(--soft); color: var(--ink); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 0 5px; margin: 0 1px; vertical-align: 2px; cursor: pointer; }
.cite:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.sources { padding-left: 1.4em; font-size: .92rem; }
.sources li { margin: .55em 0; }
.sources .play { margin-right: 6px; }
.lead-in { margin-top: 24px; }

/* results */
.result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.result h3 { font-size: 1.08rem; margin-top: 2px; }
.result h3 a { text-decoration: none; }
.result h3 a:hover { color: var(--accent); }
.result p { margin: .2em 0 .5em; font-size: .94rem; }
.hits { list-style: none; padding: 0; margin: 0; }
.hits li { display: flex; gap: 10px; align-items: baseline; margin: 6px 0; font-size: .92rem; }
.snip { color: #44403c; font-family: var(--serif); font-style: italic; }
.play, .seek, .ts { font: 500 .78rem var(--sans); background: var(--card); border: 1px solid var(--line-2); color: var(--ink);
  border-radius: 999px; padding: .2em .7em; cursor: pointer; white-space: nowrap; }
.play:hover, .seek:hover, .ts:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seek span { color: var(--mute); font-weight: 400; margin-left: 4px; }
.seek:hover span { color: #d6d3d1; }
.tag { background: var(--accent-tint); color: var(--accent); padding: 1px 7px; border-radius: 99px; }

/* sermon page and notes */
.sermon { padding-top: 12px; }
.sermon .subtitle { font: italic 1.1rem var(--serif); color: var(--mute); margin: 0 0 .5em; }
.listen audio { width: 100%; }
.listen-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lead { font: 1.1rem/1.7 var(--serif); }
.scrip summary, #feedback summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.notes { font-family: var(--serif); font-size: 1.04rem; }
.notes .callout { background: var(--accent-tint); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.label { font: 600 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.notes .callout p { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--card); }
.box h3 { font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.box ul { padding-left: 1.1em; margin: .4em 0 0; font-size: .97rem; } .box li { margin-bottom: .5em; }
.notes h2 { font: 600 1.25rem var(--serif); color: var(--ink); margin: 2.2em 0 .7em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.notes h2 .n { color: var(--accent); margin-right: 10px; font-family: var(--sans); font-size: .95rem; }
.ref { font: 600 .92em var(--sans); text-decoration: none; color: var(--accent); }
.found { margin: 18px 0; }
.found h3 { font: 600 1.05rem var(--serif); }
.found .theme { font: 600 .72rem var(--sans); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }
.found .ts, .pull .ts { float: right; }
blockquote { margin: 8px 0; padding-left: 14px; border-left: 2px solid var(--accent); font-style: italic; color: #44403c; }
.lab { font: 600 .7rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-right: 4px; }
.found p { margin: .35em 0; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font: .9rem/1.5 var(--sans); background: var(--card); }
th { background: var(--soft); color: var(--mute); text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
table.plain td { font-weight: 400; }
.pull { text-align: center; padding: 22px 20px; margin: 28px 0; }
.pull p { font: italic 1.3rem/1.5 var(--serif); margin: 4px 0 10px; }
.pull .ts { float: none; }
.typ { margin: 14px 0; } .typ p { margin: .2em 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.acard h3 { font: 600 .95rem var(--sans); color: var(--accent); } .acard p { margin: 0; font-size: .98rem; }

/* admin */
.adm-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* clip player */
.player { position: fixed; left: 12px; right: 12px; bottom: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 10;
  max-width: 900px; margin: 0 auto; }
.player-in { display: flex; align-items: center; gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
.player-info { display: flex; flex-direction: column; font-size: .85rem; min-width: 160px; flex: 1; }
.player-info span { color: var(--mute); font-size: .78rem; }
.player audio { height: 36px; flex: 2; min-width: 220px; }

.foot { padding: 24px 16px 96px; text-align: center; } .foot a { color: inherit; text-decoration: none; } .foot a:hover { color: var(--ink); }

@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .top-in { flex-wrap: wrap; gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; }
  .top-sbar { order: 3; flex-basis: 100%; max-width: none; }
  .home-brand { font-size: 2rem; }
  .two, .cards { grid-template-columns: 1fr; }
  .hits li { flex-direction: column; gap: 4px; }
  .found .ts { float: none; display: inline-block; margin-bottom: 4px; }
}
.home-links form, .top-links form { display: inline-flex; }
.home-links .link, .top-links .link { line-height: inherit; font-family: inherit; }
.answer strong { font-family: var(--sans); font-weight: 600; font-size: .95em; }
@media (max-width: 640px) {
  .top-in { flex-wrap: wrap; justify-content: space-between; }
  .top-links { gap: 12px; margin-left: 0; }
  .top-links a, .top-links .link { font-size: .82rem; }
}

/* downloads */
.downloads { padding-top: 8px; }
.dl-row, .dl-year > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid var(--line); }
.dl-row > div:first-child span, .dl-title span { display: block; font-size: .82rem; }
.dl-all { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0 28px; }
.dl-year > summary { cursor: pointer; list-style: none; }
.dl-year > summary::-webkit-details-marker { display: none; }
.dl-year > summary .dl-title b::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--mute); transition: transform .15s; }
.dl-year[open] > summary .dl-title b::before { transform: rotate(90deg); }
.dl-year .dl-row { padding-left: 1.4em; }
.dl-btns { display: flex; gap: 6px; flex: none; }
.dl-btns .btn span { color: var(--mute); font-weight: 400; margin-left: 4px; font-size: .76rem; }
.top-links a, .top-links .link { white-space: nowrap; }
@media (max-width: 640px) {
  .top-links { flex-wrap: wrap; gap: 4px 12px; }
  .dl-row, .dl-year > summary { flex-wrap: wrap; }
  .dl-btns { flex-wrap: wrap; }
}
