@font-face {
  font-family: "Noto Serif";
  src: url("/fonts/noto-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif";
  src: url("/fonts/noto-serif-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #161310;
  --ink: #f3ede4;
  --muted: #9a8d7c;
  --gold: #c4a574;
  --line: #2e2822;
  --dot: #C45C3E;
  --soft: #e6dccd;
  --verse: #e9e0d2;
  --danger: #f0b4a2;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Noto Serif", "Source Serif 4", Georgia, serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

[hidden] { display: none !important; }

a { color: inherit; }

.kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot);
  display: inline-block;
  margin-right: 10px;
  vertical-align: -1px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--ink);
}

/* Evening is the default so the hero is never blank before the script runs.
   Unsuffixed files are the 2560px masters. Narrow screens use the 1280px set. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  background-image: url("/hero/fri.jpg");
  background-image: image-set(
    url("/hero/fri.webp") type("image/webp"),
    url("/hero/fri.jpg") type("image/jpeg")
  );
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
}

html[data-hero="morning"] .hero::before {
  background-image: url("/hero/thu.jpg");
  background-image: image-set(
    url("/hero/thu.webp") type("image/webp"),
    url("/hero/thu.jpg") type("image/jpeg")
  );
}

html[data-hero="day"] .hero::before {
  background-image: url("/hero/tue.jpg");
  background-image: image-set(
    url("/hero/tue.webp") type("image/webp"),
    url("/hero/tue.jpg") type("image/jpeg")
  );
}

html[data-hero="evening"] .hero::before {
  background-image: url("/hero/fri.jpg");
  background-image: image-set(
    url("/hero/fri.webp") type("image/webp"),
    url("/hero/fri.jpg") type("image/jpeg")
  );
}

@media (max-width: 800px) {
  .hero::before,
  html[data-hero="evening"] .hero::before {
    background-image: url("/hero/fri-1280.jpg");
    background-image: image-set(
      url("/hero/fri-1280.webp") type("image/webp"),
      url("/hero/fri-1280.jpg") type("image/jpeg")
    );
  }
  html[data-hero="morning"] .hero::before {
    background-image: url("/hero/thu-1280.jpg");
    background-image: image-set(
      url("/hero/thu-1280.webp") type("image/webp"),
      url("/hero/thu-1280.jpg") type("image/jpeg")
    );
  }
  html[data-hero="day"] .hero::before {
    background-image: url("/hero/tue-1280.jpg");
    background-image: image-set(
      url("/hero/tue-1280.webp") type("image/webp"),
      url("/hero/tue-1280.jpg") type("image/jpeg")
    );
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #161310;
  opacity: 0.25;
  pointer-events: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(#161310b0, #16131000 30%, #16131060 60%, #161310 100%);
}

.nav,
.hero-grid {
  position: relative;
  z-index: 3;
  width: min(1440px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-note {
  margin: 0;
  font-size: 14px;
  color: #d8cebf;
  text-align: right;
  white-space: nowrap;
}

.hero-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: 48px 120px 0;
}

.hero-copy {
  max-width: 720px;
  padding-bottom: 132px;
}

.hero h1 {
  margin: 14px 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: -1px;
}

.hero-kicker {
  color: #f6f1e8;
  text-shadow: 0 1px 2px rgba(22, 19, 16, 0.7), 0 10px 28px rgba(22, 19, 16, 0.55);
}

.lede {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--soft);
}

.download-block { margin-top: 30px; }

.downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cta .downloads { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 50px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.btn:hover { opacity: 0.92; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(196, 165, 116, 0.7); outline-offset: 2px; }

.btn.is-disabled {
  background: #3a342c;
  color: #8a8175;
  cursor: not-allowed;
  pointer-events: none;
}

/* Front-facing black iPhone. The bezel is the corner measured on a
   real iPhone, and the glass is that same curve set in by a constant
   distance (hero/render-phone-frame.py), so the two edges are one bend.
   The Dynamic Island is a cutout in the glass. */
.phone {
  width: 380px;
  flex: 0 0 auto;
  margin: 0 0 -28px;
  line-height: 0;
  filter:
    drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5))
    drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.phone picture,
.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.credit {
  position: absolute;
  z-index: 3;
  left: max(56px, calc((100% - 1440px) / 2 + 56px));
  bottom: 22px;
  margin: 0;
  max-width: min(420px, 42vw);
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.credit span { display: none; }

html[data-hero="morning"] .credit-morning,
html[data-hero="day"] .credit-day { display: inline; }

/* The evening photograph is the no-script default, so its credit is not in this line. */
html[data-hero="evening"] .credit,
html:not([data-hero]) .credit { display: none; }

.starts,
.inside,
.tiles,
.promises,
.cta,
.foot {
  width: min(1440px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.starts {
  padding: 78px 120px 8px;
  text-align: center;
}

.starts h2 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  text-wrap: balance;
}

.starts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.start {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #1c1814;
  padding: 26px 24px 28px;
}

.start p:last-child {
  margin: 10px 0 0;
  color: #d8cebf;
  font-size: 15.5px;
  line-height: 1.5;
}

.inside {
  padding: 108px 120px 8px;
  text-align: center;
}

.inside h2,
.cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.4px;
}

.inside h2 {
  margin: 12px 0 10px;
  font-size: 46px;
  line-height: 1.15;
  text-wrap: balance;
}

.inside-lede {
  margin: 0 auto;
  max-width: 46rem;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 30px 120px 8px;
}

.tile {
  position: relative;
  min-height: 400px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  background: #1c1814;
}

.tile-photo,
.tile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tile-photo { z-index: 0; }

.tile-photo img {
  object-fit: cover;
  object-position: center;
  filter: brightness(0.68) saturate(0.8) contrast(0.95);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #161310;
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(#16131073, #16131000 30%, #16131040 55%, #161310eb);
}

.published {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(196, 165, 116, 0.14), transparent 46%),
    #1c1814;
  padding: 36px 40px 32px;
}

.published-inner { max-width: 40rem; }

.published h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.published h2 a {
  color: inherit;
  text-decoration: none;
}

.published h2 a:hover { color: var(--gold); }

.published .liturgical {
  margin: 10px 0 0;
  color: var(--muted);
}

.published .prayer-text {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--ink);
}

