/* Gleaner. Dark-first, after the Gospel Scholar Archive's palette and type. */
:root {
  --bg:#0D0D0C; --surface:#151514; --raised:#1C1C1A;
  --fill:rgba(240,238,232,.055); --fill-2:rgba(240,238,232,.095);
  --ink:#EDEBE4; --ink-2:#A6A39B; --ink-3:#77746D;
  --rule:rgba(240,238,232,.08); --edge:rgba(240,238,232,.13); --edge-hover:rgba(240,238,232,.26);
  --rubric:#E46A50; --gilt:#D3B26A; --ok:#86AE74; --on-accent:#141310;
  --ch-atif:#E46A50; --ch-rt:#7D9BD0; --ch-keystone:#86AE74; --ch-informed:#BC94C6; --ch-tf:#6FB8B4; --ch-ward:#E39A5A;
  --shadow-lg:0 1px 2px rgba(0,0,0,.3),0 24px 60px -24px rgba(0,0,0,.7);
  --serif:"Source Serif 4","Iowan Old Style",Palatino,Georgia,serif;
  --sans:"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --mono:"Geist Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --ease:cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root {
  --bg:#FAF9F6; --surface:#F1EFE9; --raised:#FFFFFF;
  --fill:rgba(22,22,20,.045); --fill-2:rgba(22,22,20,.08);
  --ink:#161614; --ink-2:#5E5C56; --ink-3:#8C8982;
  --rule:rgba(22,22,20,.08); --edge:rgba(22,22,20,.13); --edge-hover:rgba(22,22,20,.28);
  --rubric:#B8401F; --gilt:#9C7426; --ok:#476B40; --on-accent:#FFFFFF;
  --ch-atif:#B8401F; --ch-rt:#2A4469; --ch-keystone:#476B40; --ch-informed:#5A3A5D; --ch-tf:#2C6163; --ch-ward:#8A4F1C;
  --shadow-lg:0 1px 2px rgba(22,22,20,.06),0 24px 60px -28px rgba(22,22,20,.28);
  color-scheme: light;
} }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.label { font: 500 11px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* top bar, shared by both pages */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.mark { font: 600 21px/1 var(--serif); letter-spacing: -.01em; margin-right: auto; }
.mark i { color: var(--gilt); font-style: normal; }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--fill); }
.nav a b { font: 600 12px/1 var(--mono); color: var(--gilt); font-variant-numeric: tabular-nums; }
.nav a.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { background: color-mix(in srgb, var(--gilt) 24%, transparent); transform: scale(1.08); } }

.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--edge); background: none; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--edge-hover); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .sw { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip b { font: 600 12px/1 var(--mono); font-variant-numeric: tabular-nums; opacity: .65; }

@media (max-width: 480px) {
  .bar .wrap { gap: 10px; }
  .mark { font-size: 19px; }
  .nav { gap: 0; }
  .nav a { padding: 7px 8px; font-size: 13.5px; gap: 5px; }
  .nav a[href="/"] { display: none; }          /* the wordmark already goes to Pipeline */
  .nav .wide { display: none; }                 /* "Shorts Review" reads as "Shorts" on a phone */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* review pages: the YouTube link on a scheduled or posted clip */
.done a { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.done a:hover { color: var(--ink); }
