/* ------------------------------------------------ */
/* carrara.baby: A Merry Little Baby Shower. Built by Mythos.
   Kept in a separate file so a Gulp rebuild of main.css
   never clobbers it. Loaded after main.css. */
/* ------------------------------------------------ */

/* Section photos, replacing the original placeholder
   images. .media__image / .mainmedia__image already cover+center them.
   The hero needs no gradient; its .color-layer-medium div does the
   darkening. The other three have no color layer, so the black
   overlay is baked into background-image to keep the white
   copyright line readable over a bright photo. */
.main-image-3 {
  background-image: url("../img/hero.webp");
}
.about-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/about.webp");
}
.works-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/registry.webp");
}
.contact-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/directions.webp");
}

/* Backstop tone while the photo loads. #5f1616 is the section red
   (#9e2525) as the hero renders it under its 40% black color-layer,
   so all four panels land on the same tone. */
.about-image,
.works-image,
.contact-image {
  background-color: #5f1616;
}

/* The base styles sized .loader__logo for a 160px image logo. The wordmark
   that replaced it is wider and set to nowrap, so it overflowed the box
   and dragged the whole centred block off to the left. */
.loader__content {
  z-index: 2;
  width: 100%;
  padding: 0 2.4rem;
  text-align: center;
}
.loader__logo {
  width: auto;
}

/* Wordmark in place of an image logo */
.logo-text {
  display: block;
  font: normal 400 3.2rem/1 "Great Vibes", cursive;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}
.logo-text:hover {
  color: #ffffff;
}

/* Hero facts line. The base styles set these in 2rem script type
   because they were social links; an address has to be readable,
   so drop to small caps. */
.main__dataline .socials-text li,
.main__dataline .socials-text li::after {
  font: normal 500 1.2rem/1.8 "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  color: rgba(255, 255, 255, 0.75);
}
.main__dataline .socials-text li::after {
  color: rgba(255, 255, 255, 0.3);
}

/* Event Details quick-facts: Font Awesome glyphs replace
   the original 70x70 icon images */
.features__icon {
  display: block;
  margin-bottom: 1.6rem;
  font-size: 3.2rem;
  color: #9e2525;
}

/* Registry cards: same figure/figcaption shell as the old
   works gallery, minus the PhotoSwipe lightbox */
.registry__item {
  padding: 4rem 3rem;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  text-align: center;
}
.registry__item:hover .registry__icon {
  -webkit-transform: translateY(-0.4rem);
  transform: translateY(-0.4rem);
}
.registry__icon {
  display: block;
  margin-bottom: 1.8rem;
  font-size: 3.6rem;
  color: #9e2525;
  -webkit-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
}
/* The caption text was white for a dark gallery overlay;
   these cards sit on white. */
.registry__item .works-description p {
  color: #444444;
}
.registry__link {
  display: inline-block;
  margin-top: 1.4rem;
  font: normal 600 1.2rem/1 "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: #9e2525;
  border-bottom: 1px solid rgba(158, 37, 37, 0.4);
  padding-bottom: 0.4rem;
}
.registry__link:hover {
  color: #0A0A0A;
  border-bottom-color: #0A0A0A;
}

/* Book raffle card in Event Details sits on the site's dark
   green, so its text flips to light. The brand red icon is too
   dark to read on green, so it goes cream. */
.raffle .registry__item {
  border-bottom: 0;
}
.raffle .registry__item h4 {
  color: #ffffff;
}
.raffle .registry__item h4 small {
  color: rgba(255, 255, 255, 0.8);
}
.raffle .registry__item .works-description p {
  color: rgba(255, 255, 255, 0.75);
}
.raffle .registry__icon {
  color: #f5efe3;
}

/* RSVP "+ Add a guest": reads as a link, sits where the next field will appear */
.add-guest {
  display: inline-block;
  margin: -4px 0 20px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.4rem;
  color: #9e2525;
  cursor: pointer;
}
.add-guest:hover,
.add-guest:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Home screen: RSVP and Registry buttons side by side, stacking on narrow phones */
.headline__btnholder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}
.headline__btnholder .btn {
  min-width: 17rem;
  margin: 0; /* the gap spaces them; the base right margin knocks RSVP off-center when stacked */
}

/* The word MENU in place of hamburger lines */
.menu-trigger--text {
  width: auto;
  font: 400 1.5rem/32px "Cinzel", serif; /* 32px = the logo's height, so the two line up; the link stays 48px tall to tap */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  transition: opacity 0.3s;
}
.no-touch .menu-trigger--text:hover,
.menu-trigger--text:focus-visible {
  color: #ffffff;
  opacity: 0.7;
}

/* Guest list password dialog (native <dialog>, opened by the footer hearts) */
.guest-dialog {
  width: min(90vw, 40rem);
  padding: 0;
  border: 0;
  background: #f5efe3;
  color: #0a0a0a;
}
.guest-dialog::backdrop {
  background: rgba(31, 37, 30, 0.8);
}
.guest-dialog__form {
  position: relative;
  padding: 5.6rem 3.2rem 3.2rem;
  text-align: center;
}
.guest-dialog__title {
  margin: 0 0 2.4rem;
  font: 400 2.8rem/1.2 "Cinzel", serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0a0a;
}
.guest-dialog__form input {
  margin-bottom: 0;
}
.guest-dialog__error {
  margin: 1rem 0 0;
  font-size: 1.4rem;
  color: #9e2525;
}
.guest-dialog__error:empty {
  display: none;
}
.guest-dialog__form .btn {
  width: 100%;
  margin-top: 2rem;
}
.guest-dialog__close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  padding: 0.4rem 0.8rem;
  border: 0;
  background: none;
  font: 300 3.2rem/1 "Mulish", sans-serif;
  color: #0a0a0a;
  cursor: pointer;
}
.guest-dialog__close:hover,
.guest-dialog__close:focus-visible {
  color: #9e2525;
}
