/* His Name — site styles
   A black page with His names drifting behind everything (see /names-bg.js).
   Colors: Southern Grown (primary, #D1C8B8) on the boxes, Flora (secondary, #54584A),
   black, white and gold. Marcellus for headings and the moving names, Work Sans for
   reading, Fraunces italic for accents. */

:root {
  --black: #000000;
  /* secondary color: Flora */
  --flora: #54584A;
  --flora-deep: #45493C;  /* Flora for text and links on Southern Grown: 5.6:1 */
  --flora-dark: #383B31;  /* hover */
  --secondary: var(--flora);
  --gold: #E0A63A;
  --glow: #F7DB9E;
  --cream: #FBF1E3;
  --ink: #2A1A1E;

  --text: #EFE5D8;
  --text-soft: #BCB0A4;
  --line: rgba(251, 241, 227, 0.14);
  --panel: rgba(13, 10, 11, 0.9);
  --panel-line: rgba(251, 241, 227, 0.13);

  /* primary color: Southern Grown, on the boxes (Gospel steps, names, cards) */
  --southern-grown: #D1C8B8;
  --primary: var(--southern-grown);
  --on-primary: #2A1A1E;      /* text on the boxes: 10:1 */
  --on-primary-soft: #4A3F3A; /* secondary text on the boxes: 6:1 */
  --primary-line: rgba(42, 26, 30, 0.18);
  --gold-wash: #D4C2A3;       /* Southern Grown with a wash of gold: wherever Jesus is speaking */

  /* moving names */
  --nb-size: clamp(15px, 0.4vw + 12.5px, 18px);
  --nb-pitch: 2.3em;
  --nb-name: rgba(251, 241, 227, 0.31);
  --nb-lead: rgba(251, 241, 227, 0.19);
  --nb-sep: rgba(224, 166, 58, 0.5);

  /* soft black glow behind text that sits right on the moving names */
  --halo: 0 0 2px #000, 0 0 6px #000, 0 0 14px #000, 0 0 26px rgba(0, 0, 0, 0.85);

  --font-display: 'Marcellus', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;

  color-scheme: dark;
}

/* Phones: smaller, quieter names so the page text stays easy to read. */
@media (max-width: 600px) {
  :root {
    --nb-size: 13.5px;
    --nb-name: rgba(251, 241, 227, 0.26);
    --nb-lead: rgba(251, 241, 227, 0.16);
    --nb-sep: rgba(224, 166, 58, 0.42);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

::selection {
  background: rgba(224, 166, 58, 0.35);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--glow);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--cream);
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
}

h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* anything marked hidden stays hidden, even if a rule gives it a display */
[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--ink);
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

/* Page content sits above the moving names. */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 2;
}

/* Text that sits right on the moving names gets a soft black halo; panels don't need it. */
main {
  text-shadow: var(--halo);
}

.card,
.steps > li,
.names,
.next,
.section-cream,
.callout {
  text-shadow: none;
}

/* Links and focus rings on the light boxes */
.steps > li a:not(.btn),
.names a:not(.btn),
.section-cream a:not(.btn) {
  color: var(--flora-deep);
}

.steps > li a:not(.btn):hover,
.names a:not(.btn):hover,
.section-cream a:not(.btn):hover {
  color: var(--flora-dark);
}

.steps > li :focus-visible,
.names :focus-visible,
.section-cream :focus-visible {
  outline-color: var(--flora-deep);
}

/* ---------- moving names background ---------- */
.names-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  padding-top: 0.4em;
  font-family: var(--font-display);
  font-size: var(--nb-size);
  color: var(--nb-name);
  opacity: 0;
  transition: opacity 1.2s ease;
  contain: strict;
}

.names-bg.is-ready {
  opacity: 1;
}

.nb-row {
  flex: none;
  height: var(--nb-pitch);
  line-height: var(--nb-pitch);
  white-space: nowrap;
}

.nb-track {
  display: inline-flex;
  flex-wrap: nowrap;
  will-change: transform;
}

.nb-i {
  flex: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nb-l {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--nb-lead);
}

