:root {
  --ink: #071527;
  --navy: #0d1f38;
  --royal: #213f75;
  --violet: #5a3b87;
  --gold: #d89a2b;
  --amber: #f3c766;
  --clay: #9a2d1c;
  --paper: #f7f5ef;
  --card: #ffffff;
  --muted: #667085;
  --line: #e4e8ef;
  --shadow: 0 18px 42px rgba(7, 21, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
}

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

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

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px max(20px, calc((100vw - 1180px) / 2));
  color: #f8efe0;
  background: linear-gradient(90deg, var(--violet), var(--royal));
  font-size: 12px;
  font-weight: 600;
}

.top-strip p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(7, 21, 39, 0.96);
  color: white;
  box-shadow: 0 8px 24px rgba(7, 21, 39, 0.2);
}

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

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--amber);
  font-family: "Cinzel", Georgia, serif;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #c9d4e7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.main-nav a {
  padding: 12px 13px;
  border-bottom: 3px solid transparent;
  color: #edf3ff;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--gold);
  color: var(--amber);
}

.join-button,
.primary-action,
.post-form button,
.intention-form button,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #231809;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(216, 154, 43, 0.22);
}

.join-button {
  width: 128px;
  text-align: center;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  align-items: center;
  gap: 28px;
  padding: 34px 42px;
  color: white;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 21, 39, 0.94), rgba(33, 63, 117, 0.68)),
    radial-gradient(circle at 80% 20%, rgba(216, 154, 43, 0.28), transparent 30%);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.hero-slide img,
.hero-slide div {
  position: relative;
  z-index: 1;
}

.hero-slide img {
  width: min(250px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.32));
}

.eyebrow,
.section-label {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 560px;
  color: white;
  font-family: "Cinzel", Georgia, serif;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 520px;
  color: #e4ebf8;
  line-height: 1.6;
}

.primary-action {
  width: 148px;
  margin-top: 6px;
}

.slider-dots {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.slider-dots button.active {
  width: 26px;
  background: var(--amber);
}

.daily-panel,
.side-stack {
  display: grid;
  gap: 16px;
}

.panel-card,
.feature-card,
.resource-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(7, 21, 39, 0.08);
}

.panel-card {
  padding: 22px;
}

.panel-card h2,
.feature-card h2 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
}

.panel-card p,
.feature-card p {
  color: var(--muted);
  line-height: 1.55;
}

.saint-content {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 16px;
  align-items: center;
}

.saint-content img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5ede2;
}

.saint-card a,
.gospel-card a {
  color: var(--royal);
  font-weight: 800;
}

.liturgy-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
}

.liturgy-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 160px;
  height: 160px;
  border: 28px solid rgba(90, 59, 135, 0.16);
  border-radius: 50%;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(245px, 0.55fr);
  gap: 18px;
  margin-top: 18px;
}

.feature-card {
  padding: 24px;
}

.gospel-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 20px;
  align-items: center;
}

.gospel-card img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5ede2;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.card-heading span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef2fb;
  color: var(--royal);
  font-size: 12px;
  font-weight: 800;
}

.post-list {
  display: grid;
  gap: 12px;
  margin: 15px 0;
}

.post {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 12px;
}

.post strong {
  color: var(--navy);
  font-size: 14px;
}

.post p {
  margin: 5px 0 0;
  font-size: 14px;
}

.post-form {
  display: grid;
  gap: 9px;
}

.post-form label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.post-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
}

.intention-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.post-form button {
  justify-self: end;
  width: 118px;
}

.intention-form button {
  width: 118px;
}

.works-card {
  display: grid;
  gap: 12px;
}

.works-card a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
}

.works-card img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5ede2;
}

.works-card strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

.works-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.resource-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.resource-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 16px;
}

.resource-item span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--royal);
  color: white;
  font-weight: 900;
}

.resource-item:nth-child(2) span {
  background: var(--violet);
}

.resource-item:nth-child(3) span {
  background: var(--clay);
}

.resource-item:nth-child(4) span {
  background: #116466;
}

.resource-item strong {
  color: var(--navy);
}

.resource-item small {
  color: var(--muted);
}

.section-block,
.split-section {
  margin-top: 18px;
}

