:root {
  color-scheme: dark;
  --night: #090d0e;
  --night-soft: #111719;
  --cream: #ede5d2;
  --cream-dim: #b9b09d;
  --amber: #d8a557;
  --amber-soft: rgba(216, 165, 87, 0.18);
  --wood: #41372f;
  --wood-light: #665548;
  --line: rgba(237, 229, 210, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 13%, rgba(205, 151, 73, 0.09), transparent 23rem),
    linear-gradient(180deg, #070a0b 0%, var(--night) 54%, #0d1010 100%);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    repeating-linear-gradient(8deg, transparent 0 5px, rgba(255,255,255,0.012) 6px),
    repeating-linear-gradient(92deg, transparent 0 12px, rgba(255,255,255,0.009) 13px);
  mix-blend-mode: screen;
}

.night-sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.firefly {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #efc875;
  box-shadow: 0 0 9px 3px rgba(239, 200, 117, 0.38);
  animation: glimmer 7s ease-in-out infinite;
}

.firefly-one { left: 13%; top: 31%; }
.firefly-two { right: 17%; top: 42%; animation-delay: -2.4s; }
.firefly-three { left: 21%; top: 68%; animation-delay: -4.8s; }

.porch {
  position: relative;
  width: min(100% - 2rem, 1040px);
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(7rem, 14vw, 10rem) clamp(2rem, 8vw, 7rem) 2.25rem;
}

.porch-roof {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.25rem;
  border-bottom: 1px solid var(--wood-light);
  background:
    linear-gradient(180deg, rgba(14, 13, 12, 0.96), rgba(38, 31, 27, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,0.04) 81px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.porch-roof::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: -0.8rem;
  height: 0.8rem;
  border-bottom: 1px solid rgba(102, 85, 72, 0.55);
  background: #1b1714;
}

.porch-post {
  position: absolute;
  top: 3.25rem;
  bottom: 0;
  width: 1.15rem;
  border-inline: 1px solid rgba(120, 99, 81, 0.4);
  background: linear-gradient(90deg, #211c18, #493b31 48%, #211c18);
  opacity: 0.68;
}

.porch-post-left { left: 1.45rem; }
.porch-post-right { right: 1.45rem; }

.welcome {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.author,
.kicker,
.location {
  font-family: "Trebuchet MS", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.author {
  margin: 0 0 2.2rem;
  color: var(--cream-dim);
  font-size: 0.72rem;
}

.lamp {
  position: relative;
  width: 3.2rem;
  height: 4.3rem;
  margin-bottom: 1.5rem;
}

.lamp::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 48%;
  width: 16rem;
  height: 16rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,165,87,0.25), rgba(216,165,87,0.07) 32%, transparent 68%);
}

.lamp-cap,
.lamp-light {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.lamp-cap {
  top: 0;
  width: 2.35rem;
  height: 0.52rem;
  border-radius: 50% 50% 15% 15%;
  background: #1d1a17;
  border: 1px solid #67533f;
}

.lamp-light {
  top: 0.45rem;
  width: 2rem;
  height: 3.05rem;
  border: 1px solid #806a4e;
  background: linear-gradient(90deg, #3b2c1f, #e0ae59 49%, #3b2c1f);
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 28px 7px rgba(216, 165, 87, 0.2);
}

.lamp::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.4rem;
  width: 2.55rem;
  height: 0.45rem;
  transform: translateX(-50%);
  border: 1px solid #67533f;
  border-radius: 15% 15% 50% 50%;
  background: #1d1a17;
}

h1 {
  margin: 0;
  font-size: clamp(3.35rem, 9vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.65);
}

h1 span {
  color: var(--amber);
  font-size: 0.46em;
  font-style: italic;
  letter-spacing: 0;
  vertical-align: 0.22em;
}

.tagline {
  margin: 1.35rem 0 0;
  color: var(--cream-dim);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-style: italic;
  letter-spacing: 0.035em;
}

.divider {
  display: grid;
  grid-template-columns: minmax(2rem, 7rem) auto minmax(2rem, 7rem);
  align-items: center;
  gap: 1rem;
  width: min(100%, 20rem);
  margin: 2.4rem auto 1.8rem;
}

.divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.divider span:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}

.divider b {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 400;
}

.invitation {
  margin: 0;
  max-width: 39rem;
  color: #d5cebd;
  font-size: clamp(1.02rem, 2.2vw, 1.3rem);
  line-height: 1.75;
}

.first-note {
  position: relative;
  z-index: 1;
  width: min(100%, 670px);
  margin: 3rem auto 7rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-top-color: rgba(216, 165, 87, 0.55);
  background: linear-gradient(145deg, rgba(30, 35, 35, 0.84), rgba(15, 18, 18, 0.9));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  text-align: center;
}

.kicker {
  margin: 0 0 1.15rem;
  color: var(--amber);
  font-size: 0.65rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 400;
}

.first-note p:last-child {
  max-width: 32rem;
  margin: 1.2rem auto 0;
  color: var(--cream-dim);
  font-size: 1.02rem;
  line-height: 1.75;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: #8f897c;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.73rem;
}

footer p { margin: 0; }
.location { font-size: 0.6rem; }

@keyframes glimmer {
  0%, 100% { opacity: 0.12; transform: translate(0, 0); }
  35% { opacity: 0.8; transform: translate(6px, -7px); }
  60% { opacity: 0.25; transform: translate(-4px, 3px); }
}

@media (max-width: 640px) {
  .porch {
    width: 100%;
    padding-inline: 2.4rem;
  }

  .porch-post-left { left: 0.55rem; }
  .porch-post-right { right: 0.55rem; }

  .welcome { min-height: 65vh; }

  h1 span {
    display: block;
    margin-block: 0.32em;
    font-size: 0.38em;
    vertical-align: initial;
  }

  .invitation br { display: none; }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .firefly { animation: none; }
}
