:root {
  --ivory: #ffffff;
  --paper: #ffffff;
  --ink: #0d3b32;
  --ink-2: #145448;
  --muted: #5f716c;
  --line: #d7e4df;
  --lime: #d9f36a;
  --lime-2: #c9e955;
  --yellow: #d6a83f;
  --orange: #bb7c28;
  --blue: #e8f4ef;
  --emerald: #0d493e;
  --emerald-deep: #082f29;
  --mint: #edf8f3;
  --mint-2: #dff1e9;
  --gold: #c99a37;
  --gold-soft: #f6edda;
  --shadow: 0 22px 60px rgba(13, 59, 50, 0.1);
  --shell: min(1180px, calc(100% - 48px));
  --sans: "Segoe UI", "Aptos", Arial, sans-serif;
  --mono: "Segoe UI", "Aptos", Arial, sans-serif;
}

html {
  scroll-padding-top: 106px;
}

body {
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 7% 4%, rgba(201, 154, 55, 0.07), transparent 24rem),
    radial-gradient(circle at 95% 13%, rgba(20, 84, 72, 0.07), transparent 28rem),
    #fff;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline-color: var(--gold);
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(13, 59, 50, 0.04);
}

.site-header__inner {
  min-height: 88px;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
}

.site-brand {
  width: 230px;
}

.main-nav {
  gap: 2px;
  padding: 5px;
  background: var(--mint);
  border: 0;
  border-radius: 999px;
}

.main-nav a,
.main-nav button {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.main-nav a:hover,
.main-nav button:hover,
.main-nav button[aria-expanded="true"] {
  color: white;
  background: var(--emerald);
}

.endorsement > span {
  color: #6d7f79;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.endorsement a {
  padding: 7px 11px 8px;
  background: var(--emerald-deep);
  border: 0;
  border-radius: 6px;
}

.endorsement__wordmark {
  font-size: 14px;
}

.more-menu {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(13, 59, 50, 0.08);
}

.more-menu__grid a {
  border-color: var(--line);
  border-radius: 16px;
}

.hero-dashboard {
  min-height: 0;
  padding: 52px 0 74px;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 4%, rgba(201, 154, 55, 0.1), transparent 20rem),
    linear-gradient(180deg, #fff 0%, #fbfefd 100%);
}

.hero-dashboard::before {
  inset: 18px auto auto calc(50% + 280px);
  width: 420px;
  height: 420px;
  opacity: 0.7;
  background:
    linear-gradient(45deg, transparent 46%, rgba(13, 73, 62, 0.06) 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(201, 154, 55, 0.08) 47% 53%, transparent 54%);
  background-size: 72px 72px;
  border: 1px solid rgba(13, 73, 62, 0.08);
  border-radius: 50% 50% 18px 18px;
  rotate: 45deg;
}

.prayer-console {
  position: relative;
  display: grid;
  grid-template-rows: auto;
  align-content: start;
  gap: 22px;
}

.console-top {
  align-items: center;
  padding: 0 4px;
}

.location-kicker,
.micro-label {
  margin-bottom: 7px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: none;
}

.location-title {
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: none;
}

.location-subline {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  box-shadow: 0 10px 24px rgba(13, 59, 50, 0.14);
  transform: translateY(-2px);
}

.button--outline {
  color: var(--emerald);
  background: var(--mint);
  border: 1px solid #bcd9ce;
}

.button--lime {
  color: var(--emerald-deep);
  background: var(--lime);
}

.button--dark {
  color: white;
  background: var(--emerald);
}

.status-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
  border: 0;
}

.status-copy,
.countdown {
  min-height: 245px;
  padding: clamp(30px, 4vw, 54px);
  border: 0;
  box-shadow: var(--shadow);
}

.status-copy {
  position: relative;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 154, 55, 0.12), transparent 16rem),
    var(--mint);
  border: 1px solid #d2e9df;
  border-radius: 28px 28px 88px 28px;
}

.status-copy::before {
  position: absolute;
  top: 38px;
  left: clamp(30px, 4vw, 54px);
  width: 58px;
  height: 58px;
  margin: 0;
  content: "\06DE";
  display: grid;
  place-items: center;
  color: var(--gold);
  background: white;
  border: 1px solid #e4d5b8;
  border-radius: 50%;
  font-size: 27px;
}