/* A small gold cross between names (drawn with CSS so it looks the same on every device). */
.nb-i::after {
  content: '';
  display: inline-block;
  width: 0.52em;
  height: 0.74em;
  margin: 0 1.25em 0 1.3em;
  vertical-align: -0.02em;
  color: var(--nb-sep);
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 1.5px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 30% / 100% 1.5px no-repeat;
}

.nb-toggle {
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.nb-toggle:hover {
  color: #fff;
  border-color: var(--gold);
}

.nb-toggle[hidden] {
  display: none;
}

/* ---------- header: the four sections ---------- */
.site-header {
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--line);
}

.topnav {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
}

.topnav-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.topnav-scroll::-webkit-scrollbar {
  display: none;
}

.topnav-list {
  list-style: none;
  margin: 0;
  padding: 0 max(4px, calc(var(--gutter) - 14px));
  display: flex;
  justify-content: space-between;
  width: max-content;
  min-width: 100%;
}

/* Equal space between the four when they fit; on narrow screens the row slides. */
.topnav-list li {
  flex: none;
}

.topnav-list a {
  position: relative;
  display: block;
  padding: 26px 16px 24px;
  padding-right: calc(16px - 0.15em); /* letter-spacing adds space after the last letter */
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
}

.topnav-list a:hover,
.topnav-list a[aria-current='page'] {
  color: #fff;
}

/* gold line under the section you're on (and on hover) */
.topnav-list a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.topnav-list a:hover::after,
.topnav-list a:focus-visible::after,
.topnav-list a[aria-current='page']::after {
  transform: scaleX(1);
}

/* Gold arrows that show only when part of the row is off-screen; tap to slide. */
.topnav-more {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: none;
  -webkit-tap-highlight-color: transparent;
}

.topnav-more-left {
  left: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0), #000 58%);
}

.topnav-more-right {
  right: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), #000 58%);
}

.topnav.can-left .topnav-more-left,
.topnav.can-right .topnav-more-right {
  display: block;
}

.topnav-more::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: #000;
}

.topnav-more-left::before {
  left: 10px;
}

.topnav-more-right::before {
  right: 10px;
}

.topnav-more::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.topnav-more-left::after {
  left: 23px;
  transform: rotate(-135deg);
}

.topnav-more-right::after {
  right: 23px;
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .topnav-list a {
    padding: 22px 11px 20px;
    padding-right: calc(11px - 0.1em);
    font-size: 0.98rem;
    letter-spacing: 0.1em;
  }

  .topnav-list a::after {
    left: 11px;
    right: 11px;
    bottom: 13px;
  }
}

@media (max-width: 600px) {
  .topnav-list a {
    padding: 22px 13px 20px;
    padding-right: calc(13px - 0.12em);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }

  .topnav-list a::after {
    left: 13px;
    right: 13px;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  text-shadow: none;
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--glow);
  color: var(--ink);
}

.btn-line {
  border-color: var(--cream);
  color: var(--cream);
  background: rgba(0, 0, 0, 0.55);
}

.btn-line:hover {
  background: rgba(251, 241, 227, 0.14);
  color: #fff;
}

.btn-flora {
  background: var(--flora);
  border-color: rgba(224, 166, 58, 0.45);
  color: #fff;
}

.btn-flora:hover {
  background: var(--flora-dark);
  border-color: var(--gold);
  color: #fff;
}

/* ---------- hero ---------- */
.hero {
  color: var(--cream);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(56px, 9vw, 104px);
}

.hero .eyebrow {
  color: var(--glow);
}

.hero h1 {
  margin-bottom: 0.3em;
}

.hero .lead {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  max-width: 34rem;
  color: #F3E9DE;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-art {
  justify-self: center;
  width: min(300px, 70vw);
}

.hero-art img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 0 28px rgba(0, 0, 0, 0.9));
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
}

/* ---------- sections ---------- */
.section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.section-cream {
  background: var(--primary);
  color: var(--on-primary);
}

.intro {
  max-width: 44rem;
}

.intro p {
  color: var(--text-soft);
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--primary);
  border: 2px solid transparent;
  color: var(--on-primary);
  text-decoration: none;
  min-height: 170px;
}

a.card:hover {
  border-color: var(--gold);
  color: var(--on-primary);
}

