body {
  position: relative;
  isolation: isolate;
  background-color: #eee2d2;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23574c2d' opacity='.075' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 52% 20%, #fff8ec 3%, transparent 65%),
    radial-gradient(ellipse at 12% 58%, #d6bea5a0, transparent 58%),
    radial-gradient(ellipse at 83% 76%, #f7eadccc, transparent 57%);
  background-size: 180px 180px, 100% 1480px, 100% 1680px, 100% 1880px;
}

.wedding-canopy {
  position: absolute;
  inset: 0 0 auto;
  height: 470px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.wedding-canopy img {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.canopy-flowers {
  width: clamp(270px, 39vw, 550px);
  left: -3%;
  top: -40px;
}

.floral-strands {
  position: fixed;
  inset: 0 0 0 auto;
  width: clamp(76px, 16vw, 230px);
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floral-strand {
  position: absolute;
  display: block;
  width: auto;
  transform-origin: center top;
  transition: transform .45s ease-out;
}

.strand-mogra {
  top: -36px;
  right: clamp(-12px, 1vw, 18px);
  height: min(81svh, 720px);
  opacity: .79;
  transform: rotate(var(--mogra-sway, -1deg));
}

.strand-genda {
  top: -85px;
  right: -18px;
  height: min(58svh, 470px);
  opacity: .94;
  transform: rotate(-13deg);
  transition: none;
}

nav {
  background: transparent;
  backdrop-filter: none;
  border: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  row-gap: 16px;
  height: auto;
  min-height: 100px;
  padding: 26px 8%;
}

nav .logo {
  grid-area: 1 / 2;
  justify-self: center;
  text-align: center;
}

nav .logo .brand-wordmark {
  margin-inline: auto;
  object-position: center;
}

nav .links {
  display: flex;
  grid-area: 2 / 1 / 3 / -1;
  justify-self: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px clamp(16px, 3vw, 34px);
  text-align: center;
}

nav > .pill {
  grid-area: 1 / 3;
  justify-self: end;
}

nav .logo,
nav .links,
nav > a:last-child {
  background: #f4e9dadc;
  box-shadow: 0 0 13px 6px #f4e9daa8;
}

.hero {
  background: transparent;
  color: #422531;
  height: auto;
  min-height: min(680px, calc(100svh - 105px));
}

.hero::after { content: none; }

.hero .hero-inner {
  text-align: center;
  padding: clamp(38px, 8svh, 85px) 7% 100px;
  width: fit-content;
  margin-inline: auto;
}

main { position: relative; }

main > section:not(.hero) {
  position: relative;
  padding-inline: clamp(48px, 13vw, 210px);
  background: transparent;
}

.alta-trail {
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(35px, 8vw, 125px);
  pointer-events: none;
  z-index: 3;
}

.alta-step {
  position: absolute;
  top: var(--step-y);
  left: var(--step-x);
  width: clamp(13px, 1.65vw, 24px);
  height: clamp(26px, 3.38vw, 49px);
  background: url('assets/alta-footprint.webp') center / contain no-repeat;
  opacity: 0;
  transform: scale(.83) rotate(var(--angle));
  transition: opacity .42s ease-out, transform .42s ease-out;
}

.alta-step:nth-child(odd) { background-image: url('assets/alta-footprint-left.webp'); }

.alta-step.is-stamped {
  opacity: .83;
  transform: rotate(var(--angle));
}


body[data-decoration-paused] .alta-step { transition: none; }

@media (max-width: 680px) {
  nav {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 14px;
    padding: 18px 12%;
  }
  nav .logo { grid-area: 1 / 1; }
  nav .links { grid-area: 2 / 1; }
  nav .links a { padding-block: 4px; }
  nav > .pill { grid-area: 3 / 1; justify-self: center; padding: 11px 16px; }
  .hero .hero-inner { padding-top: 32px; }
  .hero-foot { bottom: 58px; }
  .canopy-flowers { left: -94px; top: -29px; }
  .floral-strands { width: 64px; }
  .strand-mogra { top: -18px; right: -20px; height: 61svh; opacity: .67; }
  .strand-genda { top: -38px; right: -14px; height: 30svh; opacity: .85; }
  .hero .hero-inner { padding-bottom: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  .floral-strand { transition: none; }
  .strand-mogra { transform: rotate(-1deg); }
  .alta-step { opacity: .52; transform: rotate(var(--angle)); transition: none; }
}

@media (max-width: 680px) {
  .tabs {
    flex-wrap: wrap;
    gap: 0 16px;
    overflow: visible;
  }

  .tabs button {
    padding-block: 10px;
  }
}

.hero-foot > *,
.petal-toggle {
  background: #f6ecdeef;
}

footer {
  background: linear-gradient(95deg, #e8d8c6, #f2e8db, #e6d5c3);
}

body {
  --mehfil-maroon: #662839;
  --mehfil-maroon-hover: #4e1c2a;
  --mehfil-brass: #a77939;
  --mehfil-gold: #e6c38e;
}

nav .links {
  border-block-end: 1px solid #a779395c;
  padding-block-end: 9px;
}

nav .links a,
nav > .pill {
  color: var(--mehfil-maroon);
}

nav > .pill {
  border-color: var(--mehfil-brass);
}

nav > .pill span {
  color: #875c2a;
}

.hero h1 em,
.contact h2 em {
  color: var(--mehfil-maroon);
}

.hero .pill,
.contact button {
  background: var(--mehfil-maroon);
  border-color: var(--mehfil-gold);
  color: #fff5e7;
}

.hero .pill:hover,
.contact button:hover {
  background: var(--mehfil-maroon-hover);
  color: #fff5e7;
}

.hero .pill span,
.contact button span {
  color: var(--mehfil-gold);
}

.tabs button[aria-selected="true"] {
  color: var(--mehfil-maroon);
  border-bottom-color: var(--mehfil-brass);
}

footer {
  border-top: 1px solid #a7793966;
}

.hero h1 { color: var(--mehfil-maroon); }

.hero .eyebrow {
  color: #81572c;
}

.hero .pill {
  box-shadow: inset 0 0 0 3px var(--mehfil-maroon), inset 0 0 0 4px #e6c38e91;
}

nav .links {
  border-block-end-color: var(--mehfil-brass);
}

nav > .pill {
  background: #f2e3cc;
  box-shadow: inset 0 0 0 3px #f2e3cc, inset 0 0 0 4px #a7793966;
}

.manifesto .manifesto-copy {
  color: #f8eee1;
  background: linear-gradient(145deg, #713143, #4e202e);
  border: 1px solid var(--mehfil-gold);
  box-shadow: inset 0 0 0 5px #632a3c, inset 0 0 0 6px #e6c38e75;
}

.manifesto .manifesto-copy h2 { color: #fff1df; }

.manifesto .manifesto-copy h2 em,
.manifesto .manifesto-copy .eyebrow,
.manifesto .manifesto-copy dt,
.manifesto .manifesto-copy .text-link {
  color: var(--mehfil-gold);
  border-color: #e6c38e80;
}

footer {
  color: #f8eee1;
  background: #542434;
  border-color: var(--mehfil-brass);
}

footer p { color: #f8eee1; }
footer .brand-wordmark { filter: brightness(0) saturate(100%) invert(87%) sepia(39%) saturate(470%) hue-rotate(335deg); }

.manifesto .manifesto-copy p,
.manifesto .manifesto-copy dd {
  color: #f8eee1;
}
