/* ============================================================
 *  모바일 부고장 — 섹션 · 테마 스타일
 *  (공통 스타일은 invite-base.css)
 *  장식과 움직임을 최소화한 절제된 디자인입니다.
 * ============================================================ */

/* ---------- 기본: classic (흰 국화) ---------- */
:root, [data-theme="classic"] {
  --bg: #fafaf8; --bg-alt: #f2f2ef; --card: #ffffff;
  --text: #2a2a2a; --text-soft: #6f6f6f; --accent: #4a4a4a; --accent-soft: #e8e8e5; --line: #dedede;
  --font-body: "Nanum Myeongjo", serif;
  --font-title: "Nanum Myeongjo", serif;
  --font-en: "Nanum Myeongjo", serif;
  --radius: 2px;
}
body { background: #e6e6e3; font-size: 17px; }
.section { padding: 64px 28px; }
.section__title { font-size: 20px; font-weight: 800; letter-spacing: .2em; margin-bottom: 24px; }
.section__title::after { content: ""; display: block; width: 20px; height: 1px; margin: 12px auto 0; background: var(--text-soft); }
.reveal { transition-duration: .8s; }

/* 일정 변경 안내 */
.change-notice { position: sticky; top: 0; z-index: 10; padding: 12px 20px; background: #3a3a3a; color: #fff; font-family: "Pretendard Variable", sans-serif; font-size: 15px; font-weight: 600; text-align: center; }

/* ---------- 머리 ---------- */
.obit-head { padding: 64px 28px 48px; text-align: center; }
.obit-head__label { font-size: 30px; font-weight: 800; letter-spacing: .6em; margin-right: -.6em; }
.obit-head__line { margin-top: 10px; font-size: 15px; color: var(--text-soft); letter-spacing: .04em; }
.obit-photo { width: 64%; margin: 36px auto 28px; aspect-ratio: 4/5; overflow: hidden; }
.obit-photo img { width: 100%; height: 100%; object-fit: cover; }
/* 영정 사진: 검은 리본 액자 */
.obit-photo.is-portrait { position: relative; width: 52%; padding: 8px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.obit-photo.is-portrait img { filter: grayscale(1); }
.obit-photo.is-portrait::before, .obit-photo.is-portrait::after {
  content: ""; position: absolute; top: 0; width: 56px; height: 14px; background: #1a1a1a; z-index: 1;
}
.obit-photo.is-portrait::before { left: -14px; transform: rotate(-45deg) translate(-6px, 14px); }
.obit-photo.is-portrait::after { right: -14px; transform: rotate(45deg) translate(6px, 14px); }
.obit-name { font-size: 30px; font-weight: 800; letter-spacing: .08em; }
.obit-name__prefix { font-size: 20px; font-weight: 700; color: var(--text-soft); margin-right: 4px; vertical-align: 4px; }
.obit-name small { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--text-soft); letter-spacing: .3em; }
.obit-title { margin-top: 6px; font-size: 15px; color: var(--text-soft); }
.obit-date { margin-top: 14px; font-size: 16px; }

/* ---------- 알림 문구 ---------- */
.obit-msg { padding-top: 48px; padding-bottom: 48px; }
.obit-msg__main { white-space: pre-line; font-size: 17px; line-height: 2; font-weight: 700; }
.obit-msg__note { margin-top: 20px; white-space: pre-line; font-size: 16px; line-height: 2; color: var(--text-soft); }

/* ---------- 상주 ---------- */
.mourner-list { max-width: 340px; margin: 0 auto; }
.mourner-list div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.mourner-list dt { color: var(--text-soft); font-size: 15px; }
.mourner-list dd { font-weight: 700; font-size: 17px; }

/* ---------- 일정 ---------- */
.schedule__list { max-width: 360px; margin: 0 auto; border-top: 2px solid var(--text); }
.schedule__list div { display: grid; grid-template-columns: 4em 1fr; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.schedule__list dt { font-weight: 800; }
.schedule__list dd { font-size: 16px; }

/* ---------- 버튼 · 지도 ---------- */
.btn { font-size: 16px; }
.btn--fill { background: var(--text); }
.map { margin-left: 0; margin-right: 0; height: 240px; }
.navi { margin: 0; }
.share__thanks { font-weight: 700; }

/* ============================================================
 *  [테마] dark — 먹색
 * ============================================================ */
[data-theme="dark"] {
  --bg: #1c1c1e; --bg-alt: #232325; --card: #2a2a2d;
  --text: #ececec; --text-soft: #a3a3a3; --accent: #d6d6d6; --accent-soft: #333336; --line: #3a3a3d;
  --sun: #d6d6d6; --sat: #d6d6d6;
}
[data-theme="dark"] body { background: #0f0f10; }
[data-theme="dark"] .obit-photo:not(.is-portrait) { width: 72%; aspect-ratio: 1; }
[data-theme="dark"] .obit-photo.is-portrait { background: #2a2a2d; border-color: #444; }
[data-theme="dark"] .obit-photo.is-portrait::before, [data-theme="dark"] .obit-photo.is-portrait::after { background: #000; }
[data-theme="dark"] .btn--fill { background: #ececec; color: #1c1c1e; }
[data-theme="dark"] .btn--line, [data-theme="dark"] .navi a, [data-theme="dark"] .chip { background: var(--card); color: var(--text); }
[data-theme="dark"] .map iframe { filter: grayscale(1) invert(.9) contrast(.9); }
[data-theme="dark"] .modal__sheet { background: var(--bg); color: var(--text); }
[data-theme="dark"] .form input, [data-theme="dark"] .form textarea { background: var(--card); color: var(--text); }
[data-theme="dark"] .change-notice { background: #ececec; color: #1c1c1e; }

/* ============================================================
 *  [테마] minimal — 간결 (고딕, 여백)
 * ============================================================ */
[data-theme="minimal"] {
  --bg: #ffffff; --bg-alt: #f7f7f7; --card: #ffffff;
  --text: #222222; --text-soft: #777777; --accent: #222222; --line: #e5e5e5;
  --font-body: "Pretendard Variable", sans-serif;
  --font-title: "Pretendard Variable", sans-serif;
}
[data-theme="minimal"] body { background: #eeeeee; font-size: 16px; }
[data-theme="minimal"] .obit-head__label { font-family: "Nanum Myeongjo", serif; }
[data-theme="minimal"] .obit-photo:not(.is-portrait) { width: 100%; margin: 32px -28px 28px; width: calc(100% + 56px); max-width: none; aspect-ratio: 4/3; }
[data-theme="minimal"] .section__title { font-size: 15px; letter-spacing: .3em; color: var(--text-soft); font-weight: 600; }
[data-theme="minimal"] .section__title::after { display: none; }
[data-theme="minimal"] .obit-name { font-weight: 700; }
[data-theme="minimal"] .obit-msg__main { font-weight: 600; font-size: 16px; }
[data-theme="minimal"] .mourner-list dd { font-weight: 600; }
