:root {
  --bg: #fff8ef;
  --bg-warm: #ffd9b8;
  --bg-cool: #dff3ec;
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: #fffef9;
  --ink: #2c1b13;
  --muted: #6b5648;
  --olive: #7aa95c;
  --olive-deep: #54763d;
  --coral: #ff8d6d;
  --gold: #ffc24d;
  --berry: #ff6f91;
  --border: rgba(44, 27, 19, 0.12);
  --shadow: 0 18px 50px rgba(117, 74, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Quicksand", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 194, 77, 0.4), transparent 24%),
    radial-gradient(circle at top right, rgba(122, 169, 92, 0.26), transparent 26%),
    radial-gradient(circle at 20% 25%, rgba(255, 111, 145, 0.12), transparent 16%),
    radial-gradient(circle at 80% 18%, rgba(255, 141, 109, 0.2), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, #fff4e7 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.45;
  pointer-events: none;
}

body::before {
  top: 4rem;
  left: -3rem;
  background: rgba(255, 194, 77, 0.55);
}

body::after {
  right: -2rem;
  bottom: 4rem;
  background: rgba(122, 169, 92, 0.35);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0 1rem;
}

.hero-copy,
.portrait-card,
.panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 2.5rem;
  overflow: hidden;
}

.hero-copy::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgba(84, 118, 61, 0.2);
  border-radius: 24px;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-deep);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
}

h1,
h2 {
  font-family: "Chewy", cursive;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  max-width: 10ch;
}

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

h3 {
  font-size: 1.35rem;
}

.lede,
.fact-card p,
.invite-row p,
.agenda-card li,
.energy-card p,
.site-footer p,
.countdown-note {
  color: var(--muted);
  line-height: 1.6;
}

.lede {
  max-width: 38rem;
  margin: 1rem 0 1.5rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf4;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(44, 27, 19, 0.16);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(44, 27, 19, 0.22);
}

.button-secondary {
  background: #fff6e9;
  color: var(--ink);
  border: 1px solid rgba(44, 27, 19, 0.08);
}

.countdown-card {
  width: fit-content;
  max-width: 100%;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 194, 77, 0.18), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(255, 194, 77, 0.35);
}

.countdown-label {
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.countdown {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.countdown-item {
  min-width: 5.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
}

.countdown-item strong {
  display: block;
  font-size: 1.7rem;
  font-family: "Chewy", cursive;
  color: var(--coral);
}

.countdown-item span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.countdown-note {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
}

.portrait-card {
  padding: 2rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 141, 109, 0.22), transparent 40%),
    linear-gradient(180deg, #fffaf4 0%, #ffefd8 100%);
}

.portrait-frame {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 0.75rem;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 217, 184, 0.65));
  box-shadow: 0 18px 32px rgba(117, 74, 36, 0.15);
  transform: rotate(-2deg);
  animation: float 4s ease-in-out infinite;
}

.photo-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--berry);
  color: #fffaf4;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 18px rgba(255, 111, 145, 0.3);
}

.olive-photo {
  display: block;
  width: 100%;
  aspect-ratio: 896 / 1195;
  object-fit: cover;
  border-radius: 24px;
  border: 6px solid #fffaf4;
}

.portrait-caption {
  margin: 1rem auto 0;
  max-width: 24rem;
  font-weight: 700;
}

main {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.panel {
  padding: 2rem;
}

.panel-highlight {
  background:
    linear-gradient(135deg, rgba(255, 194, 77, 0.18), rgba(255, 255, 255, 0.92)),
    var(--card);
}

.panel-soft {
  background:
    linear-gradient(135deg, rgba(122, 169, 92, 0.14), rgba(255, 255, 255, 0.92)),
    var(--card);
}

.section-heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.fact-grid,
.energy-strip {
  display: grid;
  gap: 1rem;
}

.fact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact-card,
.invite-card,
.agenda-card,
.energy-card {
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(44, 27, 19, 0.08);
}

.fact-card {
  min-height: 100%;
}

.fact-card h3,
.agenda-card h3,
.energy-card h3 {
  margin-bottom: 0.65rem;
}

.invite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 1rem;
}

.invite-card {
  display: grid;
  gap: 0.85rem;
}

.invite-row {
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(44, 27, 19, 0.12);
}

.invite-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.invite-row p {
  margin: 0.35rem 0 0;
}

.invite-label {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(122, 169, 92, 0.16);
  color: var(--olive-deep);
}

.agenda-card ul {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}

.agenda-card li + li {
  margin-top: 0.55rem;
}

.energy-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.energy-card span {
  display: inline-flex;
  width: 2.3rem;
  height: 2.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 0.8rem;
  font-weight: 700;
  background: rgba(255, 141, 109, 0.18);
  color: var(--coral);
}

.site-footer {
  padding: 1rem 0 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 960px) {
  .hero,
  .invite-layout,
  .fact-grid,
  .energy-strip {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }

  .portrait-card {
    max-width: 34rem;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 1rem;
  }

  .hero-copy,
  .portrait-card,
  .panel {
    border-radius: 26px;
  }

  .hero-copy,
  .portrait-card,
  .panel {
    padding: 1.4rem;
  }

  .countdown-item {
    min-width: calc(50% - 0.375rem);
  }

  .countdown-item:last-child {
    min-width: 100%;
  }
}