.card h3 {
  margin: 0;
  color: var(--on-primary);
}

.card p {
  margin: 0;
  color: var(--on-primary-soft);
}

.card .more {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 600;
  color: var(--flora-deep);
}

/* coming-soon cards: a dashed frame inside the box */
.card.soon {
  outline: 1px dashed rgba(42, 26, 30, 0.35);
  outline-offset: -9px;
}

.card .tag {
  color: var(--on-primary-soft);
  border-color: rgba(42, 26, 30, 0.35);
}

.tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

.invite {
  text-align: center;
}

.invite .big {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.25rem);
  color: var(--flora-deep);
  margin: 0 auto 12px;
  line-height: 1.15;
}

.invite p {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--on-primary-soft);
}

/* ---------- reading pages ---------- */
.page-head {
  border-bottom: 1px solid var(--line);
}

.page-head .wrap {
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(32px, 6vw, 56px);
}

.page-head p {
  max-width: 40rem;
  font-size: 1.15rem;
  color: #DCD0C3;
  margin: 0;
}

.prose {
  max-width: 44rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 22px 76px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--flora);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h2 {
  font-size: 1.5rem;
  color: var(--on-primary);
  margin-bottom: 0.35em;
}

.steps p {
  margin-bottom: 0.6em;
}

.refs {
  font-size: 0.95rem;
  color: var(--on-primary-soft);
  margin: 0;
}

.callout {
  margin: 8px 0 12px;
  padding: 16px 18px;
  border-left: 4px solid var(--flora);
  background: rgba(42, 26, 30, 0.07);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--on-primary);
}

.callout cite {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--on-primary-soft);
}

.next {
  margin-top: 40px;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--flora);
  border: 1px solid rgba(224, 166, 58, 0.35);
  color: var(--cream);
}

.next h2 {
  color: var(--cream);
}

.next ul {
  margin: 0;
  padding-left: 1.2em;
}

.next li {
  margin-bottom: 8px;
}

.next a {
  color: var(--glow);
}

/* ---------- names ---------- */
.name-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 24px;
}

.name-tools label {
  font-weight: 600;
}

.name-tools input {
  flex: 1 1 260px;
  min-height: 48px;
  padding: 10px 16px;
  font: inherit;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  text-shadow: none;
}

.name-tools input::placeholder {
  color: #6B5E55;
}

.name-help {
  max-width: 52rem;
  margin: -8px 0 20px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.count {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.names {
  list-style: none;
  margin: 0;
  padding: 8px clamp(16px, 3vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius);
}

@media (min-width: 720px) {
  .names {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.names li {
  border-bottom: 1px solid var(--primary-line);
  line-height: 1.35;
}

/* each name opens to show where it's found */
.names summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px;
  list-style: none;
  cursor: pointer;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.names summary::-webkit-details-marker {
  display: none;
}

.names summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 6px 4px 0;
  border-right: 2px solid var(--flora-deep);
  border-bottom: 2px solid var(--flora-deep);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.names details[open] > summary::after {
  margin-bottom: -4px;
  transform: rotate(-135deg);
}

.names summary:hover .name,
.names details[open] .name {
  color: var(--flora-deep);
}

.name-ref {
  padding: 0 2px 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--on-primary-soft);
}

.name-ref p {
  margin: 0 0 4px;
}

.name-ref .k {
  font-weight: 600;
  color: var(--on-primary);
}

.names .lead {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-primary-soft);
}

.names .name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--on-primary);
}

.names li[hidden] {
  display: none;
}

/* ---------- His Name page: a few names first, then See All ---------- */
.name-none {
  margin: -6px 0 18px;
  color: var(--cream);
}

.featured h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 8px 0 6px;
}

.featured-intro {
  margin: 0 0 18px;
  color: var(--text-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.chip {
  min-height: 44px;
  padding: 9px 18px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(251, 241, 227, 0.45);
  border-radius: 999px;
  cursor: pointer;
  text-shadow: none;
}

.chip:hover {
  border-color: var(--gold);
}

.chip[aria-pressed='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

/* each group's name is on its chip, so its heading is only for screen readers */
.theme-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.theme-panel {
  animation: fn-in 0.35s ease;
}

@keyframes fn-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-panel {
    animation: none;
  }
}

.fn-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.fn-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  text-shadow: none;
}

.fn-card .lead {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-primary-soft);
}

