:root {
  --ink: #342721;
  --muted: #6d625c;
  --sage: #667866;
  --sage-deep: #405642;
  --ivory: #fffaf1;
  --champagne: #d8b675;
  --rose: #b98679;
  --shadow: 0 24px 70px rgba(55, 39, 30, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f8f2e8;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.invitation {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 28px);
  background:
    radial-gradient(circle at top left, rgba(216, 182, 117, 0.28), transparent 34%),
    linear-gradient(135deg, #f4eadb, #fff8ef 48%, #ecf0e6);
}

.hero {
  position: relative;
  width: min(100%, 430px);
  min-height: min(820px, calc(100vh - 24px));
  overflow: hidden;
  border: 1px solid rgba(216, 182, 117, 0.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background-image: url("assets/wedding-background.png");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(216, 182, 117, 0.52);
  content: "";
  pointer-events: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 241, 0.7) 0%,
      rgba(255, 250, 241, 0.84) 28%,
      rgba(255, 250, 241, 0.74) 60%,
      rgba(255, 248, 239, 0.9) 100%
    );
}

.content {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 58px 26px 30px;
  text-align: center;
}

.kicker,
.venue__label,
.families p {
  margin: 0;
  color: var(--sage-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 100%;
  margin: 2px 0 0;
  color: #443029;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.7rem, 22vw, 6.6rem);
  font-weight: 400;
  line-height: 0.78;
}

h1 span {
  display: block;
  margin: 8px 0 7px;
  color: var(--rose);
  font-family: "Playfair Display", serif;
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1;
}

.intro {
  max-width: 28ch;
  margin: 4px 0 0;
  color: var(--muted);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.52;
}

.date-block {
  width: 170px;
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  margin-top: 4px;
  border: 1px solid rgba(216, 182, 117, 0.82);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.76);
  box-shadow: 0 18px 42px rgba(90, 70, 54, 0.14);
}

.date-block__day {
  color: var(--sage-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4.35rem;
  font-weight: 700;
  line-height: 0.86;
}

.date-block__month {
  color: var(--rose);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.14rem;
  font-weight: 700;
}

.date-block__year {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.timeline div,
.venue,
.families {
  width: 100%;
  border: 1px solid rgba(216, 182, 117, 0.42);
  background: rgba(255, 250, 241, 0.68);
  backdrop-filter: blur(10px);
}

.timeline div {
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 12px 8px;
}

.timeline strong {
  color: var(--sage-deep);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.families {
  display: grid;
  gap: 0;
}

.families div {
  padding: 15px 14px;
}

.families div + div {
  border-top: 1px solid rgba(216, 182, 117, 0.34);
}

.families strong {
  display: block;
  margin-top: 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.25;
}

.venue {
  padding: 18px 14px 16px;
}

.venue h2 {
  margin: 6px 0 8px;
  color: var(--sage-deep);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.1;
}

.venue address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 2px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid rgba(64, 86, 66, 0.32);
  background: rgba(255, 250, 241, 0.88);
  color: var(--sage-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.button--primary {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: var(--ivory);
}

.button:focus-visible {
  outline: 3px solid rgba(216, 182, 117, 0.9);
  outline-offset: 3px;
}

@media (max-width: 360px) {
  .content {
    gap: 14px;
    padding: 46px 20px 24px;
  }

  h1 {
    font-size: 4.25rem;
  }

  .date-block {
    width: 148px;
    min-height: 148px;
  }

  .date-block__day {
    font-size: 3.65rem;
  }
}

@media (min-width: 760px) {
  .hero {
    min-height: 820px;
  }
}
