/* White editorial invitation: one type scale, quiet rules, generous photo space. */
:root {
  --paper: #fff;
  --mist: #f7f7f5;
  --ink: #30322f;
  --muted: #6e716a;
  --accent: #54594f;
  --line: #e2e4de;
  --serif: "Noto Serif KR", serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --gutter: clamp(24px, 7vw, 36px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #eceeeb;
  color: var(--ink);
  font: 400 1rem/1.9 var(--serif);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button, a, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
img { display: block; max-width: 100%; }
.page-shell {
  width: min(100%, 480px);
  margin-inline: auto;
  background: var(--paper);
  box-shadow: 0 12px 80px #252d2010;
}
main { overflow: clip; }

/* Cover: a paper-like frame, with names and date outside the portrait. */
.hero {
  position: relative;
  padding: 52px var(--gutter) 32px;
  text-align: center;
}
.eyebrow, .section-label {
  margin: 0;
  color: var(--muted);
  font: 500 .75rem/1.6 var(--sans);
  letter-spacing: .2em;
}
.hero__title {
  margin: 13px 0 18px;
  font: 400 clamp(2.5rem, 10vw, 3.25rem)/1.1 var(--display);
  letter-spacing: .075em;
}
.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 30px;
  font: 400 1.375rem/1.7 var(--serif);
  letter-spacing: .13em;
}
.hero h1 i {
  color: #81877a;
  font: italic 400 1.625rem/1 var(--display);
  letter-spacing: 0;
}
.hero__portrait {
  position: relative;
  width: 100%;
  padding: 9px;
  border: 1px solid #cfd4ca;
  border-radius: 50% 50% 2px 2px / 34% 34% 2px 2px;
}
.hero__image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 50% 50% 1px 1px / 34% 34% 1px 1px;
  filter: saturate(.82);
}
.hero__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 27px 0 0;
}
.hero__date-main { font: 500 1.5rem/1.25 var(--display); letter-spacing: .1em; }
.hero__date-sub { color: var(--muted); font: 400 .875rem/1.6 var(--sans); letter-spacing: .08em; }
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 29px;
  color: var(--muted);
  font: 400 .75rem/1.5 var(--sans);
  letter-spacing: .16em;
}
.scroll-cue::before, .scroll-cue::after { content: ""; width: 24px; height: 1px; background: var(--line); }

