@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --olive: #565b2a;
  --olive-dark: #2a2d12;
  --cream: #f4f0e3;
  --sage: #d9dc9e;
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

/* Hero – mobile first.
   --u is a capped viewport unit so tablets don't get an oversized hero. */
.hero {
  --u: min(1vw, 7px);
  --band: calc(58 * var(--u));
  position: relative;
  height: calc(var(--band) + 100 * var(--u));
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: var(--band) 0 0 0;
  background: var(--olive-dark);
}

.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.hero__title {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: calc(9 * var(--u)) calc(4 * var(--u)) 0;
  padding-left: max(calc(4 * var(--u)), calc((100% - 36rem) / 2 + 1.5rem));
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(23 * var(--u));
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  pointer-events: none;
}

.hero__title--dark {
  color: var(--olive-dark);
  clip-path: inset(var(--band) 0 0 0);
}

@media (min-width: 992px) {
  .hero {
    --split: 46%;
    height: min(56vw, 860px);
  }

  .hero__img {
    inset: 0 0 0 var(--split);
  }

  .hero__title {
    padding: 5vw calc(100% - var(--split) - 9vw) 0 0;
    text-align: right;
    font-size: min(13vw, 190px);
  }

  .hero__title--dark {
    clip-path: inset(0 0 0 var(--split));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

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

/* Invitation text */
.invite {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  padding-bottom: max(5rem, calc(3rem + env(safe-area-inset-bottom)));
}

.invite p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

.invite .invite__eyebrow {
  color: var(--sage);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.invite__salutation {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1;
}

.invite .invite__closing {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.1;
}

/* Call to action */
.cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive-dark);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta svg {
  flex: none;
  transition: transform 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--sage);
}

.cta:hover svg,
.cta:focus-visible svg {
  transform: translateX(3px);
}

.cta:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .cta svg {
    transition: none;
  }
}
