/* =========================================================
   Cheska & Kangsan — Wedding Website
   Colors come from the invitation and the wedding palette.
   ========================================================= */

:root {
  /* Invitation tones */
  --ink: #5e4b3c;          /* headings */
  --text: #6f5d4e;         /* body text (invitation brown) */
  --muted: #9a8878;
  --line: #d9cbbb;
  --paper: #ffffff;
  --tint: #f7f4f9;         /* soft champagne wash */
  --sage: #7fa395;         /* leaves on the invitation */
  --sage-light: #c9dccf;
  --header: #806a56;       /* warm brown from the invitation lettering */
  --header-text: #f3ebe1;

  /* Wedding palette */
  --terracotta: #d4826e;
  --rose: #f67495;
  --wisteria: #b390c6;
  --periwinkle: #91a9de;
  --blush: #f2c5c4;
  --champagne: #fde6ad;

  --serif: "Cormorant Garamond", "Nanum Myeongjo", Georgia, serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --sans: "Lato", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;

  --radius: 14px;
  --nav-h: 64px;
}

/* Korean: swap to a Korean serif so headings don't fall back to system fonts */
html[lang="ko"] {
  --serif: "Nanum Myeongjo", "Cormorant Garamond", serif;
}
html[lang="ko"] body { word-break: keep-all; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* Per-section backgrounds (v4 folder). Each section's pieces sit at the same relative
   spot as in its design, so nothing is stretched on any screen. */
main { position: relative; background: var(--paper); }
.bg-group { position: relative; }
.bg-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.bg-art img { position: absolute; height: auto; max-width: none; }
main section { position: relative; z-index: 1; }
.hero__content { position: relative; z-index: 1; }
.hero__scroll { z-index: 1; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; color: var(--ink); }
p { margin: 0; }

.container { width: min(1080px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(720px, 100% - 32px); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #8a7562;
}
html[lang="ko"] .eyebrow { letter-spacing: .15em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 2.4rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 400 13px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); }
html[lang="tl"] .btn { letter-spacing: .1em; padding-inline: 1.8rem; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--block { width: 100%; }

.link {
  display: inline-block;
  margin-top: .9rem;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link:hover { color: var(--terracotta); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(128, 106, 86, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--header-text);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 6px 18px -10px rgba(60, 45, 35, .5); }
.nav__brand {
  font-family: var(--script);
  font-size: 28px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand span {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: .75em;
  color: var(--blush);
  margin: 0 .1em;
}
.nav__links { display: flex; gap: clamp(.9rem, 2.2vw, 2rem); }
.nav__links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--header-text);
  padding: .4rem 0;
  border-bottom: 1px solid transparent;
}
.nav__links a:hover, .nav__links a.is-active { border-color: var(--blush); color: #fff; }
.nav__right { display: flex; align-items: center; gap: .75rem; }

.lang {
  display: flex;
  border: 1px solid rgba(243, 235, 225, .35);
  border-radius: 999px;
  padding: 3px;
}
.lang__btn {
  border: 0;
  background: transparent;
  color: var(--header-text);
  font: 400 12px/1 var(--sans);
  letter-spacing: .08em;
  padding: .45rem .75rem;
  border-radius: 999px;
  cursor: pointer;
}
.lang__short { display: none; }
@media (max-width: 520px) {
  .lang__full { display: none; }
  .lang__short { display: inline; }
}
.lang__btn[aria-pressed="true"] { background: var(--champagne); color: var(--ink); }
.lang__btn:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 1px; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border: 0; background: transparent;
  cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 8px;
}
.nav__toggle span { height: 1.5px; background: var(--header-text); transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 1.5rem) 16px 6.5rem;
  overflow: hidden;
  isolation: isolate;
}
/* Soft glow behind the text so it stays readable over the leaves */
.hero__veil { display: none; }
/* Frosted card: white enough to read, clear enough to see the leaves behind it */
.hero__content {
  width: min(560px, 100%);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  background: rgba(255, 253, 250, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  box-shadow: 0 24px 60px -30px rgba(94, 75, 60, .35);
}
.hero__content .eyebrow { margin-top: 0; }
@media (min-width: 861px) {
  .hero { place-items: center end; padding-right: clamp(2rem, 8vw, 9rem); }
}
.hero__names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 1;
  color: var(--ink);
  margin: 1.2rem 0 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__amp {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
  font-size: .5em;
  line-height: 1;
  margin: .1em 0 .05em;
}
.hero__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(18px, 3.2vw, 22px);
  letter-spacing: .22em;
  white-space: nowrap;
  text-transform: none;
  color: var(--ink);
}
html[lang="ko"] .hero__date { letter-spacing: .15em; }
.hero__rule { width: 40px; height: 1px; background: var(--ink); opacity: .5; }
.hero__place {
  margin-top: .6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 3vw, 21px);
  color: var(--text);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(.6rem, 3vw, 1.6rem);
  margin: 1.8rem 0 2rem;
}
.countdown > div {
  min-width: 68px;
  padding: .8rem .4rem .6rem;
  border: 1px solid rgba(94,75,60,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
}
.countdown b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.countdown small {
  display: block;
  margin-top: .35rem;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown.is-done { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); }

.hero__scroll {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: .4rem .8rem;
  color: var(--ink);
  text-decoration: none;
}
.hero__mouse {
  position: relative;
  width: 30px; height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: rgba(255, 253, 250, .6);
}
.hero__mouse::after {
  content: "";
  position: absolute;
  top: 9px; left: 50%;
  width: 4px; height: 10px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--terracotta);
  animation: scroll 1.8s infinite;
}
.hero__scroll-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 8px #fffdfa, 0 0 3px #fffdfa;
}
html[lang="ko"] .hero__scroll-label { letter-spacing: .1em; font-size: 12px; }
.hero__scroll:hover .hero__mouse { border-color: var(--terracotta); }
.hero__scroll:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 2px; border-radius: 8px; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; position: relative; }
.section--tint { background: transparent; }
.section--blush { background: transparent; }
/* A soft halo (no box) keeps titles readable where the background art passes behind */
.section__head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.section__head .eyebrow,
.section__head .section__title,
.section__head .lead {
  text-shadow: 0 0 6px #fffdfa, 0 0 12px #fffdfa, 0 0 2px #fffdfa;
}
.section__title {
  margin-top: .6rem;
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 500;
  line-height: 1.15;
}
.leaf-divider {
  width: 140px; height: 24px;
  margin: 1.2rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 24' fill='none'%3E%3Cpath d='M4 12h50M86 12h50' stroke='%23d9cbbb'/%3E%3Cpath d='M70 12c-6-7-14-8-16-8 2 6 8 9 16 8z' fill='%237fa395' opacity='.8'/%3E%3Cpath d='M70 12c6-7 14-8 16-8-2 6-8 9-16 8z' fill='%237fa395' opacity='.55'/%3E%3Ccircle cx='70' cy='14' r='2.6' fill='%23e88b66'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lead {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 22px);
  line-height: 1.6;
  color: var(--text);
  max-width: 600px;
  margin-inline: auto;
}
.section__head .lead { margin-top: 1.4rem; }
.lead b { font-weight: 600; color: var(--ink); }

