:root {
  --ink: #111111;
  --muted: #34312d;
  --paper: #fffaf0;
  --paper-deep: #f3e8cf;
  --gold: #b28a3e;
  --gold-dark: #80601f;
  --shadow: 0 24px 70px rgb(17 17 17 / 16%);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--paper), var(--paper-deep));
  font-family: "Architects Daughter", cursive;
  min-height: 100vh;
}

h1, h2, h3 { font-family: "Architects Daughter", cursive; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(4rem, 12vw, 8rem); }
h2 { font-size: clamp(4.5rem, 13vw, 10rem); }
h3 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
p { color: var(--muted); line-height: 1.7; }
a { color: inherit; }

.eyebrow {
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  margin: 0 0 .85rem;
  text-transform: uppercase;
}

.intro {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(280px, 1fr) minmax(260px, .8fr);
  min-height: 100vh;
  padding: clamp(0.5rem, 0.5vw, 5rem);
  position: relative; /* ensure content stacks above fixed background */
  z-index: 2;
  height: 100svh;
  width: 100vw;
}

.intro__media {
  /* full-viewport background */
  position: relative;
  aspect-ratio: 3 / 4;
  /* align-self: stretch; */
  /* height: 100svh; */
  width:50vw;
  left : 25vw;
  /* height: 90 vh; */
  /* min-height: 320px; */
  /* background: radial-gradient(circle at 50% 44%, var(--paper) 0 14%, #ede7da 15% 48%, #f0d497 49% 100%); */
  overflow: hidden; 
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 0;
  /* left:-10%; */
  /* transform: scale(0.5)   */
  /* transform: scale(1.1)  translateY(-20%);   */
}

/* make poster and video exactly overlap inside the media container */
.intro__poster,
.intro__video {
  position: absolute;
  /* inset: -10%; */
   /* top:0; right:0; bottom:0;  */
  /* left:-10%; */
  /* transform: translateX(-10%); */
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.seal-button {
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  color: transparent;
  cursor: pointer;
  display: flex;
  font-size: .96rem;
  font-weight: 700;
  height: clamp(91px, 14.4vw, 142px);
  justify-content: center;
  left: 48%;
  letter-spacing: .08em;
  position: absolute;
  text-transform: uppercase;
  top: 55%;
  /* transform: translate(-50%, -50%); */
  width: clamp(91px, 14.4vw, 142px);
  z-index: 6;
  scale: 2.5;
  opacity: 0;
  outline: 0;
}

.seal-button:hover,
.seal-button:focus,
.seal-button:focus-visible,
.seal-button:active,
.seal-button:disabled,
.seal-button.is-invisible {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: transparent;
  opacity: 0;
  outline: 0;
  /* keep interactive: allow pointer events and keyboard focus */
  pointer-events: auto;
}


.intro__copy { max-width: 36rem; position: relative; z-index: 3; }
.is-hidden { display: none; }
.invitation { animation: reveal .8s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.hero {
  background:
    linear-gradient(180deg, rgb(17 17 17 / 15%), rgb(17 17 17 / 82%)),
    url("assets/andermatt.jpg") center / cover no-repeat;
  color: var(--paper);
  min-height: 88vh;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
}
.hero__nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.hero__nav a {
  backdrop-filter: blur(12px);
  background: rgb(255 250 240 / 12%);
  border: 1px solid rgb(255 250 240 / 32%);
  border-radius: 999px;
  color: var(--paper);
  padding: .75rem 1rem;
  text-decoration: none;
}
.hero__content { bottom: 35%; max-width: 760px; position: absolute; }
.hero p { color:  var(--paper); }
.hero__date { color: var(--paper); font-size: clamp(1.2rem, 2.5vw, 1.65rem); font-weight: 700; }
.hero h2 { color: var(--paper); }

.section { margin: 0 auto; max-width: 1180px; padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3.5rem); }
.split-section { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.venue-card {
  background:
    linear-gradient(180deg, transparent 35%, rgb(17 17 17 / 78%)),
    url("assets/Gütsch.jpg") center / cover no-repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 560px;
  overflow: hidden;
  position: relative;
}
.venue-card__overlay { bottom: 0; color: var(--paper); display: grid; gap: .4rem; padding: 2rem; position: absolute; z-index: 1; }
.venue-card__overlay span { font-family: "Architects Daughter", cursive; font-size: 2.4rem; }
.text-card, .rsvp-form, .photos-section {
  background: rgb(255 250 240 / 88%);
  border: 1px solid rgb(128 96 31 / 20%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.text-card { padding: clamp(1.5rem, 4vw, 3rem); }
.timeline { display: grid; gap: .9rem; margin: 2rem 0; }
.timeline div { align-items: baseline; border-bottom: 1px solid rgb(17 17 17 / 16%); display: grid; gap: 1rem; grid-template-columns: 72px 1fr; padding-bottom: .9rem; }
.timeline dt { color: var(--gold-dark); font-weight: 800; }
.timeline dd { margin: 0; }

.button {
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.25rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { box-shadow: 0 12px 30px rgb(180 138 74 / 18%); transform: translateY(-2px); }
.button--primary { background: var(--gold); color: var(--ink); }
.button--ghost { background: transparent; color: var(--gold-dark); }
.button--disabled { cursor: not-allowed; opacity: .58; pointer-events: none; }
.calendar-actions, .form-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.rsvp-section { display: grid; gap: 2rem; grid-template-columns: .85fr 1.15fr; }
.section-heading { padding-top: 1rem; }
.rsvp-form { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 4vw, 2.4rem); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
label, fieldset { color: var(--ink); display: grid; font-size: .92rem; font-weight: 800; gap: .45rem; }
input, select, textarea {
  background: var(--paper);
  border: 1px solid rgb(17 17 17 / 22%);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  padding: .95rem 1rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: 3px solid rgb(180 138 74 / 18%); }
fieldset { border: 1px solid rgb(17 17 17 / 18%); border-radius: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem; }
fieldset legend { padding: 0 .4rem; }
fieldset label { align-items: center; display: flex; font-weight: 600; }
fieldset input { width: auto; }
.form-status { font-weight: 700; margin: 0; }
.photos-section { align-items: center; display: flex; gap: 2rem; justify-content: space-between; }
.photos-section p { max-width: 760px; }

@media (max-width: 820px) {
  .intro, .split-section, .rsvp-section { grid-template-columns: 1fr; }
  .intro {
    height: 107vh;
    height: 107dvh;
    min-height: 100svh;
    overflow: hidden;
    padding: 0;
  }
  .intro__media {
    aspect-ratio: auto;
    height: 107vh;
    height: 107dvh;
    inset: 0;
    min-height: 0;
    position: absolute;
    width: 100vw;
  }
  .intro__poster,
  .intro__video {
    inset: 0;
    display: block;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    object-position: center;
    transform: translateX(-6vw) scale(1.4) translateY(10vw);
    width: 100vw;
  }
  .seal-button { left: 40%; }
  .intro__copy { order: -1; }
  .hero__nav { justify-content: center; }
  .hero__content { bottom: 7%; left: 1.25rem; right: 1.25rem; }
  .venue-card { min-height: 380px; }
  .form-grid, fieldset { grid-template-columns: 1fr; }
  .photos-section { align-items: flex-start; flex-direction: column; }
}
