@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/liquid-fire/B900.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/assets/liquid-fire/P400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/assets/liquid-fire/P600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("/assets/liquid-fire/P700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --fire-black: #0b0b0c;
  --fire-white: #fff;
  --fire-navy: #131c32;
  --fire-yellow: #ffdb29;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: Poppins, Arial, sans-serif;
  --canvas: #f5f6f8;
  --ink: #131623;
  --muted: #50596a;
  --glass: #fff;
  --line: #dce0e7;
  --rim: #dce0e7;
  --tile: #edf0f6;
  --surface-field: #fff;
  --control-hover: #ebedf3;
  --accent: var(--fire-black);
  --accent-hover: #262a35;
  --accent-text: #283958;
  --button-ink: #fff;
  --ambient-1: #c9d3e755;
  --ambient-2: #dce1ec45;
  --sunlight: var(--fire-yellow);
  --sunlight-halo: #ffdb2933;
  --action-shadow: #10192a18;
  --action-shadow-hover: #10192a32;
  --shadow: 0 14px 40px #27354b12;
  --focus-ring: #355dae;
}
:root[data-theme="dark"] {
  --canvas: #0e1015;
  --ink: #f5f6f8;
  --muted: #bcc4d4;
  --glass: #191e28;
  --line: #414b5d;
  --rim: #414b5d;
  --tile: #1b2336;
  --surface-field: #1b2336;
  --control-hover: #293245;
  --accent: #f5f6f8;
  --accent-hover: #dce1ec;
  --accent-text: #d0dbef;
  --button-ink: #10131a;
  --ambient-1: #313e5a80;
  --ambient-2: #242c3a60;
  --shadow: 0 14px 40px #0004;
  --focus-ring: #aabff2;
}
.wrap, .daily-intro > .wrap { width: min(1280px, calc(100% - var(--wrap-margin))); }
h1, h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.018em;
  line-height: .89;
  overflow-wrap: break-word;
}
h3 { letter-spacing: -.025em; line-height: 1.27; }
.eyebrow { font-size: .72rem; letter-spacing: .13em; font-weight: 700; }
.intro, .body-copy { font-size: clamp(.97rem, 1.35vw, 1.15rem); line-height: 1.65; }
.glass { backdrop-filter: none; }
.button { min-height: 46px; font-size: .84rem; }
.small { min-height: 44px; }
.section { padding-block: clamp(34px, 5vw, 72px); }

