:root {
  --ink: #15110d;
  --deep: #062b32;
  --river: #117bb3;
  --sky: #67b8ec;
  --cream: #fff4dc;
  --paper: #efd8ad;
  --paper-deep: #d6aa68;
  --pine: #17432d;
  --leaf: #4f8b34;
  --rust: #c94d21;
  --sun: #f49a25;
  --gold: #e8bd58;
  --shadow: 0 24px 70px rgba(42, 24, 10, 0.25);
  --display: "Ultra", Georgia, serif;
  --western: "Rye", Georgia, serif;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(#7fc4ef 0%, #f7dfb3 58%, #f2c06d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(21, 17, 13, 0.09) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 220, 0.2), rgba(21, 17, 13, 0.08));
  background-size: 18px 18px, 100% 100%;
  mix-blend-mode: multiply;
}

#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  touch-action: none;
}

main {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

a {
  color: inherit;
}

.hero {
  min-height: 96svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: clamp(1rem, 3vw, 3rem);
  position: relative;
}

.hero__paper {
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.5rem);
  z-index: -1;
  border: 3px solid rgba(21, 17, 13, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 244, 220, 0.76), rgba(239, 216, 173, 0.58)),
    radial-gradient(circle at 80% 0%, rgba(244, 154, 37, 0.2), transparent 28rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
}

.hero__content {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 7rem) 0 clamp(1.5rem, 4vh, 3rem);
  text-align: center;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.75rem;
  color: var(--rust);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__logo-crop {
  width: min(560px, 86vw);
  height: clamp(160px, 24vw, 250px);
  display: block;
  margin: 0 auto clamp(0.7rem, 2vw, 1.1rem);
  overflow: hidden;
  filter: drop-shadow(0 16px 22px rgba(35, 24, 11, 0.2));
}

.hero__logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.42);
  transform-origin: center bottom;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  color: var(--deep);
  font-family: var(--display);
  font-size: clamp(2.9rem, 8vw, 6.8rem);
  line-height: 0.9;
  text-shadow: 0 4px 0 rgba(255, 244, 220, 0.68);
}

h2 {
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 1rem;
  font-family: var(--western);
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 0.95;
}

p,
li,
dd,
dt {
  font-size: clamp(1.13rem, 2.1vw, 1.42rem);
  line-height: 1.45;
}

.hero__copy {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 850;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.15rem;
  border: 3px solid var(--ink);
  border-radius: 7px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(21, 17, 13, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.button--primary {
  background: var(--sun);
}

.button--ghost {
  background: var(--cream);
}

.hero__facts {
  width: min(1020px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero__facts article {
  min-height: 118px;
  padding: 0.85rem;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 244, 220, 0.86);
  box-shadow: 5px 5px 0 rgba(21, 17, 13, 0.16);
}

.hero__facts span {
  display: block;
  color: var(--rust);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.hero__facts p {
  margin: 0.25rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 850;
}

.board-section,
.rsvp-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 1.4rem;
  padding: 1rem 0;
}

.section-heading h2 {
  max-width: 840px;
}

.poster-shell {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

.poster-tabs {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.poster-tabs button {
  min-height: 64px;
  padding: 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 7px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 950;
  box-shadow: 4px 4px 0 rgba(21, 17, 13, 0.18);
  transition: transform 160ms ease, background 160ms ease;
}

.poster-tabs button.is-active {
  background: var(--gold);
}

.poster-frame {
  position: relative;
  min-height: 610px;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 18px solid #6f3c18;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 244, 220, 0.38), transparent 35% 65%, rgba(116, 63, 28, 0.22)),
    var(--paper);
  box-shadow:
    inset 0 0 0 4px rgba(49, 25, 9, 0.35),
    12px 14px 0 rgba(21, 17, 13, 0.18),
    var(--shadow);
  overflow: hidden;
}

.poster-frame::before,
.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.poster-frame::before {
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(21, 17, 13, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 76% 48%, rgba(21, 17, 13, 0.18) 0 1px, transparent 1px);
  background-size: 23px 23px, 31px 31px;
}

.poster-frame::after {
  border: 4px dashed rgba(21, 17, 13, 0.18);
  margin: 1rem;
  border-radius: 5px;
}

.poster-panel {
  position: absolute;
  inset: clamp(1.1rem, 3vw, 2rem);
  z-index: 1;
  display: none;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 5px;
  transform-origin: 50% 0;
  animation: posterDrift 7s ease-in-out infinite;
}

.poster-panel.is-active {
  display: block;
}

.poster-panel ul,
.schedule-list {
  margin: 0;
  padding: 0;
}

.poster-panel ul {
  display: grid;
  gap: 1rem;
  list-style: none;
}

.poster-panel li {
  position: relative;
  padding-left: 1.4rem;
  font-weight: 850;
}

.poster-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--rust);
}

.schedule-list {
  display: grid;
  gap: 1.1rem;
}

.schedule-list div {
  padding: 1rem;
  border: 3px solid rgba(21, 17, 13, 0.75);
  border-radius: 6px;
  background: rgba(255, 244, 220, 0.5);
}

.schedule-list dt {
  color: var(--deep);
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1;
}

.schedule-list dd {
  margin: 0.32rem 0 0;
  font-weight: 850;
}

.poster-map {
  margin-top: 1.4rem;
}

.rsvp-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2rem, 6vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 244, 220, 0.86);
  box-shadow: var(--shadow);
}

.rsvp-section p {
  max-width: 780px;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 850;
}

.rsvp-section img {
  width: 100%;
  border-radius: 7px;
  box-shadow: 8px 8px 0 rgba(21, 17, 13, 0.16);
}

@keyframes posterDrift {
  0%,
  100% {
    transform: rotate(-0.45deg) translateY(0);
  }
  50% {
    transform: rotate(0.55deg) translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

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

  .poster-shell,
  .rsvp-section {
    grid-template-columns: 1fr;
  }

  .poster-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-frame {
    min-height: 680px;
    border-width: 12px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 0.75rem;
  }

  .hero__paper {
    inset: 0.5rem;
  }

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

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

  .poster-tabs {
    grid-template-columns: 1fr;
  }

  .poster-tabs button {
    min-height: 56px;
  }

  .poster-frame {
    min-height: 760px;
  }
}
