:root {
  --bg: #f6f1e7;
  --text: #1c1c1c;
  --muted: rgba(28, 28, 28, 0.78);
  --accent: #a8823c;
  --divider: rgba(168, 130, 60, 0.58);
  --paper: rgba(255, 255, 255, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lora", serif;
  color: var(--text);
  background: var(--bg);
}

.page-width {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.top-panel {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid var(--divider);
}

.top-panel-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
}

.wordmark,
.panel-nav,
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.wordmark {
  justify-self: start;
}

.panel-title {
  justify-self: center;
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  text-align: center;
}

.panel-nav {
  justify-self: end;
  display: flex;
  gap: 18px;
}

.panel-nav a,
.footer-copy p,
.party-details {
  color: var(--text);
}

.panel-nav a {
  text-decoration: none;
}

h1,
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 13ch;
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

.section,
.lede,
.footer-copy,
.fact-card,
.centerpiece-copy,
.party-details,
.section-copy p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.section {
  padding: 64px 0;
  border-top: 1px solid var(--divider);
}

.section:first-of-type {
  border-top: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  text-align: center;
  padding-top: 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
}

.lede {
  max-width: 54ch;
  margin: 22px auto 0;
}

.hero-art,
.section-art img,
.facts-art img,
.centerpiece-art,
.footer-art img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-art {
  width: min(390px, 72vw);
  margin-top: 32px;
  filter: none;
}

.scroll-hint {
  margin-top: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.section-copy p + p {
  margin-top: 16px;
}

.section-art img {
  width: min(340px, 100%);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.facts-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
  align-items: start;
}

.facts-art img {
  width: min(260px, 100%);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fact-card {
  min-height: 96px;
  padding: 18px 18px 20px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid rgba(168, 130, 60, 0.18);
}

.centerpiece {
  text-align: center;
}

.centerpiece-art {
  width: min(420px, 78vw);
  margin-top: 28px;
}

.centerpiece-copy {
  max-width: 560px;
  margin: 18px auto 0;
}

.profile-page {
  padding-top: 24px;
}

.profile-title {
  margin: 0;
  max-width: none;
  text-align: left;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.party-details {
  max-width: 620px;
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

#birthdayForm {
  width: min(560px, 100%);
  margin: 28px auto 0;
  padding: 26px;
  text-align: left;
  border: 1px solid rgba(168, 130, 60, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.22));
  box-shadow: 0 18px 40px rgba(28, 28, 28, 0.06);
}

#birthdayForm label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

#birthdayForm input,
#birthdayForm textarea {
  width: 100%;
  border: 1px solid rgba(168, 130, 60, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#birthdayForm input::placeholder,
#birthdayForm textarea::placeholder {
  color: rgba(28, 28, 28, 0.48);
}

#birthdayForm input:focus,
#birthdayForm textarea:focus {
  border-color: rgba(168, 130, 60, 0.7);
  box-shadow: 0 0 0 4px rgba(168, 130, 60, 0.14);
  transform: translateY(-1px);
}

#birthdayForm textarea {
  resize: vertical;
  min-height: 140px;
}

#birthdayForm button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(168, 130, 60, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#birthdayForm button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(168, 130, 60, 0.26);
  filter: brightness(1.03);
}

#birthdayForm button:active {
  transform: translateY(0);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 56px;
}

.footer-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 420px;
}

.footer-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(168, 130, 60, 0.32);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(28, 28, 28, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.footer-button:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 130, 60, 0.58);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 26px rgba(28, 28, 28, 0.08);
}

.footer-copy p {
  margin: 0;
}

.footer-art img {
  width: min(160px, 32vw);
}

.footer-art {
  justify-self: end;
}

.top-panel-inner,
.hero,
.split,
.facts-layout,
.footer {
  width: min(1100px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .top-panel-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .wordmark,
  .panel-title,
  .panel-nav {
    justify-self: center;
  }

  .split,
  .facts-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .footer-art {
    justify-self: center;
  }

  .footer-callout {
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .page-width {
    width: min(100% - 20px, 1100px);
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding-top: 56px;
  }

  .panel-title {
    font-size: 0.98rem;
  }

  .panel-nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  #birthdayForm {
    padding: 20px;
  }
}
