:root {
  color-scheme: light;
  --paper: #faf5ec;
  --card: #fffdf8;
  --ink: #3a2e28;
  --soft: #8a7a6c;
  --line: #e7dccb;
  --red: #9b2d24;
  --gold: #b08a4a;
  --serif: 'Gowun Batang', 'Noto Serif KR', 'AppleMyungjo', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.8;
  word-break: keep-all;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--card);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(80, 50, 20, .06);
}
section, .hero, .foot { padding: 56px 28px; text-align: center; }
section + section { border-top: 1px solid var(--line); }

.soft { color: var(--soft); }
.small { font-size: 13px; }

/* 표지 */
.hero {
  padding-top: 64px;
  background:
    radial-gradient(circle at 50% 38%, rgba(176, 138, 74, .10), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 28px; color: var(--gold); letter-spacing: .4em; font-size: 12px; }
.seal { position: relative; width: 190px; height: 190px; margin: 0 auto 32px; color: var(--gold); }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal .hanja {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 44px; line-height: 1.2; color: var(--red); letter-spacing: .06em; padding-left: .06em;
  font-family: 'Noto Serif CJK KR', 'Noto Serif KR', 'AppleMyungjo', var(--serif);
}
.seal .hanja small {
  margin-top: 8px; font-family: var(--serif); font-size: 13px;
  color: var(--gold); letter-spacing: .3em; padding-left: .3em;
}
h1 { margin: 0; font-weight: 400; font-size: 22px; line-height: 1.7; }
h1 .name { font-weight: 700; }
h1 strong { color: var(--red); font-size: 30px; font-weight: 700; }
.when { margin: 24px 0 0; color: var(--soft); font-size: 15px; }

.sec-title {
  margin: 0 0 28px; font-size: 13px; font-weight: 400;
  letter-spacing: .3em; color: var(--gold);
}
.big { font-size: 19px; margin: 0 0 8px; line-height: 1.6; }

/* 인사말 */
.message { margin: 0 0 36px; font-size: 16px; line-height: 2.1; }
.hosts { list-style: none; padding: 0; margin: 0; font-size: 15px; line-height: 2.1; }
.rel { color: var(--soft); font-size: .88em; margin-right: 2px; }
.dot { color: var(--line); margin: 0 4px; }
.hosts-foot { margin: 8px 0 0; color: var(--soft); font-size: 14px; }

/* 달력 */
.calendar { margin: 28px auto 12px; max-width: 300px; font-size: 14px; }
.calendar .cal-head { font-size: 15px; margin-bottom: 10px; letter-spacing: .1em; }
.calendar .grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; }
.calendar .grid > span { height: 36px; display: grid; place-items: center; }
.calendar .dow { color: var(--soft); font-size: 12px; }
.calendar .sun { color: #c0544a; }
.calendar .sat { color: #5b76a8; }
.calendar .on span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff;
}
.dday { margin: 16px 0 24px; font-size: 15px; }
.dday b { color: var(--red); }

/* 버튼 */
.btn-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  background: var(--red); color: #fff; border: 1px solid var(--red);
  text-decoration: none; font-size: 14px;
}
.btn.ghost { background: transparent; color: var(--red); }
.chip {
  margin-left: 6px; padding: 2px 10px; font-size: 12px;
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; vertical-align: 1px;
}

/* 오시는 길 */
.addr { margin: 0; font-size: 15px; }
.addr a { text-decoration: none; }
.map {
  height: 260px; margin: 24px -28px 0; background: #eee6d8;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.nav-btns { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin: 0 -28px; }
.nav {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 4px; background: var(--card); border: 0; font-size: 14px;
}
.nav + .nav { border-left: 1px solid var(--line); }
.nav:active { background: var(--paper); }
.transport { margin: 28px 0 0; text-align: left; font-size: 14px; }
.transport .row { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.transport dt { color: var(--red); }
.transport dd { margin: 0; }

/* 푸터 */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding-bottom: 72px; }
.foot p { margin: 20px 0 0; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: rgba(58, 46, 40, .92); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Leaflet 기본 마커 대신 */
.pin {
  width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.leaflet-container { font-family: var(--serif); }