/* ---------- Frosted panel (whole section in one see-through box) ---------- */
.panel {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
  background: rgba(255, 253, 250, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  box-shadow: 0 24px 60px -34px rgba(94, 75, 60, .35);
}

/* ---------- Gallery ---------- */
:root { --rose-soft: #f9c6d3; --wisteria-soft: #dcc9e6; }
.gallery { max-width: 1000px; margin-inline: auto; }
.gallery__album {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--muted);
  letter-spacing: .07em;
  margin: 0 0 1.4rem;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(160px, 20vw, 240px);
  gap: clamp(.4rem, 1vw, .75rem);
}
.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery__item:hover img,
.gallery__item:focus img { transform: scale(1.05); }
.gallery__item:focus { outline: 2px solid var(--sage); outline-offset: 2px; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--hidden { display: none; }

/* ---------- Next montage button ---------- */
.gallery__more-btn {
  display: block;
  margin: 2rem auto 0;
  padding: .6rem 1.8rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2em;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.gallery__more-btn:hover,
.gallery__more-btn:focus-visible { border-color: var(--sage); color: var(--ink); }
.gallery__more-btn[hidden] { display: none !important; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,8,6,.93);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  display: block;
}
.lightbox__close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox__close:hover { background: rgba(255,255,255,.26); }
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 32px;
  width: 48px; height: 80px;
  cursor: pointer; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.22); }
