
/* -------------------------------------------------------
   Anna & Erik — Cypress avenue
   Mobile-first, optimized for screens up to 444px
   ------------------------------------------------------- */

:root {
  --paper: #f7f5ef;
  --ink: #263126;
  --muted: #687064;
  --accent: #66745a;
  --tree-width: clamp(150px, 25vw, 430px);
  --mobile-gutter: 0px;
  --content-max: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* -------------------------------------------------------
   Cypress avenue
   ------------------------------------------------------- */

.avenue-scroll {
  position: relative;
  height: 380vh;
  background: #f7f7f4;
}

.avenue-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
  background: #f8f8f5;
}

.avenue-sky {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(
      ellipse at 50% 43%,
      rgba(255, 255, 255, 0.99) 0 19%,
      rgba(255, 255, 255, 0.8) 42%,
      rgba(244, 244, 239, 0.35) 75%
    ),
    #f8f8f5;
}

.avenue-vignette {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(31, 38, 26, 0.06),
    transparent 18%,
    transparent 82%,
    rgba(31, 38, 26, 0.06)
  );
}

/* -------------------------------------------------------
   Trees
   ------------------------------------------------------- */

.avenue-trees {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.tree {
  position: absolute;
  display: block;
  width: var(--tree-width);
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom;
  bottom: -2px;
  transform-origin: 50% 100%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 18px rgba(20, 27, 17, 0.13));
}

.tree--left {
  right: auto;
}

.tree--right {
  left: auto;
}

.tree--far {
  width: clamp(100px, 14vw, 230px);
  opacity: 0.94;
}

.tree--mid {
  width: clamp(125px, 18vw, 300px);
}

.tree--near {
  width: clamp(155px, 23vw, 390px);
}

/* Desktop positions */

.tree--left-1 {
  left: 20%;
  bottom: 10%;
}

.tree--right-1 {
  right: 20%;
  bottom: 10%;
}

.tree--left-2 {
  left: 5%;
  bottom: 5%;
}

.tree--right-2 {
  right: 5%;
  bottom: 5%;
}

.tree--left-3 {
  left: -13%;
  bottom: 0%;
}

.tree--right-3 {
  right: -13%;
  bottom: 0%;
}
/* -------------------------------------------------------
   House at the end of the avenue
   ------------------------------------------------------- */

.avenue-house {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 12%;
  width: clamp(100px, 28vw, 360px);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  pointer-events: none;
}

.house {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: 50% 100%;
  will-change: transform;
}


/* -------------------------------------------------------
   Scroll hint and introductory caption
   ------------------------------------------------------- */

.avenue-hint {
  position: absolute;
  z-index: 4;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: rgb(234, 234, 234);
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 0.2s linear;
  white-space: nowrap;
}

.hint-arrow {
  font-size: 19px;
  line-height: 1;
}

.intro-caption {
  position: absolute;
  z-index: 3;
  top: 8%;
  left: 50%;
  display: grid;
  gap: 8px;
  color: #3d4938;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.intro-caption span:first-child {
  font-size: clamp(20px, 3vw, 36px);
}

.intro-caption span:last-child {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* -------------------------------------------------------
   Wedding content
   ------------------------------------------------------- */

.wedding-content {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 100px 24px;
  text-align: center;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 255, 255, 0.96),
      transparent 65%
    ),
    var(--paper);
}

.content-inner {
  width: min(100%, var(--content-max));
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 112px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.ampersand {
  color: var(--accent);
  font-style: italic;
  font-size: 0.78em;
}

.wedding-date {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ornament {
  margin: 38px 0;
  color: var(--accent);
  font-size: 19px;
}

.welcome-copy {
  max-width: 440px;
  margin: 0 auto;
  color: #555d51;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.site-link {
  display: inline-block;
  margin-top: 36px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(102, 116, 90, 0.55);
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.noscript-note {
  padding: 20px;
  text-align: center;
}

/* -------------------------------------------------------
   Mobile layout — up to 444px
   ------------------------------------------------------- */

@media (max-width: 444px) {
  :root {
    --tree-width: 34vw;
  }

  .avenue-scroll {
    height: 360svh;
  }

  .avenue-stage {
    min-height: 0;
    height: 100vh;
    height: 100svh;
  }

  .tree--far {
    width: 20vw;
  }

  .tree--mid {
    width: 30vw;
  }

  .tree--near {
    width: 40vw;
  }

  /* Pair 1 — inner pair */

  .tree--left-1 {
    left: 20%;
    bottom: 15%;
  }

  .tree--right-1 {
    right: 20%;
    bottom: 15%;
  }

  /* Pair 2 — middle pair */

  .tree--left-2 {
    left: 5%;
    bottom: 7%;
  }

  .tree--right-2 {
    right: 5%;
    bottom: 7%;
  }

  /* Pair 3 — outer pair */

  .tree--left-3 {
    left: -13%;
    bottom: 0%;
  }

  .tree--right-3 {
    right: -13%;
    bottom: 0%;
  }

  .avenue-house {
    bottom: -12%;
    width: 48vw;
  }

  .avenue-vignette {
    background: linear-gradient(
      90deg,
      rgba(31, 38, 26, 0.035),
      transparent 15%,
      transparent 85%,
      rgba(31, 38, 26, 0.035)
    );
  }

  .intro-caption {
    top: max(7%, env(safe-area-inset-top));
  }

  .avenue-hint {
    bottom: max(24px, env(safe-area-inset-bottom));
  }

  .wedding-content {
    min-height: 100vh;
    min-height: 100svh;
    padding: 80px 22px;
  }

  .welcome-copy {
    max-width: 340px;
  }
}

/* -------------------------------------------------------
   Very narrow phones — up to 390px
   ------------------------------------------------------- */

@media (max-width: 390px) {
  .tree--far {
    width: 20vw;
  }

  .tree--mid {
    width: 30vw;
  }

  .tree--near {
    width: 40vw;
  }

  .tree--left-1 {
    left: 20%;
  }

  .tree--right-1 {
    right: 20%;
  }

  .tree--left-2 {
    left: 5%;
  }

  .tree--right-2 {
    right: 5%;
  }

  .tree--left-3 {
    left: -13%;
  }

  .tree--right-3 {
    right: -13%;
  }
}

/* -------------------------------------------------------
   Accessibility
   ------------------------------------------------------- */

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