.published .prayer-follow {
  margin: 22px 0 0;
  font-size: 13px;
}

.published .prayer-follow a {
  color: var(--muted);
  text-decoration: none;
}

.published .prayer-follow a:hover { color: var(--ink); }

.published .amen {
  display: block;
  margin: 1.15rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--gold);
}

.published .means { margin-top: 28px; }

.published .means h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.published .means p {
  margin: 0;
  color: var(--soft);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
}

.published-empty {
  margin: 16px 0 0;
  color: var(--soft);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
}

.published-empty p { margin: 0; }
.published-empty p + p { margin-top: 12px; }

.published a {
  color: var(--soft);
  text-underline-offset: 0.18em;
}

.published a:hover { color: var(--ink); }

.published a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.tile-copy {
  position: relative;
  z-index: 2;
  padding: 30px 34px;
}

.tile h3 {
  margin: 8px 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-wrap: balance;
}

.blurb {
  margin: 10px 0 0;
  max-width: 420px;
  color: #d8cebf;
  font-size: 15.5px;
  line-height: 1.5;
}

.amen {
  font-style: italic;
  color: var(--gold);
}

.bar {
  height: 5px;
  background: #f3ede42a;
  border-radius: 3px;
  margin: 16px 0 12px;
  width: min(300px, 100%);
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 3px;
}

.occ-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  max-width: 460px;
}

.occ-chips li {
  border: 1px solid #f3ede440;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  line-height: 1.2;
  color: #efe6d8;
  background: #16131055;
}

.promises {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
  padding: 0 20px;
}

.promises li {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.2;
}

.cta {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 80px 120px 48px;
  text-align: center;
}

.cta h2 {
  margin: 10px 0 0;
  font-size: 40px;
  line-height: 1.2;
  text-wrap: balance;
}

.mission {
  margin: 18px auto 0;
  max-width: 36rem;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--soft);
}

.mission + .mission { margin-top: 2px; }

.cta .download-block { margin-top: 28px; }

.foot {
  text-align: center;
  color: var(--muted);
  padding: 8px 24px 50px;
}

.foot-brand {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: balance;
}

.photo-credits { color: inherit; }

.photo-credits .hero-photo-credit { display: none; }

/* No script means the evening photograph, so this credit stays in the same line. */
html[data-hero="evening"] .photo-credits .hero-photo-credit,
html:not([data-hero]) .photo-credits .hero-photo-credit { display: inline; }

/* Break on the middots, not inside a photographer's name. Narrow phones may wrap. */
@media (min-width: 480px) {
  .foot-brand a,
  .photo-credits .foot-credit,
  .photo-credits .sep { white-space: nowrap; }
}

.foot-brand .dot {
  width: 9px;
  height: 9px;
  margin-right: 8px;
  vertical-align: 0;
}

.foot-brand a {
  color: inherit;
  text-decoration: none;
}

.foot-brand a:hover { color: var(--ink); }
.foot-brand a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1100px) {
  .nav { padding: 22px 32px; }
  .hero-grid { padding: 36px 32px 0; gap: 24px; }
  .hero-copy { padding-bottom: 72px; }
  .hero h1 { font-size: 60px; }
  .phone { width: 300px; }
  .starts { padding: 64px 32px 4px; }
  .starts h2 { font-size: 34px; }
  .inside { padding: 72px 32px 8px; }
  .inside h2 { font-size: 38px; }
  .tiles { padding: 24px 32px 8px; }
  .cta { padding: 64px 32px 40px; }
  .credit { left: 32px; }
}

@media (max-width: 800px) {
  .nav { padding: 18px 20px; }
  .nav-note { font-size: 12px; }
  .hero-grid {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 20px 0;
  }
  .hero-copy {
    max-width: none;
    padding-bottom: 8px;
  }
  .hero h1 { font-size: 48px; }
  .lede { font-size: 18px; }
  .phone {
    width: min(260px, 68vw);
    margin: 28px auto 0;
  }
  .credit {
    position: relative;
    z-index: 3;
    bottom: auto;
    max-width: none;
    padding: 16px 20px 8px;
    left: auto;
  }
  .starts { padding: 48px 20px 4px; }
  .starts h2 { font-size: 30px; margin-bottom: 18px; }
  .starts-grid { grid-template-columns: 1fr; }
  .inside { padding: 48px 20px 4px; }
  .inside h2 { font-size: 32px; }
  .tiles {
    grid-template-columns: 1fr;
    padding: 22px 20px 4px;
  }
  .tile { min-height: 400px; }
  .published { padding: 28px 22px 24px; }
  .tile h3 { font-size: 28px; }
  .cta { margin-top: 48px; padding: 48px 20px 28px; }
  .cta h2 { font-size: 30px; }
}

@media (max-width: 640px) {
  .downloads { flex-direction: column; align-items: stretch; }
  .downloads .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

