:root {
  --bg: #f3efe8;
  --bg-alt: #f9f5ef;
  --card-bg: #ffffff;
  --accent: #c67c3d;
  --accent-soft: rgba(198, 124, 61, 0.1);
  --accent-dark: #8b4f1f;
  --text-main: #262322;
  --text-muted: #6e645f;
  --border-subtle: #e0d5c8;
  --border-strong: #d0c2b3;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(32, 20, 8, 0.16);
  --shadow-subtle: 0 10px 24px rgba(20, 10, 0, 0.08);
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, #fdf7f0 0, #f0e2d1 42%, #e0d2c1 100%);
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* Layout shell */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: linear-gradient(
      to bottom,
      rgba(248, 241, 232, 0.92),
      rgba(248, 241, 232, 0.86),
      rgba(248, 241, 232, 0.82),
      transparent
    );
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffe7c6, #c67c3d);
  box-shadow: 0 8px 18px rgba(102, 59, 17, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark.brand-portrait {
  width: 78px;
  height: 78px;
  background: none;
  overflow: hidden;
  border: 3px solid rgba(255, 250, 243, 0.92);
  box-shadow:
    0 14px 30px rgba(40, 24, 10, 0.22),
    0 0 0 1px rgba(208, 194, 179, 0.55);
}

.brand-mark.brand-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fffaf3;
  box-shadow: 0 0 0 2px rgba(255, 244, 228, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-title {
  font-family: "Crimson Text", "Georgia", serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Header navigation */
.site-nav {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.16rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(40, 28, 16, 0.18);
}

.nav-link {
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.nav-link:hover {
  background: rgba(198, 124, 61, 0.06);
  color: var(--accent-dark);
}

.nav-link.active {
  background: var(--accent);
  color: #fffaf6;
  transform: translateY(0.5px);
}

/* Main layout */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 1.2rem 2.5rem;
}

.content-shell {
  width: 100%;
  max-width: var(--max-width);
  min-width: 0;
}

/* Views */
.view {
  display: none;
}

.view.active-view {
  display: block;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 45;
}

.progress-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.12s ease-out;
}

/* HOME / INDEX LAYOUT */
.welcome-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 1.6rem;
  margin-top: 1.4rem;
}

.welcome-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.author-card {
  position: sticky;
  top: 88px; /* below sticky header */
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(222, 205, 185, 0.9);
  border-radius: var(--radius-xl);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(10px);
}

.author-portrait-xl {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto;
  border: 4px solid rgba(255, 250, 243, 0.94);
  box-shadow:
    0 26px 70px rgba(40, 24, 10, 0.28),
    0 0 0 1px rgba(208, 194, 179, 0.55);
  background: #ffffff;
}

.author-portrait-xl img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.author-meta {
  margin-top: 0.9rem;
  text-align: center;
}

.author-name {
  font-family: "Crimson Text", "Georgia", serif;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.author-role {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Left column: hero + list */
.welcome-main {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Welcome card containing search + list */
.welcome-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.6rem 1.6rem;
  border: 1px solid rgba(222, 205, 185, 0.9);
}


/* Search + filters */
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Featured sermon */
.featured-sermon {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  padding-bottom: 1.55rem; /* reserve space for bottom-right countdown */
}

.featured-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.featured-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.featured-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.featured-card {
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  box-shadow: none;
  padding: 0.9rem 0.95rem;
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    background 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.featured-card:hover {
  background: var(--accent-soft);
  border-color: rgba(198, 124, 61, 0.45);
}

.featured-card:active {
  background: rgba(198, 124, 61, 0.14);
}

.featured-card:focus-visible {
  outline: 2px solid rgba(198, 124, 61, 0.55);
  outline-offset: 3px;
}

.featured-title {
  font-family: "Crimson Text", "Georgia", serif;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--text-main);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.featured-meta {
  font-size: 0.86rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.featured-tags {
  font-size: 0.75rem;
  color: var(--accent-dark);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.featured-cta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.featured-countdown {
  margin-top: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.95;
  user-select: none;
}

.featured-countdown--bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  white-space: nowrap;
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
}

#searchInput {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.95rem 0.55rem 2rem;
  font-size: 0.94rem;
  outline: none;
  box-shadow: var(--shadow-subtle);
  background: #fdfaf6;
}

#searchInput:focus {
  border-color: var(--accent);
  background: #ffffff;
}

/* Filters row */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

#yearFilter {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  appearance: none;
  background: #faf6f0;
}

/* Sermon list header */
.sermon-list-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.sermon-list-title-main {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sermon-list-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sermon list */
.sermon-list {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 58vh;
  overflow: auto;
  padding-right: 0.35rem;
}

.sermon-list-item {
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    transform 0.08s ease,
    box-shadow 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sermon-list-item:hover {
  background: var(--accent-soft);
  border-color: rgba(198, 124, 61, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(35, 20, 4, 0.12);
}

.sermon-list-item.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.sermon-list-title {
  font-size: 0.96rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sermon-list-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sermon-list-tags {
  font-size: 0.75rem;
  color: var(--accent-dark);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.aside-note {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Info pages (About / Contact) */
.info-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.9rem 2.1rem 2.1rem;
  margin-top: 1.4rem;
  border: 1px solid rgba(222, 205, 185, 0.9);
}

.contact-email-imgs {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0;
  line-height: 0;
  user-select: none;
  -webkit-user-select: none;
}

.contact-email-img {
  display: block;
  margin: 0;
  padding: 0;
  height: 18px;
  width: auto;
  transform: translateY(4.5px);
}


.info-card h1 {
  margin-top: 0;
  font-family: "Crimson Text", "Georgia", serif;
  font-size: 1.7rem;
}

.info-card p {
  margin: 0 0 0.9rem;
  font-size: 0.96rem;
  color: var(--text-main);
}

.info-card ul {
  margin: 0.6rem 0 1rem 1.2rem;
  padding: 0;
  font-size: 0.94rem;
}

/* Buttons */
.btn {
  border-radius: 999px;
  border: none;
  font-size: 0.86rem;
  padding: 0.36rem 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f2e3d3;
  color: var(--accent-dark);
  transition:
    background 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.08s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fffaf5;
  box-shadow: 0 12px 24px rgba(111, 64, 14, 0.3);
}

.btn.primary:hover {
  box-shadow: 0 10px 20px rgba(111, 64, 14, 0.28);
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
}

.btn.ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
}

.btn.small {
  font-size: 0.8rem;
  padding: 0.28rem 0.7rem;
}

.btn.icon-btn {
  padding: 0.28rem 0.55rem;
  min-width: 2.05rem;
  justify-content: center;
}

.btn .btn-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  display: block;
}

.btn:active {
  transform: translateY(1px);
}

/* SERMON READER */
.sermon-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 2.4rem 2.4rem;
  margin-top: 1.6rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(222, 205, 185, 0.9);
}

.sermon-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem;
  background: rgba(253, 250, 246, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.sermon-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sermon-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid rgba(198, 124, 61, 0.22);
  border-top-color: var(--accent);
  animation: sermonSpin 0.85s linear infinite;
}

@keyframes sermonSpin {
  to {
    transform: rotate(360deg);
  }
}

.sermon-loading-text {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.corner-ribbon {
  position: absolute;
  inset: 0 auto auto 0;
  width: 130px;
  height: 130px;
  /* Consistent: fade out toward the right edge */
  background: linear-gradient(
    90deg,
    rgba(241, 185, 94, 0.55) 0%,
    rgba(245, 217, 168, 0.32) 45%,
    rgba(253, 247, 236, 0) 100%
  );
  opacity: 0.26;
  pointer-events: none;
}

.sermon-header {
  position: relative;
  z-index: 1;
  margin-bottom: 1.3rem;
}

.sermon-header-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: 1.1rem;
  row-gap: 0.45rem;
  align-items: start;
  margin-top: 0.25rem;
  min-width: 0;
}

.sermon-portrait {
  width: 140px;
  height: 100%;
  align-self: stretch;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 3px solid rgba(255, 250, 243, 0.94);
  box-shadow:
    0 18px 45px rgba(40, 24, 10, 0.16),
    0 0 0 1px rgba(208, 194, 179, 0.55);
  grid-column: 1;
  grid-row: 1;
}

.sermon-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.sermon-header-text {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1;
}

.back-btn {
  margin-bottom: 0.6rem;
}

.sermon-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent-dark);
  background: rgba(246, 232, 210, 0.9);
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
}

.sermon-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.sermon-title {
  font-family: "Crimson Text", "Georgia", serif;
  font-size: 1.8rem;
  margin: 0.6rem 0 0.3rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sermon-header-text .sermon-title {
  /* The portrait should start at the *top of the title* (not above it). */
  margin-top: 0;
}

.sermon-meta-line {
  font-size: 0.86rem;
  color: var(--text-muted);
  min-width: 0;
}

.sermon-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
}

/* Bottom-of-sermon previous/next navigation */
.sermon-bottom-nav {
  position: relative;
  z-index: 1;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(222, 205, 185, 0.9);
}

.sermon-bottom-nav-inner {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.sermon-bottom-nav-inner .btn {
  flex: 1 1 0;
  justify-content: center;
  padding: 0.48rem 0.95rem;
}

.sermon-bottom-nav-inner .btn:hover {
  border-color: rgba(198, 124, 61, 0.45);
}

.sermon-bottom-nav-inner .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Sermon body */
.sermon-body {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  font-family: "Crimson Text", "Georgia", serif;
  font-size: 1.08rem;
  line-height: 1.7;
}

.sermon-body p {
  margin: 0 0 1.1rem;
}

.sermon-body p + p {
  text-indent: 1.15em;
}

.sermon-body p.sermon-signature {
  text-indent: 0;
}

/* Sermon footer */
.sermon-footer {
  position: relative;
  z-index: 1;
  margin-top: 1.3rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.sermon-scan-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

.sermon-scan-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-right: 0.15rem;
}

.sermon-scan-label svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--accent-dark);
  opacity: 0.85;
  flex: 0 0 auto;
}

.scan-page-link {
  font-size: 0.84rem;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: from-font;
  background: transparent;
  border: none;
  padding: 0;
}

.scan-page-link:hover {
  color: var(--accent);
}

.scan-page-link:focus-visible {
  outline: 2px solid rgba(198, 124, 61, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

/* IMAGE MODAL */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.image-modal.active {
  display: block;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 9, 6, 0.62);
  backdrop-filter: blur(6px);
}

.image-modal-shell {
  position: absolute;
  inset: 0.9rem;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(222, 205, 185, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.image-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(222, 205, 185, 0.9);
  background: rgba(253, 250, 246, 0.96);
}

.image-modal-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  user-select: none;
}

.image-modal-stage {
  position: relative;
  flex: 1;
  background: linear-gradient(135deg, #fbf6ef, #f0e1d0);
  overflow: hidden;
  touch-action: none; /* allow custom pan/zoom */
}

#imageModalImg {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.image-modal-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem 0.8rem;
  border-top: 1px solid rgba(222, 205, 185, 0.9);
  background: rgba(253, 250, 246, 0.96);
}

@media (max-width: 720px) {
  .sermon-scan-links {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .sermon-scan-label {
    flex: 0 0 auto;
  }

  .scan-page-link {
    flex: 0 0 auto;
  }

  .image-modal-shell {
    inset: 0.5rem;
    border-radius: 16px;
  }
}

/* FOOTER */
.site-footer {
  padding: 0.85rem 1.5rem 1.1rem;
  font-size: 0.8rem;
  color: #f4ece4;
  background: linear-gradient(90deg, #3a2515, #2a1a10);
  border-top: 1px solid #533220;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer > div {
  max-width: var(--max-width);
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.footer-left,
.footer-right {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
}

.footer-text {
  opacity: 0.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-divider {
  opacity: 0.55;
}

.footer-link {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 0.8rem;
  color: #f4ece4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .welcome-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .author-card {
    position: relative;
    top: auto;
  }

  /*.author-portrait-xl {
    width: min(88vw, 420px);
  }*/
}

@media (max-width: 720px) {
  .site-header-inner {
    padding: 0.75rem 1rem 0.65rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-mark.brand-portrait {
    width: 64px;
    height: 64px;
  }

  .site-nav {
    align-self: stretch;
    justify-content: center;
  }

  main {
    padding: 0 0.9rem 2.1rem;
  }

  .welcome-card,
  .info-card,
  .sermon-card {
    border-radius: 18px;
    padding: 1.5rem 1.4rem 1.6rem;
  }

  .sermon-title {
    font-size: 1.5rem;
  }

  .sermon-body {
    font-size: 1.02rem;
  }

  .sermon-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .sermon-bottom-nav-inner {
    gap: 0.55rem;
  }

  .sermon-bottom-nav-inner .btn {
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
    white-space: normal;
    line-height: 1.15;
  }

  .sermon-portrait {
    width: 92px;
    height: 92px;
    grid-column: 1;
    grid-row: 1;
    align-self: start; /* don't stretch on mobile */
  }

  .site-footer > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
