:root {
  --ink: #29221d;
  --muted: #74675d;
  --paper: rgba(255, 252, 247, 0.92);
  --paper-solid: #fffaf3;
  --line: rgba(78, 58, 43, 0.18);
  --bg: #f7f1e9;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.page-shell { min-height: 100svh; }
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  justify-items: start;
  overflow: hidden;
  padding: clamp(28px, 5vw, 76px);
}
.photo, .veil { position: absolute; inset: 0; }
.photo {
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.01);
}
.veil {
  background:
    linear-gradient(90deg, rgba(255,248,238,0.74) 0%, rgba(255,249,240,0.54) 32%, rgba(255,255,255,0.02) 58%),
    linear-gradient(180deg, rgba(20,14,9,0.02), rgba(20,14,9,0.16));
}

.announcement-card {
  position: relative;
  z-index: 2;
  width: min(34vw, 440px);
  min-width: 390px;
  padding: clamp(34px, 4vw, 58px) clamp(26px, 3.5vw, 48px);
  text-align: center;
  background: var(--paper);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.64);
  box-shadow: 0 26px 80px rgba(52,36,22,0.24);
}

h1 {
  margin: 0;
  font-family: Didot, "Bodoni 72", Georgia, serif;
  font-size: clamp(3.2rem, 5.4vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}
.script {
  margin: 16px 0 34px;
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  line-height: 1;
  color: #42372f;
}
.details {
  margin: 0 auto 30px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.details p {
  margin: 0;
  font-size: clamp(0.98rem, 1.3vw, 1.13rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.details p + p { margin-top: 10px; }
.message {
  margin: 0 auto 18px;
  max-width: 330px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.75vw, 1.34rem);
  line-height: 1.45;
}
.coming-soon {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}
.updates-link {
  appearance: none;
  display: inline-block;
  margin-top: 30px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(41, 34, 29, 0.42);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.updates-link:hover,
.updates-link:focus-visible {
  border-bottom-color: var(--ink);
}
.updates-link:focus-visible {
  outline: 2px solid rgba(41, 34, 29, 0.35);
  outline-offset: 6px;
}

/* Below desktop width, avoid overlay entirely so the card never covers either person. */
@media (max-width: 1120px) {
  .hero {
    min-height: auto;
    display: block;
    padding: 0;
    overflow: visible;
    background: var(--bg);
  }
  .photo {
    position: relative;
    inset: auto;
    display: block;
    min-height: 58svh;
    background-position: 57% center;
    transform: none;
  }
  .veil {
    position: absolute;
    inset: 0 0 auto 0;
    min-height: 58svh;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(34,24,17,0.12));
    pointer-events: none;
  }
  .announcement-card {
    width: min(100% - 36px, 620px);
    min-width: 0;
    margin: -52px auto 28px;
    background: var(--paper-solid);
  }
}

@media (max-width: 640px) {
  .photo,
  .veil { min-height: 50svh; }
  .photo { background-position: 54% center; }
  .announcement-card {
    width: min(100% - 24px, 560px);
    margin-top: -34px;
    padding: 32px 22px;
  }
  h1 { font-size: clamp(3rem, 16vw, 4.1rem); }
  .script { margin-bottom: 28px; }
}

@media (max-width: 390px) {
  .photo,
  .veil { min-height: 46svh; }
  .announcement-card { padding-inline: 18px; }
  .details p { letter-spacing: 0.1em; }
}
