:root {
  --ink: #202124;
  --muted: #667085;
  --paper: #fffaf4;
  --cream: #fff3df;
  --green: #426b5f;
  --green-dark: #23483f;
  --rose: #d8666b;
  --gold: #d39a33;
  --sky: #7aa7c7;
  --border: rgba(32, 33, 36, 0.13);
  --shadow: 0 22px 55px rgba(43, 48, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

main {
  overflow: hidden;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  background: #fbf2e4;
}

.hero__image {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(32, 33, 36, 0.02), rgba(32, 33, 36, 0.1)),
    url("assets/tiffany.jpg");
  background-size: cover;
  background-position: center 34%;
}

.hero__content {
  align-self: center;
  padding: clamp(36px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.95;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4.5rem, 11vw, 9rem);
}

.title-name {
  display: block;
  font-size: 0.62em;
  line-height: 1;
  white-space: nowrap;
}

.title-soon {
  display: inline-block;
  margin-right: 0.08em;
  font-size: 0.34em;
  vertical-align: 0.45em;
}

h2 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}

.hero__copy {
  max-width: 560px;
  margin: 30px 0 0;
  color: #46484d;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 12px 24px rgba(35, 72, 63, 0.22);
}

.button--ghost {
  border-color: rgba(32, 33, 36, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.44);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-block: 1px solid var(--border);
}

.intro-band div {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px clamp(20px, 4vw, 56px);
  background: var(--green);
  color: #fff;
}

.stat {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.intro-band span:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.message-wall,
.gallery-section,
.guestbook {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 84px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.messages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.messages-grid:empty {
  display: none;
}

.message-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.message-card--accent {
  background: var(--cream);
}

.message-card p {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.06;
}

.message-card span {
  margin-top: 22px;
  color: var(--muted);
  font-weight: 700;
}

.gallery-section {
  background: #eef5f4;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: minmax(220px, 34vw);
  gap: 18px;
}

.photo-grid:empty {
  display: none;
}

.photo-card {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62));
}

.photo-card figcaption {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
  font-weight: 700;
}

.photo-card--one {
  grid-row: span 2;
  background-image: url("https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=1200&q=85");
}

.photo-card--two {
  background-image: url("https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=1000&q=85");
}

.photo-card--three {
  background-image: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1000&q=85");
}

.guestbook {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #fff8ed;
}

.guestbook__text p:last-child {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.guestbook-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #3d4045;
  font-weight: 700;
}

.optional-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(32, 33, 36, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(122, 167, 199, 0.35);
  border-color: var(--sky);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 700;
}

footer {
  padding: 28px;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fff8ed;
}

.thanks {
  width: min(760px, calc(100vw - 40px));
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.thanks h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 10vw, 8rem);
}

.thanks p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .hero,
  .guestbook {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__image {
    min-height: 44vh;
  }

  h1 {
    max-width: 10ch;
  }

  .title-name {
    font-size: 0.58em;
  }

  .intro-band,
  .messages-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-card--one {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .hero__content,
  .message-wall,
  .gallery-section,
  .guestbook {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.2rem);
  }

  .title-name {
    font-size: 0.55em;
  }

  .title-soon {
    font-size: 0.36em;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .message-card {
    min-height: 210px;
  }
}