.status-copy__eyebrow {
  min-height: 58px;
  margin: 0 0 10px 76px;
  display: flex;
  align-items: center;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
}

.status-copy h2 {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: none;
}

.status-copy__note {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}

.countdown {
  position: relative;
  color: white;
  background:
    radial-gradient(circle at 86% 10%, rgba(217, 243, 106, 0.17), transparent 11rem),
    linear-gradient(145deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  border-radius: 28px 28px 28px 88px;
  overflow: hidden;
}

.countdown::after {
  position: absolute;
  right: -38px;
  bottom: -74px;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50% 50% 12px 12px;
  transform: rotate(45deg);
}

.countdown__label {
  margin-bottom: 18px;
  color: #e0cb95;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
}

.countdown__value {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 3.35vw, 48px);
  letter-spacing: -0.04em;
}

.countdown__value b {
  color: var(--lime);
  font-size: 0.48em;
}

.countdown__target {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: #dce9e4;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.prayer-grid {
  gap: 12px;
}

.prayer-card {
  min-height: 148px;
  padding: 20px;
  background: #fff;
  border: 1px solid #cfe0da;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(13, 59, 50, 0.06);
}

.prayer-card[data-state="next"] {
  background: linear-gradient(145deg, #e8f8b0, var(--lime));
  border-color: #b8d947;
  box-shadow: 0 14px 32px rgba(128, 155, 45, 0.2);
}

.prayer-card[data-state="current"] {
  background: var(--emerald);
  border-color: var(--emerald);
  box-shadow: 0 14px 32px rgba(13, 59, 50, 0.18);
}

.prayer-card__name {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.prayer-card__badge {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.prayer-card__time {
  margin-top: 22px;
  font-size: clamp(31px, 3.2vw, 44px);
  letter-spacing: -0.045em;
}

.prayer-card__time small {
  font-size: 0.42em;
}

.supplemental-row {
  align-items: center;
  padding: 4px 2px 0;
}

.supplemental-times {
  gap: 10px;
}

.supplemental-times span {
  padding: 10px 14px;
  color: var(--emerald);
  background: var(--mint);
  border: 1px solid #cfe2da;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.data-state,
.source-status {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.section {
  padding: clamp(76px, 9vw, 120px) 0;
}

.section--white {
  background: var(--mint);
  border: 0;
}

.section--dark {
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%) 0 0 / 46px 46px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%) 0 0 / 46px 46px,
    var(--emerald-deep);
}

.section-heading {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
}

.section-heading h2,
.content-hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading > p,
.content-hero__intro {
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
}

.feature-grid {
  gap: 16px;
  border: 0;
}

.feature-card {
  min-height: 250px;
  padding: 30px;
  background: white;
  border: 1px solid #d5e6df;
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(13, 59, 50, 0.06);
}

.feature-card__number {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
}

.feature-card h3 {
  margin-top: 50px;
  font-size: 29px;
}

.feature-card p {
  font-size: 16px;
}

.location-workspace {
  gap: 32px;
}

.finder-panel {
  padding: 32px;
  color: var(--ink);
  background: linear-gradient(145deg, #f4edda, var(--gold-soft));
  border: 1px solid #e0c991;
  border-radius: 24px;
  box-shadow: none;
}

.finder-panel h3 {
  font-size: 34px;
}

.field label {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.field select {
  min-height: 54px;
  border-color: #b9cec6;
  border-radius: 12px;
  font-size: 16px;
}

.popular-locations {
  gap: 12px;
}

.location-link {
  min-height: 92px;
  padding: 18px;
  border-color: #41665d;
  border-radius: 16px;
  font-size: 16px;
}

.location-link span {
  color: #c5d7d1;
  font-family: var(--sans);
  font-size: 12px;
}

.monthly-card,
.source-panel {
  border: 1px solid #d4e4de;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.monthly-card__top {
  padding: 22px 26px;
  background: var(--emerald);
}

.monthly-card__top h3 {
  font-size: 26px;
}

.monthly-card__top span {
  font-family: var(--sans);
  font-size: 13px;
}

.prayer-table {
  font-size: 15px;
}

.prayer-table th,
.prayer-table td {
  padding: 15px 13px;
}

.prayer-table th {
  color: var(--emerald);
  background: #f0f7f4;
  font-family: var(--sans);
  font-size: 12px;
}

.prayer-table tr[data-today="true"] td {
  background: #eff8d1;
}

.source-panel {
  background: #fff;
}

.source-panel__body,
.article {
  font-size: 18px;
  line-height: 1.8;
}

.faq-list {
  border: 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0 22px;
  background: white;
  border: 1px solid #d3e5de;
  border-radius: 16px;
}

.faq-item summary {
  padding: 22px 0;
  font-size: clamp(19px, 2vw, 24px);
}

.faq-item summary::after {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--emerald);
  border-radius: 50%;
  font-family: var(--sans);
}

.faq-item p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
}

.content-hero {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 100px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 24%, rgba(201, 154, 55, 0.13), transparent 20rem),
    var(--mint);
  border: 0;
}

.content-hero::after {
  position: absolute;
  right: 7vw;
  bottom: -190px;
  width: 360px;
  height: 360px;
  content: "";
  border: 1px solid rgba(13, 73, 62, 0.12);
  border-radius: 50% 50% 22px 22px;
  rotate: 45deg;
}

.content-hero__intro {
  padding: 24px 0 24px 28px;
  border-left-color: var(--gold);
}

.article-layout {
  grid-template-columns: 220px minmax(0, 820px);
}

.article-index {
  padding: 20px;
  color: var(--emerald);
  background: var(--mint);
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 13px;
}

.article h2 {
  margin-top: 58px;
  padding-top: 2px;
  color: var(--emerald);
  font-size: clamp(29px, 4vw, 42px);
}

.article p,
.article li {
  color: #4f625b;
}

.article a {
  text-decoration-color: var(--gold);
}

.contact-card,
.state-zone-card {
  border-color: #d4e5de;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(13, 59, 50, 0.06);
}

.location-dialog {
  background: white;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(4, 25, 21, 0.3);
}

.location-dialog__panel {
  padding: clamp(26px, 5vw, 46px);
}

.dialog-heading h2 {
  font-size: clamp(30px, 5vw, 44px);
}

.icon-button {
  border: 0;
  border-radius: 50%;
  background: var(--mint);
}

.location-dialog__note {
  font-size: 15px;
}

.site-footer {
  padding-top: 76px;
  background: var(--emerald-deep);
}

.site-footer__top > div:first-child > p,
.site-footer__links a {
  color: #c5d6d0;
  font-size: 16px;
}

.site-footer__links b {
  color: #e0c477;
  font-family: var(--sans);
  font-size: 13px;
}

.site-footer__bottom {
  color: #a7bcb5;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: none;
}

.error-body {
  background:
    radial-gradient(circle at 50% 0, rgba(201, 154, 55, 0.18), transparent 28rem),
    var(--emerald-deep);
}

.error-card {
  border-radius: 30px;
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
  }

  .status-panel {
    grid-template-columns: 1fr;
  }

  .status-copy,
  .countdown {
    min-height: 220px;
  }

  .countdown {
    border-radius: 28px 28px 72px 28px;
  }

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

  .prayer-card:nth-child(4),
  .prayer-card:nth-child(5) {
    grid-column: span 1;
  }

  .section-heading,
  .content-hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 28px, 620px);
  }

  html {
    scroll-padding-top: 148px;
  }

  body {
    font-size: 17px;
  }

  .site-header {
    position: relative;
  }

  .site-header__inner {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand endorsement"
      "nav nav";
    padding-block: 14px 10px;
    gap: 11px 10px;
  }

  .site-brand {
    grid-area: brand;
    width: 176px;
  }

  .endorsement {
    grid-area: endorsement;
    gap: 6px;
  }

  .endorsement > span {
    max-width: 48px;
    font-size: 9px;
    line-height: 1.15;
    text-align: right;
  }

  .endorsement a {
    padding: 6px 8px;
  }

  .endorsement__wordmark {
    font-size: 11px;
  }

  .main-nav {
    grid-area: nav;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    padding: 4px;
    border-radius: 14px;
  }

  .main-nav a,
  .main-nav button {
    min-height: 40px;
    padding: 8px 4px;
    font-size: 12px;
  }

  .more-menu__grid {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    padding: 22px 0 48px;
  }

  .hero-dashboard::before {
    display: none;
  }

  .prayer-console {
    gap: 16px;
  }

  .console-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 0;
  }

  .location-kicker,
  .micro-label {
    margin-bottom: 5px;
    font-size: 14px;
  }

  .location-title {
    font-size: clamp(42px, 13vw, 58px);
  }

  .location-subline {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
  }

  .console-top .button {
    width: auto;
    min-width: 120px;
    min-height: 48px;
    padding-inline: 14px;
  }

  .status-panel {
    gap: 12px;
  }

  .status-copy,
  .countdown {
    min-height: 0;
    padding: 26px 22px;
  }

  .status-copy {
    border-radius: 24px 24px 58px 24px;
  }

  .status-copy::before {
    top: 28px;
    left: 24px;
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 22px;
  }

  .status-copy__eyebrow {
    min-height: 48px;
    margin: 0 0 10px 60px;
    font-size: 14px;
  }

  .status-copy h2 {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1;
  }

  .status-copy__note {
    font-size: 16px;
  }

  .countdown {
    border-radius: 24px 24px 58px 24px;
  }

  .countdown__label {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .countdown__value {
    font-size: clamp(25px, 7.1vw, 34px);
  }

  .countdown__target {
    margin-top: 14px;
    font-size: 14px;
  }

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

  .prayer-card {
    min-height: 132px;
    padding: 18px;
    border-radius: 17px;
  }

  .prayer-card:last-child {
    grid-column: 1 / -1;
  }

  .prayer-card__name {
    font-size: 17px;
  }

  .prayer-card__badge {
    font-size: 10px;
  }

  .prayer-card__time {
    margin-top: 20px;
    font-size: clamp(34px, 10vw, 43px);
  }

  .supplemental-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .supplemental-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .supplemental-times span {
    padding: 10px 6px;
    border-radius: 12px;
    font-size: 12px;
    text-align: center;
  }

  .supplemental-times b {
    display: block;
    margin: 3px 0 0;
    font-size: 14px;
  }

  .data-state {
    justify-content: center;
    font-size: 12px;
    text-align: center;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 32px;
  }

  .section-heading h2,
  .content-hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .section-heading > p,
  .content-hero__intro {
    font-size: 17px;
  }

  .feature-grid,
  .popular-locations,
  .contact-grid,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-card h3 {
    margin-top: 34px;
  }

  .location-workspace {
    grid-template-columns: 1fr;
  }

  .finder-panel {
    padding: 25px;
  }

  .monthly-card {
    border-radius: 18px;
  }

  .monthly-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .prayer-table {
    min-width: 760px;
    font-size: 14px;
  }

  .source-panel {
    grid-template-columns: 1fr;
    padding: 26px;
    border-radius: 20px;
  }

  .faq-item {
    padding-inline: 17px;
  }

  .faq-item summary {
    font-size: 19px;
  }

  .content-hero {
    padding: 64px 0 54px;
  }

  .content-hero__intro {
    padding: 18px 0 0;
    border: 0;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 48px 72px;
  }

  .article-index {
    position: static;
    font-size: 13px;
  }

  .article {
    font-size: 17px;
  }

  .article h2 {
    margin-top: 46px;
    font-size: 31px;
  }

  .site-footer__top,
  .site-footer__links {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    width: 230px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    font-size: 12px;
  }

  .location-dialog__panel {
    padding: 24px;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: min(100% - 22px, 620px);
  }

  .site-brand {
    width: 160px;
  }

  .endorsement > span {
    display: none;
  }

  .main-nav a,
  .main-nav button {
    font-size: 11px;
  }

  .status-copy h2 {
    font-size: 36px;
  }

  .console-top {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .console-top .button {
    min-width: 0;
    padding-inline: 10px;
    font-size: 12px;
  }

  .countdown__value {
    font-size: 24px;
  }

  .prayer-card__time {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
