:root {
  --bg: #FBF8F3;
  --ink: #2E2A26;
  --muted: #5C554F;
  --soft: #6B635C;
  --line: #E4DBD0;
  --line-soft: #ECE4DA;
  --field: #D9CFC3;
  --accent: #5E6E56;
  --leaf: #E7ECE2;
  --petal: #F2E3DE;
  --serif-en: 'Cormorant Garamond', Georgia, serif;
  --sans-en: 'Jost', system-ui, -apple-system, sans-serif;
  --serif-ko: 'Nanum Myeongjo', serif;
  --sans-ko: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-en);
}
body.ko { font-family: var(--sans-ko); word-break: keep-all; }
a { color: var(--ink); }
a:hover { color: #4A5A43; }

.page { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; min-height: 100vh; }

/* Header */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.monogram { grid-column: 2; font-family: var(--serif-en); font-style: italic; font-size: 20px; }
.lang { grid-column: 3; justify-self: end; display: flex; align-items: center; font-size: 13px; letter-spacing: 0.06em; }
.lang a, .lang span[aria-current] {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 4px; text-decoration: none;
}
.lang a { color: var(--muted); }
.lang span[aria-current] { font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }
.lang .sep { color: #B5AA9E; }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 24px 32px; text-align: center; }
.eyebrow { margin: 0; font-family: var(--sans-en); font-size: 13px; letter-spacing: 0.32em; color: var(--accent); font-weight: 500; }
.names { margin: 0; font-family: var(--serif-en); font-weight: 400; font-style: italic; font-size: 40px; line-height: 1.15; }
.date { margin: 0; font-family: var(--serif-en); font-size: 22px; }
.place { margin: 0; font-size: 13px; letter-spacing: 0.14em; color: var(--muted); }
.ko .names { font-family: var(--serif-ko); font-style: normal; font-size: 30px; line-height: 1.5; }
.ko .names .and { font-size: 18px; color: #8C847C; }
.ko .date { font-family: var(--serif-ko); font-size: 19px; }
.ko .place { font-size: 14px; letter-spacing: 0; }

/* Video */
.video-wrap { padding: 0 20px; }
.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden; background: var(--ink);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; background: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #F3EEE7; font: inherit;
}
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play::after { content: ""; position: absolute; inset: 0; background: rgba(46, 42, 38, 0.45); }
.play-ring {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid #F3EEE7;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-play:hover .play-ring, .video-play:focus-visible .play-ring { transform: scale(1.06); background: rgba(243, 238, 231, 0.12); }
.video-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.video-label { position: relative; z-index: 1; font-size: 12px; letter-spacing: 0.16em; }
.ko .video-label { font-size: 13px; letter-spacing: 0.06em; }
.sound-btn {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border: 0; border-radius: 20px;
  background: rgba(46, 42, 38, 0.82); color: #F3EEE7; cursor: pointer;
  font: 500 13px var(--sans-en); letter-spacing: 0.04em;
}
.ko .sound-btn { font-family: var(--sans-ko); }
.sound-btn:hover { background: rgba(46, 42, 38, 0.95); }
.sound-btn:focus-visible { outline: 2px solid #F3EEE7; outline-offset: 2px; }

.divider { display: flex; justify-content: center; padding: 40px 0 32px; }

/* Form card */
.card {
  margin: 0 16px; padding: 32px 20px 36px;
  background: #FFFFFF; border: 1px solid var(--line-soft); border-radius: 10px;
  display: flex; flex-direction: column; gap: 20px;
}
.card-head { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.card-head h2 { margin: 0; font-family: var(--serif-en); font-weight: 500; font-size: 30px; }
.ko .card-head h2 { font-family: var(--serif-ko); font-weight: 700; font-size: 22px; }
.card-head p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }
.lbl { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ko .lbl { font-size: 14px; letter-spacing: 0; text-transform: none; color: #3F3934; }
.sublbl { font-size: 13px; color: var(--soft); }
.hint { font-size: 13px; color: var(--soft); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.inp {
  display: block; width: 100%; height: 48px;
  border: 1px solid var(--field); border-radius: 6px; background: #FFFFFF;
  padding: 0 14px; font: 16px var(--sans-en); color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.ko .inp { font-family: var(--sans-ko); }
select.inp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235C554F' stroke-width='1.4'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.inp::placeholder { color: #8C847C; }
.inp:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.inp[aria-invalid="true"] { border-color: #A2453A; }

/* Attendance segmented control (radios) */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  display: flex; align-items: center; justify-content: center; height: 48px;
  border: 1px solid var(--field); border-radius: 6px; background: #FFFFFF;
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.seg input:checked + label { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  margin-top: 8px; height: 52px; border: 0; border-radius: 26px;
  background: var(--accent); color: #FFFFFF; cursor: pointer;
  font: 500 14px var(--sans-en); letter-spacing: 0.16em;
}
.ko .btn { font: 500 16px var(--sans-ko); letter-spacing: 0.04em; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.error { margin: 0; font-size: 14px; color: #A2453A; text-align: center; }

/* Honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.thanks { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0; text-align: center; }
.thanks[hidden] { display: none; }
.thanks .big { margin: 0; font-family: var(--serif-en); font-size: 26px; }
.ko .thanks .big { font-family: var(--serif-ko); font-size: 22px; }
.thanks p { margin: 0; font-size: 15px; color: var(--muted); }
.link-btn {
  height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--muted);
  font: 14px inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

.foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 24px 56px; text-align: center; margin-top: auto; }
.foot .sig { margin: 0; font-family: var(--serif-en); font-style: italic; font-size: 22px; }
.ko .foot .sig { font-family: var(--serif-ko); font-style: normal; font-size: 18px; }
.foot .small { margin: 0; font-size: 12px; letter-spacing: 0.24em; color: var(--soft); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
