/* The Blue Hour guest pages. The opening cover keeps its original styles. */
.bb-site {
  --bh-midnight: #111f2a;
  --bh-deep: #192d3c;
  --bh-ink: #233845;
  --bh-muted: #4b606c;
  --bh-paper: #f5f2eb;
  --bh-ice: #e5edf2;
  --bh-silver: #ccdce8;
  --bh-rule: #bacbd5;
  --bh-light-rule: rgb(204 220 232 / 25%);
  --bh-display: "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  --bh-space: clamp(4rem, 9vw, 8.5rem);
  --bh-gutter: clamp(1.35rem, 6vw, 6.5rem);
  isolation: isolate;
  color: var(--bh-ink);
  background: var(--bh-paper);
  font: 400 1rem/1.65 var(--sans);
}

.bb-site .bb-flock {
  z-index: 3;
  mix-blend-mode: difference;
  opacity: 0.5;
}

.bb-site .bb-flock-bird {
  filter: brightness(0) invert(1);
}

.bh-bound {
  width: min(100%, 90rem);
  margin-inline: auto;
  padding-inline: var(--bh-gutter);
}

.bb-site .bh-header {
  background: var(--bh-midnight);
  color: var(--bh-paper);
  border-bottom: 1px solid var(--bh-light-rule);
  box-shadow: none;
}

.bh-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  align-items: center;
  min-height: 4.25rem;
}

.bh-wordmark {
  justify-self: start;
  font: 500 1.55rem/1 var(--serif);
  letter-spacing: -0.035em;
}

.bh-wordmark span { color: var(--bh-silver); }

.bh-nav {
  display: flex;
  gap: clamp(1rem, 2.7vw, 2.65rem);
}

.bh-nav a,
.bh-header-reply {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.85rem;
}

.bh-nav a:hover,
.bh-header-reply:hover,
.bh-text-action:hover { text-decoration: underline; }

.bh-header-reply {
  justify-self: end;
  color: var(--bh-paper);
  border-bottom: 1px solid var(--bh-light-rule);
}

.bh-hero {
  display: grid;
  grid-template: "hero" auto / minmax(0, 1fr);
  position: relative;
  color: var(--bh-paper);
  background: var(--bh-midnight);
}

.bb-site .bh-hero-art {
  grid-area: hero;
  height: clamp(34rem, 76svh, 55rem);
  position: relative;
  overflow: hidden;
}

.bb-site .bh-hero-art .bb-panorama-view {
  clip-path: none;
  filter: none;
  background: var(--bh-midnight);
}

.bb-site .bh-hero-art .bb-panorama-scene {
  inset: -3% -1.5%;
  --lake-position: 59% 55%;
  filter: none;
}

.bb-site .bh-hero-art .bb-panorama-view::after {
  background:
    linear-gradient(90deg, rgb(9 18 27 / 78%), rgb(12 23 33 / 44%) 44%, transparent 82%),
    linear-gradient(0deg, rgb(10 20 29 / 75%), transparent 58%);
}

.bb-site .bh-hero-copy {
  grid-area: hero;
  position: relative;
  z-index: 4;
  align-self: end;
  max-width: 90rem;
  padding: clamp(2.5rem, 6vw, 5rem) var(--bh-gutter);
  text-align: start;
  pointer-events: none;
}

.bh-hero-copy a { pointer-events: auto; }

.bh-hero-copy h1 {
  margin-block: 0.75rem 0.95rem;
  max-width: 15ch;
  color: var(--bh-paper);
  font: 500 clamp(3.7rem, 8.8vw, 9.2rem)/0.94 var(--bh-display);
  letter-spacing: -0.065em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.bh-hero-copy h1 em,
.bh-programme-head em {
  color: var(--bh-silver);
  font-weight: inherit;
}

.bh-hero-invitation {
  font: italic 500 clamp(1.15rem, 2vw, 1.45rem)/1.35 var(--serif);
  color: var(--bh-silver);
}

.bh-hero-message { font-size: clamp(1rem, 1.8vw, 1.3rem); }

.bh-hero-copy .bh-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.3rem;
  margin: 1.5rem 0 1.65rem;
  color: var(--bh-silver);
  font-size: 0.92rem;
}

.bh-hero-meta > span { overflow-wrap: anywhere; }

.bh-button,
.bh-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  text-decoration: none;
  font: 500 0.9rem/1.25 var(--sans);
}

.bh-button {
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.28rem;
}

.bb .bh-button-silver {
  background: var(--bh-silver);
  color: var(--bh-midnight);
}

.bh-button-silver:hover { background: var(--bh-paper); }
.bh-button-silver:disabled { cursor: default; opacity: 0.65; }

