/* ░░░ TOKENS ░░░ */
:root {
  --bg: #efeae0;
  --paper: #faf6ee;
  --ink: #16140f;
  --ink-soft: #4a4338;
  --muted: #8a8478;
  --accent: #b2553a;       /* burnt terracotta */
  --accent-deep: #823a23;
  --accent-soft: rgba(178, 85, 58, 0.08);
  --line: rgba(22, 20, 15, 0.14);
  --line-soft: rgba(22, 20, 15, 0.07);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --max-w: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* Subtle film-grain for depth — no animated kitsch */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ░░░ NAV ░░░ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 32px;
  background: rgba(239, 234, 224, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, padding 0.25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  padding: 14px 32px;
}
.nav__brand { justify-self: start; }
.nav__mark {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: var(--ink);
}
.nav__links {
  justify-self: center;
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

.nav__rsvp {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--ink) !important;
  line-height: 1;
}
.nav__links a.nav__rsvp::after { display: none; }
.nav__rsvp:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.lang-toggle {
  justify-self: end;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--ink); color: var(--ink); }
.lang-toggle__opt {
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0.5;
  transition: all 0.2s ease;
}
.lang-toggle__opt.is-active {
  opacity: 1;
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; padding: 16px 20px; }
  .nav__links { display: none; }
}

/* ░░░ HERO ░░░ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 32px 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}
.hero__grain {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(178, 85, 58, 0.16), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(22, 20, 15, 0.06), transparent 60%);
  z-index: -1;
}

.hero__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 64px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: rise 0.9s var(--ease) both;
}
.hero__index {
  font-family: var(--mono);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--ink-soft);
  vertical-align: middle;
  margin-right: 14px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(72px, 16vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}
.hero__line { display: block; }
.hero__line--name { animation: rise 1s var(--ease) 0.15s both; }
.hero__line--amp {
  color: var(--accent);
  padding-left: 0.06em;
  animation: rise 1s var(--ease) 0.3s both, heartbeat 2.6s ease-in-out 1.6s infinite;
  display: block;
  line-height: 0.85;
}
.hero__heart {
  width: 0.62em;
  height: 0.62em;
  display: inline-block;
  fill: currentColor;
  vertical-align: middle;
  filter: drop-shadow(0 8px 24px rgba(178, 85, 58, 0.25));
}
@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  10%           { transform: scale(1.06); }
  20%           { transform: scale(0.98); }
  30%           { transform: scale(1.04); }
  40%           { transform: scale(1); }
}
.hero__line--name + .hero__line--amp + .hero__line--name { animation-delay: 0.45s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero__footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 40px;
  animation: rise 1s var(--ease) 0.7s both;
}
.hero__date {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__date-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero__date-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__countdown {
  display: flex;
  gap: 20px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.cd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 48px;
}
.cd__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd__label {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero__footer { grid-template-columns: 1fr; gap: 28px; }
  .hero__countdown { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
}

/* ░░░ MARQUEE ░░░ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 18px 0 6px;
  margin-top: 60px;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.01em;
  color: var(--ink);
  animation: marquee 38s linear infinite;
}
.marquee__track > span:nth-child(even) {
  color: var(--accent);
  font-size: 0.7em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ░░░ BUTTONS ░░░ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ░░░ SECTIONS ░░░ */
.section {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 140px 32px;
}
.section__header {
  margin-bottom: 70px;
  max-width: 720px;
}
.section__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0;
}
.section__sub {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 540px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ░░░ STORY ░░░ */
.story__grid {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 80px;
  align-items: end;
}
.story__text {
  max-width: 560px;
}
.story__text p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 28px;
}
.story__pic {
  margin: 0;
}
.story__pic-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--ink);
  overflow: hidden;
}
.story__pic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
  transform: scale(1.35);
  transition: transform 1.2s var(--ease);
}
.story__pic-frame:hover .story__pic-img {
  transform: scale(1.42);
}
.story__pic-frame::after {
  content: "01 / 01";
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--paper);
  opacity: 0.85;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