.lightbox__prev { left: clamp(8px, 2vw, 24px); }
.lightbox__next { right: clamp(8px, 2vw, 24px); }
.lightbox__count {
  position: absolute; bottom: 16px;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.60);
  font-family: var(--sans); font-size: 12px; letter-spacing: .06em;
}

/* "Coming soon" card (Gallery and RSVP) */
.soon {
  text-align: center;
  padding: clamp(1.8rem, 5vw, 2.6rem) clamp(1.4rem, 5vw, 2.4rem);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 20px 50px -30px rgba(94, 75, 60, .4);
}
.soon__icon {
  width: 46px; height: 46px;
  margin: 0 auto .8rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.soon__icon .fill { fill: var(--terracotta); stroke: none; }
.soon__title {
  font-family: var(--script);
  font-size: clamp(40px, 6vw, 52px);
  line-height: 1.15;
  color: var(--terracotta);
}
html[lang="ko"] .soon__title { font-family: var(--serif); font-size: clamp(28px, 4vw, 34px); }
.soon__text {
  margin-top: .5rem;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
}
.soon--card { max-width: 560px; margin-inline: auto; }

/* ---------- Detail cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
}
.card {
  text-align: center;
  padding: 2.4rem 1.5rem 2.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card__icon {
  width: 44px; height: 44px;
  margin: 0 auto 1rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__icon .fill { fill: var(--terracotta); stroke: none; }
.card__title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
html[lang="ko"] .card__title { letter-spacing: .08em; }
.card__main { font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--ink); }
.card__sub { margin-top: .3rem; font-size: 14px; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { margin-top: clamp(3rem, 7vw, 4.5rem); text-align: center; }
.timeline__title {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 1.8rem;
}
.timeline ol {
  list-style: none;
  margin: 0 auto; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  max-width: 900px;
}
.timeline ol::before {
  content: "";
  position: absolute;
  top: 7px; left: 10%; right: 10%;
  height: 1px;
  background: var(--line);
}
.timeline li { position: relative; padding-top: 1.8rem; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 15px; height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: var(--c, var(--sage));
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline li:nth-child(1) { --c: var(--terracotta); }
.timeline li:nth-child(2) { --c: var(--rose); }
.timeline li:nth-child(3) { --c: var(--wisteria); }
.timeline li:nth-child(4) { --c: var(--periwinkle); }
.timeline li:nth-child(5) { --c: var(--sage); }
.timeline time {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.timeline span { font-size: 14px; }

/* ---------- Important reminders ---------- */
.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.rule {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  background: #fff;
  border: 1px solid #f5cfc8;
  border-top: 3px solid var(--terracotta);
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px;
  line-height: 1.65;
}
.rule__num {
  position: absolute;
  top: .9rem; left: 1.1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--terracotta);
}
.rule__icon {
  width: 52px; height: 52px;
  margin: 0 auto .9rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.rule__icon .txt {
  fill: var(--ink);
  stroke: none;
  font: 700 12px/1 var(--sans);
  letter-spacing: .02em;
}
.rule__icon--wide { width: 92px; }
.rule__icon .txt--bang { font: 800 8.5px/1 var(--sans); fill: #fff; letter-spacing: .03em; }
.rule__icon .dot { fill: var(--ink); stroke: none; }
.rule__icon .pop { stroke: var(--terracotta); stroke-width: 1.6; }
.rule__icon .flag { fill: var(--terracotta); stroke: var(--terracotta); }
.rule__icon .slash { stroke: var(--terracotta); stroke-width: 2.2; }
.rule__title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: .5rem;
}
.rule__joke {
  margin-top: .4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--terracotta);
}
.rule--joke .rule__icon { transform: rotate(-6deg); transition: transform .3s; }
.rule--joke:hover .rule__icon { transform: rotate(-14deg) scale(1.08); }