.fn-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--on-primary);
}

.fn-note {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--on-primary-soft);
}

.fn-refs {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.95rem;
  color: var(--on-primary-soft);
}

.fn-refs a {
  color: var(--flora-deep);
}

.fn-refs a:hover {
  color: var(--flora-dark);
}

.fn-refs a:focus-visible {
  outline-color: var(--flora-deep);
}

/* phones: smaller cards, so the few names stay a short read */
@media (max-width: 600px) {
  .fn-grid {
    gap: 12px;
  }

  .fn-card {
    min-height: 0;
    padding: 16px 18px;
  }

  .fn-name {
    font-size: 1.4rem;
  }
}

/* See All: gold oval across the screen, shallow, at the very bottom */
.see-all-wrap {
  padding: 40px var(--gutter) 0;
}

.see-all {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  text-shadow: none;
}

.see-all:hover,
.see-all:focus-visible {
  color: #000;
  background: var(--gold);
}

.all-names {
  margin-top: 36px;
  scroll-margin-top: 24px;  /* a little room above the title after See All */
}

.list-help {
  margin: 0 0 18px;
}

/* the title of the open list, with a small Condense button right beside it */
.all-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 16px;
}

.all-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0;
}

.all-title:focus {
  outline: none;
}

/* Condense beside the title: the same gold oval as See All, sized for its spot.
   (The Condense at the very bottom of the list is full width, like See All.) */
.condense-sm {
  display: inline-block;
  width: auto;
  min-height: 44px;
  padding: 6px 24px;
  font-size: 1.05rem;
}

/* ---------- Who is Jesus?: the religions column, each religion's boxes, the side-by-side chart ---------- */
.rel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* the list of religions: see-through Flora, so the moving names show faintly behind it */
.rel-nav {
  padding: 16px 12px 12px;
  border-radius: var(--radius);
  background: rgba(84, 88, 74, 0.72);
  border: 1px solid rgba(251, 241, 227, 0.14);
  text-shadow: none;
  scroll-margin-top: 12px;
}

.rel-nav-title {
  margin: 0 8px 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
}

/* phones: the list sits on top, two across */
.rel-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.rel-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.rel-nav a:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
}

/* the religion being shown */
.rel-nav a[aria-current='true'] {
  background: var(--gold);
  color: #000;
}

.rel-nav a:focus-visible {
  outline-color: #fff;
}

/* computers and tablets: a column on the left that stays in view while you read */
@media (min-width: 800px) {
  .rel-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
  }

  .rel-nav {
    position: sticky;
    top: 20px;
  }

  .rel-nav ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .rel-nav a {
    padding: 8px 14px;
    font-size: 1.2rem;
  }
}

.rel-main {
  min-width: 0;
  scroll-margin-top: 20px;
}

.rel-panel {
  scroll-margin-top: 20px;
  animation: fn-in 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .rel-panel {
    animation: none;
  }
}

.rel-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 16px;
}

.rel-title:focus {
  outline: none;
}

/* the reading boxes, in the primary color */
.rel-box {
  margin: 0 0 18px;
  padding: 24px 26px 22px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  text-shadow: none;
}

.rel-box h2,
.rel-box h3 {
  font-size: 1.6rem;
  color: var(--on-primary);
  margin-bottom: 0.55em;
}

.rel-box > h4 {
  margin: 20px 0 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-primary-soft);
}

.rel-box p,
.rel-box ul,
.rel-box ol {
  max-width: 40rem;
}

.rel-box ul,
.rel-box ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.rel-box > :last-child {
  margin-bottom: 0;
}

.rel-box li {
  margin-bottom: 8px;
}

.rel-box a {
  color: var(--flora-deep);
}

.rel-box a:hover {
  color: var(--flora-dark);
}

.rel-box :focus-visible {
  outline-color: var(--flora-deep);
}

.rel-lead {
  font-size: 1.15rem;
  font-weight: 500;
}

/* where a statement comes from */
.cite {
  font-size: 0.92em;
  color: var(--on-primary-soft);
}

