:root {
  --ml-ivory:     #FAF5EC;
  --ml-champagne: #F1E4CB;
  --ml-gold:      #C6A15B;
  --ml-gold-soft: #E3CC9C;
  --ml-red:       #9C2F2C;
  --ml-red-deep:  #7F2321;
  --ml-ink:       #3B2A26;

  --bs-body-bg: var(--ml-ivory);
  --bs-body-color: var(--ml-ink);
  --bs-body-font-family: "Jost", "Segoe UI", system-ui, sans-serif;
}

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(227, 204, 156, .45) 0%, rgba(227, 204, 156, 0) 60%),
    var(--ml-ivory);
  -webkit-font-smoothing: antialiased;
}

.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  padding: clamp(1.5rem, 4vh, 3rem) 1.25rem 1.5rem;
}

.portrait-wrap {
  position: relative;
  width: max(240px, min(clamp(260px, 80vw, 430px), calc((100vh - 420px) * .8)));
  width: max(240px, min(clamp(260px, 80vw, 430px), calc((100svh - 420px) * .8)));
  aspect-ratio: 4 / 5;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 999px 999px 1.75rem 1.75rem;
  border: 1px solid var(--ml-gold);
  opacity: .75;
  pointer-events: none;
}

.portrait {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 1.25rem 1.25rem;
  background-image:
    url("../img/michelle.webp"),
    radial-gradient(ellipse at 50% 30%, #FFF9EE 0%, var(--ml-champagne) 55%, var(--ml-gold-soft) 100%);
  background-color: var(--ml-champagne);
  background-size: cover, cover;
  background-position: center top, center;
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, .7),
    0 30px 60px -28px rgba(127, 35, 33, .45);
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; -webkit-touch-callout: none;
}

.portrait::after { content: ""; position: absolute; inset: 0; background: transparent; }

.masthead {
  text-align: center;
}

.masthead__eyebrow {
  margin: 0 0 .55rem;
  padding-left: .26em;
  font-family: "Jost", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(.68rem, 1.6vw, .8rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ml-red);
}

.masthead__name {
  margin: 0;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  line-height: 1;
  color: var(--ml-ink);
}

.masthead__rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: .95rem auto 0;
  background: var(--ml-gold);
}

.btn-whats {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-border-color: var(--ml-gold);
  --bs-btn-hover-border-color: var(--ml-gold);
  --bs-btn-active-border-color: var(--ml-gold);
  --bs-btn-font-weight: 500;
  --bs-btn-padding-x: 2.1rem;
  --bs-btn-padding-y: .95rem;
  --bs-btn-border-radius: 999px;
  --bs-btn-border-width: 1px;
  --edge: #6B1D1B;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(60, 10, 10, .35);
  background-color: var(--ml-red);
  background-image: linear-gradient(180deg, #B6413C 0%, var(--ml-red) 52%, #8A2826 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 222, 200, .4),
    inset 0 -2px 0 rgba(0, 0, 0, .12),
    0 6px 0 var(--edge),
    0 16px 26px -10px rgba(127, 35, 33, .6);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-whats .bi { font-size: 1.3em; color: var(--ml-gold-soft); }

.btn-whats:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 222, 200, .45),
    inset 0 -2px 0 rgba(0, 0, 0, .12),
    0 8px 0 var(--edge),
    0 22px 30px -12px rgba(127, 35, 33, .6);
}

.btn-whats:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 222, 200, .4),
    inset 0 -2px 0 rgba(0, 0, 0, .12),
    0 6px 0 var(--edge),
    0 0 0 .3rem rgba(198, 161, 91, .45);
}

.btn-whats:active,
.btn-whats.btn:first-child:active {
  background-image: linear-gradient(180deg, #9C2F2C 0%, #8A2826 100%);
  transform: translateY(5px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .2),
    0 1px 0 var(--edge),
    0 6px 12px -6px rgba(127, 35, 33, .5);
}

.footer {
  padding: .5rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
}

.social {
  list-style: none;
  margin: 0 auto;
  padding: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(198, 161, 91, .7);
  color: var(--ml-red);
  font-size: 1.15rem;
  text-decoration: none;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6ECDA 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 0 #D9BE86,
    0 9px 14px -6px rgba(127, 35, 33, .35);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.social a:not(.is-pending):hover,
.social a:focus-visible {
  outline: none;
  color: var(--ml-gold-soft);
  border-color: var(--ml-gold);
  background: linear-gradient(180deg, #B6413C 0%, #8A2826 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 222, 200, .4),
    0 6px 0 #6B1D1B,
    0 14px 18px -8px rgba(127, 35, 33, .5);
}

.social a:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 222, 200, .4),
    0 6px 0 #6B1D1B,
    0 0 0 .25rem rgba(198, 161, 91, .45);
}

.social a:not(.is-pending):active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, .2),
    0 1px 0 #6B1D1B,
    0 4px 8px -4px rgba(127, 35, 33, .4);
}

.js .masthead > * {
  animation: rise .9s cubic-bezier(.22, .8, .24, 1) backwards;
}
.js .masthead > :nth-child(2) { animation-delay: .08s; }
.js .masthead > :nth-child(3) { animation-delay: .16s; }

.js .portrait {
  animation: photo-in 1.4s .25s cubic-bezier(.22, .8, .24, 1) both;
}

.js .portrait-wrap::before {
  animation:
    ring-in 1.6s .6s cubic-bezier(.22, .8, .24, 1) both,
    ring-breathe 5s 2.2s ease-in-out infinite;
}

.js .btn-whats {
  animation: rise 1s .95s cubic-bezier(.22, .8, .24, 1) backwards;
}

.btn-whats::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 190, .45), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.js .btn-whats::after {
  animation: shine 1.3s 2.1s ease-in-out both;
}

.social a.is-pending {
  cursor: default;
}

.js .social li {
  animation:
    rise .8s cubic-bezier(.22, .8, .24, 1) backwards,
    hop 5s ease-in-out infinite;
}
.js .social li:nth-child(1) { animation-delay: 1.25s, 3.20s; }
.js .social li:nth-child(2) { animation-delay: 1.33s, 3.34s; }
.js .social li:nth-child(3) { animation-delay: 1.41s, 3.48s; }
.js .social li:nth-child(4) { animation-delay: 1.49s, 3.62s; }
.js .social li:nth-child(5) { animation-delay: 1.57s, 3.76s; }
.js .social li:nth-child(6) { animation-delay: 1.65s, 3.90s; }

.js:not(.is-ready) .masthead > *,
.js:not(.is-ready) .portrait,
.js:not(.is-ready) .portrait-wrap::before,
.js:not(.is-ready) .btn-whats,
.js:not(.is-ready) .btn-whats::after,
.js:not(.is-ready) .social li {
  animation-play-state: paused;
}

@keyframes photo-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes ring-in {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: .75; transform: none; }
}

@keyframes ring-breathe {
  0%, 100% { opacity: .75; }
  50%      { opacity: .35; }
}

@keyframes hop {
  0%, 12%, 100% { transform: none; }
  3%            { transform: translateY(-9px); }
  6%            { transform: translateY(0); }
  8%            { transform: translateY(-3px); }
  10%           { transform: translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes shine {
  0%   { left: -60%; opacity: 1; }
  100% { left: 130%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .masthead > *,
  .js .portrait,
  .js .portrait-wrap::before,
  .js .btn-whats,
  .js .btn-whats::after,
  .js .social li { animation: none; }
  .btn-whats, .social a { transition: none; }
}
