/* Sections and pages. styles.css holds the foundation, header and hero. */

:root {
  --ground: #f3f3f2;
  --surface: #fff;
  --section-gap: clamp(88px, 11vw, 176px);
  --radius: clamp(18px, 1.7vw, 26px);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Bands */

.band {
  padding: var(--section-gap) var(--gutter);
}

.band--light {
  background: var(--ground);
  color: var(--ink);
}

.band--navy {
  background: var(--blue);
  color: #fff;
}

/* Page headings carry the primary colour on light grounds. */
.band--light :is(.heading, .subheading, .week__name),
.value-card h3,
.sheet h2 {
  color: var(--blue);
}

.band--light :focus-visible {
  outline-color: var(--blue);
}

/* Type */

.heading {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.subheading {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.body {
  margin: 0;
  max-width: 34em;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.body + .body {
  margin-top: 1em;
}

.statement {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.statement--long {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.stack > * + * {
  margin-top: clamp(16px, 1.6vw, 24px);
}

.stack > .pill,
.stack > .actions {
  margin-top: clamp(24px, 2.4vw, 36px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

/* Buttons on light grounds */

.pill--dark {
  --fill: var(--ink);
  --fill-ink: #fff;
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.pill--line {
  --fill: var(--blue);
  --fill-ink: #fff;
  border-color: var(--blue);
  color: var(--blue);
}

.pill[aria-current="page"] {
  border-color: #fff;
  background: var(--blue-deep);
  color: #fff;
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-underline-offset 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover {
    text-underline-offset: 7px;
  }
}

/* Pictures. The arch comes from the gate in the logo. */

.bw {
  filter: grayscale(1) contrast(1.05);
}

.frame {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch {
  border-radius: 999px 999px var(--radius) var(--radius);
}

/* Two-part sections */

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 48px;
}

.split__text {
  grid-column: 1 / span 5;
}

.split__media {
  grid-column: 7 / -1;
}

.split--flip .split__text {
  grid-column: 8 / -1;
  grid-row: 1;
}

.split--flip .split__media {
  grid-column: 1 / span 6;
  grid-row: 1;
}

.split--wide-text .split__text {
  grid-column: 1 / span 7;
}

.split--wide-text .split__media {
  grid-column: 8 / -1;
}

.split__media.frame {
  aspect-ratio: 5 / 6;
}

.split__media--wide.frame {
  aspect-ratio: 4 / 3;
}

/* Interior heroes */

.hero--page {
  height: 76svh;
  min-height: 520px;
  max-height: none;
}

.hero--page p {
  max-width: 28em;
}

/* Home: worship */

.worship {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  overflow: hidden;
  padding: 140px var(--gutter) clamp(40px, 5vw, 80px);
  background: var(--ink);
  color: #fff;
}

.worship__photo {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  width: 100%;
  height: 116%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.72);
}

.worship::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 0, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.15) 100%); /* taste-skill-ignore: scrim over the photo */
}

.worship__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 32px;
  width: 100%;
}

.worship__text {
  grid-column: 1 / span 7;
}

.worship__facts {
  grid-column: 9 / -1;
}

.worship__when {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.worship__where {
  margin: 10px 0 22px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.45;
}

/* Home: during the week. A statement, then three staggered photos with a word from the copy under each. */

.week__intro {
  max-width: 46rem;
}

.week__name {
  margin: clamp(16px, 1.6vw, 24px) 0 0;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.week__intro .pill {
  margin-top: clamp(20px, 2vw, 28px);
}

.week__note {
  margin-top: clamp(12px, 1.1vw, 16px);
  font-size: clamp(17px, 1.45vw, 21px);
  text-wrap: balance;
}

.week__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  align-items: start;
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.week__item:nth-child(2) {
  margin-top: clamp(40px, 6vw, 96px);
}

.week__item:nth-child(3) {
  margin-top: clamp(20px, 3vw, 48px);
}

.week__item .frame {
  aspect-ratio: 4 / 5;
}

.week__item:nth-child(2) .frame {
  aspect-ratio: 1 / 1;
}

.week__word {
  display: block;
  margin-top: clamp(10px, 1vw, 16px);
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--blue);
}

/* Home: watch and listen. Heading left, statement right, the latest sermons in a row, then the Instagram invite. */

.watch__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 28px;
  align-items: start;
}

.watch__head .heading {
  grid-column: 1 / span 5;
}

.watch__lead {
  grid-column: 7 / -1;
  padding-top: 0.5em;
}

.watch__statement {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--blue);
  text-wrap: balance;
}

.watch .sermon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 72px);
}

.watch .sermon-card__thumb {
  position: relative;
}

/* In the corner, because sermon thumbnails carry their title in the middle. */
.play {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  display: grid;
  place-items: center;
  width: clamp(52px, 5.4vw, 80px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: transform 220ms var(--ease-out);
}

.play svg {
  width: 30%;
  margin-left: 6%;
}

@media (hover: hover) and (pointer: fine) {
  a:hover > .play,
  button:hover > .play,
  .sermon-card:hover .play {
    transform: scale(1.08);
  }

  .sermon-card:hover img {
    transform: scale(1.03);
  }
}

/* About */

/* Photo hero with a breadcrumb under the title. */

.hero--about {
  height: 64svh;
  min-height: 460px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(14px, 1.4vw, 20px);
  font-size: 14px;
  font-weight: 500;
}

.crumbs a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.crumbs__sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
}

@media (hover: hover) and (pointer: fine) {
  .crumbs a:hover {
    text-decoration-color: currentColor;
  }
}

/* Story on the left, the sentence it leads to on the right: first half in navy, the rest quieter. */

.intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 28px;
  align-items: start;
}

