@font-face {
  font-family: "Cormorant";
  src: url("assets/cormorant-garamond.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --ink: #363a32;
  --muted: #74766c;
  --olive: #59634f;
  --line: #dfdfd4;
  --serif: "Cormorant", "AppleMyungjo", "Batang", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: #e9e7e0; color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.modal-open { position: fixed; width: 100%; overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.65; letter-spacing: -.04em; word-break: keep-all; }
h3 { font-size: 16px; font-weight: 500; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: -100px; left: 16px; padding: 12px 20px; background: var(--paper); }
.skip-link:focus { top: 16px; }
.desktop-note { display: none; }
.invitation-page { max-width: 480px; margin: 0 auto; padding-bottom: 78px; background: var(--paper); box-shadow: 0 0 70px #48432e09; overflow: hidden; }
.hero { position: relative; isolation: isolate; height: 780px; height: min(920px, calc(100svh - 70px)); min-height: 600px; background: #4a493b; color: #fffef9; }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #10180f30 0%, transparent 38%, #131b1659 67%, #121a15a6 100%); }
.hero-topline { display: flex; justify-content: space-between; gap: 16px; padding: max(30px, env(safe-area-inset-top)) 27px 0; font-size: 10px; letter-spacing: .16em; }
.hero-copy { position: absolute; left: 16px; right: 16px; bottom: 25px; text-align: center; }
.hero-pretitle { font-family: var(--serif); font-size: clamp(37px, 10vw, 49px); line-height: 1; letter-spacing: -.025em; }
.hero h1 { margin: -3px 0 24px; font-family: var(--serif); font-weight: 400; font-size: clamp(88px, 24vw, 122px); line-height: .98; letter-spacing: -.05em; }
.hero-subtitle { font-family: var(--serif); font-size: 20px; line-height: 1.05; letter-spacing: .01em; }
.scroll-cue { display: grid; width: 48px; height: 48px; place-items: center; margin: 26px auto 0; }
.scroll-cue span { display: block; width: 1px; height: 30px; background: #fff9; position: relative; }
.scroll-cue span::after { content: ""; width: 6px; height: 6px; border-right: 1px solid #fff9; border-bottom: 1px solid #fff9; position: absolute; bottom: 0; left: -3px; transform: rotate(45deg); }
.name-strip { display: flex; justify-content: center; align-items: center; gap: 25px; min-height: 110px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 19px; letter-spacing: .16em; }
.ampersand { color: #989986; font-size: 26px; font-family: "Cormorant", serif; }
.section { padding: 82px 32px; text-align: center; }
.eyebrow { margin-bottom: 17px; font-size: 9px; font-weight: 500; letter-spacing: .23em; color: var(--olive); line-height: 1.6; }
.fine-rule { width: 1px; height: 35px; background: #bdc0b1; margin: 31px auto; }
.poem { margin-bottom: 22px; font-family: var(--serif); font-size: 14px; line-height: 2.2; word-break: keep-all; color: #64675c; }
.signature { display: flex; gap: 17px; justify-content: center; align-items: center; margin-top: 42px; font-family: var(--serif); font-size: 17px; }
.signature-and { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.date-section { background: #eaece3; padding-top: 58px; padding-bottom: 58px; }
.date-section .eyebrow { margin-bottom: 0; }
h2.date-year { font-family: "Cormorant", serif; font-size: 94px; letter-spacing: -.045em; line-height: 1.2; }
.date-tagline { font-family: "Cormorant", serif; font-size: 23px; color: #737b67; }
.date-divider { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 24px auto; color: #79826f; }
.date-divider > span { width: 43px; height: 1px; background: #bbc1af; }
.date-divider .icon { width: 12px; height: 12px; }
.event-date { font-size: 14px; word-break: keep-all; }
.event-venue { margin-top: 6px; color: #6f7666; font-size: 12px; word-break: keep-all; }
.date-section .text-link { margin-top: 20px; }
.section-description { color: var(--muted); font-size: 13px; line-height: 1.9; margin-top: 14px; word-break: keep-all; }
.gallery-section { padding-left: 22px; padding-right: 22px; padding-bottom: 68px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 33px; }
.gallery-item { position: relative; display: block; padding: 0; overflow: hidden; background: #e4e2d7; aspect-ratio: 3 / 4; }
.gallery-wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-wide img { object-position: center 75%; }
.photo-expand { position: absolute; bottom: 8px; right: 12px; font-size: 23px; color: white; text-shadow: 0 1px 4px #0009; }
.sample-caption { font-size: 10px; color: var(--muted); margin-top: 17px; }
.location-section { border-top: 1px solid var(--line); }
.location-card { margin-top: 32px; background: #efeee7; padding: 30px 17px; }
.venue-mark { width: 48px; height: 48px; border: 1px solid #c0c3b3; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; color: #7c846e; }
.location-card p { font-size: 12px; color: var(--muted); margin-top: 9px; word-break: keep-all; }
.location-card .button { margin-top: 24px; }
.travel-info { padding: 25px 0 0; display: flex; gap: 24px; text-align: left; }
.travel-info > span { flex-shrink: 0; font-size: 12px; font-weight: 500; }
.travel-info p { font-size: 12px; color: var(--muted); word-break: keep-all; white-space: pre-line; }
.rsvp-section { background: #eeeee5; padding-top: 62px; padding-bottom: 58px; }
.rsvp-section .button { margin: 28px auto 0; max-width: 310px; }
.small-note { font-size: 10px; color: var(--muted); margin-top: 14px; }
.button { display: flex; justify-content: center; align-items: center; gap: 16px; width: 100%; padding: 15px 20px; min-height: 53px; border-radius: 3px; font-size: 13px; font-weight: 500; line-height: 1.6; transition: background .2s ease; }
.button-dark { background: var(--olive); color: #fffef8; }
.button-dark:focus-visible { outline-offset: 3px; }
.button-outline { border: 1px solid #cacdbe; background: transparent; color: var(--olive); }
.closing { position: relative; height: 370px; color: #fffef7; isolation: isolate; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #1c221936, #1c221900 55%, #1c22197a); }
.closing img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; z-index: -2; }
.closing-copy { padding: 34px 12px 0; text-align: center; }
.closing-copy p { font-family: var(--serif); font-size: 38px; line-height: 1.4; }
.closing-copy span { font-size: 11px; letter-spacing: .02em; }
.footer { text-align: center; padding: 38px 20px 28px; }
.footer > p { font-size: 10px; letter-spacing: .18em; color: #7a7c6e; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 4px; background: none; font-size: 12px; color: var(--muted); min-height: 44px; }
.text-link .icon { width: 15px; height: 15px; }
.footer .text-link { margin-top: 13px; }
.footer-year { display: block; margin-top: 13px; font-family: var(--serif); color: #9c9e90; font-size: 19px; }
.bottom-bar { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px); padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: #f8f6f1f5; backdrop-filter: blur(12px); border-top: 1px solid #dedfd3; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.bottom-bar > span { font-family: var(--serif); font-size: 15px; white-space: nowrap; }
.bar-and { padding: 0 6px; color: #888e7c; font-family: "Cormorant", serif; }
.bottom-bar button { background: var(--olive); color: #fffef8; display: flex; align-items: center; justify-content: space-between; gap: 23px; min-height: 45px; padding: 10px 17px; border-radius: 3px; font-size: 12px; }
.bottom-bar .icon { width: 17px; height: 17px; }

dialog { width: min(390px, calc(100% - 36px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 40px 27px 26px; border: 1px solid #e1e0d4; border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 100px #111a1233; overscroll-behavior: contain; scrollbar-width: thin; }
dialog[open] { animation: dialog-in .25s ease; }
dialog::backdrop { background: #151e195e; backdrop-filter: blur(4px); }
.close-button { position: absolute; display: grid; place-items: center; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; background: none; color: #7e8276; border-radius: 50%; }
.welcome-dialog { text-align: center; padding-top: 39px; }
.welcome-art { margin: 0 auto 21px; width: 76px; color: #8b947b; }
.welcome-art svg { width: 100%; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.envelope-paper { fill: var(--paper); }
.welcome-dialog .eyebrow { font-size: 8px; margin-bottom: 16px; letter-spacing: .2em; }
.welcome-dialog h2 { font-size: 28px; line-height: 1.6; letter-spacing: -.03em; }
#welcome-description { font-size: 12px; color: #73796a; line-height: 1.9; margin-top: 18px; word-break: keep-all; }
.welcome-names { display: flex; justify-content: center; gap: 17px; align-items: center; font-family: var(--serif); margin: 23px 0; font-size: 16px; }
.welcome-names > span:nth-child(2) { color: #8c957d; font-family: "Cormorant", serif; font-size: 21px; }
.welcome-skip { display: block; background: none; margin: 7px auto 0; padding: 12px; min-height: 44px; font-size: 12px; color: #747a6b; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #bfc4b3; }
.welcome-sample { margin-top: 5px; font-size: 9px; color: var(--muted); }
.rsvp-dialog { width: min(420px, calc(100% - 28px)); padding-top: 37px; }
.rsvp-dialog .eyebrow { font-size: 8px; margin-bottom: 10px; }
.rsvp-dialog h2 { font-size: 26px; }
.rsvp-dialog h2:focus { outline: none; }
.form-intro { font-size: 12px; color: var(--muted); margin-top: 8px; }
.preview-notice { background: #eaece2; color: #69715d; padding: 12px 13px; margin: 20px 0 24px; font-size: 11px; line-height: 1.8; border-left: 2px solid #aeb79d; word-break: keep-all; }
fieldset { padding: 0; margin: 0 0 22px; border: 0; min-width: 0; }
legend, .field > label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 9px; }
.required-label { font-size: 9px; font-weight: 400; color: #747e65; margin-left: 5px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: block; border: 1px solid #d7dacb; text-align: center; padding: 12px 4px; min-height: 47px; border-radius: 3px; font-size: 12px; background: #fffefa; }
.choice input:checked + span { background: #e6eadd; border-color: var(--olive); color: #455039; box-shadow: inset 0 0 0 1px var(--olive); }
.choice input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 3px; }
.field { margin-bottom: 22px; }
.field-hint { color: var(--muted); font-size: 10px; font-weight: 400; margin-left: 5px; }
input[type="text"], select, textarea { display: block; width: 100%; min-height: 48px; background: #fffefa; border: 1px solid #d7dacb; border-radius: 3px; padding: 12px; font-size: 16px; color: var(--ink); line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #8b8f80; opacity: 1; font-size: 13px; }
textarea { resize: vertical; min-height: 100px; }
#attendance-details { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-bottom: 0; }
#attendance-details select { font-size: 13px; padding: 12px 6px; }
.response-summary { margin: 26px 0 0; border-top: 1px solid var(--line); }
.summary-row { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.summary-row dt { color: var(--muted); font-size: 12px; }
.summary-row dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#rsvp-review .button-outline { margin-top: 10px; }
.photo-dialog { padding: 0; width: min(640px, calc(100% - 24px)); background: #1e241e; border: 0; color: #fff; overflow: auto; }
.photo-dialog img { width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.photo-dialog .close-button { color: white; background: #263326aa; }
.photo-dialog p { padding: 16px 20px; font-size: 12px; text-align: center; }
.copy-dialog h2 { font-size: 21px; }
.copy-dialog p { font-size: 12px; color: var(--muted); margin: 12px 0 20px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 10px); max-width: calc(100% - 40px); width: max-content; padding: 12px 18px; border-radius: 4px; background: #333d30; color: #fff; font-size: 12px; box-shadow: 0 4px 25px #172a1a20; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.noscript-notice { position: fixed; bottom: 78px; padding: 10px; width: 100%; background: var(--paper); text-align: center; font-size: 12px; }

@keyframes dialog-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) { .gallery-item:hover img { transform: scale(1.035); } .button-dark:hover, .bottom-bar button:hover { background: #46523d; } .button-outline:hover { background: #e7eadf; } }
@media (min-width: 900px) { .desktop-note { position: fixed; top: 50%; left: calc(50% - 375px); display: flex; gap: 32px; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font-size: 9px; letter-spacing: .22em; color: #909482; } }
@media (max-width: 360px) { .section { padding-left: 22px; padding-right: 22px; } .hero { min-height: 550px; } .hero-topline { padding-left: 20px; padding-right: 20px; font-size: 9px; } .welcome-dialog { padding-left: 20px; padding-right: 20px; } .welcome-dialog h2 { font-size: 25px; } #welcome-description { font-size: 11px; } .welcome-sample { font-size: 8px; } .bottom-bar { padding-left: 16px; padding-right: 16px; gap: 10px; } .bottom-bar button { gap: 12px; } .travel-info { gap: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
