:root {
  --ink: #3f4242;
  --muted: #747875;
  --paper: #f8faef;
  --paper-deep: #edf2e6;
  --pearl: #fdfbf3;
  --blue-gray: #b8c2d5;
  --blue-deep: #6f7a8a;
  --sage: #a5b08d;
  --moss: #67745a;
  --rose: #c58c96;
  --clay: #ad7480;
  --charcoal: #34383b;
  --line: rgba(95, 105, 93, 0.18);
  --shadow: 0 24px 80px rgba(77, 83, 76, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 16% 0%, rgba(184, 194, 213, 0.24), transparent 30rem),
    radial-gradient(circle at 86% 14%, rgba(197, 140, 150, 0.13), transparent 24rem),
    linear-gradient(135deg, #f8faef, #eef3e7 52%, #fbfaf2);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(rgba(95, 105, 93, 0.065) 1px, transparent 1px),
    radial-gradient(circle, rgba(95, 105, 93, 0.1) 1px, transparent 1.5px);
  background-size: 44px 44px, 38px 38px, 7px 7px;
}

.cursor-glow {
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.24);
  filter: blur(36px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--pearl);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(248, 250, 239, 0.9);
  box-shadow: 0 12px 42px rgba(77, 83, 76, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.8rem);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
}

.nav a::after {
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: currentColor;
}

.menu-toggle span + span {
  margin-top: 0.35rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 6rem 1rem 4rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(1.06) contrast(1.08);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(rgba(35, 38, 40, 0.24), rgba(35, 38, 40, 0.42)),
    radial-gradient(circle at center, rgba(253, 251, 243, 0) 0 24%, rgba(35, 38, 40, 0.38));
}

.hero-paper {
  width: min(42rem, calc(100vw - 2rem));
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--pearl);
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.46);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.45rem, 2vw, 1.2rem);
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 7.4rem;
  font-weight: 500;
  line-height: 0.92;
}

.hero .eyebrow {
  color: rgba(253, 251, 243, 0.88);
}

.hero h1 span {
  display: inline-block;
  margin: 0;
  color: #e1a8b1;
  font-family: "Parisienne", cursive;
  font-size: 0.58em;
  text-shadow: 0 3px 20px rgba(89, 48, 58, 0.42);
}

.date {
  margin: 1.6rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.15rem;
  font-weight: 600;
}

.time {
  margin: 0.15rem 0 0;
  color: rgba(253, 251, 243, 0.9);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.place {
  margin: 0.35rem 0 1.8rem;
  color: rgba(253, 251, 243, 0.88);
}

.primary-link,
.ghost-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.88rem 1.25rem;
  color: var(--pearl);
  background: rgba(173, 116, 128, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero .primary-link {
  border-color: rgba(255, 250, 240, 0.42);
  background: rgba(173, 116, 128, 0.78);
  backdrop-filter: blur(8px);
}

.primary-link:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  background: var(--charcoal);
}

.primary-link.dark {
  border-color: transparent;
  color: var(--pearl);
}

.ghost-button {
  color: var(--moss);
  background: transparent;
  border-color: rgba(103, 116, 90, 0.32);
}

.ghost-button:hover {
  color: var(--pearl);
}

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  width: 1px;
  height: 4rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.32);
}

.scroll-hint span {
  display: block;
  width: 100%;
  height: 45%;
  background: #fff;
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(230%);
  }
}

.section-padding {
  padding: clamp(4.5rem, 10vw, 8rem) 1rem;
}

.section-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(780px, 100%);
  text-align: center;
}

.script {
  display: block;
  margin: 0 0 1rem;
  color: var(--rose);
  font-family: "Parisienne", cursive;
  font-size: 3.4rem;
}

h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.02;
}

h2 {
  font-size: 4.5rem;
}

h3 {
  font-size: 2.45rem;
}

p {
  line-height: 1.75;
}

.intro p:not(.script),
.copy-block p {
  color: var(--muted);
  font-size: 1rem;
}

.countdown-band {
  position: relative;
  padding: 2rem 1rem;
  background:
    linear-gradient(90deg, rgba(184, 194, 213, 0.18), transparent 34%),
    var(--sage);
  color: var(--pearl);
  overflow: hidden;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.countdown-grid.is-complete {
  grid-template-columns: 1fr;
  background:
    linear-gradient(135deg, rgba(173, 116, 128, 0.92), rgba(103, 116, 90, 0.96)),
    var(--moss);
}

.countdown-grid div {
  padding: clamp(1.2rem, 4vw, 2.2rem);
  text-align: center;
  background: rgba(103, 116, 90, 0.88);
}

.countdown-grid.is-complete > div:not(.countdown-done) {
  display: none;
}

.countdown-done {
  display: none;
}

.countdown-grid.is-complete .countdown-done {
  display: block;
  background: transparent;
}

.countdown-grid span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 5.2rem;
  font-weight: 600;
  line-height: 1;
}