.top, .hero-stage, .schedule, .subhero, .prayer-feature, .giving, footer, .daily-declaration {
  color-scheme: dark;
  --ink: #fff;
  --muted: #d7dce7;
  --accent-text: #edf1fa;
  --headline-glow: linear-gradient(#fff, #fff);
  --focus-ring: var(--fire-yellow);
}
.top, :root[data-theme="dark"] .top {
  margin: 0;
  top: 0;
  background: #0b0b0cee;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #353947;
  --ink: #fff;
  --muted: #d7dce7;
  --control-hover: #252b39;
  --line: #444c5c;
  color: #fff;
}
.top-inner {
  padding: 6px 0;
  min-height: 77px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.top nav a { color: #f3f4f7; font-size: .79rem; }
.top nav a[aria-current="page"] { color: var(--fire-yellow); }
.top .brand { letter-spacing: -.02em; }
.top .brand .day, footer .footer-logo .day { display: none; }
.top .brand .night, footer .footer-logo .night { display: inline-block; }
.top .theme-toggle, .top .menu { color: #fff; background: #171b24; border-color: #566176; }
.top .primary, .hero-copy .primary {
  color: var(--fire-black);
  background: var(--fire-yellow);
  border-color: var(--fire-yellow);
}
.top .primary:hover, .hero-copy .primary:hover { background: #ffe673; }
.top nav.open { background: #161923; }

.hero-stage { background: var(--fire-black); color: #fff; }
.hero-stage-content { min-height: clamp(525px, 46vw, 650px); padding-block: 62px; }
.hero-copy { width: min(53%, 660px); }
.hero h1 { font-size: clamp(5rem, 10.5vw, 9.75rem); }
.hero .intro { max-width: 43ch; }
.hero-copy .secondary {
  background: #171d2ac9;
  color: #fff;
  border-color: #8290a8;
}
.hero-copy .secondary:hover { background: #283245; }
.hero-art, [data-theme="dark"] .hero-art {
  inset: 0 max(0px, calc((100vw - 1375px) / 2)) 0 46%;
  filter: grayscale(.85);
  opacity: .92;
  mask-image: none;
}
.hero-art img { object-position: 62% center; }
.hero-stage::after, [data-theme="dark"] .hero-stage::after {
  background: linear-gradient(90deg, #0b0b0c 42%, #0b0b0c90 51%, transparent 65%, #0b0b0c35 90%, #0b0b0c),
              linear-gradient(0deg, #0b0b0c, transparent 24%, transparent 86%, #0b0b0c);
  opacity: 1;
}
.fire-refraction {
  position: absolute;
  inset: 0 0 0 43%;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/liquid-fire/liquid-fire.webp") center / cover;
  mix-blend-mode: screen;
  opacity: .31;
  mask-image: linear-gradient(90deg, transparent, #000 54%);
}
@media (prefers-reduced-motion: no-preference) {
  .fire-refraction { animation: fire-drift 8s ease-in-out 2 alternate both; }
}
@keyframes fire-drift {
  to { transform: translate3d(-12px, 9px, 0) scale(1.035); }
}

.hero-content { padding-block: 20px 26px; }
.schedule, [data-theme="dark"] .schedule {
  border: 1px solid #647188;
  background: radial-gradient(ellipse at 78% 0%, #697c9f43, transparent 58%),
    linear-gradient(155deg, #3b475c, #171e2c 48%, #10141f);
  box-shadow: var(--shadow), inset 0 1px 0 #ffffff74, inset 0 -1px 0 #0009;
}
.schedule::after, [data-theme="dark"] .schedule::after {
  background: radial-gradient(ellipse, #c6d4f33b, transparent 67%);
}
.schedule-indicator, [data-theme="dark"] .schedule-indicator {
  background: var(--fire-yellow);
  box-shadow: 0 0 0 5px #ffdb2933;
}
.schedule-date { font-size: clamp(1.22rem, 2.25vw, 1.8rem); }
.countdown div, .countdown div:last-child {
  background: linear-gradient(175deg, #ffffff2b, #ffffff06 43%, transparent 44%),
    radial-gradient(ellipse at 48% 0%, #7187b16b, transparent 75%),
    linear-gradient(155deg, #2f3a51, #111521 78%);
  border-color: #74819a;
  box-shadow: inset 0 1px 0 #ffffff70, inset 0 -1px 0 #0008, 0 7px 18px #02040780;
}
.countdown div:last-child {
  background: linear-gradient(175deg, #ffe9902f, #ffe99007 43%, transparent 44%),
    radial-gradient(ellipse at 50% 0%, #b08b3c72, transparent 72%),
    linear-gradient(155deg, #3a3020, #171818 85%);
  border-color: #c8ac57;
  box-shadow: inset 0 1px 0 #ffe49f8c, inset 0 -1px 0 #0008, 0 7px 18px #02040780;
}
.countdown strong {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 3px #0008;
}
.countdown div:last-child strong { color: var(--fire-yellow); }
.countdown span { color: #e4e8ef; }
.reminder-dialog::backdrop { background: #07080bc4; backdrop-filter: blur(8px); }

.subhero, .daily-intro {
  background: var(--fire-black);
  color: #fff;
  padding-block: clamp(52px, 7vw, 100px);
}
.subhero h1 { font-size: clamp(3.5rem, 8vw, 8.2rem); }
.subhero::after, [data-theme="dark"] .subhero::after {
  background: url("/assets/liquid-fire/liquid-fire.webp") center / cover no-repeat;
  filter: none;
  opacity: .56;
}
.subhero .intro { max-width: 44ch; }
.daily-intro { min-height: clamp(310px, 30vw, 470px); }
.daily-intro::after, [data-theme="dark"] .daily-intro::after {
  inset: 0;
  background: linear-gradient(90deg, #0b0b0c 13%, #0b0b0cf5 34%, #0b0b0c66 55%, transparent 82%);
  opacity: 1;
  mask-image: none;
}
.daily-intro-art, [data-theme="dark"] .daily-intro-art { filter: grayscale(.55) brightness(.82); }
.daily-layout { padding-top: clamp(20px, 4vw, 46px); }
.daily-notifications-jump { color: #fff; background: #1a2233; border-color: #8290a8; }
.daily-declaration { background: var(--fire-navy); }
.daily-declaration h3 { color: #fff; }
.policy-copy { margin-top: clamp(20px, 4vw, 46px); }
#reading-title, #gift-result-title { overflow-wrap: anywhere; }

.daily-home {
  background: var(--canvas);
  border: 1px solid var(--rim);
}
.daily-home::before, [data-theme="dark"] .daily-home::before {
  background: linear-gradient(90deg, var(--canvas) 7%, var(--canvas) 32%, transparent 72%);
}
.daily-home-art { filter: saturate(.66); }
.about-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 44%; margin-top: 18px; border-radius: 15px; }
.verse::before { background: linear-gradient(145deg, var(--glass), var(--tile)); }
.moment-grid img, .video-art img { filter: grayscale(.8); }
.replays { background: var(--tile); }
.play-disc { color: var(--fire-black); background: var(--fire-white); }
.request {
  background-image: linear-gradient(140deg, var(--glass), var(--tile));
}
.prayer-feature { background: var(--fire-navy); }
.prayer-banner-art img { filter: grayscale(1) brightness(.79); }
.prayer-feature::before { background: linear-gradient(90deg, #131c32 6%, #131c32f5 34%, #131c3280 55%, transparent 83%); }
.prayer-feature .eyebrow, .prayer-feature .body-copy { color: #eef1f8; }
.prayer-feature .primary { background: #fff; color: #0b0b0c; }
.prayer-feature .primary:hover { background: #dde3ef; }
.giving {
  background: linear-gradient(150deg, #242d42e0, #10131fc9), url("/assets/liquid-fire/glass-light.webp") center / cover;
  border: 1px solid #585e70;
}
.giving .eyebrow, .giving .body-copy { color: #e3e8f3; }
.light { color: #0b0b0c; }
footer { background: var(--fire-black); color: #fff; }
footer .socials a { color: #e4e8f2; }

@media (max-width: 1000px) {
  .hero-stage-content { min-height: 0; padding-block: clamp(210px, 43vw, 385px) 40px; }
  .hero-art, [data-theme="dark"] .hero-art { inset: 0 0 auto; height: clamp(270px, 49vw, 465px); }
  .hero-art img { height: 100%; object-position: center 35%; }
  .hero-stage::after, [data-theme="dark"] .hero-stage::after { background: linear-gradient(0deg, #0b0b0c 33%, #0b0b0c44 66%, transparent); }
  .fire-refraction { inset: 0 0 auto; height: 62%; mask-image: linear-gradient(180deg, #000 40%, transparent 100%); }
  .hero-copy { width: min(100%, 620px); }
  .hero h1 { font-size: clamp(4.55rem, 13vw, 8rem); }
}
@media (max-width: 910px) {
  .top-inner { min-height: 64px; }
}
@media (max-width: 790px) {
  .daily-intro { padding-top: clamp(180px, 51vw, 380px); }
  .daily-intro-art { top: 0; height: clamp(235px, 60vw, 460px); }
  .daily-intro::after, [data-theme="dark"] .daily-intro::after {
    height: clamp(235px, 60vw, 460px);
    background: linear-gradient(0deg, #0b0b0c, transparent 60%);
  }
}
@media (max-width: 690px) {
  .daily-home::before, [data-theme="dark"] .daily-home::before { background: linear-gradient(0deg, var(--canvas), transparent 56%); }
  .prayer-feature::before { background: linear-gradient(0deg, #131c32 25%, #131c32da 51%, transparent 98%); }
  .about-photo { aspect-ratio: 16 / 8; }
}
@media (max-width: 410px) {
  .hero h1 { font-size: clamp(3.65rem, 16.5vw, 4.25rem); }
  .subhero h1 { font-size: clamp(3.1rem, 14.2vw, 3.8rem); }
}

@media (min-width: 1001px) {
  .hero-art, [data-theme="dark"] .hero-art { inset: 50px max(0px, calc((100vw - 1500px) / 2)) 48px 43%; }
}
.request-intro::after, [data-theme="dark"] .request-intro::after {
  inset: 0;
  background: linear-gradient(90deg, #0b0b0c 14%, #0b0b0cf7 30%, #0b0b0c66 52%, transparent 82%),
              url("/assets/liquid-fire/prayer.webp") right center / cover;
  opacity: .88;
  mask-image: none;
}
@media (max-width: 650px) {
  .request-intro { padding-top: 180px; }
  .request-intro::after, [data-theme="dark"] .request-intro::after {
    background: linear-gradient(0deg, #0b0b0c 7%, #0b0b0c 45%, transparent 79%),
                url("/assets/liquid-fire/prayer.webp") 74% top / auto 66% no-repeat;
  }
}

.schedule, .prayer-feature { color: var(--ink); }

/* Homepage portraits and brand line */
.hero-stage-content { padding-bottom: 88px; }
.hero h1 { font-size: clamp(4.4rem, 8.9vw, 9.4rem); }
.hero-slogan {
  margin: 24px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--fire-yellow);
  font-size: clamp(1.08rem, 1.6vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
}
.hero .intro { margin-top: 17px; }
.hero-art .hero-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-art .is-visible { opacity: 1; }
.hero-art .hero-closeup { object-position: center 37%; }
.hero-art .hero-raised { object-position: center 25%; }
.prayer-slideshow-controls {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.prayer-slideshow-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #8b92a2;
  border-radius: 999px;
  background: #141821ed;
  color: #fff;
  cursor: pointer;
  font-size: .78rem;
}
.prayer-slideshow-controls button[aria-pressed="true"] {
  background: var(--fire-yellow);
  border-color: var(--fire-yellow);
  color: var(--fire-black);
}
.prayer-slideshow-controls button:hover { border-color: var(--fire-yellow); }
.footer-brand p { margin: 8px 0 0; color: #eee; font-size: .81rem; font-weight: 600; }

@media (max-width: 1000px) {
  .hero-stage-content { padding-top: clamp(230px, 43vw, 400px); }
  .hero h1 { font-size: clamp(4.2rem, 11.6vw, 8rem); }
  .hero-art .hero-collage { object-position: 69% 38%; }
  .hero-art .hero-closeup { object-position: center 29%; }
  .hero-art .hero-raised { object-position: center 23%; }
  .prayer-slideshow-controls { justify-content: flex-start; }
}
@media (max-width: 410px) {
  .hero h1 { font-size: clamp(3.5rem, 13vw, 4.25rem); }
  .hero-slogan { margin-top: 17px; }
}

/* Books displayed at their original proportions */
#books .feature-split {
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
}
.books-hero { padding-block: clamp(34px, 4.3vw, 65px); }
.books-hero-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
.books-hero h1 { font-size: clamp(3.2rem, 6.3vw, 7rem); }
.books-hero .button { margin-top: 20px; }
.cover-shelf {
  display: grid;
  align-items: end;
  gap: clamp(9px, 1.6vw, 21px);
  padding: clamp(13px, 2.3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.home-cover-shelf {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(165deg, var(--glass), var(--tile));
}
.books-cover-shelf {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  width: 100%;
  max-width: 660px;
  justify-self: end;
  column-gap: clamp(9px, 2vw, 28px);
  row-gap: 12px;
  padding: clamp(8px, 2vw, 22px) 0 0;
  border: 0;
}
.cover-shelf a {
  display: grid;
  gap: 10px;
  align-items: end;
  justify-items: center;
  min-width: 0;
  text-align: center;
  font-size: clamp(.72rem, 1.14vw, .91rem);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.cover-shelf img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 260px;
  align-self: end;
  border-radius: 3px 7px 7px 3px;
  box-shadow: 0 10px 24px #0b132652;
  transition: transform .2s ease;
}
.cover-shelf a:hover img { transform: translateY(-4px); }
.cover-shelf a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.cover-shelf span { align-self: start; min-height: 2.7em; }
#featured-title, #new-books-title, #collection { scroll-margin-top: 95px; }
.resource-page .feature-card:not(.bundle-card) > img {
  object-fit: contain;
  padding: 15px;
  height: clamp(220px, 25vw, 310px);
}
.resource-page .catalog-card > img { object-fit: contain; }

@media (max-width: 795px) {
  #books .feature-split, .books-hero-layout { grid-template-columns: minmax(0, 1fr); }
  .cover-shelf { width: min(100%, 570px); }
}
@media (max-width: 500px) {
  #books .feature-split { padding-inline: 17px; }
  .home-cover-shelf { padding: 10px; gap: 8px; }
}

/* Giving banner and form */
.giving-hero { background: linear-gradient(130deg, #0b0b0c 32%, #18213b); padding-block: clamp(36px, 5vw, 76px); }
.giving-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
}
.giving-hero h1 { font-size: clamp(3.55rem, 6vw, 7rem); }
.giving-hero-action { margin-top: 21px; background: var(--fire-yellow); color: var(--fire-black); }
.giving-hero-action:hover { background: #ffe673; }
.giving-verse {
  padding: clamp(18px, 3.5vw, 43px);
  border: 1px solid #727a8d;
  border-top: 2px solid var(--fire-yellow);
  border-radius: 20px;
  background: linear-gradient(145deg, #30394ebd, #111828e8);
}
.giving-verse blockquote { margin: 0 0 13px; font-size: clamp(1.25rem, 2.7vw, 2.3rem); }
.giving-verse figcaption { color: #ffe673; }
.giving-verse .giving-scripture-credit { margin-top: 12px; }
.give-panel .giving-step {
  margin: 0 0 23px;
  padding: clamp(14px, 2.3vw, 25px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--glass), var(--tile));
}
.giving-step legend { padding-inline: 8px; }
.giving-step .giving-help { margin-bottom: 0; }
.amount-step .amount-button {
  min-width: 68px;
  border-radius: 12px;
  background: var(--glass);
}
.amount-step .amount-button[aria-pressed="true"] { background: var(--accent); color: var(--button-ink); }
.giving-step .gift-selection-preview { align-items: center; padding-top: 12px; }
#gift-selection-bundle-art .bundle-covers { gap: 5px; padding: 8px; }
#gift-selection-bundle-art img { width: clamp(26px, 5vw, 52px); height: auto; aspect-ratio: 3 / 4; }
@media (max-width: 705px) {
  .giving-hero-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 415px) {
  .giving-step .gift-selection-preview:has(#gift-selection-bundle-art:not([hidden])) { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .hero-frame { transition: none; }
  .cover-shelf a:hover img { transform: none; }
}

/* A silver reflection behind the homepage publications. */
#books .feature-split {
  position: relative;
  isolation: isolate;
}
#books .feature-split::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: url("/assets/liquid-fire/liquid-fire.webp") 80% 54% / cover;
  filter: grayscale(1) invert(1);
  mix-blend-mode: multiply;
  opacity: .72;
  mask-image: linear-gradient(110deg, transparent 19%, #0005 42%, #000 80%);
  pointer-events: none;
}
#books .home-cover-shelf {
  background: linear-gradient(155deg, #ffffffbb, #f1f3f747);
  box-shadow: inset 0 1px 0 #fff;
}
[data-theme="dark"] #books .feature-split::before {
  filter: grayscale(1);
  mix-blend-mode: screen;
  opacity: .46;
}
[data-theme="dark"] #books .home-cover-shelf {
  background: linear-gradient(155deg, #263044b0, #13172160);
  box-shadow: inset 0 1px 0 #ffffff20;
}

.books-cover-shelf a {
  grid-row: span 2;
  grid-template-rows: subgrid;
  align-self: stretch;
}
.books-cover-shelf img {
  max-height: 248px;
  box-shadow: 0 12px 24px #0009;
}
.books-cover-shelf .lead-cover img { max-height: 292px; }
@media (max-width: 795px) {
  .books-cover-shelf { justify-self: center; }
}