/* Sections use a shared rhythm and clearly differentiated information levels. */
.section { padding: 80px var(--gutter); text-align: center; }
.section-label { margin-bottom: 17px; }
.section h2, .closing h2 {
  margin: 0;
  font: 400 1.5rem/1.8 var(--serif);
  letter-spacing: -.035em;
}
.intro { padding-top: 62px; }
.botanical {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  color: #858d7c;
  font: 400 1.75rem/1 var(--display);
}
.botanical::before, .botanical::after { content: ""; width: 35px; height: 1px; background: var(--line); }
.prose { margin: 0; color: #55594f; font-size: 1rem; line-height: 2.25; letter-spacing: -.045em; }
.prose--small { font-size: .9375rem; line-height: 2; }
.family { margin-top: 38px; padding-top: 23px; border-top: 1px solid var(--line); }
.family p {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 0;
  margin: 10px 0;
  font-size: .9375rem;
}
.family small { color: var(--muted); font-size: .8125rem; }
.family strong { font-size: 1rem; font-weight: 500; }

.date-section { background: var(--mist); border-block: 1px solid #eff0ec; }
.date-section h2 { font: 500 2.375rem/1.2 var(--display); letter-spacing: .045em; }
.muted { color: var(--muted); font: 400 .9375rem/1.85 var(--sans); }
.date-section > .muted { margin: 14px 0 0; }
.calendar { max-width: 350px; margin: 32px auto 0; padding: 22px 0 18px; border-block: 1px solid #dfe3d8; }
.calendar__week, .calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar__week span { padding-bottom: 15px; color: var(--muted); font: 500 .75rem/1.5 var(--sans); }
.calendar__days span { position: relative; min-height: 44px; display: grid; place-items: center; font: 400 .9375rem/1.5 var(--sans); }
.calendar__days span:nth-child(7n + 1) { color: #997166; }
.calendar__days .wedding-day { isolation: isolate; color: #fff; font-weight: 600; }
.calendar__days .wedding-day::before { content: ""; position: absolute; z-index: -1; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); }
.calendar__days .wedding-day::after { content: "♥"; position: absolute; top: -5px; right: 1px; color: var(--accent); font-size: .75rem; }
.countdown { margin: 25px 0 20px; font: 400 .875rem/1.9 var(--sans); }
.countdown strong { color: var(--accent); font-weight: 600; }
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #cdd2c7;
  border-radius: 3px;
  color: var(--ink);
  background: transparent;
  font: 500 .875rem/1.6 var(--sans);
}

/* Nine square previews use three columns and open the existing 21-photo viewer. */
.gallery-section { padding-inline: 20px; }
.gallery-section h2 { margin-bottom: 32px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery__item {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--mist);
  cursor: pointer;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.85); }

.location { background: var(--mist); border-block: 1px solid #eff0ec; }
.venue-card { margin: 25px 0; }
.venue-card p { margin: 12px 0 0; color: #55594f; font-size: .9375rem; line-height: 1.9; }
.venue-card .venue-card__name { color: var(--ink); font-size: 1.0625rem; font-weight: 500; }
.venue-card .muted { font: 400 .875rem/1.6 var(--sans); color: var(--muted); }
.venue-map { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.venue-map img { width: 100%; height: auto; }
.map-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; gap: 8px; }
.map-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 3px;
  border: 1px solid #d8ddd1;
  border-radius: 3px;
  background: var(--paper);
  font: 500 .875rem/1.5 var(--sans);
  text-decoration: none;
}
.transport { margin-top: 24px; text-align: left; }
.transport article { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.transport article:last-child { padding-bottom: 0; border-bottom: 0; }
.transport h3 { margin: 0; font: 600 .875rem/1.9 var(--sans); }
.transport p { margin: 0; color: #5c6156; font: 400 .875rem/1.95 var(--sans); overflow-wrap: anywhere; }

.contact > .prose { margin-top: 20px; }
.accordions { margin: 30px 0 24px; text-align: left; border-top: 1px solid var(--line); }
.accordions details { border-bottom: 1px solid var(--line); }
.accordions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 17px 0;
  list-style: none;
  font: 500 .9375rem/1.7 var(--sans);
  cursor: pointer;
}
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary span { color: var(--muted); font-size: 1.25rem; transition: transform .2s ease; }
.accordions details[open] summary span { transform: rotate(45deg); }
.account { padding: 0 0 22px; }
.account p { margin: 0 0 13px; font-size: .9375rem; }
/* Keep bank account numbers as plain text, including browser-inserted links. */
.account-number, .account-number a {
  color: inherit !important;
  text-decoration: none !important;
}
.account-number a { pointer-events: none; cursor: text; }
.account small { margin-left: 9px; color: var(--muted); font: 400 .875rem/1.5 var(--sans); }
.copy-button { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--mist); font: 500 .875rem/1.6 var(--sans); }
.call-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.call-links a { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 5px; border: 1px solid #cdd2c7; border-radius: 3px; font: 500 .875rem/1.6 var(--sans); text-decoration: none; }

.closing { position: relative; margin: 0 20px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 2px; color: #fff; background: var(--ink); }
.closing img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, #161b12b8); }
.closing div { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 30px; text-align: center; }
.closing p { margin: 0 0 10px; font-size: .875rem; letter-spacing: .025em; }
.closing h2 { font-size: 1.375rem; line-height: 1.9; text-shadow: 0 1px 10px #0003; }
footer { padding: 52px var(--gutter) max(35px, env(safe-area-inset-bottom)); text-align: center; }
footer p { margin: 0; font: 400 1.375rem/1.8 var(--serif); letter-spacing: .08em; }
footer i { margin: 0 8px; color: var(--muted); font: italic 400 1.5rem/1 var(--display); }
footer button { width: 100%; min-height: 52px; margin: 24px 0; padding: 14px 20px; border: 1px solid var(--accent); border-radius: 3px; color: #fff; background: var(--accent); font: 500 .9375rem/1.6 var(--sans); }
footer small { display: block; color: var(--muted); font: 400 .75rem/1.6 var(--sans); }

/* Photo stays within the viewer; controls have dedicated space and safe areas. */
.lightbox {
  touch-action: pan-y;
  width: 100%;
  max-width: 560px;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  margin: auto;
  padding: 0;
  border: 0;
  color: #fff;
  background: #191b18;
  overflow: hidden;
}
.lightbox::backdrop { background: #10120fe8; }
.lightbox img { width: 100%; height: 100%; padding: calc(64px + env(safe-area-inset-top)) 12px calc(92px + env(safe-area-inset-bottom)); object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #ffffff30; border-radius: 50%; background: #ffffff0d; color: #fff; font: 300 2rem/1 var(--sans); }
.lightbox__close { top: calc(12px + env(safe-area-inset-top)); right: 16px; }
.lightbox__nav { bottom: calc(20px + env(safe-area-inset-bottom)); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox > p { position: absolute; left: 88px; right: 88px; bottom: calc(32px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font: 400 .875rem/1.7 var(--sans); letter-spacing: .14em; }
.lightbox button:focus-visible { outline-color: #fff; }
.toast { position: fixed; z-index: 30; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; width: max-content; max-width: calc(100% - 40px); padding: 13px 20px; border-radius: 4px; background: #30362dee; color: #fff; font: 400 .875rem/1.7 var(--sans); text-align: center; overflow-wrap: anywhere; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { animation: appear .7s ease both; }
@keyframes appear { from { opacity: .4; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
  .text-button:hover, .copy-button:hover, .map-links a:hover, .call-links a:hover { background: #eef0e9; }
  footer button:hover { background: #41473c; }
}
@media (max-width: 359px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 40px; }
  .hero h1 { gap: 14px; }
  .section { padding-block: 64px; }
  .section h2 { font-size: 1.375rem; }
  .date-section h2 { font-size: 2.125rem; }
  .gallery-section { padding-inline: 14px; }
  .gallery { gap: 8px; }
  .family p { column-gap: 7px; }
  .transport article { gap: 12px; }
  .closing { margin-inline: 14px; }
}
@media (min-width: 700px) {
  body { padding-block: 40px; }
  .page-shell { border: 1px solid #e0e3dc; }
  .hero { padding-top: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