.bh-text-action {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0.4rem 0;
  background: transparent;
  color: inherit;
}

.bb-site a:focus-visible,
.bb-site button:focus-visible,
.bb-site input:focus-visible,
.bb-site textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.bb-site .bh-heading {
  margin: 0;
  font: 500 clamp(2.5rem, 5.4vw, 5.15rem)/1.03 var(--bh-display);
  letter-spacing: -0.049em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.bb-site .bh-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--bh-muted);
}

.bh-letter,
.bh-venue,
.bh-programme,
.bh-attire,
.bh-rsvp { padding-block: var(--bh-space); }

.bh-letter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.25rem, 7vw, 7.5rem);
  align-items: start;
}

.bh-letter-copy .bh-letter-message {
  margin-top: 1.35rem;
  max-width: 36ch;
  color: var(--bh-ink);
  font: 500 clamp(1.45rem, 2.6vw, 2.05rem)/1.43 var(--serif);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.bh-letter-copy .bh-letter-signature {
  margin-top: 1.65rem;
  color: var(--bh-muted);
  font-size: 0.91rem;
}

.bh-letter-signature em {
  display: block;
  color: var(--bh-ink);
  font: italic 500 1.65rem/1.4 var(--serif);
  overflow-wrap: anywhere;
}

.bh-date-page {
  border-block: 1px solid var(--bh-rule);
  padding-block: clamp(1.4rem, 3.5vw, 2.5rem);
}

.bh-date {
  display: block;
  margin-block: 0.6rem 0.3rem;
  font: 500 clamp(1.75rem, 3.8vw, 3.4rem)/1.12 var(--bh-display);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.bh-date-weekday { color: var(--bh-muted); }

.bh-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-block: 1.45rem 1.2rem;
}

.bh-countdown strong,
.bh-countdown span { display: block; }
.bh-countdown strong { font: 500 clamp(1.4rem, 3.1vw, 2.4rem)/1.1 var(--serif); }
.bh-countdown span { color: var(--bh-muted); font-size: 0.72rem; }

.bh-venue { background: var(--bh-ice); }

.bh-venue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: center;
}

.bh-venue-visual {
  overflow: hidden;
  aspect-ratio: 4 / 4.5;
  border-radius: 50%;
  background: var(--bh-deep);
  box-shadow: 0 1.4rem 3rem -1.3rem rgb(25 45 60 / 42%);
}

.bh-venue-visual img,
.bh-supper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bh-venue-copy .bh-heading { margin-top: 0.7rem; }
.bh-venue-copy .bh-address,
.bh-venue-copy .bh-travel { margin-top: 1rem; overflow-wrap: anywhere; }
.bh-venue-copy .bh-address { color: var(--bh-muted); }
.bh-venue-copy .bh-travel { white-space: pre-line; }
.bh-venue-copy .bh-text-action { margin-top: 1.25rem; }

.bb-site .bh-ceremony {
  margin-top: 1.6rem;
  padding-block: 0.85rem;
  border-block: 1px solid var(--bh-rule);
}

.bh-ceremony > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; }
.bh-ceremony dt { color: var(--bh-muted); }
.bh-ceremony dd { font-weight: 500; }

.bh-programme { background: var(--bh-deep); color: var(--bh-paper); }

.bh-programme-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.bb-site .bh-programme-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bh-light-rule);
}

.bh-programme-list li {
  display: grid;
  grid-template-columns: minmax(4.2rem, 0.38fr) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--bh-light-rule);
}