.countdown-grid p {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown-grid .countdown-done span {
  display: block;
  font-family: "Parisienne", cursive;
  font-size: clamp(3.1rem, 8vw, 6.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.countdown-grid .countdown-done p {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.confetti-piece {
  position: fixed;
  top: -1rem;
  left: var(--x);
  z-index: 80;
  width: 0.55rem;
  height: 0.9rem;
  border-radius: 1px;
  background: var(--confetti-color);
  pointer-events: none;
  transform: rotate(var(--rotation));
  animation: confettiFall var(--duration) linear var(--delay) forwards;
}

@keyframes confettiFall {
  to {
    transform: translate3d(var(--drift), 110vh, 0) rotate(calc(var(--rotation) + 720deg));
    opacity: 0.92;
  }
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.image-stack {
  position: relative;
  min-height: clamp(28rem, 52vw, 42rem);
}

.photo-main,
.photo-float {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.photo-main {
  inset: 0 auto auto 0;
  width: 75%;
  height: 88%;
}

.photo-float {
  right: 0;
  bottom: 0;
  width: 46%;
  height: 48%;
  border: 0.7rem solid var(--paper);
}

.copy-block {
  max-width: 36rem;
}

.copy-block h2 + p {
  margin-top: 1.4rem;
}

.event {
  background:
    linear-gradient(180deg, rgba(248, 250, 239, 0.72), rgba(237, 242, 230, 0.82)),
    rgba(253, 251, 243, 0.58);
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.event-card {
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    linear-gradient(145deg, rgba(253, 251, 243, 0.92), rgba(237, 242, 230, 0.8)),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(95, 105, 93, 0.032) 14px 15px);
  border: 1px solid rgba(95, 105, 93, 0.12);
}

.event-card p {
  color: var(--muted);
}

.event-card a {
  margin-top: auto;
  color: var(--clay);
  font-weight: 800;
}

.card-number {
  margin-bottom: 2.2rem;
  color: var(--rose);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.venue {
  background:
    linear-gradient(180deg, rgba(253, 251, 243, 0.94), rgba(238, 243, 231, 0.9)),
    radial-gradient(circle at 80% 12%, rgba(184, 194, 213, 0.2), transparent 26rem);
}

.venue-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(18rem, 0.92fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.venue-copy {
  max-width: 34rem;
}

.venue-copy h2 + p {
  margin-top: 1.4rem;
}

.venue-copy p {
  color: var(--muted);
}

.venue-detail {
  margin-top: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(197, 140, 150, 0.45);
}

.venue-detail span {
  display: block;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.venue-detail p {
  margin: 0.25rem 0 0;
}

.venue-copy .primary-link {
  margin-top: 1.4rem;
}

.venue-art {
  position: relative;
  margin: 0;
  padding: clamp(0.7rem, 1.8vw, 1rem);
  background: rgba(253, 251, 243, 0.78);
  border: 1px solid rgba(95, 105, 93, 0.12);
  box-shadow: var(--shadow);
}

.venue-art::before {
  position: absolute;
  inset: -1.1rem 1rem auto auto;
  width: 38%;
  height: 6rem;
  content: "";
  border-top: 1px solid rgba(197, 140, 150, 0.46);
  border-right: 1px solid rgba(197, 140, 150, 0.34);
  pointer-events: none;
}

.venue-art img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(0.98);
}

.quote-panel {
  position: relative;
  min-height: 58vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--pearl);
  isolation: isolate;
}

.quote-bg {
  position: absolute;
  inset: -10%;
  z-index: -2;
  background-image:
    linear-gradient(rgba(52, 56, 59, 0.3), rgba(52, 56, 59, 0.42)),
    url("assets/foto-1.jpg"),
    url("https://images.unsplash.com/photo-1460978812857-470ed1c77af0?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: auto, cover, cover;
}

.quote-panel p {
  width: min(800px, 100%);
  margin: 0 auto;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 5.2rem;
  line-height: 1;
}

.quote-panel span {
  display: block;
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.form-message {
  min-height: 1.6rem;
  margin: 0.9rem 0 0;
  color: var(--moss);
  font-weight: 700;
}

.gallery {
  background: rgba(238, 243, 231, 0.56);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.gallery-grid img {
  width: 100%;
  height: clamp(18rem, 34vw, 30rem);
  object-fit: cover;
  border: 0.7rem solid rgba(253, 251, 243, 0.88);
  box-shadow: var(--shadow);
}

.gallery-grid .tall {
  height: clamp(25rem, 46vw, 40rem);
  margin-top: -5rem;
}

.rsvp {
  background:
    linear-gradient(rgba(248, 250, 239, 0.9), rgba(248, 250, 239, 0.95)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1800&q=80")
      center/cover fixed;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.paper-form {
  padding: clamp(1.2rem, 4vw, 2rem);
  background: rgba(253, 251, 243, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.paper-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(103, 116, 90, 0.24);
  border-radius: 0;
  padding: 0.9rem 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(197, 140, 150, 0.16);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  color: var(--pearl);
  background: var(--charcoal);
}

.footer p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
}

.footer span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

@media (max-width: 1100px) {
  .hero-media img {
    object-position: center 28%;
  }

  .hero h1 {
    max-width: 42rem;
    font-size: 5.8rem;
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-card:last-child {
    grid-column: 1 / -1;
    min-height: 16rem;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 1.45rem;
    color: var(--ink);
    background: rgba(248, 250, 239, 0.96);
    font-size: 1rem;
    transform: translateX(100%);
    transition: transform 0.32s ease;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
  }

  .hero {
    min-height: 100svh;
    padding: 5.5rem 1rem 3.5rem;
  }

  .hero-media img {
    object-position: center top;
  }

  .hero-overlay {
    background:
      linear-gradient(rgba(35, 38, 40, 0.26), rgba(35, 38, 40, 0.48)),
      radial-gradient(circle at center, rgba(253, 251, 243, 0) 0 18%, rgba(35, 38, 40, 0.42));
  }

  .hero-paper {
    width: min(38rem, calc(100vw - 2rem));
    min-height: 0;
  }

  .hero h1 {
    max-width: 34rem;
    font-size: 4.6rem;
    gap: 0.65rem;
  }

  .date {
    font-size: 1.75rem;
  }

  .time {
    font-size: 1rem;
  }

  .place {
    max-width: 22rem;
    text-align: center;
  }

  .section-padding {
    padding: 4.5rem 1rem;
  }

  h2 {
    font-size: 3rem;
  }

  .two-column,
  .reverse,
  .form-layout,
  .venue-layout,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .copy-block {
    max-width: none;
  }

  .image-stack {
    min-height: 34rem;
  }

  .photo-main {
    width: 78%;
  }

  .event-card:last-child {
    grid-column: auto;
  }

  .venue-copy {
    max-width: none;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .paper-form {
    grid-template-columns: 1fr;
  }

  .event-card {
    min-height: auto;
  }

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

  .gallery-grid .tall,
  .gallery-grid img {
    height: clamp(20rem, 78vw, 34rem);
    margin-top: 0;
  }

  .quote-panel {
    min-height: 48vh;
  }

  .quote-panel p {
    font-size: 3.4rem;
  }

  .rsvp {
    background-attachment: scroll;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero {
    align-items: end;
  }

  .hero h1 {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: baseline;
    max-width: 100%;
    font-size: 3.3rem;
    gap: 0.42rem;
    white-space: nowrap;
  }

  .hero h1 span {
    font-size: 0.62em;
  }

  .primary-link,
  .ghost-button {
    width: 100%;
    max-width: 19rem;
  }

  .intro h2,
  .section-heading h2,
  .copy-block h2 {
    font-size: 2.45rem;
  }

  .countdown-band {
    padding: 1rem;
  }

  .countdown-grid div {
    padding: 1.1rem 0.75rem;
  }

  .countdown-grid span {
    font-size: 3rem;
  }

  .image-stack {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .photo-main,
  .photo-float {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .photo-float {
    border-width: 0.5rem;
  }

  .event-card {
    padding: 1.25rem;
  }

  .quote-panel p {
    font-size: 2.65rem;
  }

  .paper-form {
    padding: 1rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .hero-paper {
    width: calc(100vw - 1.5rem);
    padding: 0 0.25rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .date {
    margin-top: 1.1rem;
    font-size: 1.45rem;
  }

  .time {
    font-size: 0.92rem;
  }

  .place {
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
  }

  .countdown-grid span {
    font-size: 2.75rem;
  }

  .gallery-grid img,
  .gallery-grid .tall {
    height: auto;
    aspect-ratio: 4 / 5;
    border-width: 0.45rem;
  }

  .quote-panel {
    min-height: 44vh;
    padding: 3rem 1rem;
  }

  .quote-panel p {
    font-size: 2.25rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 1.15rem;
  }

  .menu-toggle {
    width: 2.4rem;
    height: 2.4rem;
  }

  .hero h1 {
    font-size: 2.25rem;
    gap: 0.28rem;
  }

  .hero .eyebrow,
  .primary-link,
  .ghost-button {
    font-size: 0.68rem;
  }

  .intro h2,
  .section-heading h2,
  .copy-block h2 {
    font-size: 2.05rem;
  }

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

  .countdown-grid span {
    font-size: 2.25rem;
  }
}