.intro__story {
  grid-column: 1 / span 4;
  margin: 0;
  padding-top: 0.5em;
}

.intro__statement {
  grid-column: 6 / -1;
  margin: 0;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: #666b70;
  text-wrap: balance;
}

.intro__statement span {
  color: var(--blue);
}

/* Today's photo, with the engraving of the first Water Gate laid over its corner. */

.collage {
  position: relative;
  margin-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(40px, 9vw, 150px);
}

.collage__main {
  width: 68%;
  aspect-ratio: 4 / 3;
}

.collage__card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  margin: 0;
  padding: clamp(6px, 0.7vw, 10px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
}

.collage__card .frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}

.collage__card figcaption {
  padding: 10px 6px 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

.collage__card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px clamp(32px, 6vw, 96px);
}

.pair h2 {
  margin: 0 0 clamp(12px, 1.4vw, 20px);
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 500;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.value-card {
  padding: clamp(24px, 2.8vw, 44px);
  border-radius: var(--radius);
  background: var(--surface);
}

.value-card {
  align-self: start;
}

.value-card:nth-child(2) {
  margin-top: clamp(24px, 3vw, 48px);
}

.value-card:nth-child(3) {
  margin-top: clamp(48px, 6vw, 96px);
}

.value-card h3 {
  margin: 0 0 clamp(14px, 1.4vw, 20px);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.rail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
  align-items: start;
}

.rail__side {
  grid-column: 1 / span 5;
  position: sticky;
  top: 96px;
}

.rail__main {
  grid-column: 7 / -1;
}

.matters__sub {
  margin: clamp(10px, 1vw, 16px) 0 0;
}

/* Bento: one large lead tile, the rest in mixed sizes, with two photos among them. */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(clamp(200px, 17vw, 250px), auto);
  gap: clamp(12px, 1.2vw, 18px);
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.bento__tile {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2vw, 32px);
  border-radius: var(--radius);
  background: var(--surface);
}

.bento__tile .subheading {
  margin: 0 0 12px;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.15;
}

.bento__tile .body {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
}

