:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #07142d;
  --muted: #566174;
  --accent: #5967d8;
  --accent-deep: #4654c7;
  --accent-soft: #eef2ff;
  --line: rgba(7, 20, 45, 0.1);
  --shadow: 0 22px 60px rgba(7, 20, 45, 0.1);
  --max: 1120px;
  --reading: 760px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, rgba(89, 103, 216, 0.1), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(123, 97, 217, 0.07), transparent 30%),
    linear-gradient(180deg, #ffffff, var(--bg) 48%, #eef1f8);
  font-family: var(--font-body);
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(89, 103, 216, 0.42);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(7, 20, 45, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-shell {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(7, 20, 45, 0.13);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.1em;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(7, 20, 45, 0.12);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 20, 45, 0.08);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.series-hero {
  padding: 74px 0 48px;
}

.series-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: end;
}

.series-kicker,
.article-theme,
.card-meta,
.sample-badge {
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.series-hero h1,
.article-header h1 {
  margin: 14px 0 18px;
  max-width: 820px;
  font-family: var(--font-heading);
  font-size: clamp(2.55rem, 5vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.series-hero p,
.article-subtitle {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.series-hero p {
  padding-left: 24px;
  border-left: 2px solid rgba(89, 103, 216, 0.34);
}

.latest-section {
  padding-bottom: 68px;
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
  min-height: 380px;
  padding: clamp(34px, 6vw, 70px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 18%, rgba(138, 152, 255, 0.3), transparent 31%),
    linear-gradient(135deg, #071a38, #172d62 68%, #283978);
  box-shadow: 0 28px 70px rgba(7, 20, 45, 0.19);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.featured-meta span {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
}

.featured-theme {
  display: block;
  margin-bottom: 12px;
  color: #bfc7ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.featured-copy h2 {
  margin: 0 0 18px;
  max-width: 650px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.featured-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
}

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #0b1d40;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.featured-scripture {
  margin: 0;
  padding-left: clamp(28px, 4vw, 50px);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.featured-scripture p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.5;
}

.featured-scripture footer {
  margin-top: 18px;
  color: #bfc7ff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.featured-article--long-scripture {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 4vw, 52px);
  align-items: start;
  min-height: 0;
}

.featured-article--long-scripture .featured-copy {
  max-width: 860px;
}

.featured-article--long-scripture .featured-meta {
  margin-bottom: 32px;
}

.featured-article--long-scripture .featured-scripture {
  padding: clamp(28px, 3vw, 42px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 0;
}

.featured-scripture-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 68px);
}

.featured-article--long-scripture .featured-scripture-text p {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.68;
}

.featured-scripture-text p + p {
  padding-left: clamp(36px, 5vw, 68px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.archive-section {
  padding-bottom: 92px;
}

.archive-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: 30px;
}

.archive-header h2 {
  margin: 8px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.archive-header p {
  margin: 0;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  min-height: 100%;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(7, 20, 45, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(89, 103, 216, 0.24);
  box-shadow: 0 28px 72px rgba(7, 20, 45, 0.13);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.card-top time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.sample-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.article-card h2 {
  margin: 24px 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent-deep);
  font-weight: 700;
}

.article-main {
  padding: 58px 0 90px;
}

.breadcrumb {
  width: min(100%, var(--reading));
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent-deep);
}

.article-header {
  width: min(100%, var(--reading));
  margin: 0 auto 42px;
  text-align: left;
}

.article-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-byline {
  color: var(--accent-deep);
  font-weight: 700;
}

.article-byline:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-details {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 42px;
  margin-top: 24px;
}

.share-button {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(89, 103, 216, 0.22);
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(7, 20, 45, 0.07);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.share-button:hover {
  border-color: rgba(89, 103, 216, 0.4);
  background: #fff;
}

.share-feedback {
  min-width: 5.5em;
  color: var(--accent-deep);
  font-size: 0.8rem;
}

.read-aloud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(89, 103, 216, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(7, 20, 45, 0.05);
}

.read-aloud-controls,
.read-aloud-speed {
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-aloud-controls {
  min-width: 0;
}

.read-aloud-button,
.read-aloud-speed button {
  min-height: 34px;
  border: 1px solid rgba(89, 103, 216, 0.2);
  border-radius: 999px;
  color: var(--accent-deep);
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.read-aloud-button {
  padding: 6px 12px;
}

.read-aloud-toggle {
  min-width: 88px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #5260d3, #725bd6);
  box-shadow: 0 8px 20px rgba(82, 96, 211, 0.2);
}

.read-aloud-toggle:hover {
  background: linear-gradient(135deg, #4654c7, #654ece);
}

.read-aloud-button:disabled,
.read-aloud-speed button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.read-aloud-status {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.read-aloud-speed {
  flex: 0 0 auto;
}

.read-aloud-speed > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.read-aloud-speed button {
  min-width: 38px;
  padding: 5px 8px;
}

.read-aloud-speed button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.read-aloud.is-unsupported .read-aloud-status {
  color: #8a5260;
}

.recorded-audio {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(89, 103, 216, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(7, 20, 45, 0.06);
}

.recorded-audio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.recorded-audio-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.recorded-audio-kicker,
.recorded-audio-duration {
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.recorded-audio-heading strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.recorded-audio audio {
  display: block;
  width: 100%;
  height: 42px;
  accent-color: var(--accent);
}

.floating-share {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 10px;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-share.is-visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.floating-share-button {
  min-width: 68px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #5260d3, #725bd6);
  box-shadow: 0 18px 42px rgba(46, 57, 146, 0.32);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.floating-share-button:hover {
  background: linear-gradient(135deg, #4654c7, #654ece);
}

.floating-share-feedback {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 20, 45, 0.82);
  box-shadow: 0 10px 28px rgba(7, 20, 45, 0.18);
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.floating-share-feedback:not(:empty) {
  opacity: 1;
}

.reading-column {
  width: min(100%, var(--reading));
  margin: 0 auto;
}

.scripture-card,
.reflection-card,
.prayer-card,
.video-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.scripture-card {
  position: relative;
  margin-bottom: 46px;
  padding: clamp(26px, 5vw, 44px);
  overflow: hidden;
}

.scripture-card::before {
  content: "“";
  position: absolute;
  top: -28px;
  right: 24px;
  color: rgba(89, 103, 216, 0.1);
  font-family: var(--font-heading);
  font-size: 9rem;
  line-height: 1;
}

.scripture-card blockquote {
  position: relative;
  margin: 0;
  font-size: clamp(1.32rem, 2.4vw, 1.86rem);
  line-height: 1.65;
}

.scripture-card footer {
  position: relative;
  margin-top: 20px;
  color: var(--accent-deep);
  font-weight: 700;
}

.scripture-source {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.article-section {
  margin: 0 0 42px;
}

.article-section h2,
.reflection-card h2,
.prayer-card h2,
.video-copy h2 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.article-section p {
  margin: 0 0 18px;
  color: #2f3c53;
  font-size: 1.06rem;
}

.reflection-card,
.prayer-card {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 36px);
}

.reflection-card {
  background: linear-gradient(150deg, #ffffff, #eef2ff);
}

.reflection-card ol {
  margin: 0;
  padding-left: 1.35rem;
}

.reflection-card li + li {
  margin-top: 12px;
}

.prayer-card p {
  margin: 0;
  color: #2f3c53;
  font-size: 1.04rem;
}

.video-card {
  margin-top: 42px;
  overflow: hidden;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--accent-soft);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--accent-deep);
  background:
    radial-gradient(circle at 32% 20%, rgba(89, 103, 216, 0.18), transparent 34%),
    linear-gradient(135deg, #f8f9ff, #e7ebff);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-copy {
  padding: clamp(22px, 4vw, 34px);
}

.video-copy p {
  margin: 0 0 20px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #5260d3, #7b61d9);
  box-shadow: 0 16px 36px rgba(82, 96, 211, 0.22);
  font-weight: 700;
}

.article-pager {
  width: min(100%, 920px);
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pager-link {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
}

.pager-link span,
.pager-link strong {
  display: block;
}

.pager-link span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pager-link strong {
  margin-top: 5px;
  color: var(--accent-deep);
}

.pager-link.next {
  text-align: right;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--accent-deep);
}

@media (max-width: 900px) {
  .nav-shell {
    min-height: 68px;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }

  .brand {
    flex: 1 1 auto;
    gap: 10px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand > span {
    min-width: 0;
  }

  .brand strong {
    overflow: hidden;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand > span > span {
    max-width: min(52vw, 240px);
    overflow: hidden;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(7, 20, 45, 0.1);
    border-radius: 12px;
    color: var(--muted);
    background: #fff;
    box-shadow: 0 22px 54px rgba(7, 20, 45, 0.14);
    font-size: 0.9rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
    border-radius: 8px;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: var(--accent-soft);
  }

  .series-hero {
    padding: 52px 0 34px;
  }

  .series-hero-layout,
  .featured-article,
  .archive-header {
    grid-template-columns: 1fr;
  }

  .series-hero-layout {
    gap: 24px;
  }

  .series-hero p {
    max-width: 620px;
  }

  .featured-article {
    gap: 36px;
    min-height: 0;
  }

  .featured-scripture {
    padding: 30px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
  }

  .featured-scripture-text {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .featured-article--long-scripture .featured-scripture-text p {
    font-size: clamp(1.12rem, 4.2vw, 1.3rem);
    line-height: 1.62;
  }

  .featured-scripture-text p + p {
    padding-left: 0;
    border-left: 0;
  }

  .archive-header {
    gap: 14px;
  }

  .article-grid,
  .article-pager {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding: 34px 0 62px;
  }

  .article-header {
    text-align: left;
  }

  .article-details {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .read-aloud {
    align-items: stretch;
    flex-direction: column;
  }

  .read-aloud-controls {
    flex-wrap: wrap;
  }

  .read-aloud-status {
    flex: 1 1 180px;
  }

  .read-aloud-speed {
    width: 100%;
  }

  .recorded-audio-heading,
  .recorded-audio-heading > div {
    align-items: flex-start;
  }

  .recorded-audio-heading > div {
    flex-direction: column;
    gap: 2px;
  }

  .share-feedback {
    min-width: 0;
  }

  .floating-share {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .floating-share-button {
    min-width: 64px;
    min-height: 46px;
    padding: 9px 16px;
  }

  .article-header h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .scripture-card {
    margin-bottom: 34px;
  }

  .pager-link.next {
    text-align: left;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .article-card:hover {
    transform: none;
  }

  .floating-share {
    transition: none;
  }
}
