/* The Crazy Way — static site styles */

:root {
  --red: #d90b07;
  --red-hover: #f0241f;
  --bg: #0b0b0d;
  --bg-raised: #16161a;
  --bg-tint: #111114;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ecebe8;
  --muted: #a3a29e;
  --radius: 14px;
  --header-h: 64px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --container: 1160px;
  --narrow: 760px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.45rem;
}

:focus-visible {
  outline: 3px solid var(--red-hover);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: -999px;
  z-index: 200;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 700px) {
  .container {
    padding: 0 32px;
  }
}

.container.narrow {
  max-width: calc(var(--narrow) + 64px);
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 700 0.95rem/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--small {
  min-height: 40px;
  padding: 0.5em 1.1em;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.text-link:hover {
  color: #fff;
}

.text-link svg {
  width: 1em;
  height: 1em;
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 700px) {
  .site-header__inner {
    padding: 0 32px;
  }
}

.brand img {
  width: auto;
  height: 40px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 10px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

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

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

@media (max-width: 860px) {
  .js .nav-toggle {
    display: block;
  }

  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    display: none;
  }

  .js .nav-open .site-nav {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
  }

  .js .site-nav a {
    padding: 14px 12px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  html:not(.js) .site-header__inner {
    height: auto;
    flex-wrap: wrap;
    padding-block: 12px;
  }

  html:not(.js) .site-nav ul {
    flex-wrap: wrap;
  }
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(88vh, 820px);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 45%, var(--bg) 100%);
}

.hero__content {
  padding-block: 120px 64px;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero__toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.hero__toggle:hover {
  background: rgba(0, 0, 0, 0.8);
}

.hero__toggle svg {
  width: 100%;
  height: 100%;
}

.hero__toggle-play,
.hero__toggle.is-paused .hero__toggle-pause {
  display: none;
}

.hero__toggle.is-paused .hero__toggle-play {
  display: block;
}

.hero__toggle-pause {
  display: block;
}

/* ------------------------------------------------------------ sections */

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--tint {
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}

.section--photo {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(11, 11, 13, 0.72), rgba(11, 11, 13, 0.88)), var(--photo, none);
  background-position: center;
  background-size: cover;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}

.section__head h2 {
  margin: 0;
}

.section__title {
  margin-bottom: 24px;
}

.page-header {
  padding-block: clamp(48px, 8vw, 88px) 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.4em;
}

.page-header__intro {
  max-width: 68ch;
  margin: 0 auto;
  color: var(--muted);
}

.page-header + .section {
  padding-top: clamp(32px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-hover);
  font: 700 0.85rem/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
}

/* ------------------------------------------------------------ prose (imported HTML) */

.prose {
  overflow-wrap: break-word;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1em;
}

.prose a,
.story__more a {
  color: #fff;
  font-weight: 600;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s;
}

.prose a:hover,
.story__more a:hover {
  text-decoration-color: #fff;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 4px solid var(--red);
  font-style: italic;
}

.prose h1,
.prose h2,
.prose h3 {
  margin-top: 1.4em;
}

.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.prose img {
  border-radius: 10px;
}

.prose .btn,
.prose a.button,
.prose .wp-block-button__link {
  color: #fff;
  text-decoration: none;
}

.prose--lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  text-align: center;
}

.prose--lead br {
  display: none;
}

.prose .prayer {
  margin: 1.5em 0;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(217, 11, 7, 0.12);
  border: 1px solid rgba(217, 11, 7, 0.35);
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
}

.prose .banner {
  margin: 2em 0 1em;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
}

.prose .banner .overlay {
  padding: clamp(36px, 7vw, 64px) 16px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35));
  text-align: center;
}

.prose .banner h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-transform: uppercase;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

/* ------------------------------------------------------------ embeds & video */

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.5em;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed--map {
  aspect-ratio: 4 / 3;
  padding: 0;
  margin: 0;
}

.player {
  position: relative;
  display: block;
  width: 100%;
  margin: 28px 0 20px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, opacity 0.2s;
}

.player:hover img {
  transform: scale(1.03);
  opacity: 0.85;
}

.player__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 12vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, background 0.2s;
}

.player:hover .player__icon {
  background: var(--red-hover);
  transform: translate(-50%, -50%) scale(1.08);
}

.player__icon svg {
  width: 45%;
  margin-left: 6%;
}