@media (max-width: 820px) {
  .story__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ░░░ SCHEDULE ░░░ */
.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.schedule__row {
  display: grid;
  grid-template-columns: 80px 140px 1fr;
  align-items: baseline;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.schedule__row:hover {
  background: var(--accent-soft);
  padding-left: 16px;
  padding-right: 16px;
}
.schedule__idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.schedule__time {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.schedule__body h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
}
.schedule__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

@media (max-width: 720px) {
  .schedule__row {
    grid-template-columns: 60px 1fr;
    gap: 20px;
  }
  .schedule__time { grid-column: 1 / -1; }
  .schedule__body { grid-column: 1 / -1; }
  .schedule__row:hover { padding-left: 0; padding-right: 0; background: transparent; }
}

/* ░░░ VENUES ░░░ */
.venue__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.venue__card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.venue__card::before {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at center, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.venue__card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
}
.venue__card:hover::before { opacity: 1; }

.venue__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.venue__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.venue__addr {
  margin: 4px 0 26px;
  color: var(--ink-soft);
  font-size: 15px;
}
.venue__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  width: max-content;
  transition: color 0.2s ease, gap 0.3s var(--ease);
}
.venue__cta:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 16px;
}

@media (max-width: 720px) {
  .venue__grid { grid-template-columns: 1fr; }
  .venue__card { padding: 32px 26px; }
}

/* ░░░ GALLERY ░░░ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.gallery__item {
  position: relative;
  background: var(--ink);
  background-image:
    linear-gradient(135deg, rgba(178, 85, 58, 0.4), transparent 60%),
    linear-gradient(220deg, rgba(22, 20, 15, 0.55), transparent 70%);
  display: flex;
  align-items: end;
  padding: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.gallery__item:hover { transform: scale(1.01); }
.gallery__item span { opacity: 0.75; }
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 1s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }

/* Row 1: 4 portrait tiles 9:16 (matches phone-photo aspect ratio, no crop) */
.gallery__item--1,
.gallery__item--2,
.gallery__item--3,
.gallery__item--4 {
  grid-column: span 3;
  aspect-ratio: 9 / 16;
}

/* Row 2: 2 landscape tiles 4:3 (matches phone landscape photos, no crop) */
.gallery__item--5,
.gallery__item--6 {
  grid-column: span 6;
  aspect-ratio: 4 / 3;
}

/* Row 3: 1 portrait 3:4 + 1 landscape placeholder */
.gallery__item--7 {
  grid-column: span 5;
  aspect-ratio: 3 / 4;
}
.gallery__item--8 {
  grid-column: span 7;
  aspect-ratio: 7 / 5;
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery__item {
    grid-column: span 1 !important;
    aspect-ratio: 9 / 16 !important;
  }
  .gallery__item--5,
  .gallery__item--6,
  .gallery__item--8 {
    grid-column: span 2 !important;
    aspect-ratio: 4 / 3 !important;
  }
  .gallery__item--7 {
    grid-column: span 2 !important;
    aspect-ratio: 3 / 4 !important;
  }
}

/* ░░░ FORM ░░░ */
.form {
  max-width: 680px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 48px clamp(24px, 4vw, 56px);
}
.form__field {
  margin: 0 0 26px;
  border: 0;
  padding: 0;
}
.form__field > label,
.form__field > legend {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.form input[type="text"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="email"],
.form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.form input::placeholder,
.form textarea::placeholder {
  color: var(--muted);
  font-size: 14px;
}
.form__hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.form__radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: transparent;
  transition: all 0.2s ease;
}
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.kids-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}
.kids-grid__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: transparent;
}
.kids-grid__age {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 520px) {
  .kids-grid { grid-template-columns: 1fr; }
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: transparent;
}
.stepper input {
  width: 56px;
  text-align: center;
  border: 0 !important;
  background: transparent !important;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  padding: 6px 0 !important;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.stepper__btn:hover { background: var(--ink); color: var(--paper); }

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.form__submit {
  width: 100%;
  margin-top: 12px;
}
.form__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(250, 246, 238, 0.4);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.form.is-loading .form__spinner { display: inline-block; }
.form.is-loading .form__submit { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status {
  margin: 20px 0 0;
  text-align: left;
  font-size: 14px;
  min-height: 22px;
  color: var(--ink-soft);
}
.form__status.is-error   { color: #9c382c; }
.form__status.is-success { color: #1f6a35; }

.form__field[hidden] { display: none !important; }

/* ░░░ FOOTER ░░░ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 28px 32px;
}
.footer__row {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__mark {
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 13px;
}
.footer__line {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ░░░ PREFERS-REDUCED-MOTION ░░░ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
