@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-400.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #fbf7f1;
  --ink: #37352f;
  --muted: #746e65;
  --accent: #855e56;
  --line: #ded3c6;
  --card: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #f2e2dc 0, transparent 32rem),
    var(--paper);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.gina-page {
  font-family: Papyrus, Parchment, fantasy;
}

.gina-page .calendar-menu p {
  font-family: inherit;
}

.gina-page .calendar-label {
  transform: translateY(0.12em);
}

.gina-page .calendar-caret {
  transform: translateY(-1px) rotate(45deg);
}

.gina-page .calendar-action[open] .calendar-caret {
  transform: translateY(3px) rotate(225deg);
}

main {
  width: min(100% - 2rem, 880px);
  margin: 0 auto;
}

.hero {
  padding: clamp(2rem, 5vh, 3.5rem) 0 clamp(1.25rem, 3vh, 2rem);
  text-align: center;
}

h1,
h2 {
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
}

h1 .date {
  display: block;
  margin-top: 0.2em;
  color: var(--accent);
  font-size: 0.48em;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

h1 .location {
  letter-spacing: 0.04em;
}

section {
  margin-bottom: clamp(4rem, 10vw, 7rem);
}

.video-section {
  margin-bottom: clamp(4rem, 8vh, 6rem);
}

h2 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
}

.section-copy {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--muted);
  text-align: center;
}

.video-frame,
.form-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 60px rgba(77, 56, 45, 0.1);
}

.video-frame {
  width: min(100%, calc((100vh - 235px) * 16 / 9));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}

iframe {
  display: block;
  width: 100%;
  border: 0;
}

.video-frame iframe {
  height: 100%;
}

.calendar-action {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin: 1.5rem auto 0;
  text-align: center;
}

.calendar-button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 20px rgba(77, 56, 45, 0.06);
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.calendar-button::-webkit-details-marker {
  display: none;
}

.calendar-icon {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: var(--accent);
}

.calendar-icon::before {
  position: absolute;
  top: 3px;
  right: 0;
  left: 0;
  border-top: 1.5px solid currentColor;
  content: "";
}

.calendar-caret {
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}

.calendar-action[open] .calendar-caret {
  transform: translateY(2px) rotate(225deg);
}

.calendar-button:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(77, 56, 45, 0.1);
  transform: translateY(-1px);
}

.calendar-action[open] .calendar-button {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(77, 56, 45, 0.1);
}

.calendar-button:focus-visible {
  outline: 3px solid rgba(133, 94, 86, 0.35);
  outline-offset: 3px;
}

.calendar-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  display: grid;
  width: 270px;
  padding: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 20px 55px rgba(77, 56, 45, 0.16);
  text-align: left;
  transform: translateX(-50%);
}

.calendar-menu p {
  margin: 0;
  padding: 0.65rem 0.85rem 0.55rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}

.calendar-menu a::before {
  order: 2;
  color: var(--muted);
  content: "›";
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
}

.calendar-menu a + a {
  margin-top: 0.1rem;
}

.calendar-menu a:hover,
.calendar-menu a:focus-visible {
  background: #f7f0eb;
}

.form-frame iframe {
  height: 650px;
}

.fallback {
  margin-top: 1rem;
  text-align: center;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

footer {
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2.5rem;
  }

  .video-frame {
    width: 100%;
  }

  .form-frame {
    border-radius: 12px;
  }

  .form-frame iframe {
    height: 720px;
  }
}

@supports (-moz-appearance: none) {
  @media (max-width: 600px) {
    footer {
      padding-bottom: max(5rem, calc(3rem + env(safe-area-inset-bottom)));
    }
  }
}
