@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Parisienne&display=swap');

:root {
  color: #26352e;
  background: #f6f3ed;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #f6f3ed;
}

body {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.78), transparent 34rem),
    linear-gradient(135deg, rgba(207, 196, 172, 0.12), transparent 35%),
    #f6f3ed;
}

.invitation {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.82fr);
  width: 100%;
  height: 100svh;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(0.75rem, 3svh, 2.5rem) clamp(0.75rem, 4vw, 3rem);
  overflow: hidden;
  text-align: center;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0;
  place-content: center;
  gap: 1.5rem;
}

.eyebrow,
.schedule h2 {
  margin: 0;
  color: #63513b;
  font-size: clamp(0.55rem, 1.6vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  display: flex;
  width: min(100%, 28rem);
  max-width: 100%;
  margin: clamp(0.45rem, 1.8svh, 1.2rem) auto;
  flex-direction: column;
  align-items: center;
  color: #26352e;
  font-family: "Parisienne", "Brush Script MT", cursive;
  font-size: clamp(2.55rem, min(14svh, 15vw), 6.5rem);
  font-weight: 400;
  line-height: 0.72;
}

h1 span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

h1 em {
  margin: 0.4em 0;
  color: #a8875d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.42em;
  font-style: normal;
  line-height: 0.8;
}

.date {
  margin: 0;
  padding: 0.25rem 0.6rem;
  border-top: 1px solid rgba(168, 135, 93, 0.55);
  border-bottom: 1px solid rgba(168, 135, 93, 0.55);
  color: #80623f;
  font-size: clamp(0.85rem, 3.0svh, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.3em;
}

.schedule {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 4vw, 4rem);
  width: min(100%, 58rem);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(0.7rem, 2.5svh, 2rem) 0 0;
  border-top: 1px solid rgba(141, 115, 83, 0.35);
  align-items: start;
}

.schedule h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.event {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.event__time,
.event__title,
.event__place { margin: 0; }

.event__time {
  color: #a8875d;
  font-size: clamp(0.95rem, 2.7svh, 1.4rem);
}

.event__title {
  margin-top: 0.15rem;
  color: #26352e;
  font-family: "Parisienne", "Brush Script MT", cursive;
  font-size: clamp(1.7rem, 4.5svh, 2.35rem);
}

.event__place {
  max-width: 22rem;
  margin-top: 0.35rem;
  font-size: clamp(0.85rem, 2.0svh, 1.15rem);
  line-height: 1.15;
}

.map-link {
  display: inline-block;
  margin-top: clamp(0.45rem, 1.5svh, 0.9rem);
  color: #6d805f;
  font-size: clamp(0.58rem, 1.55vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.map-link:hover,
.map-link:focus-visible { color: #a06f3d; }

.map-link:focus-visible {
  outline: 2px solid #a8875d;
  outline-offset: 0.35rem;
}

.divider { display: none; }

.botanical {
  position: absolute;
  z-index: 0;
  width: 12rem;
  height: 6rem;
  opacity: 0.72;
  pointer-events: none;
}

.botanical::before {
  position: absolute;
  width: 11rem;
  height: 3.5rem;
  border-top: 1px solid #b28b57;
  border-radius: 50%;
  content: "";
  transform: rotate(-14deg);
}

.botanical span {
  position: absolute;
  display: block;
  width: 1rem;
  height: 2rem;
  border-radius: 100% 0 100% 0;
  background: #78907c;
}

.botanical span:nth-child(1) { top: 2rem; left: 1.4rem; transform: rotate(-35deg); }
.botanical span:nth-child(2) { top: 0.9rem; left: 3.5rem; transform: rotate(25deg); background: #9aac91; }
.botanical span:nth-child(3) { top: 0.5rem; left: 5.7rem; transform: rotate(-18deg); background: #587560; }
.botanical span:nth-child(4) { top: 1.3rem; left: 7.9rem; transform: rotate(36deg); background: #91a790; }
.botanical span:nth-child(5) { top: 2.4rem; left: 10rem; transform: rotate(-25deg); background: #6c8970; }

.botanical--top {
  top: 0;
  right: 0;
  transform: rotate(8deg);
  transform-origin: top right;
}

.botanical--bottom {
  right: auto;
  bottom: 0;
  left: 0;
  transform: rotate(188deg);
}

@media (max-width: 38rem) {
  .invitation {
    grid-template-rows: minmax(0, 0.98fr) minmax(0, 1.02fr);
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .schedule {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .event + .event {
    margin-top: clamp(0.8rem, 2.5svh, 1.5rem);
    padding-top: clamp(0.8rem, 2.5svh, 1.5rem);
    border-top: 1px solid rgba(141, 115, 83, 0.4);
  }
}

@media (min-width: 39rem) and (max-height: 42rem) {
  .invitation {
    grid-template-columns: minmax(18rem, 0.9fr) minmax(22rem, 1.1fr);
    grid-template-rows: 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
  }

  .hero { min-height: 0; }
  .schedule { align-self: center; }
}