/* ---------- Dress code ---------- */
.palette {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  text-align: center;
}
.palette span {
  display: block;
  width: 100%;
  max-width: 76px;
  aspect-ratio: 1;
  margin: 0 auto .6rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 6px 14px -8px var(--c);
}
.palette b { font-weight: 400; font-size: 13px; letter-spacing: .05em; }

.dress-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 980px;
  margin-inline: auto;
  gap: 1.25rem;
}
.dress-notes > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.dress-notes h3 { font-family: var(--serif); font-size: 22px; margin-bottom: .4rem; }
.dress-notes p { font-size: 15px; }
/* Third card: colors to avoid, with a crossed-out swatch per color */
.dress-notes > .dress-notes__avoid {
  background: #fff4f0;
  border-color: #efd3cb;
  border-top: 3px solid var(--terracotta);
}
.note {
  list-style: none;
  margin: .9rem 0 0;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}
.note li { display: flex; align-items: center; gap: .75rem; }
.note li + li { margin-top: .7rem; }
.note li::before {
  content: "";
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid #d9cbbb;
  background:
    linear-gradient(135deg, transparent 46%, var(--terracotta) 46%, var(--terracotta) 54%, transparent 54%),
    var(--swatch, #fff);
}
.note li:nth-child(1)::before { --swatch: #fffdf7; }
.note li:nth-child(2)::before { --swatch: #1f1b18; border-color: #1f1b18; }

/* ---------- Gifts ---------- */
.gift {
  text-align: center;
  background: #fdeef0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 6vw, 3.5rem);
  font-size: 16px;
}
.gift__icon {
  width: 48px; height: 48px;
  margin: 0 auto 1.2rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gift__icon .fill { fill: var(--terracotta); stroke: none; }
.gift__lead {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 25px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.gift__note {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

/* ---------- Attendance confirmation (RSVP) ---------- */
.rsvp { max-width: 620px; margin-inline: auto; }

/* Step 1: find by full name */
.rsvp-find {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 5vw, 2.4rem);
  box-shadow: 0 20px 50px -34px rgba(94, 75, 60, .4);
}
.rsvp-find__label {
  display: block;
  margin-bottom: .8rem;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
}
.rsvp-find__row { display: flex; gap: .6rem; }
.rsvp-find__row input {
  flex: 1;
  min-width: 0;
  padding: .85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: italic 600 19px/1.3 "Cormorant Garamond", var(--serif);
  transition: border-color .2s, box-shadow .2s;
}
.rsvp-find__row input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(127,163,149,.2); }
.rsvp-find__row .btn { flex: none; padding-inline: 1.6rem; }

.rsvp-status {
  min-height: 1.4em;
  margin-top: .9rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
}
.rsvp-status:empty { margin-top: 0; min-height: 0; }
.rsvp-status.is-error { color: #b4533b; font-style: normal; font-family: var(--sans); font-size: 14px; }
.rsvp-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: .55rem;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--terracotta);
  animation: rsvpPulse 1s ease-in-out infinite;
}
@keyframes rsvpPulse { 50% { opacity: .25; transform: scale(.7); } }

/* Shared card */
.rsvp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 20px 50px -34px rgba(94, 75, 60, .4);
}
.rsvp-body { padding: clamp(1.5rem, 5vw, 2.4rem); }
.rsvp-card__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--terracotta);
}
html[lang="ko"] .rsvp-card__title { letter-spacing: .1em; font-size: 13px; }
.rsvp-card__hint { margin-top: .35rem; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.rsvp-no-swap { margin-top: .75rem; font-size: 12px; letter-spacing: .03em; color: var(--muted); text-align: center; }
.rsvp-note {
  margin-top: 1rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: #fbf3e4;
  font-size: 14px;
  color: var(--text);
}

/* Step 2a: more than one invitation with that name */
.rsvp-pick { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.rsvp-pick__btn {
  width: 100%;
  text-align: left;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.rsvp-pick__btn:hover { border-color: var(--terracotta); background: #fdf3ee; }
.rsvp-pick__label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rsvp-pick__names { display: block; margin-top: .2rem; font-family: var(--serif); font-size: 19px; }

/* Step 2b: reserved seats + one switch per guest */
.rsvp-seats {
  padding: clamp(1.6rem, 5vw, 2.2rem) 1rem;
  text-align: center;
  background: var(--sage);
  color: #fff;
}
.rsvp-seats__eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
html[lang="ko"] .rsvp-seats__eyebrow { letter-spacing: .12em; font-size: 12px; }
.rsvp-seats__num { font-family: "Cormorant Garamond", serif; font-size: 64px; line-height: 1.05; color: #fff; }
.rsvp-seats__label { font-family: var(--serif); font-style: italic; font-size: 17px; opacity: .9; }

.rsvp-guests { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; }
.rsvp-guest { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.rsvp-guest__row { display: flex; align-items: center; gap: .8rem; }
.rsvp-guest__num { width: 1.6rem; flex: none; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 17px; color: var(--muted); }
.rsvp-guest__name { flex: 1; min-width: 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); }
html[lang="ko"] .rsvp-guest__name { font-style: normal; font-size: 19px; }
.rsvp-guest.is-declined .rsvp-guest__name { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(154,136,120,.5); }
.rsvp-diet[hidden] { display: none; }

/* Attend buttons */
.rsvp-btns { flex: none; display: flex; gap: .4rem; }
.rsvp-btn {
  padding: .4rem .85rem;
  border-radius: 40px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.rsvp-btn--yes.is-active  { background: var(--sage); border-color: var(--sage); color: #fff; }
.rsvp-btn--no.is-active   { background: var(--line); border-color: var(--line); color: var(--ink); }
.rsvp-btn:focus-visible   { box-shadow: 0 0 0 3px rgba(145,169,222,.5); outline: none; }

.rsvp-msg__label { display: block; margin-bottom: .45rem; font-size: 13px; color: var(--ink); }
.rsvp-msg__label small { color: var(--muted); }
.rsvp-msg {
  display: block;
  width: 100%;
  margin-bottom: 1.3rem;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 var(--sans);
  resize: vertical;
}
.rsvp-msg:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(127,163,149,.2); }

.rsvp-body .btn { background: var(--sage); border-color: var(--sage); }
.rsvp-body .btn:hover { background: #6a8f82; border-color: #6a8f82; }

.rsvp-back {
  display: block;
  margin: .9rem auto 0;
  padding: .3rem .5rem;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rsvp-back:hover { color: var(--terracotta); }

/* Step 3: thank you */
.rsvp-done { text-align: center; outline: none; }
.rsvp-done__msg { margin-top: .4rem; font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); }
.rsvp-summary { list-style: none; margin: 1.3rem auto 0; padding: 0; max-width: 380px; text-align: left; }
.rsvp-summary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.rsvp-summary li span:first-child { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); }
.rsvp-summary .is-yes span:last-child { color: #5f8a79; font-weight: 700; }
.rsvp-summary .is-no span:last-child { color: var(--muted); }
.rsvp-done .rsvp-note { text-align: center; }

.thanks__script { font-family: var(--script); font-size: 56px; line-height: 1.2; color: var(--terracotta); }
html[lang="ko"] .thanks__script { font-family: var(--serif); font-size: 36px; }

@media (max-width: 560px) {
  .rsvp-find__row { flex-direction: column; }
  .rsvp-find__row .btn { width: 100%; }
  .rsvp-guest__row { flex-wrap: wrap; }
  .rsvp-guest__name { flex-basis: calc(100% - 2.4rem); }
  .rsvp-btns { margin-left: 2.4rem; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--sage-light); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--sage);
  border-bottom: 1.5px solid var(--sage);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: -2px; border-radius: var(--radius); }
.faq details p { padding: 0 1.4rem 1.3rem; font-size: 15.5px; }

/* ---------- Footer (same brown as the header) ---------- */
.footer {
  background: var(--header);
  color: var(--header-text);
  padding: clamp(3.5rem, 8vw, 5rem) 0 2rem;
}
.footer__inner {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

/* Left: map */
.footer__map {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(243, 235, 225, .12);
  box-shadow: 0 18px 40px -24px rgba(40, 30, 22, .6);
}
.footer__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Right: details */
.footer__info { display: flex; flex-direction: column; justify-content: center; }
.footer__names {
  font-family: var(--script);
  font-size: clamp(40px, 5vw, 54px);
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}
.footer__names span {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: .6em;
  color: var(--blush);
}
.footer__date {
  margin-top: .3rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  letter-spacing: .3em;
}
.footer__block {
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(243, 235, 225, .25);
}
.footer__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--champagne);
}
html[lang="ko"] .footer__label { letter-spacing: .12em; font-size: 12px; }
.footer__venue {
  margin-top: .5rem;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 34px);
  line-height: 1.15;
  color: #fff;
}
.footer__address { margin-top: .3rem; font-style: normal; font-size: 15px; }
.footer__cta {
  display: inline-block;
  margin-top: 1.3rem;
  padding: .85rem 2rem;
  border-radius: 999px;
  background: var(--champagne);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}
html[lang="ko"] .footer__cta { letter-spacing: .08em; font-size: 13px; }
.footer__cta:hover { background: #fff; }
.footer__cta:focus-visible,
.footer__links a:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

/* Shortcut buttons: 4 + 3 section links, then "Back to top" across the full width.
   (12-column grid so both link rows fill the width evenly.) */
.footer__links {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .55rem;
}
.footer__links a { grid-column: span 3; }
.footer__links a:nth-child(n+5) { grid-column: span 4; }
.footer__links a.footer__top { grid-column: 1 / -1; }
.footer__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .45rem .35rem;
  border: 1px solid rgba(243, 235, 225, .35);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--header-text);
  transition: background .2s, border-color .2s, color .2s;
}
html[lang="ko"] .footer__links a { letter-spacing: .02em; font-size: 12.5px; }
html[lang="tl"] .footer__links a { letter-spacing: .05em; }
.footer__links a:hover { background: rgba(243, 235, 225, .12); border-color: var(--champagne); color: #fff; }
/* "Back to top" is the last button, in champagne to set it apart */
.footer__links .footer__top { border-color: rgba(253, 230, 173, .55); color: var(--champagne); }

.footer__made {
  width: min(1080px, 100% - 32px);
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 235, 225, .2);
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .75;
}

@media (max-width: 820px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__map { min-height: 280px; }
  .footer__info { text-align: center; align-items: center; }
  .footer__block { width: 100%; }
  .footer__links { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 480px) {
  /* Phones: two per row, FAQ and "Back to top" each across the full width */
  .footer__links a,
  .footer__links a:nth-child(n+5) { grid-column: span 6; }
  .footer__links a:nth-child(7),
  .footer__links a.footer__top { grid-column: 1 / -1; }
}

/* ---------- Section layering ---------- */
.section > .container { position: relative; z-index: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__mouse::after { animation: none; }
}

/* ---------- Responsive ---------- */
/* Menu collapses to ☰ below 1100px so all links fit */
@media (max-width: 1100px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: .5rem 16px 1.25rem;
    background: var(--header);
    box-shadow: 0 10px 20px -12px rgba(60,45,35,.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid rgba(243,235,225,.18); }
}

@media (max-width: 860px) {
  .hero { align-items: end; padding-bottom: 7.5rem; }


  .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .rules { grid-template-columns: 1fr 1fr; }

  .timeline ol { grid-template-columns: 1fr; max-width: 320px; text-align: left; gap: 1.4rem; }
  .timeline ol::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 1px; height: auto; }
  .timeline li { padding: 0 0 0 2.2rem; }
  .timeline li::before { left: 0; top: 6px; margin-left: 0; }

  .palette { grid-template-columns: repeat(3, 1fr); row-gap: 1.5rem; }
  .dress-notes { grid-template-columns: 1fr 1fr; }
  .dress-notes__avoid { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(140px, 38vw, 175px);
    gap: .5rem;
  }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__grid > figure:nth-child(1),
  .gallery__grid > figure:nth-child(3),
  .gallery__grid > figure:nth-child(13) { grid-row: span 2; }
  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
  .hero__date { gap: .6rem; font-size: 16px; letter-spacing: .18em; white-space: nowrap; }
  .hero__rule { width: 22px; }
  .dress-notes { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .countdown > div { min-width: 0; flex: 1; max-width: 76px; }
  .nav__brand { font-size: 22px; }
  .lang__btn { padding: .4rem .55rem; }
  .faq summary { font-size: 18px; padding: 1rem 1.1rem; }
  .faq details p { padding: 0 1.1rem 1.1rem; }
}
