:root {
  --bg: #f4efe8;
  --surface: rgba(255, 250, 245, 0.82);
  --surface-strong: #fffaf5;
  --text: #1f2933;
  --muted: #5f6c7b;
  --accent: #b56a2d;
  --accent-dark: #7e4720;
  --line: rgba(31, 41, 51, 0.1);
  --shadow: 0 20px 60px rgba(56, 41, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(181, 106, 45, 0.18), transparent 28%),
    linear-gradient(180deg, #efe4d4 0%, var(--bg) 40%, #f7f3ee 100%);
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
  display: grid;
  gap: 1.5rem;
}

.hero {
  padding-top: 1rem;
}

.hero-copy,
.hero-panel,
.message-card,
.moment {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 3rem;
}

.eyebrow,
.panel-label,
.moment-number {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  margin-top: 0.6rem;
  font-family: "Merriweather", serif;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 1.08;
}

.intro {
  max-width: 60ch;
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

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

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

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qualities {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.qualities li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.panel-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.panel-note-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-note-text {
  margin: 0.7rem 0 0;
  max-width: 42ch;
  line-height: 1.65;
  color: var(--muted);
}

.message-card {
  padding: 2.5rem;
}

.message-card h2 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.message-card p {
  margin: 0;
  max-width: 68ch;
  line-height: 1.75;
  color: var(--muted);
}

.message-button {
  margin-top: 1.25rem;
}

.surprise-text {
  margin-top: 0.65rem !important;
  display: block;
  min-height: 3.5rem;
  font-weight: 600;
  color: var(--accent-dark) !important;
}

.moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.moment {
  padding: 2rem;
}

.moment h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.moment p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

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

  .hero-copy,
  .hero-panel,
  .message-card,
  .moment {
    padding: 2rem;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 0.8rem, 1120px);
    padding-top: 0.35rem;
    padding-bottom: 2.5rem;
    gap: 1rem;
  }

  .hero-copy,
  .hero-panel,
  .message-card,
  .moment {
    border-radius: 22px;
    padding: 1.25rem;
  }

  .hero {
    padding-top: 0.5rem;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.7rem);
    line-height: 1.12;
  }

  .intro,
  .message-card p,
  .moment p,
  .qualities li {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .message-card h2 {
    margin-bottom: 0.85rem;
  }

  .moments {
    gap: 1rem;
  }

  .moment h3 {
    margin-top: 0.8rem;
    margin-bottom: 0.55rem;
    font-size: 1.2rem;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 1.4rem;
    gap: 0.7rem;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0.9rem 1rem;
  }

  .message-button {
    margin-top: 1rem;
  }

  .qualities {
    margin-top: 0.7rem;
  }

  .qualities li {
    padding: 0.85rem 0;
  }

  .panel-note {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .panel-note-text {
    margin-top: 0.55rem;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .surprise-text {
    margin-top: 0.55rem !important;
    min-height: 4.5rem;
  }
}
