/* ==========================================================================
   bio.css
   The pieces this site needs that the base kit did not have: the values
   grid, the numbered priority list, pull quotes, the scripture block, the
   three-up card row, and the placeholder frames waiting on real photos.
   Everything here reuses the tokens in tokens.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Numbered value grid
   -------------------------------------------------------------------------- */

.s-values {
  display: grid;
  gap: 0 48px;
  padding-inline: var(--page-x);
}
@media (min-width: 720px) {
  .s-values {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .s-values {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 96px;
  }
}

.c-value {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 4px 16px;
  align-items: baseline;
  padding-block: 26px;
  border-top: 1px solid var(--color-gray-200);
}

.c-value_num {
  color: var(--color-accent);
}

.c-value_name {
  align-self: baseline;
}

.c-value_line {
  grid-column: 2;
  color: var(--color-gray-500);
}

/* --------------------------------------------------------------------------
   Numbered priority list
   -------------------------------------------------------------------------- */

.c-ranked {
  display: grid;
  gap: 0;
}

.c-ranked_item {
  display: grid;
  gap: 6px;
  padding-block: 28px;
  border-top: 1px solid var(--color-gray-200);
}
@media (min-width: 720px) {
  .c-ranked_item {
    grid-template-columns: 4rem 12rem 1fr;
    gap: 24px;
    align-items: baseline;
  }
}

.c-ranked_num {
  color: var(--color-accent);
}

.c-ranked_line {
  color: var(--color-gray-500);
}

/* --------------------------------------------------------------------------
   Pull quote
   -------------------------------------------------------------------------- */

.c-quote {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 4vw, 56px);
  background-color: var(--color-sand);
  border-radius: var(--radius-lg);
}

.c-quote_mark {
  color: var(--color-accent);
}

.c-quote_text {
  max-width: 46rem;
}

.c-quote_by {
  color: var(--color-gray-500);
}

.c-quote.-dark {
  background-color: var(--color-black);
  color: var(--color-white);
}
.c-quote.-dark .c-quote_by {
  color: var(--color-gray-400);
}

/* --------------------------------------------------------------------------
   Scripture block
   -------------------------------------------------------------------------- */

.c-verse {
  display: grid;
  gap: 24px;
  max-width: 56rem;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 3px solid var(--color-accent);
}

.c-verse_ref {
  color: var(--color-gray-500);
}

/* --------------------------------------------------------------------------
   Three-up card row
   -------------------------------------------------------------------------- */

.s-triple {
  display: grid;
  gap: 4px;
  padding-inline: var(--page-x);
}
@media (min-width: 860px) {
  .s-triple {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Stacked, the cream panels read as one block on purpose. Photographs do not
   survive that treatment, so the photo row keeps a real gap at every width. */
.s-triple.-photos {
  gap: 16px;
}

.c-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(24px, 3vw, 40px);
  background-color: var(--color-sand);
  border-radius: var(--radius-lg);
}

.c-panel_num {
  color: var(--color-accent);
}

.c-panel p {
  color: var(--color-gray-500);
}

.c-panel ul {
  display: grid;
  gap: 8px;
  color: var(--color-gray-500);
}

.c-panel li {
  padding-left: 18px;
  text-indent: -18px;
}
.c-panel li::before {
  content: "\2022";
  color: var(--color-accent);
  padding-right: 10px;
}

/* --------------------------------------------------------------------------
   Definition rows (goal / materials / roles / impact)
   -------------------------------------------------------------------------- */

.c-spec {
  display: grid;
  gap: 0;
}

.c-spec_row {
  display: grid;
  gap: 8px;
  padding-block: 28px;
  border-top: 1px solid var(--color-gray-200);
}
@media (min-width: 780px) {
  .c-spec_row {
    grid-template-columns: 14rem 1fr;
    gap: 40px;
  }
}

.c-spec_key {
  color: var(--color-gray-500);
  padding-top: 5px;
}

/* --------------------------------------------------------------------------
   Section head
   The base head is a row with a two word link on the right. Several of the
   eyebrows on this site are a whole sentence, so below the tablet break they
   stack, the way the services head already does.
   -------------------------------------------------------------------------- */

.s-projects_head {
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .s-projects_head {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* --------------------------------------------------------------------------
   Closing CTA scrim
   The base scrim assumes a dark photograph. Half the pictures on this site
   are bright (a church nave, a table of donations, a sunrise), so the bottom
   of the gradient is pushed harder to keep the white text readable on all
   of them.
   -------------------------------------------------------------------------- */

.s-cta_bg::after {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.62) 32%,
    rgba(0, 0, 0, 0.22) 68%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* --------------------------------------------------------------------------
   Standalone photo frames
   -------------------------------------------------------------------------- */

.c-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-sand);
}

.c-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-photo-frame.-portrait {
  aspect-ratio: 3 / 4;
}

.c-photo-frame.-landscape {
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   Sticky two-column prose with a portrait alongside
   -------------------------------------------------------------------------- */

.s-portrait {
  display: grid;
  gap: 40px;
  padding-inline: var(--page-x);
}
@media (min-width: 900px) {
  .s-portrait {
    grid-template-columns: 1fr 1.25fr;
    gap: 80px;
    align-items: start;
  }
  .s-portrait_media {
    position: sticky;
    top: calc(var(--header-height) + 40px);
  }
}

/* --------------------------------------------------------------------------
   Rule of life columns
   -------------------------------------------------------------------------- */

.c-rule_time {
  display: block;
  padding-bottom: 4px;
}

.c-rule_item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 12px;
  padding-block: 14px;
  border-top: 1px solid rgba(1, 1, 1, 0.1);
}

.c-rule_when {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Gallery grid, a little denser than the project grid
   -------------------------------------------------------------------------- */

.s-gallery {
  display: grid;
  gap: 32px 16px;
  padding-inline: var(--page-x);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .s-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 24px;
  }
}

.s-gallery .c-project-card_media {
  aspect-ratio: 4 / 5;
}

.s-gallery .c-project-card:nth-child(6n + 1) .c-project-card_media,
.s-gallery .c-project-card:nth-child(6n + 4) .c-project-card_media {
  aspect-ratio: 4 / 3;
}

/* The gallery captions are sentences, not the one word category the meta row
   was built for. In two narrow columns they stack and the dot goes away. */
@media (max-width: 599px) {
  .s-gallery .c-project-card_meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .s-gallery .c-project-card_meta span:nth-child(2) {
    display: none;
  }
}