.section-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 26px;
  box-shadow: 0 12px 30px rgba(7, 21, 39, 0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.section-header h2,
.prayer-panel h2,
.intention-panel h2,
.events-panel h2,
.testimony-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.15;
}

.section-header > a {
  flex: 0 0 auto;
  color: var(--royal);
  font-weight: 800;
}

.formation-grid,
.library-grid,
.challenge-grid {
  display: grid;
  gap: 16px;
}

.formation-grid {
  grid-template-columns: repeat(3, 1fr);
}

.formation-card,
.library-card,
.challenge-item,
.prayer-panel,
.intention-panel,
.events-panel,
.testimony-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.formation-card,
.library-card {
  padding: 20px;
}

.formation-card span,
.library-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  background: #eef2fb;
  color: var(--royal);
  font-size: 12px;
  font-weight: 900;
}

.formation-card h3,
.library-card h3,
.event-list h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 18px;
}

.formation-card p,
.library-card p,
.event-list p,
.prayer-panel p,
.testimony-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.formation-card progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
}

.formation-card progress::-webkit-progress-bar {
  background: #edf1f7;
}

.formation-card progress::-webkit-progress-value {
  background: var(--gold);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.prayer-panel,
.intention-panel,
.events-panel,
.testimony-panel {
  padding: 24px;
  box-shadow: 0 12px 30px rgba(7, 21, 39, 0.08);
}

.prayer-panel {
  background:
    linear-gradient(135deg, rgba(7, 21, 39, 0.94), rgba(33, 63, 117, 0.9)),
    var(--navy);
  color: white;
}

.prayer-panel h2,
.prayer-panel p {
  color: white;
}

.secondary-action.completed {
  background: #116466;
  color: white;
}

.intention-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.intention-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.intention-form label {
  grid-column: 1 / -1;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.challenge-section {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 239, 0.96)),
    var(--paper);
}

.streak-box {
  display: grid;
  place-items: center;
  min-width: 116px;
  min-height: 74px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.streak-box strong {
  color: var(--amber);
  font-size: 30px;
  line-height: 1;
}

.streak-box span {
  font-size: 12px;
  font-weight: 800;
}

.challenge-grid {
  grid-template-columns: repeat(4, 1fr);
}

.challenge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 16px;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.challenge-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-tabs button.active {
  border-color: var(--gold);
  background: var(--gold);
  color: #231809;
}

.library-grid {
  grid-template-columns: repeat(4, 1fr);
}

.library-card.hidden {
  display: none;
}

.event-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.event-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
}

.event-list time {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 8px;
  background: #eef2fb;
  color: var(--royal);
  font-weight: 900;
}

.event-list h3,
.event-list p {
  margin-top: 0;
}

.testimony-panel blockquote {
  margin: 18px 0;
  color: var(--navy);
  font-family: "Cinzel", Georgia, serif;
  font-size: 24px;
  line-height: 1.35;
}

.testimony-author {
  margin-bottom: 0;
  font-weight: 800;
}

.quote-band {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  align-items: center;
  margin: 18px 0 24px;
  padding: 18px 24px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
}

.quote-band img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.quote-band blockquote {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: 25px;
  line-height: 1.25;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px max(20px, calc((100vw - 1180px) / 2));
  background: #061225;
  color: #c7d4e8;
  font-size: 12px;
}

.site-footer nav,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav,
  .join-button {
    display: none;
  }

  .site-header.menu-open .main-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    width: 100%;
  }

  .site-header.menu-open .main-nav a {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .resource-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .formation-grid,
  .library-grid,
  .challenge-grid,
  .split-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .top-strip,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .brand {
    min-width: 0;
  }

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

  .brand strong {
    font-size: 18px;
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  .hero-slider {
    min-height: 580px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 28px 22px 62px;
    text-align: left;
  }

  .hero-slide img {
    width: 190px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .saint-content,
  .gospel-card {
    grid-template-columns: 1fr;
  }

  .gospel-card img {
    width: 140px;
    height: 140px;
  }

  .resource-band {
    grid-template-columns: 1fr;
  }

  .section-header,
  .intention-form,
  .formation-grid,
  .library-grid,
  .challenge-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: grid;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .quote-band {
    grid-template-columns: 1fr;
  }

  .quote-band blockquote {
    font-size: 21px;
  }
}