.bento__tile--lead {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  justify-content: space-between;
  background: var(--blue);
  color: #fff;
}

.bento__tile--lead .subheading {
  margin: 0;
  max-width: 10em;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.bento__tile--lead .body {
  max-width: 26em;
  font-size: clamp(16px, 1.3vw, 19px);
}

.bento__photo--tall {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.bento__tile--justice {
  grid-column: 4;
  grid-row: 1;
}

.bento__tile--practices {
  grid-column: 4;
  grid-row: 2;
}

.bento__tile--supernatural {
  grid-column: 1;
  grid-row: 3;
}

.bento__tile--community {
  grid-column: 2;
  grid-row: 3;
}

.bento__photo--landscape {
  grid-column: 3 / span 2;
  grid-row: 3;
}

.bento__photo {
  position: relative;
  min-height: 220px;
}

/* Pinned inside the tile, so the picture never sets the height of its row. */
.bento__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Beliefs */

.beliefs {
  display: grid;
  gap: 8px;
}

.belief {
  border-radius: 16px;
  background: var(--surface);
}

.belief summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px clamp(18px, 2vw, 28px);
  border-radius: 16px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.belief summary::-webkit-details-marker {
  display: none;
}

.belief__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.belief__num {
  flex: none;
  min-width: 1.7em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--blue);
}

.belief__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.belief__icon::before,
.belief__icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease-out);
}

.belief__icon::after {
  transform: rotate(90deg);
}

.belief[open] .belief__icon::after {
  transform: rotate(0deg);
}

.belief::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 260ms var(--ease-out),
    content-visibility 260ms allow-discrete;
}

.belief[open]::details-content {
  block-size: auto;
}

@supports (interpolate-size: allow-keywords) {
  .beliefs {
    interpolate-size: allow-keywords;
  }
}

.belief .body {
  padding: 0 clamp(18px, 2vw, 28px) clamp(18px, 2vw, 26px);
  max-width: 40em;
}

/* Convictions */

.convictions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 4vw, 64px) clamp(32px, 6vw, 96px);
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.convictions h3 {
  margin: 0 0 10px;
}

/* Leader */

/* A navy card with the portrait rising from its foot, set inside the gate arch from the logo. */
.person {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
  margin-top: clamp(32px, 4vw, 56px);
  padding: clamp(32px, 5vw, 80px) clamp(24px, 5vw, 80px) 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
}

.person__text {
  grid-column: 1 / span 6;
  padding-bottom: clamp(32px, 5vw, 80px);
}

.person__name {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.person__role {
  margin: clamp(10px, 1vw, 16px) 0 0;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
}

.person__photo {
  grid-column: 9 / span 4;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  background: #cfe3e6;
}

/* The sermon thumbnail has a white backdrop, so multiply lets the tint show through behind him.
   The crop also drops the handle printed in the corner of the thumbnail. */
.person__photo img {
  display: block;
  width: 100%;
  height: 120%;
  margin-top: -20%;
  object-fit: cover;
  object-position: 100% 0;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.05) brightness(1.1);
}

/* Closes in on the open hand. */
.give-hero__picture img {
  object-position: 50% 100%;
  transform: scale(2.3);
  transform-origin: 92% 84%;
}

/* Join */

.visit {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(48px, 6vw, 88px);
}

.visit__lead {
  grid-column: 1 / span 8;
}

.visit__facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(16px, 2vw, 32px);
  margin: 0;
}

.visit__facts dt {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.visit__facts dd {
  margin: 0;
  max-width: 14em;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.split__media--portrait.frame {
  aspect-ratio: 1;
}

.feature {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(90svh, 820px);
  overflow: hidden;
  padding: clamp(28px, 4vw, 64px);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.feature__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.72);
}

.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0, rgba(0, 0, 0, 0.2) 65%); /* taste-skill-ignore: scrim over the photo */
}

.feature__text {
  max-width: 40em;
}