.bh-programme-list time { color: var(--bh-silver); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.bh-programme-list h3 { font: 500 clamp(1.4rem, 2.2vw, 2rem)/1.08 var(--serif); letter-spacing: 0; }
.bh-programme-list p { margin-top: 0.35rem; font-size: 0.9rem; color: var(--bh-silver); }
.bh-programme-list :is(h3, p) { overflow-wrap: anywhere; }

.bh-attire { background: var(--bh-paper); }
.bh-attire-grid { display: grid; grid-template-columns: 1fr minmax(0, 0.9fr); gap: 2rem; align-items: end; }
.bh-attire-grid .bh-heading { margin-block: 0.55rem 0.75rem; font-size: clamp(2.1rem, 3.8vw, 3.65rem); }
.bh-attire-note { max-width: 47ch; color: var(--bh-muted); white-space: pre-line; overflow-wrap: anywhere; }

.bb-site .bh-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.bh-palette li {
  min-width: 4rem;
  font-size: 0.74rem;
  color: var(--bh-muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.bh-swatch {
  display: block;
  width: 2.5rem;
  aspect-ratio: 1;
  margin: 0 auto 0.42rem;
  border: 1px solid var(--bh-rule);
  border-radius: 50%;
  background: var(--bb-swatch);
}

.bb-site .bh-supper {
  height: clamp(16rem, 44vw, 40rem);
  overflow: hidden;
  background: var(--bh-deep);
}

.bh-supper img { object-position: 62% 55%; }
.bh-rsvp { color: var(--bh-paper); background: var(--bh-midnight); }
.bh-rsvp-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 9vw, 9rem); }
.bh-rsvp-copy .bh-reply-date,
.bh-rsvp-copy .bh-guest-note { margin-top: 0.9rem; color: var(--bh-silver); }
.bh-rsvp-form-shell { min-width: 0; padding-top: 0.9rem; border-top: 1px solid var(--bh-light-rule); }
.bh-rsvp .bb-form-intro,
.bh-rsvp .bb-field-hint,
.bh-rsvp .bb-label,
.bh-rsvp .bb-label span,
.bh-rsvp .bb-form-status,
.bh-rsvp .bb-confirmation p { color: var(--bh-silver); }
.bh-rsvp .bb-label { font-size: 0.75rem; letter-spacing: 0.035em; text-transform: none; }
.bh-rsvp .bb-status-options label { border-radius: 0.25rem; border-color: var(--bh-light-rule); color: var(--bh-paper); background: transparent; font: 400 0.92rem/1.3 var(--sans); }
.bh-rsvp .bb-status-options label:hover { border-color: var(--bh-silver); }
.bh-rsvp .bb-status-options label:has(input:checked) { border-color: var(--bh-silver); background: var(--bh-silver); color: var(--bh-midnight); }
.bh-rsvp .bb-status-options input { accent-color: var(--bh-deep); }
.bh-rsvp .bb-field input:not([type="number"]),
.bh-rsvp .bb-field textarea { color: var(--bh-paper); border-color: var(--bh-light-rule); font: 400 1rem/1.55 var(--sans); }
.bh-rsvp .bb-field input:focus,
.bh-rsvp .bb-field textarea:focus { border-color: var(--bh-silver); }
.bh-rsvp .bb-form-status[data-error] { color: #f5bcb5; }
.bh-rsvp .bb-confirmation-mark { color: var(--bh-silver); border-color: var(--bh-light-rule); }
.bh-rsvp .bb-confirmation h3 { font: 500 1.8rem/1.2 var(--bh-display); }
.bh-rsvp #bb-edit-reply { margin-top: 0.75rem; }

.bb-site .bh-rsvp .guest-stepper {
  --guest-stepper-border: var(--bh-light-rule);
  --guest-stepper-ink: var(--bh-paper);
  --guest-stepper-accent: var(--bh-silver);
  --guest-stepper-muted: var(--bh-silver);
  justify-self: start;
  border-bottom-color: var(--bh-light-rule);
}

.bb-site .bh-rsvp .guest-stepper__button { color: var(--bh-silver); }
.bb-site .bh-rsvp .guest-stepper__button:hover:not(:disabled) { background: var(--bh-deep); }
.bb-site .bh-rsvp .guest-stepper input[type="number"] { color: var(--bh-paper); }
.bb-site .bh-rsvp .party-extra-guest > span { color: var(--bh-silver); }
.bb-site .bh-rsvp .party-extra-guest input {
  background: transparent;
  border-color: var(--bh-light-rule);
  color: var(--bh-paper);
}

.bb.bb-opened .bb-sound {
  background: var(--bh-silver, #ccdce8);
  color: #111f2a;
}

.bh-footer { padding-block: 1.25rem; background: var(--bh-midnight); color: var(--bh-silver); border-top: 1px solid var(--bh-light-rule); }
.bh-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.6rem; }
.bh-footer p { font-size: 0.84rem; overflow-wrap: anywhere; }

@media (max-width: 48rem) {
  .bh-header-inner { grid-template-columns: 1fr auto; }
  .bh-nav { display: none; }
  .bb-site .bh-hero-art { height: clamp(32rem, 77svh, 46rem); }
  .bb-site .bh-hero-art .bb-panorama-scene { --lake-position: 73% 50%; }
  .bb-site .bh-hero-art .bb-panorama-view::after {
    background: linear-gradient(0deg, rgb(8 17 26 / 93%) 4%, rgb(9 18 27 / 62%) 44%, transparent 78%);
  }
  .bh-hero-copy h1 { font-size: clamp(3.1rem, 12.4vw, 6.4rem); }
  .bh-letter-grid, .bh-venue-grid, .bh-programme-grid, .bh-attire-grid, .bh-rsvp-grid { grid-template-columns: minmax(0, 1fr); }
  .bh-venue-visual { aspect-ratio: 1; }
  .bh-programme-head br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-site .bb-flock { display: none; }
}