.video-modal {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.video-modal .embed {
  margin: 0;
}

.video-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ------------------------------------------------------------ grids & cards */

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.grid--topics {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.story-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
}

.story-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.story-card__play svg {
  width: 20px;
  margin-left: 3px;
}

.story-card__body {
  padding: 18px 20px 22px;
}

.story-card__body h3 {
  margin-bottom: 6px;
}

.story-card__body h3 a {
  text-decoration: none;
}

.story-card__body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.story-card {
  position: relative;
}

.story-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-card__link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #000;
  text-decoration: none;
}

.topic-card__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.topic-card__link:hover img {
  transform: scale(1.04);
}

.topic-card__text {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 64px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92) 55%);
}

.topic-card__title {
  font: italic 900 1.7rem/1 var(--font-display);
  text-transform: uppercase;
}

.topic-card__summary {
  color: #d8d7d3;
  font-size: 0.9rem;
  line-height: 1.45;
}

.topic-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--red-hover);
  font-weight: 700;
  font-size: 0.85rem;
}

.topic-card__more svg {
  width: 1em;
  height: 1em;
}

.topic-card .btn {
  align-self: flex-start;
}

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 20px;
  margin-inline: -16px;
  padding: 4px 16px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.scroller > * {
  scroll-snap-align: start;
}

@media (min-width: 700px) {
  .scroller {
    grid-auto-columns: 260px;
    margin-inline: -32px;
    padding-inline: 32px;
  }
}

/* ------------------------------------------------------------ card landing pages */

.landing {
  position: relative;
  padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 72px);
  text-align: center;
  isolation: isolate;
}

.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, rgba(11, 11, 13, 0.6), var(--bg) 95%), var(--photo, none);
  background-position: center;
  background-size: cover;
}

.landing__videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.quote {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.quote blockquote {
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0.5em 1.1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--text);
  font: 600 0.9rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.chip svg {
  width: 1em;
  height: 1em;
}

.popover {
  max-width: min(440px, calc(100vw - 32px));
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.popover::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.js .discover {
  position: relative;
  max-height: 420px;
  overflow: hidden;
}

.js .discover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--bg-tint));
  pointer-events: none;
}

.js .discover.is-open {
  max-height: none;
}

.js .discover.is-open::after {
  display: none;
}

.discover__toggle {
  display: none;
  margin-top: 20px;
}

.js .discover__toggle {
  display: inline-flex;
}

/* ------------------------------------------------------------ story pages */

.story h1 {
  margin-top: 16px;
}

.back-link {
  margin-bottom: 8px;
}

.story__more {
  margin-top: 2em;
  color: var(--muted);
}

/* ------------------------------------------------------------ get in touch */

.get-in-touch {
  text-align: center;
}

.get-in-touch h2 {
  margin-bottom: 20px;
}

/* ------------------------------------------------------------ contact */

.contact {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1.4fr;
  }
}

.contact__prayer {
  grid-column: 1 / -1;
  text-align: center;
}

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

.contact address {
  margin-bottom: 1em;
  font-style: normal;
}

.contact__details p {
  margin: 0 0 0.5em;
}

.contact__details a {
  color: #fff;
}

.contact .footer-youtube {
  margin-top: 16px;
}

/* ------------------------------------------------------------ contact map */

.map {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.map a {
  position: relative;
  display: block;
}

.map img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.map__pin {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--red);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -100%) rotate(-45deg);
  transform-origin: center;
}

.map__open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.85);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.map__open svg {
  width: 1em;
  height: 1em;
}

.map a:hover .map__open {
  background: var(--red);
}

.map figcaption {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.75rem;
}

.map figcaption a {
  display: inline;
  color: var(--text);
}

/* ------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #000;
  padding-block: 28px;
  text-align: center;
}

.site-footer__inner {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.footer-youtube {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-youtube svg {
  width: 34px;
  height: 34px;
  color: var(--red);
}

.footer-youtube:hover {
  color: #fff;
}

.footer-small {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-small a {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.privacy__updated {
  margin-top: 2em;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Shown after an email link is clicked, for visitors without an email app. */
.mail-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  color: #0b0b0d;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  user-select: all;
  transform: translate(-50%, 160%);
  transition: transform 0.25s;
}

.mail-toast.is-visible {
  transform: translate(-50%, 0);
}