.feature--water {
  min-height: 0;
  padding: clamp(32px, 6vw, 96px) clamp(28px, 5vw, 80px);
  background: var(--teal);
  color: var(--ink);
}

.feature--water::after {
  content: none;
}

.band--light .feature--water .heading {
  color: var(--ink);
}

.feature--water :focus-visible {
  outline-color: var(--ink);
}

/* Sermons */

.sermons-top {
  padding: clamp(120px, 11vw, 168px) var(--gutter) var(--section-gap);
  background: var(--ink);
  color: #fff;
}

.sermons-top__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.sermons-top h1 {
  grid-column: 1 / span 5;
  margin: 0;
  font-size: clamp(44px, 7.4vw, 120px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.sermons-top__intro {
  grid-column: 7 / -1;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue);
}

.player__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.player__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.player__now {
  margin: 16px 0 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(14px, 1.4vw, 20px);
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.sermon-card {
  display: block;
  transition: transform 160ms var(--ease-out);
}

.sermon-card:active {
  transform: scale(0.985);
}

.sermon-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--blue);
}

.sermon-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.sermon-card__title {
  display: block;
  margin-top: 12px;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.sermon-card__meta {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.sermon-card[aria-current="true"] .sermon-card__title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.more-row {
  margin-top: clamp(40px, 5vw, 72px);
}

/* Give */

.give-hero {
  padding: clamp(130px, 13vw, 200px) var(--gutter) var(--section-gap);
  background: var(--blue);
  color: #fff;
}

.give-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
}

.give-hero__text {
  grid-column: 1 / span 7;
}

.give-hero__picture {
  grid-column: 9 / -1;
  aspect-ratio: 4 / 5;
}

.give-hero h1 {
  margin: 0 0 clamp(24px, 3vw, 44px);
  font-size: clamp(72px, 15vw, 248px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.give-hero .statement {
  max-width: 28em;
}

.accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 20px);
  margin-top: clamp(32px, 4vw, 56px);
}

.account {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(22px, 2.6vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
}

.account h3 {
  margin: 0;
}

.account__name {
  margin: 4px 0 clamp(28px, 4vw, 56px);
  font-size: 16px;
  line-height: 1.5;
}

.account__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
}

.account__number {
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.copy {
  position: relative;
  min-width: 116px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  cursor: pointer;
  background: transparent;
}

.copy__label {
  display: inline-block;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms var(--ease-out);
}

.copy__label--done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  filter: blur(2px);
  transform: translateY(6px);
}

.copy[data-copied] .copy__label--idle {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(-6px);
}

.copy[data-copied] .copy__label--done {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* Footer. One strong line (when we meet), the ways in beside it, then the tagline as the close. */

.site-footer {
  padding: clamp(48px, 6vw, 88px) 0 clamp(20px, 2vw, 28px);
  background: var(--blue);
  color: #fff;
  overflow: hidden;
}

.site-footer__head,
.site-footer__main,
.site-footer__base {
  padding-inline: var(--gutter);
}

.site-footer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__logo img {
  width: clamp(150px, 13vw, 200px);
  height: auto;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.to-top svg {
  width: 12px;
  height: 12px;
  transition: transform 220ms var(--ease-out);
}

.to-top:active {
  transform: scale(0.97);
}

.site-footer__main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 48px;
  margin-top: clamp(48px, 6vw, 96px);
}

.site-footer__visit {
  grid-column: 1 / span 6;
}

.site-footer__when {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.site-footer__where {
  max-width: 26em;
  margin: clamp(14px, 1.4vw, 20px) 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.45;
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: clamp(24px, 2.4vw, 36px);
}

.site-footer__visit-link {
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-underline-offset 180ms var(--ease-out);
}

.site-footer__group {
  align-self: end;
}

.site-footer__group--links {
  grid-column: 8 / span 2;
}

.site-footer__group--contact {
  grid-column: 10 / -1;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(16px, 1.2vw, 18px);
}

.site-footer li a {
  display: inline-block;
  padding: 5px 0;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition:
    text-decoration-color 160ms ease,
    text-underline-offset 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer li a:hover {
    text-decoration-color: currentColor;
    text-underline-offset: 5px;
  }

  .site-footer__visit-link:hover {
    text-underline-offset: 8px;
  }

  .to-top:hover svg {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top,
  .to-top svg,
  .site-footer__visit-link,
  .site-footer li a {
    transition: none;
  }
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms var(--ease-out);
}

.social svg {
  width: 22px;
  height: 22px;
}

.social:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .social:hover {
    background: #fff;
    color: var(--blue);
  }
}

@media (prefers-reduced-motion: reduce) {
  .social,
  .social:active {
    transition: none;
    transform: none;
  }
}

.marquee {
  display: flex;
  width: max-content;
  margin-top: clamp(56px, 7vw, 112px);
  font-size: clamp(56px, 10.5vw, 176px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.marquee__set {
  display: flex;
  align-items: center;
  gap: 0.34em;
  padding-right: 0.34em;
}

.mark {
  flex: none;
  width: 0.74em;
  height: 0.8em;
  background: url("../assets/logo-white.png") left center / auto 100% no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee {
    animation: marquee 48s linear infinite;
  }

  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: clamp(16px, 2vw, 28px) 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__base p {
  margin: 0;
}

/* Sign-up dialogs */

.sheet {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(24px, 3vw, 36px);
  border: 0;
  border-radius: 24px;
  background: var(--off-white);
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    overlay 140ms allow-discrete,
    display 140ms allow-discrete;
}

.sheet[open] {
  opacity: 1;
  transform: none;
  transition:
    opacity 200ms var(--ease-out),
    transform 280ms var(--ease-out),
    overlay 280ms allow-discrete,
    display 280ms allow-discrete;

  @starting-style {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.sheet::backdrop {
  background: rgba(0, 0, 0, 0);
  transition:
    background-color 200ms ease,
    overlay 200ms allow-discrete,
    display 200ms allow-discrete;
}

.sheet[open]::backdrop {
  background: rgba(0, 0, 0, 0.6);

  @starting-style {
    background: rgba(0, 0, 0, 0);
  }
}

.sheet :focus-visible {
  outline-color: var(--blue);
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sheet__close {
  flex: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: -8px -10px 0 0;
  border: 0;
  border-radius: 50%;
  background: #efeaea;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.sheet__close:active {
  transform: scale(0.94);
}

.sheet__close::before,
.sheet__close::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 14px;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}

.sheet__close::after {
  transform: rotate(-45deg);
}

.sheet h2 {
  margin: 0;
}

.sheet .body {
  margin-top: 10px;
}

.field {
  display: block;
  margin-top: 18px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #b9b5b5;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 160ms ease;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 0;
}

.field input[data-invalid] {
  border-color: var(--live);
}

.field__error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #b42318;
}

.field__error:empty {
  display: none;
}

.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.sheet__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.sheet__note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet__done[hidden],
.sheet__form[hidden] {
  display: none;
}

/* Scroll entrances. The hiding class is only set when the script is running. */

.has-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.has-motion .reveal[data-in] {
  opacity: 1;
  transform: none;
  transition:
    opacity 620ms ease var(--delay, 0ms),
    transform 820ms var(--ease-out) var(--delay, 0ms);
}

.has-motion .frame.reveal {
  transform: translateY(32px);
}

.has-motion .frame.reveal img {
  transform: scale(1.08);
}

.has-motion .frame.reveal[data-in] {
  transform: none;
}

.has-motion .frame.reveal[data-in] img {
  transform: none;
  transition: transform 1200ms var(--ease-out) var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .sheet,
  .sheet[open],
  .sheet::backdrop,
  .copy__label,
  .belief::details-content {
    transition: none;
  }

  .sheet,
  .sheet[open] {
    transform: none;
  }

  .play,
  a:hover > .play,
  button:hover > .play,
  .sermon-card:hover .play {
    transition: none;
    transform: none;
  }

  .sermon-card__thumb img,
  .sermon-card:hover img {
    transition: none;
    transform: none;
  }
}

/* Small screens */

@media (max-width: 960px) {
  .visit__lead {
    grid-column: 1 / -1;
  }

  .visit__lead {
    grid-column: 1 / -1;
  }

  .split__text,
  .split__media,
  .split--wide-text .split__text,
  .split--wide-text .split__media,
  .split--flip .split__text,
  .split--flip .split__media {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .split--flip .split__media,
  .split__media {
    order: 2;
  }

  .split__media.frame {
    max-width: 560px;
  }

  .give-hero__text,
  .give-hero__picture {
    grid-column: 1 / -1;
  }

  .give-hero__picture {
    max-width: 420px;
  }

  .worship__text,
  .worship__facts {
    grid-column: 1 / -1;
  }

  .watch__head .heading,
  .watch__lead {
    grid-column: 1 / -1;
  }

  .watch__lead {
    padding-top: 0;
  }

  .person__text {
    grid-column: 1 / -1;
    padding-bottom: 28px;
  }

  .person__photo {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(320px, 100%);
  }

  .intro__story,
  .intro__statement {
    grid-column: 1 / -1;
  }

  .intro__story {
    padding-top: 0;
  }

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

  .bento > * {
    grid-column: auto;
    grid-row: auto;
  }

  .bento__tile--lead,
  .bento__tile--community,
  .bento__photo--landscape {
    grid-column: 1 / -1;
  }

  .bento__photo--landscape {
    aspect-ratio: 16 / 9;
  }

  .bento__tile--lead {
    min-height: 300px;
  }

  .value-cards {
    grid-template-columns: 1fr;
  }

  .value-card:nth-child(n) {
    margin-top: 0;
  }

  .rail__side,
  .rail__main {
    grid-column: 1 / -1;
    position: static;
  }

  .sermons-top h1,
  .sermons-top__intro {
    grid-column: 1 / -1;
  }

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

  .site-footer__visit {
    grid-column: 1 / -1;
  }

  .site-footer__group--links {
    grid-column: 1 / span 4;
  }

  .site-footer__group--contact {
    grid-column: 5 / -1;
  }
}

@media (max-width: 680px) {
  .visit__facts {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .visit__facts dd {
    max-width: none;
  }

  .watch .sermon-grid {
    grid-template-columns: 1fr;
  }

  .week__row {
    grid-template-columns: 1fr 1fr;
  }

  .week__item:nth-child(2) {
    margin-top: 40px;
  }

  .week__item:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .week__item:nth-child(3) .frame {
    aspect-ratio: 16 / 10;
  }

  .site-footer__group--links,
  .site-footer__group--contact {
    grid-column: 1 / -1;
  }

  .site-footer__group--links ul {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__main {
    row-gap: 36px;
  }

  .pair,
  .convictions,
  .accounts,
  .bento {
    grid-template-columns: 1fr;
  }

  .hero--about {
    height: 56svh;
    min-height: 420px;
  }

  .collage {
    padding-bottom: 28vw;
  }

  .collage__main {
    width: 100%;
  }

  .collage__card {
    width: 62%;
  }

  .bento > * {
    grid-column: 1;
  }

  .bento__photo {
    aspect-ratio: 4 / 3;
  }

  .sermon-grid {
    grid-template-columns: 1fr;
  }

  /* Keeps the number and its button on one line. */
  .account__number {
    font-size: 28px;
  }

  .copy {
    min-width: 88px;
    padding-inline: 16px;
  }

  .sheet {
    width: 100vw;
    max-width: none;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .site-bar {
    padding-block: 10px;
  }
}
