/* Formed: same earth palette and Noto Sans as the original static site. */
:root {
  --fg: #2e1f14;
  --muted: #7a6252;
  --accent: #8b5a3a;
  --accent-hover: #6b4228;
  --bg: #e6e0d3;
  --surface: #ede8dd;
  --border: #d4cbbf;
  --max: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 16px/1.75 "Noto Sans", -apple-system, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.35; text-wrap: balance; }

/* ── Header and footer ─────────────────────────────── */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--fg); letter-spacing: 0.02em; }
.brand:hover { color: var(--accent); text-decoration: none; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-header nav a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }

main { max-width: var(--max); margin: 0 auto; padding: 32px 20px 72px; }

.site-footer {
  padding: 24px 20px 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ── Shared bits ───────────────────────────────────── */
.eyebrow, .item-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.item-type { color: var(--accent); font-weight: 700; }
.depth { padding: 0 6px; border: 1px solid var(--border); border-radius: 2px; }
.empty { color: var(--muted); font-style: italic; }

.credits { margin: 2px 0 0; font-size: 0.92rem; color: var(--muted); }
.credits a { color: var(--fg); }
.credits a:hover { color: var(--accent); }
.credit-extra { font-size: 0.86rem; }

/* ── Browse ────────────────────────────────────────── */
.intro { padding: 24px 0 8px; }
.intro h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.tagline { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }

.filters { display: grid; gap: 8px; margin: 24px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.chip:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.chip[aria-current="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.item-list { list-style: none; margin: 8px 0 0; padding: 0; }
.item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.item:last-child { border-bottom: none; }
.item-thumb { flex: 0 0 176px; align-self: flex-start; display: flex; justify-content: center; }
.item-thumb img { display: block; border-radius: 2px; background: var(--border); }
.item-thumb.video img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.item-thumb.cover img { width: auto; height: 140px; box-shadow: 0 1px 4px rgba(46, 31, 20, 0.25); }
.item-body { min-width: 0; }
.item-title { margin: 4px 0 0; font-size: 1.1rem; }
.item-title a { color: var(--fg); }
.item-title a:hover { color: var(--accent); text-decoration: none; }
.item-blurb { margin: 8px 0 0; font-size: 0.93rem; }

@media (max-width: 560px) {
  .item { flex-direction: column; gap: 12px; }
  .item-thumb { flex-basis: auto; justify-content: flex-start; }
  .item-thumb.video { width: 100%; }
}

/* ── Item page ─────────────────────────────────────── */
.entry h1 { margin: 10px 0 4px; font-size: clamp(1.5rem, 4vw, 2rem); }
.channel { margin: 2px 0 0; font-size: 0.82rem; color: var(--muted); }
.channel a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); }

.source { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin: 24px 0; }
.source-thumb img { display: block; border-radius: 2px; background: var(--border); }
.source-thumb.video img { width: min(420px, 100%); height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.source-thumb.cover img { height: 220px; width: auto; box-shadow: 0 1px 6px rgba(46, 31, 20, 0.3); }
.button {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  border-radius: 2px;
}
.button:hover { color: var(--bg); background: var(--accent-hover); text-decoration: none; }

.why { margin: 28px 0; padding: 18px 22px; background: var(--surface); border-radius: 3px; }
.why h2 {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.why p { margin: 0; }
.byline { margin: 10px 0 0 !important; font-size: 0.82rem; color: var(--muted); }

.standfirst { margin: 16px 0 0; font-size: 1.08rem; color: var(--muted); }

.scripture {
  margin: 24px 0;
  padding: 10px 16px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-size: 0.9rem;
}
.scripture .label {
  margin-right: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.prose { max-width: 68ch; }
.prose h2 { margin: 36px 0 8px; font-size: 1.2rem; color: var(--accent); }
.prose p, .prose ul { margin: 0 0 18px; }
.prose img { display: block; max-width: 100%; height: auto; margin: 8px auto 32px; }
.prose blockquote { margin: 24px 0; padding-left: 18px; border-left: 2px solid var(--border); color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.tag { padding: 2px 10px; font-size: 0.78rem; color: var(--muted); background: var(--surface); border-radius: 2px; }
.tag:hover { color: var(--accent); text-decoration: none; }

.series-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.series-nav a { display: grid; gap: 2px; min-width: 0; font-size: 0.92rem; color: var(--fg); }
.series-nav a[rel="next"] { text-align: right; }
.series-nav a span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.series-nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 560px) {
  .series-nav { grid-template-columns: 1fr; }
  .series-nav a[rel="next"] { text-align: left; }
}

/* ── Person, series, tag pages ─────────────────────── */
.listing-head h1 { margin: 6px 0 0; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.listing-head { margin-bottom: 16px; }
.role-group h2 {
  margin: 32px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
