/* ============================================================
   Full-bleed homepage ("Round 9" on the design canvas).
   Loaded after homepage-layout.css only when the homepage is in the
   bleed style (option cdpc_home_style = 'bleed', or ?home_bleed=1).
   Everything is scoped to body.home-bleed.
   Type: Newsreader for the big headings, Jost for small labels and links,
   bold Source Sans for titles on photos. Tiles run edge to edge, 5px apart.
   ============================================================ */

body.home-bleed {
  --hb-bg: #0d1219;
  --hb-line: #1d232c;
  --hb-pink: #c64191;
  --hb-pink-text: #e2589f;
  --hb-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --hb-label: 'Jost', 'Futura', sans-serif;
  background: var(--hb-bg);
}

/* ---------- Hero ---------- */

body.home-bleed .frontpage-hero {
  height: clamp(560px, 86vh, 880px);
  min-height: 0;
  display: flex;
  align-items: flex-end;
}

body.home-bleed .frontpage-hero__media img {
  filter: none;
  object-position: center 55%;
}

body.home-bleed .frontpage-hero::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .3) 22%, rgba(0, 0, 0, 0) 40%);
}

body.home-bleed .frontpage-hero::after {
  background: linear-gradient(to bottom, rgba(13, 18, 25, 0) 45%, rgba(13, 18, 25, .35) 65%, rgba(13, 18, 25, .97) 100%);
}

body.home-bleed .frontpage-hero__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 40px 64px;
}

body.home-bleed .frontpage-hero__content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 64px;
  max-width: none;
}

body.home-bleed .frontpage-hero__title {
  flex: 1 1 100%;
  max-width: 1000px;
  margin: 0;
  font-family: var(--hb-serif);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: none;
}

body.home-bleed .frontpage-hero__text {
  flex: 1 1 520px;
  max-width: 48ch;
  margin: 0;
  font-family: var(--hb-serif);
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.4;
  color: #f0eee9;
}

body.home-bleed .frontpage-hero__actions {
  flex: 0 0 auto;
  margin: 0;
}

body.home-bleed .frontpage-hero__archiveBtn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: rgba(13, 18, 25, .55);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--hb-label);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

body.home-bleed .frontpage-hero__archiveBtn:hover {
  background: rgba(13, 18, 25, .8);
  border-color: rgba(255, 255, 255, .5);
}

body.home-bleed .frontpage-hero__archiveCount {
  padding: 0;
  border: 0;
  background: none;
  color: #b9bec6;
  font: inherit;
}

body.home-bleed .frontpage-hero__archiveArrow {
  color: var(--hb-pink-text);
}

/* ---------- Shell: full width, tiles 5px from the edge ---------- */

body.home-bleed .frontpage-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 5px;
}

body.home-bleed .frontpage-section {
  margin: 0;
  padding: 0;
}

/* Section labels: small Jost caps after a short pink rule. The big h2 under
   them is dropped where the label already says it. */
body.home-bleed .frontpage-eyebrow,
body.home-bleed .seriesArchive__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  font-family: var(--hb-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c9ced6;
}

body.home-bleed .frontpage-eyebrow::before,
body.home-bleed .seriesArchive__eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--hb-pink);
}

body.home-bleed .frontpage-section--recently-uploaded .frontpage-title,
body.home-bleed .frontpage-section--latest-sets > .frontpage-title,
body.home-bleed .frontpage-section--series > .frontpage-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.home-bleed .frontpage-sectionHeader,
body.home-bleed .frontpage-section--latest-sets > .frontpage-eyebrow,
body.home-bleed .frontpage-section--series > .frontpage-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 56px 35px 20px;
}

body.home-bleed .frontpage-sectionLink,
body.home-bleed .frontpage-series-footer .archive-button {
  padding: 0 0 3px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hb-pink);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--hb-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f0eee9;
}

body.home-bleed .frontpage-sectionLink span[aria-hidden] {
  display: none;
}

/* ---------- Featured coverage ---------- */

body.home-bleed .frontpage-section--featured-projects .frontpage-sectionHeader {
  padding-top: 40px;
}

