:root {
  --color-canvas: #0d0f13;
  --color-surface: #11141a;
  --color-text: #f6f1e9;
  --color-text-soft: #efe9e0;
  --color-muted: #bdb7ae;
  --color-nav: #a8a29a;
  --color-faint: #605d5d;
  --color-accent: #e1ad66;
  --color-accent-bright: #facb8d;
  --color-eyebrow: #8fb6cf;
  --color-line: rgba(225, 173, 102, 0.22);
  --color-line-strong: #e1ad66;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Karla", "Helvetica Neue", sans-serif;
  --font-serif: "Lora", Georgia, serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 4.5rem;

  --page-pad: clamp(1.25rem, 5vw, 4.5rem);
  --header-height: 5.5rem;
  --radius: 4px;
  --ease: 220ms ease;
  --reveal-duration: 900ms;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--color-canvas);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
  padding: var(--space-lg) var(--page-pad) var(--space-md);
  border-bottom: 1px solid var(--color-line);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.625rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-nav);
}

.nav a:hover {
  color: var(--color-accent-bright);
}

.nav__cta,
.nav__cta--mobile {
  color: var(--color-accent);
  border: 1px solid rgba(225, 173, 102, 0.55);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.nav__cta:hover,
.nav__cta--mobile:hover {
  color: var(--color-accent-bright);
  border-color: var(--color-accent-bright);
  background: rgba(225, 173, 102, 0.08);
}

.nav__cta--mobile {
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height) + var(--space-xl)) var(--page-pad) clamp(7rem, 22vh, 14rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(var(--hero-zoom, 1));
  transform-origin: var(--hero-focus-x, 58%) var(--hero-focus-y, 42%);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus-x, 58%) var(--hero-focus-y, 42%);
  mask-image: radial-gradient(95% 62% at 58% 42%, #000 30%, rgba(0, 0, 0, 0.55) 68%, transparent 100%);
  -webkit-mask-image: radial-gradient(95% 62% at 58% 42%, #000 30%, rgba(0, 0, 0, 0.55) 68%, transparent 100%);
}

.hero__veil,
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__veil--vertical {
  background: linear-gradient(
    180deg,
    rgba(13, 15, 19, 0.88) 0%,
    rgba(13, 15, 19, 0.28) 38%,
    rgba(13, 15, 19, 0.92) 100%
  );
}

.hero__veil--horizontal {
  background: linear-gradient(
    90deg,
    rgba(13, 15, 19, 0.72) 0%,
    rgba(13, 15, 19, 0.35) 28%,
    rgba(13, 15, 19, 0) 55%,
    rgba(13, 15, 19, 0.35) 100%
  );
}

.hero__glow {
  background: radial-gradient(55% 48% at 58% 40%, rgba(225, 173, 102, 0.2) 0%, rgba(8, 10, 14, 0) 72%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  max-width: 40rem;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-eyebrow);
  font-variant-numeric: tabular-nums;
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.hero__lede {
  margin: 0;
  max-width: 32rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.75;
  color: var(--color-muted);
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
}

.button:hover {
  color: var(--color-accent-bright);
  border-color: var(--color-accent-bright);
  background: rgba(225, 173, 102, 0.12);
}

.button:active {
  transform: translateY(1px);
}

/* Facts strip — sits below the fold */

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: 0;
  padding: var(--space-2xl) var(--page-pad);
  border-top: 1px solid var(--color-line);
}

.facts__item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.facts dt {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-eyebrow);
}

.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.625rem);
  color: var(--color-text-soft);
  font-variant-numeric: tabular-nums;
}

/* RSVP band */

.rsvp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-2xl) var(--page-pad);
  background: var(--color-surface);
  border-top: 1px solid rgba(225, 173, 102, 0.18);
}

.rsvp__copy {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4.5vw, 2.375rem);
  line-height: 1.28;
  color: var(--color-text-soft);
  text-wrap: pretty;
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--page-pad);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-faint);
  background: var(--color-canvas);
}

/* Entrance motion */

.motion-ready .hero__image {
  animation: hero-in 1.4s var(--reveal-ease) both;
}

.motion-ready .hero__glow {
  animation: glow-in 1.6s var(--reveal-ease) 0.2s both;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise-in var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0ms) both;
}

.motion-ready .reveal--title {
  transform: translateY(36px);
  filter: blur(4px);
  animation-name: title-in;
}

.motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--reveal-ease),
    transform 0.9s var(--reveal-ease);
}

.motion-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.motion-reduce .reveal,
.motion-reduce .reveal-on-scroll,
.motion-reduce .hero__image,
.motion-reduce .hero__glow {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
  transition: none;
}

/* Desktop */

@media (min-width: 48rem) {
  .nav {
    display: flex;
  }

  .nav__cta--mobile {
    display: none;
  }

  .nav .nav__cta {
    color: var(--color-accent);
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .facts__item + .facts__item {
    padding-left: 2.75rem;
    border-left: 1px solid var(--color-line);
  }

  .facts__item:not(:last-child) {
    padding-right: 2.75rem;
  }

  .rsvp {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3.75rem;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__image {
    object-position: 72% center;
    transform: none;
    mask-image: radial-gradient(66% 66% at 72% 48%, #000 30%, rgba(0, 0, 0, 0.5) 62%, transparent 92%);
    -webkit-mask-image: radial-gradient(66% 66% at 72% 48%, #000 30%, rgba(0, 0, 0, 0.5) 62%, transparent 92%);
  }

  .hero__veil--horizontal {
    background: linear-gradient(
      90deg,
      rgba(13, 15, 19, 0.96) 0%,
      rgba(13, 15, 19, 0.82) 34%,
      rgba(13, 15, 19, 0) 58%,
      rgba(13, 15, 19, 0) 82%,
      rgba(13, 15, 19, 0.9) 100%
    );
  }

  .hero__glow {
    background: radial-gradient(42% 45% at 70% 48%, rgba(225, 173, 102, 0.18) 0%, rgba(8, 10, 14, 0) 72%);
  }
}

/* Mobile: smaller hero image */

/* Mobile hero framing. --hero-zoom above 1 crops in (no edges, the overflow is
   clipped); --hero-focus-x/y pick which part of the photo stays centred. */
  @media (max-width: 47.9375rem) {
  .hero {
    --hero-zoom: 1;
    --hero-focus-x: 58%;
    --hero-focus-y: 42%;
  }
}

@media (min-width: 64rem) {
  .hero {
    padding-bottom: 4rem;
  }

  .hero__content {
    max-width: 41rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