/* keep each verse reference in one piece */
.cite a {
  white-space: nowrap;
}

/* "What Jesus says about Himself": gold, like His side of the chart */
.rel-truth {
  background: var(--gold-wash);
  border-top: 6px solid var(--gold);
}

/* the plain conclusion ("Both cannot be true") and the note under the chart */
.rel-box .verdict {
  max-width: none;
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--flora);
  border-radius: 0 12px 12px 0;
  background: rgba(42, 26, 30, 0.08);
}

/* the quote in the welcome box */
.rel-intro .callout {
  max-width: 40rem;
  margin: 4px 0 16px;
}

/* after each religion: on to the good news */
.rel-next {
  margin: 0 0 18px;
}

.rel-next h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4em;
}

.rel-next p {
  max-width: 40rem;
}

.rel-next p:last-child {
  margin-bottom: 0;
}

.rel-next .btn-gold,
.rel-next .btn-gold:hover {
  color: var(--ink);
}

/* quick facts at the top of each religion */
.rel-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px 22px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(42, 26, 30, 0.07);
}

.rel-facts dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-primary-soft);
}

.rel-facts dd {
  margin: 2px 0 0;
  line-height: 1.4;
}

/* side-by-side chart: the religion on the left (Flora), Jesus on the right (gold) */
.compare {
  border: 1px solid var(--primary-line);
  border-radius: 12px;
  overflow: hidden;
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ch {
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.ch-rel {
  background: var(--flora);
  color: #fff;
}

.ch-jesus {
  background: var(--gold);
  color: #000;
}

.compare-topic {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-primary);
  background: rgba(42, 26, 30, 0.1);
  border-top: 1px solid var(--primary-line);
  border-bottom: 1px solid var(--primary-line);
}

.compare-head + .compare-row .compare-topic {
  border-top: 0;
}

.compare-cell {
  min-width: 0;
  padding: 14px 16px 16px;
}

.compare-cell p {
  max-width: none;
  margin: 0 0 8px;
}

.compare-cell .refs {
  margin: 0;
  font-size: 0.9rem;
}

.cell-jesus {
  background: var(--gold-wash);
  border-left: 1px solid var(--primary-line);
}

/* each cell's own label: only for screen readers while the column headings show */
.cell-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* narrow reading column (phones, and tablets with the side column): one under the other */
@media (max-width: 659px), (min-width: 800px) and (max-width: 999px) {
  .compare-head {
    display: none;
  }

  .compare-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cell-jesus {
    border-left: 0;
    border-top: 1px solid var(--primary-line);
  }

  .cell-label {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0 0 8px;
    padding: 3px 12px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.04em;
  }

  .cell-rel .cell-label {
    background: var(--flora);
    color: #fff;
  }

  .cell-jesus .cell-label {
    background: var(--gold);
    color: #000;
  }
}

@media (max-width: 600px) {
  .rel-box {
    padding: 20px 18px 18px;
  }

  .rel-box h2,
  .rel-box h3 {
    font-size: 1.45rem;
  }

  .compare-topic {
    padding: 9px 14px;
  }

  .compare-cell {
    padding: 14px 14px 16px;
  }
}

/* phones: a way back up to the list (wider screens keep the column in view) */
.rel-again {
  margin: 24px 0 0;
}

.rel-again .see-all {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

@media (min-width: 800px) {
  .rel-again {
    display: none;
  }
}

/* ---------- footer ---------- */
/* see-through, so the moving names show behind it; the halo keeps its text readable */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--line);
  color: #E9DCD6;
  padding: 48px 0 40px;
  margin-top: 0;
  text-shadow: var(--halo);
}

.site-footer .wrap {
  display: grid;
  gap: 24px;
}

.site-footer img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 0 14px #000) drop-shadow(0 0 4px #000);
}

.site-footer a {
  color: #F3E6DA;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.footer-nav a {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: #F3E6DA;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--glow);
  text-decoration: underline;
}

.site-footer small {
  color: #BFAEA8;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

@media (min-width: 860px) {
  .site-footer .wrap {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-nav {
    justify-content: flex-end;
  }

  .footer-meta {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
}