body.home-bleed .frontpage-featuredGrid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5px;
}

body.home-bleed .frontpage-featuredCard {
  position: relative;
  min-height: 560px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

body.home-bleed .frontpage-featuredCard::after {
  background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, 0) 72%);
}

body.home-bleed .frontpage-featuredCard__content {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 34px;
  max-width: 640px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

body.home-bleed .frontpage-featuredCard__eyebrow {
  font-family: var(--hb-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e0ddd6;
}

body.home-bleed .frontpage-featuredCard__title {
  margin: 0;
  font-family: var(--hb-serif);
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.01em;
  color: #fff;
}

body.home-bleed .frontpage-set-updated {
  padding: 4px 8px;
  background: var(--hb-pink);
  border: 0;
  border-radius: 0;
  font-family: var(--hb-label);
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

body.home-bleed .frontpage-featuredCard__text {
  margin: 0;
  max-width: 54ch;
  font-size: 18px;
  line-height: 1.45;
  color: #e6e4de;
}

body.home-bleed .frontpage-featuredCard__link {
  padding: 0 0 3px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hb-pink);
  border-radius: 0;
  font-family: var(--hb-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Just added ---------- */

body.home-bleed .rp-strip {
  gap: 5px;
}

body.home-bleed .rp-strip__item {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ---------- Minneapolis Photography banner ---------- */

body.home-bleed .frontpage-section--mpls-cta {
  margin: 64px -5px 0;
}

body.home-bleed .frontpage-mpls-cta {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 40px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #0a0e14;
  overflow: hidden;
}

body.home-bleed .frontpage-mpls-cta__media {
  opacity: 1;
  filter: none;
}

body.home-bleed .frontpage-mpls-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(8, 11, 16, .92) 0%, rgba(8, 11, 16, .6) 45%, rgba(8, 11, 16, .1) 100%);
  pointer-events: none;
}

body.home-bleed .frontpage-mpls-cta__badges,
body.home-bleed .frontpage-mpls-cta__layout {
  position: relative;
  z-index: 2;
}

body.home-bleed .frontpage-mpls-cta__badges {
  position: absolute;
  left: 40px;
  top: 96px;
}

body.home-bleed .frontpage-mpls-cta__badges .frontpage-eyebrow {
  color: var(--hb-pink-text);
}

body.home-bleed .frontpage-mpls-cta__layout {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 0;
}

body.home-bleed .frontpage-about__title {
  margin: 0 0 14px;
  font-family: var(--hb-serif);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 600;
  line-height: .98;
  color: #fff;
}

body.home-bleed .frontpage-about__text {
  max-width: 34ch;
  margin: 0;
  font-family: var(--hb-serif);
  font-size: 22px;
  line-height: 1.45;
  color: #e6e4de;
}

body.home-bleed .frontpage-mpls-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: rgba(13, 18, 25, .55);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--hb-label);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}

body.home-bleed .frontpage-mpls-cta__button-arrow {
  padding: 0;
  border: 0;
  background: none;
  color: var(--hb-pink-text);
}

/* ---------- Featured sets / places / series tiles ---------- */

body.home-bleed .frontpage-section--latest-sets .homeGrid--4,
body.home-bleed .frontpage-series-grid,
body.home-bleed .frontpageArchiveExplorer__placesGrid {
  gap: 5px;
}

body.home-bleed .frontpage-set-card,
body.home-bleed .frontpage-series-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.home-bleed .frontpage-set-card__title,
body.home-bleed .frontpage-series-card__title {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.home-bleed .frontpage-series-card__meta {
  font-family: var(--hb-label);
  letter-spacing: .14em;
}

body.home-bleed .frontpage-series-footer {
  display: none;
}

body.home-bleed .frontpage-section--series > .frontpage-eyebrow::after {
  content: none;
}

/* ---------- Explore ---------- */

body.home-bleed .frontpage-section--explorer {
  margin: 72px -5px 0;
  padding: 64px 40px 72px;
  background: #0a0e14;
  border-top: 1px solid var(--hb-line);
}

body.home-bleed .frontpageArchiveExplorer__panel,
body.home-bleed .frontpage-section--latest-sets .archiveSearch {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.home-bleed .seriesArchive__sectionHeader {
  margin: 0 0 12px;
  padding: 0;
}

body.home-bleed .seriesArchive__eyebrow {
  color: var(--hb-pink-text);
}

body.home-bleed .seriesArchive__mapTitle {
  margin: 0 0 12px;
  font-family: var(--hb-serif);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

body.home-bleed .seriesArchive__mapText {
  max-width: 62ch;
  margin: 0 0 32px;
  font-family: var(--hb-serif);
  font-size: 21px;
  line-height: 1.5;
  color: #c9ced6;
}

body.home-bleed .frontpageArchiveExplorer__places > .frontpage-eyebrow {
  margin-bottom: 16px;
}

body.home-bleed .frontpageArchiveExplorer__actions {
  gap: 5px;
  margin-top: 5px;
}

body.home-bleed .frontpageArchiveExplorer__actionButton {
  justify-content: space-between;
  padding: 26px 28px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--hb-label);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.home-bleed .frontpageArchiveExplorer__actionButton--secondary {
  background: #141a24;
  color: #f0eee9;
}

body.home-bleed .frontpageArchiveExplorer__actionButton--primary {
  background: var(--hb-pink);
  color: #fff;
}

/* Search: an underlined serif field at the end of the Explore band. */
body.home-bleed .frontpage-section--latest-sets:has(.archiveSearch) {
  margin: 0 -5px;
  padding: 0 40px 80px;
  background: #0a0e14;
}

body.home-bleed .archiveSearch .frontpage-eyebrow {
  margin-bottom: 8px;
}

body.home-bleed .seriesArchive__searchInput {
  height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #3a414c;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--hb-serif);
  font-size: 22px;
  font-style: italic;
  color: #ecebe7;
}

/* ---------- Phones ---------- */

@media (max-width: 768px) {
  body.home-bleed .frontpage-hero {
    height: clamp(460px, 74vh, 640px);
  }

  body.home-bleed .frontpage-hero__inner {
    padding: 0 16px 36px;
  }

  body.home-bleed .frontpage-hero__title {
    font-size: 44px;
  }

  body.home-bleed .frontpage-hero__text {
    font-size: 19px;
  }

  body.home-bleed .frontpage-hero__archiveBtn {
    padding: 14px 16px;
    font-size: 12px;
  }

  body.home-bleed .frontpage-sectionHeader,
  body.home-bleed .frontpage-section--latest-sets > .frontpage-eyebrow,
  body.home-bleed .frontpage-section--series > .frontpage-eyebrow {
    padding: 40px 11px 16px;
  }

  body.home-bleed .frontpage-featuredGrid {
    grid-template-columns: 1fr;
  }

  body.home-bleed .frontpage-featuredCard {
    min-height: 440px;
  }

  body.home-bleed .frontpage-featuredCard__content {
    left: 18px;
    right: 18px;
    bottom: 22px;
  }

  body.home-bleed .frontpage-mpls-cta {
    min-height: 420px;
    padding: 0 16px;
  }

  body.home-bleed .frontpage-mpls-cta__badges {
    left: 16px;
    top: 48px;
  }

  body.home-bleed .frontpage-section--explorer,
  body.home-bleed .frontpage-section--latest-sets:has(.archiveSearch) {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---------- Fixes after the first preview ---------- */

/* archive-ui.css draws the kicker rule absolutely at the top-left of the
   nearest positioned box; keep ours inline before the text instead. */
body.home-bleed .archive-header-kicker::before {
  position: static;
  top: auto;
  left: auto;
  width: 28px;
  background: var(--hb-pink);
}

body.home-bleed .archive-header-kicker {
  position: static;
  padding-top: 0;
}

/* Two lines at desktop widths. */
body.home-bleed .frontpage-hero__title {
  max-width: 1240px;
}

/* Banner photo across the full width, one left-to-right fade. */
body.home-bleed .frontpage-mpls-cta__media {
  inset: 0 !important;
  width: 100% !important;
  background-position: center 60%;
}

body.home-bleed .frontpage-mpls-cta__media::after {
  display: none;
}

body.home-bleed .frontpage-mpls-cta::before {
  background: linear-gradient(to right, rgba(8, 11, 16, .9) 0%, rgba(8, 11, 16, .55) 42%, rgba(8, 11, 16, .05) 100%);
}

@media (max-width: 768px) {
  body.home-bleed .frontpage-mpls-cta::before {
    background: linear-gradient(to top, rgba(8, 11, 16, .92) 0%, rgba(8, 11, 16, .5) 60%, rgba(8, 11, 16, .2) 100%);
  }
}

/* Labels that are their own row sit on the left, rule first. */
body.home-bleed .frontpage-section--latest-sets > .frontpage-eyebrow,
body.home-bleed .frontpage-section--series > .frontpage-eyebrow {
  justify-content: flex-start;
}

/* Both coverage titles the same size (the base CSS shrinks the first). */
body.home-bleed .frontpage-featuredGrid .frontpage-featuredCard .frontpage-featuredCard__title {
  font-size: clamp(38px, 4.2vw, 60px) !important;
  line-height: .98 !important;
}

@media (max-width: 768px) {
  body.home-bleed .frontpage-hero__actions,
  body.home-bleed .frontpage-hero__archiveBtn {
    box-sizing: border-box;
    max-width: 100%;
  }

  body.home-bleed .frontpage-hero__archiveBtn {
    gap: 12px;
    letter-spacing: .1em;
  }

  body.home-bleed .frontpage-hero__archiveCount {
    display: none;
  }

  /* Section labels left-aligned (the base mobile CSS centres them). */
  body.home-bleed .frontpage-sectionHeader > div,
  body.home-bleed .frontpage-sectionHeader .frontpage-eyebrow {
    margin: 0;
    text-align: left;
    justify-content: flex-start;
  }

  body.home-bleed .frontpage-section--featured-projects .frontpage-sectionHeader {
    justify-content: flex-start;
  }

  /* Banner text off the screen edge. */
  body.home-bleed .frontpage-mpls-cta__layout {
    box-sizing: border-box;
    padding: 0 16px !important;
  }

  body.home-bleed .frontpage-mpls-cta__badges {
    left: 16px;
    padding: 0 !important;
  }

  body.home-bleed .frontpage-about__title {
    font-size: 40px;
  }

  body.home-bleed .frontpage-about__text {
    font-size: 19px;
  }

  body.home-bleed .frontpage-mpls-cta__button {
    box-sizing: border-box;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body.home-bleed .frontpage-section--featured-projects .frontpage-sectionHeader {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  body.home-bleed .frontpage-section--featured-projects .frontpage-sectionHeader > div {
    width: auto;
    margin: 0 !important;
  }
}

/* Featured sets mosaic: the big card fills both rows exactly, so its bottom
   lines up with the small cards (it was a fixed 420px against 2 x 219 + 5). */
@media (min-width: 769px) {
  body.home-bleed .frontpage-section--latest-sets .homeGrid--4 {
    grid-auto-rows: 1fr;
  }

  body.home-bleed .frontpage-section--latest-sets .homeGrid--4 > .frontpage-set-card {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 10;
  }

  body.home-bleed .frontpage-section--latest-sets .homeGrid--4 > .frontpage-set-card--featured {
    aspect-ratio: auto;
    align-self: stretch;
  }
}

/* ---------- Menu bar: full width, on the same 40px edge as the hero ---------- */

body.home-bleed .archiveHeader__link,
body.home-bleed .archiveHeader__wordmark {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

@media (min-width: 769px) {
  /* Centred on the viewport whatever its containing block is (#page stops at
     the content-shell width on wide screens). Desktop only: the transform
     would trap the phone menu's fixed-position panel. */
  body.home-bleed .archiveHeader--overlay {
    left: 50%;
    right: auto;
    width: 100vw;
    transform: translateX(-50%);
  }

  body.home-bleed .archiveHeader--overlay .archiveHeader__inner {
    width: 100%;
    max-width: none;
    padding: 0 40px;
  }
}
