/* Hallmark · shape: Letter · genre: editorial · theme: custom, eleven colourways benchmarked on current Korean mobile invitations and US wedding sites · job: attend · draw: manual
 * hero: the photograph first, edge to edge, names under or over it · nav: none · footer: share, names, photo credits · imagery: CC0 stand-in photographs, replaced by the couple's own · signature: the couple's names set as the display line (English display face over Korean), the photo given the whole width
 * axes: light/serif/neutral (minimal) · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: P, the section order is what guests expect; each design argues through its cover (full bleed, overlay, collage, vertical names) */
/* Hallmark · waive 77 · shape is Letter, one phone-width column · 초대합니다 and the date are short letters a guest reads on a phone; the column is the page */
/* Hallmark · waive 78 · shape is Letter · section heads stay small and tracked so the couple's names keep the largest voice */
/* Hallmark · waive 37 · each design loads at most three families (Pretendard plus its own display and Latin face) · eleven designs carry their own faces */
/* Hallmark · answered F4 · the photo viewer's round buttons are icon controls on a photograph; the one filled primary is the 오시는 길 button */
/* Hallmark · answered F15 · minimal, blush, midnight and hanji centre their heads like a printed invitation; the others align them left */

/* ── 공통 크기 ─────────────────────────────────────── */
:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-md: 1rem; --text-lg: 1.1875rem; --text-xl: 1.375rem;
  --text-names: clamp(2rem, 1.4rem + 2.6vw, 2.5rem);
  --text-en: clamp(2.5rem, 1.8rem + 3.2vw, 3.25rem);
  --text-figure: clamp(4.5rem, 2.6rem + 9vw, 6.5rem);
  --sheet: 30rem; --gutter: 1.75rem; --sec-pad: 5.5rem; --control-h: 44px;
  --dur-micro: 120ms; --dur-short: 220ms; --dur-reveal: 900ms; --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-fx: 50; --z-ui: 60; --z-toast: 80;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-latin: var(--font-display);
  --font-ui: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-figure: "Sofia Sans Extra Condensed", "Pretendard Variable", Pretendard, sans-serif;
  --tracking-head: 0.06em; --tracking-ko: 0.14em;
  /* 사진 위 글씨 · 사진 크게 보기 · 예시 막대: 디자인과 상관없이 같은 색 */
  --color-on-photo: #f7f4ee; --color-on-photo-edge: rgba(247, 244, 238, 0.55);
  --scrim: linear-gradient(to top, rgba(10, 9, 8, 0.78) 0%, rgba(10, 9, 8, 0.42) 42%, rgba(10, 9, 8, 0) 72%);
  --color-viewer: #0e0d0c; --color-viewer-ink: #f3efe8; --color-viewer-btn: rgba(14, 13, 12, 0.62); --color-viewer-edge: rgba(243, 239, 232, 0.28);
  --color-bar: #1f1d1a; --color-bar-ink: #f3efe8; --color-bar-muted: #bdb5aa; --color-bar-rule: #8a8278; --color-bar-field: #2b2825;
  --shadow-dialog: 0 24px 60px -20px rgba(22, 16, 10, 0.45);
  --color-scrim: rgba(22, 18, 14, 0.5);
}

/* ── 1. 화이트: 사진을 끝까지, 영문 이름, 가는 명조 ───────── */
[data-theme="minimal"] {
  --color-paper: #fcfcfa; --color-paper-2: #efeeea; --color-card: #f5f4f0;
  --color-ink: #222120; --color-ink-2: #4a4845; --color-muted: #6f6c67; --color-rule: #e4e2dd; --color-rule-strong: #bdb9b1;
  --color-accent: #6f5f4f; --color-accent-deep: #5a4c3f; --color-accent-ink: #fcfcfa; --color-focus: #6f5f4f;
  --color-hover: rgba(34, 33, 32, 0.05); --color-press: rgba(34, 33, 32, 0.1); --color-selection: #e7e1d8;
  --color-sun: #a2574a; --color-sat: #4e6280; --color-day: #222120; --color-day-ink: #fcfcfa;
  --font-display: "Noto Serif KR", "Nanum Myeongjo", serif; --font-latin: "Cormorant Garamond", "Noto Serif KR", serif; --display-weight: 300; --tracking-display: 0;
  --radius-photo: 0; --radius-btn: 2px; --radius-box: 2px; --shadow-photo: none; --photo-filter: none;
  --align: center; --justify: center; --block-inline: auto;
  --fx-petal-1: #f4c4cf; --fx-petal-2: #e7a0b4; --fx-leaf-1: #b8492f; --fx-leaf-2: #d4813a; --fx-leaf-3: #d9aa3c; --fx-leaf-4: #8f5d3d;
  --fx-snow: #ffffff; --fx-snow-edge: rgba(90, 96, 110, 0.45); --fx-glow-1: 236, 178, 92; --fx-glow-2: 132, 168, 210;
}

/* ── 2. 시네마: 한 화면 가득한 사진 위에 이름 ───────────── */
[data-theme="cinema"] {
  color-scheme: dark;
  --color-paper: #141413; --color-paper-2: #0b0b0a; --color-card: #1c1c1a;
  --color-ink: #f2efe9; --color-ink-2: #d4d0c8; --color-muted: #a39e94; --color-rule: #2c2b28; --color-rule-strong: #57544e;
  --color-accent: #e8e2d6; --color-accent-deep: #cfc8ba; --color-accent-ink: #141413; --color-focus: #e8e2d6;
  --color-hover: rgba(242, 239, 233, 0.07); --color-press: rgba(242, 239, 233, 0.14); --color-selection: #3d3a34;
  --color-sun: #e3b0a4; --color-sat: #b6c4dc; --color-day: #f2efe9; --color-day-ink: #141413;
  --font-display: "Noto Serif KR", serif; --font-latin: "Cormorant Garamond", "Noto Serif KR", serif; --display-weight: 300; --tracking-display: 0;
  --radius-photo: 0; --radius-btn: 2px; --radius-box: 2px; --shadow-photo: none; --photo-filter: saturate(0.85) contrast(1.04);
  --align: start; --justify: flex-start; --block-inline: 0;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fx-petal-1: #e9bcc8; --fx-petal-2: #d595a8; --fx-leaf-1: #c4553a; --fx-leaf-2: #d98a45; --fx-leaf-3: #dcb04a; --fx-leaf-4: #9a6a4a;
  --fx-snow: #f2efe8; --fx-snow-edge: rgba(242, 239, 232, 0); --fx-glow-1: 240, 200, 140; --fx-glow-2: 200, 210, 240;
}

/* ── 3. 에디토리얼: 잡지 표지처럼 큰 영문, 사진 두 장 ─────── */
[data-theme="editorial"] {
  --color-paper: #f4f2ed; --color-paper-2: #e4e1da; --color-card: #faf9f6;
  --color-ink: #111111; --color-ink-2: #333230; --color-muted: #5f5b55; --color-rule: #d5d1c8; --color-rule-strong: #111111;
  --color-accent: #111111; --color-accent-deep: #05070c; --color-accent-ink: #f4f2ed; --color-focus: #23407a;
  --color-hover: rgba(17, 17, 17, 0.06); --color-press: rgba(17, 17, 17, 0.12); --color-selection: #d4dcea;
  --color-sun: #a3382a; --color-sat: #23407a; --color-day: #111111; --color-day-ink: #f4f2ed;
  --font-display: "Noto Serif KR", serif; --font-latin: "Bodoni Moda", "Noto Serif KR", serif; --display-weight: 600; --tracking-display: -0.01em;
  --radius-photo: 0; --radius-btn: 0; --radius-box: 0; --shadow-photo: none; --photo-filter: none;
  --align: start; --justify: flex-start; --block-inline: 0;
  --fx-petal-1: #f1bccb; --fx-petal-2: #e397ad; --fx-leaf-1: #b8492f; --fx-leaf-2: #d4813a; --fx-leaf-3: #d9aa3c; --fx-leaf-4: #8f5d3d;
  --fx-snow: #ffffff; --fx-snow-edge: rgba(70, 70, 70, 0.45); --fx-glow-1: 236, 178, 92; --fx-glow-2: 120, 150, 210;
}

/* ── 4. 모노: 흑백 사진, 굵은 고딕 ─────────────────────── */
[data-theme="mono"] {
  --color-paper: #fefefe; --color-paper-2: #ededed; --color-card: #f5f5f5;
  --color-ink: #0e0e0e; --color-ink-2: #2c2c2c; --color-muted: #616161; --color-rule: #e4e4e4; --color-rule-strong: #0e0e0e;
  --color-accent: #0e0e0e; --color-accent-deep: #070708; --color-accent-ink: #fefefe; --color-focus: #0e0e0e;
  --color-hover: rgba(14, 14, 14, 0.05); --color-press: rgba(14, 14, 14, 0.1); --color-selection: #dcdcdc;
  --color-sun: #b03a2e; --color-sat: #2c4a86; --color-day: #0e0e0e; --color-day-ink: #fefefe;
  --font-display: var(--font-body); --font-latin: var(--font-body); --display-weight: 700; --tracking-display: -0.04em;
  --tracking-head: -0.01em; --tracking-ko: 0;
  --radius-photo: 0; --radius-btn: 0; --radius-box: 0; --shadow-photo: none; --photo-filter: grayscale(1) contrast(1.06);
  --align: start; --justify: flex-start; --block-inline: 0;
  --fx-petal-1: #e6e6e6; --fx-petal-2: #bdbdbd; --fx-leaf-1: #3a3a3a; --fx-leaf-2: #6a6a6a; --fx-leaf-3: #9a9a9a; --fx-leaf-4: #222222;
  --fx-snow: #ffffff; --fx-snow-edge: rgba(40, 40, 40, 0.45); --fx-glow-1: 160, 160, 160; --fx-glow-2: 90, 90, 90;
}

/* ── 5. 블러쉬: 연분홍 바탕, 손글씨 영문 이름 ───────────── */
[data-theme="blush"] {
  --color-paper: #f7e8e6; --color-paper-2: #ecd6d3; --color-card: #fbf2f0;
  --color-ink: #4a2f30; --color-ink-2: #5e4345; --color-muted: #725456; --color-rule: #e8cfcc; --color-rule-strong: #cfa8a4;
  --color-accent: #9b4a57; --color-accent-deep: #823c48; --color-accent-ink: #fbf2f0; --color-focus: #9b4a57;
  --color-hover: rgba(155, 74, 87, 0.07); --color-press: rgba(155, 74, 87, 0.14); --color-selection: #efc9cf;
  --color-sun: #9b4a57; --color-sat: #5b6a8a; --color-day: #9b4a57; --color-day-ink: #fbf2f0;
  --font-display: "Noto Serif KR", serif; --font-latin: "Pinyon Script", "Noto Serif KR", cursive; --display-weight: 400; --tracking-display: 0;
  --radius-photo: 20px; --radius-btn: 999px; --radius-box: 16px; --shadow-photo: none; --photo-filter: saturate(0.96) brightness(1.02);
  --align: center; --justify: center; --block-inline: auto;
  --fx-petal-1: #f6c3d0; --fx-petal-2: #ea98b0; --fx-leaf-1: #b8492f; --fx-leaf-2: #d4813a; --fx-leaf-3: #d9aa3c; --fx-leaf-4: #8f5d3d;
  --fx-snow: #ffffff; --fx-snow-edge: rgba(150, 110, 120, 0.45); --fx-glow-1: 240, 176, 120; --fx-glow-2: 230, 150, 170;
}

/* ── 6. 세이지: 연한 초록 바탕, 둥근 사진 ───────────────── */
[data-theme="sage"] {
  --color-paper: #eef0ea; --color-paper-2: #e0e4db; --color-card: #f6f7f3; --tint-moss: #e3e8dc;
  --color-ink: #26332a; --color-ink-2: #3f4c42; --color-muted: #59655c; --color-rule: #d3d9cd; --color-rule-strong: #a3af9f;
  --color-accent: #4a6650; --color-accent-deep: #3b5341; --color-accent-ink: #f6f7f3; --color-focus: #4a6650;
  --color-hover: rgba(74, 102, 80, 0.07); --color-press: rgba(74, 102, 80, 0.14); --color-selection: #d3e0cf;
  --color-sun: #9a5a3c; --color-sat: #4a6650; --color-day: #4a6650; --color-day-ink: #f6f7f3;
  --font-display: "Noto Serif KR", serif; --font-latin: "Cormorant Garamond", "Noto Serif KR", serif; --display-weight: 400; --tracking-display: 0;
  --radius-photo: 24px; --radius-btn: 999px; --radius-box: 16px; --shadow-photo: none; --photo-filter: saturate(0.94);
  --align: start; --justify: flex-start; --block-inline: 0;
  --fx-petal-1: #f3c6cf; --fx-petal-2: #e6a1b2; --fx-leaf-1: #a8462c; --fx-leaf-2: #c97a36; --fx-leaf-3: #c9a43a; --fx-leaf-4: #6f7a3a;
  --fx-snow: #ffffff; --fx-snow-edge: rgba(60, 90, 66, 0.45); --fx-glow-1: 214, 196, 92; --fx-glow-2: 150, 196, 140;
}

/* ── 7. 네이비: 남색 바탕, 금빛 선 ─────────────────────── */
[data-theme="midnight"] {
  color-scheme: dark;
  --color-paper: #0f1729; --color-paper-2: #090e1a; --color-card: #16203a;
  --color-ink: #efe9dc; --color-ink-2: #d3d6de; --color-muted: #9ea7bb; --color-rule: #26304a; --color-rule-strong: #46527a;
  --color-accent: #d9b56b; --color-accent-deep: #c49d50; --color-accent-ink: #0f1729; --color-focus: #d9b56b;
  --color-hover: rgba(239, 233, 220, 0.07); --color-press: rgba(239, 233, 220, 0.14); --color-selection: #3a4566;
  --color-sun: #e2b9a6; --color-sat: #b3c2ea; --color-day: #d9b56b; --color-day-ink: #0f1729;
  --font-display: "Noto Serif KR", serif; --font-latin: "Cormorant Garamond", "Noto Serif KR", serif; --display-weight: 300; --tracking-display: 0;
  --radius-photo: 0; --radius-btn: 2px; --radius-box: 2px; --shadow-photo: none; --photo-filter: saturate(0.85) brightness(0.94);
  --align: center; --justify: center; --block-inline: auto;
  --fx-petal-1: #e9bcc8; --fx-petal-2: #d595a8; --fx-leaf-1: #c4553a; --fx-leaf-2: #d98a45; --fx-leaf-3: #dcb04a; --fx-leaf-4: #9a6a4a;
  --fx-snow: #f2efe8; --fx-snow-edge: rgba(242, 239, 232, 0); --fx-glow-1: 217, 181, 107; --fx-glow-2: 170, 190, 240;
}

/* ── 8. 필름: 흑백 사진, 큰 날짜 ───────────────────────── */
[data-theme="film"] {
  color-scheme: dark;
  --color-paper: #17140f; --color-paper-2: #0d0b08; --color-card: #1f1b15;
  --color-ink: #efe8dc; --color-ink-2: #d2cabd; --color-muted: #a59b8d; --color-rule: #3b352d; --color-rule-strong: #5c5449;
  --color-accent: #e2a64c; --color-accent-deep: #c98f38; --color-accent-ink: #17140f; --color-focus: #e2a64c;
  --color-hover: rgba(239, 232, 220, 0.07); --color-press: rgba(239, 232, 220, 0.14); --color-selection: #5a4628;
  --color-sun: #e2a64c; --color-sat: #d2cabd; --color-day: #efe8dc; --color-day-ink: #17140f;
  --font-display: var(--font-body); --font-latin: var(--font-body); --display-weight: 200; --tracking-display: -0.02em; --tracking-ko: 0.04em;
  --radius-photo: 0; --radius-btn: 0; --radius-box: 0; --shadow-photo: none;
  --photo-filter: grayscale(1) contrast(1.08) brightness(0.9);
  --align: start; --justify: flex-start; --block-inline: 0;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fx-petal-1: #e6b3c1; --fx-petal-2: #d28ea2; --fx-leaf-1: #c4553a; --fx-leaf-2: #d98a45; --fx-leaf-3: #dcb04a; --fx-leaf-4: #9a6a4a;
  --fx-snow: #f3efe8; --fx-snow-edge: rgba(243, 239, 232, 0); --fx-glow-1: 240, 176, 90; --fx-glow-2: 214, 190, 150;
}

/* ── 9. 한지: 닥종이 결, 먹빛 글씨, 세로로 쓴 이름, 붉은 囍 도장 ── */
[data-theme="hanji"] {
  --color-paper: #f2ede1; --color-paper-2: #e3dccb; --color-card: #f8f4ea;
  --color-ink: #23201c; --color-ink-2: #45403a; --color-muted: #675f55; --color-rule: #d8cdb9; --color-rule-strong: #b3a58c;
  --color-accent: #a8322a; --color-accent-deep: #8c2821; --color-accent-ink: #f8f4ea; --color-focus: #a8322a;
  --color-hover: rgba(168, 50, 42, 0.07); --color-press: rgba(168, 50, 42, 0.13); --color-selection: #ecd3c8;
  --color-sun: #a8322a; --color-sat: #2f4a63; --color-day: #a8322a; --color-day-ink: #f8f4ea;
  --font-display: "Song Myung", "Noto Serif KR", serif; --display-weight: 400; --tracking-display: 0;
  --radius-photo: 0; --radius-btn: 2px; --radius-box: 2px; --shadow-photo: none; --photo-filter: sepia(0.08) saturate(0.92);
  --align: center; --justify: center; --block-inline: auto;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fx-petal-1: #f2c3cc; --fx-petal-2: #e39aab; --fx-leaf-1: #b0432c; --fx-leaf-2: #cf7c38; --fx-leaf-3: #d4a63a; --fx-leaf-4: #8a5a3a;
  --fx-snow: #ffffff; --fx-snow-edge: rgba(110, 100, 86, 0.5); --fx-glow-1: 230, 170, 90; --fx-glow-2: 168, 50, 42;
}

/* ── 10. 팝: 리소 인쇄처럼 파랑과 형광 분홍 ─────────────── */
[data-theme="pop"] {
  --color-paper: #fdf8f2; --color-paper-2: #f6e6e4; --color-card: #fff1f6; --color-pop: #ff6fae;
  --color-ink: #1f3fbf; --color-ink-2: #2a46b8; --color-muted: #4a5cb0; --color-rule: #f6c5da; --color-rule-strong: #ff6fae;
  --color-accent: #1f3fbf; --color-accent-deep: #18329a; --color-accent-ink: #fdf8f2; --color-focus: #1f3fbf;
  --color-hover: rgba(255, 111, 174, 0.14); --color-press: rgba(255, 111, 174, 0.26); --color-selection: #ffd1e5;
  --color-sun: #c21d68; --color-sat: #1f3fbf; --color-day: #1f3fbf; --color-day-ink: #fdf8f2;
  --font-display: "Black Han Sans", "Pretendard Variable", sans-serif; --font-latin: var(--font-body); --display-weight: 400; --tracking-display: 0; --tracking-head: 0; --tracking-ko: 0;
  --radius-photo: 0; --radius-btn: 999px; --radius-box: 14px; --shadow-photo: 10px 10px 0 #1f3fbf; --photo-filter: grayscale(1) contrast(1.15);
  --align: start; --justify: flex-start; --block-inline: 0;
  --fx-petal-1: #ff9cc6; --fx-petal-2: #ff6fae; --fx-leaf-1: #ff6fae; --fx-leaf-2: #1f3fbf; --fx-leaf-3: #ff9cc6; --fx-leaf-4: #5a6fd8;
  --fx-snow: #ffffff; --fx-snow-edge: rgba(31, 63, 191, 0.45); --fx-glow-1: 255, 111, 174; --fx-glow-2: 31, 63, 191;
}

/* ── 11. 터미널: 개발자 부부를 위한 초록 화면 ───────────── */
[data-theme="terminal"] {
  color-scheme: dark;
  --font-body: "Nanum Gothic Coding", ui-monospace, Menlo, monospace;
  --color-paper: #0c120e; --color-paper-2: #070b08; --color-card: #111a14;
  --color-ink: #cfe8d2; --color-ink-2: #aecdb4; --color-muted: #7f9f87; --color-rule: #1e2b22; --color-rule-strong: #35503d;
  --color-accent: #5ee08a; --color-accent-deep: #45c472; --color-accent-ink: #0c120e; --color-focus: #5ee08a;
  --color-hover: rgba(94, 224, 138, 0.08); --color-press: rgba(94, 224, 138, 0.16); --color-selection: #1f4a2c;
  --color-sun: #f0b35e; --color-sat: #8fd0ff; --color-day: #5ee08a; --color-day-ink: #0c120e;
  --font-display: "Nanum Gothic Coding", ui-monospace, monospace; --font-latin: var(--font-display); --display-weight: 700; --tracking-display: -0.01em; --tracking-head: 0; --tracking-ko: 0;
  --radius-photo: 0; --radius-btn: 0; --radius-box: 0; --shadow-photo: none;
  --photo-filter: grayscale(1) sepia(1) hue-rotate(65deg) saturate(1.5) brightness(0.82) contrast(1.06);
  --align: start; --justify: flex-start; --block-inline: 0;
  --fx-petal-1: #9ff0b9; --fx-petal-2: #5ee08a; --fx-leaf-1: #5ee08a; --fx-leaf-2: #f0b35e; --fx-leaf-3: #9ff0b9; --fx-leaf-4: #3a9a5a;
  --fx-snow: #cfe8d2; --fx-snow-edge: rgba(207, 232, 210, 0); --fx-glow-1: 94, 224, 138; --fx-glow-2: 143, 208, 255;
}

/* ── 바탕 ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--color-paper-2); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--color-rule-strong) var(--color-paper-2); }
body {
  margin: 0; background: var(--color-paper-2); color: var(--color-ink); caret-color: var(--color-accent);
  font-family: var(--font-body); font-size: var(--text-md); line-height: 1.7; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
::selection { background: var(--color-selection); color: var(--color-ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.sheet { max-width: var(--sheet); margin-inline: auto; background: var(--color-paper); }
[data-theme="cinema"] .sheet, [data-theme="film"] .sheet, [data-theme="hanji"] .sheet { background-image: var(--grain); }

/* ── 단추: 가는 테두리, 작은 글씨 ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: var(--control-h); padding: 0 var(--space-md);
  border: 1px solid var(--color-rule-strong); border-radius: var(--radius-btn);
  background: transparent; color: var(--color-ink); font: inherit; font-size: var(--text-sm); font-weight: 500; line-height: 1; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-hover); }
.btn:active { background: var(--color-press); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.btn-primary:active { background: var(--color-accent-deep); }
.btn-small { padding: 0 var(--space-sm); }
.btn-icon { width: var(--control-h); padding: 0; }
.no-js .js-only { display: none !important; }
.mobile-only { display: none; }
.is-mobile .mobile-only { display: inline-flex; }

/* ── 표지: 기본은 사진을 끝까지, 이름은 아래 ─────────────── */
.cover { padding: 0 0 var(--space-2xl); text-align: var(--align); }
.cover-media { position: relative; }
.cover-photo { margin: 0; }
.cover-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: var(--photo-filter); border-radius: var(--radius-photo); }
.cover-photo-2, .cover-figure, .cover-date-en { display: none; }
.cover-text { padding: var(--space-lg) var(--gutter) 0; }
.names { display: flex; flex-direction: column; align-items: var(--justify); gap: var(--space-sm); font-weight: 400; }
.names-en { font-family: var(--font-latin); font-weight: 400; font-size: var(--text-en); line-height: 1.05; letter-spacing: -0.01em; }
.names-en .et { font-size: 0.8em; }
.names-ko { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: var(--justify); gap: 0 var(--space-sm); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-names); line-height: 1.25; letter-spacing: var(--tracking-display); }
.names-ko .amp { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; letter-spacing: 0; color: var(--color-muted); }
.has-en .names-ko { font-size: var(--text-md); letter-spacing: var(--tracking-ko); font-weight: 400; color: var(--color-ink-2); }
.cover-date-en { margin-bottom: var(--space-2xs); font-family: var(--font-latin); font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink-2); letter-spacing: 0.02em; }
.cover-when { margin-top: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.75; }
.cover-actions { display: flex; flex-wrap: wrap; justify-content: var(--justify); gap: var(--space-xs); margin-top: var(--space-md); }

@supports (height: 1svh) {
  .cover-photo img { aspect-ratio: auto; height: min(48svh, 34rem); }
}

/* 1. 화이트: 날짜를 영문으로 한 줄 더 */
[data-theme="minimal"] .cover-date-en { display: block; }
[data-theme="minimal"] .names-en { font-weight: 400; }

/* 2. 시네마: 한 화면 가득 사진, 글은 사진 아래쪽 위에 */
[data-theme="cinema"] .cover { position: relative; display: grid; padding: 0; min-height: 40rem; }
[data-theme="cinema"] .cover-media, [data-theme="cinema"] .cover-text { grid-area: 1 / 1; }
[data-theme="cinema"] .cover-media::after { content: ""; position: absolute; inset: 0; background: var(--scrim); pointer-events: none; }
[data-theme="cinema"] .cover-photo img { height: 100%; min-height: 40rem; aspect-ratio: auto; }
[data-theme="cinema"] .cover-text { position: relative; z-index: 1; align-self: end; padding: 0 var(--gutter) var(--space-2xl); color: var(--color-on-photo); }
[data-demo][data-theme="cinema"] .cover-text { padding-bottom: calc(var(--space-2xl) + 3rem); }
[data-theme="cinema"] .names-en { font-size: clamp(3rem, 2.2rem + 4vw, 3.75rem); }
[data-theme="cinema"] .has-en .names-ko, [data-theme="cinema"] .cover-when, [data-theme="cinema"] .cover-date-en { color: var(--color-on-photo); }
[data-theme="cinema"] .names-ko .amp { color: var(--color-on-photo); }
[data-theme="cinema"] .cover-date-en { display: block; }
[data-theme="cinema"] .cover-actions .btn { border-color: var(--color-on-photo-edge); color: var(--color-on-photo); }
[data-theme="cinema"] .cover-actions .btn-primary { background: var(--color-on-photo); border-color: var(--color-on-photo); color: var(--color-accent-ink); }
@supports (height: 1svh) {
  [data-theme="cinema"] .cover { min-height: 100svh; }
  [data-theme="cinema"] .cover-photo img { height: 100svh; }
}

/* 3. 에디토리얼: 날짜 머리줄, 큰 영문, 사진 두 장 */
[data-theme="editorial"] .cover { display: flex; flex-direction: column; padding: var(--space-lg) var(--space-md) var(--space-2xl); }
[data-theme="editorial"] .cover-text { display: contents; }
[data-theme="editorial"] .cover-figure { display: block; align-self: stretch; margin-bottom: var(--space-xs); padding-bottom: var(--space-xs); border-bottom: 3px double var(--color-ink); font-family: var(--font-latin); font-size: var(--text-md); line-height: 1.5; }
[data-theme="editorial"] .names { order: 2; margin: 0 0 var(--space-md); gap: var(--space-xs); }
[data-theme="editorial"] .names-en { font-size: clamp(3.25rem, 2.2rem + 6vw, 4.5rem); line-height: 0.95; letter-spacing: -0.02em; }
[data-theme="editorial"] .has-en .names-ko { color: var(--color-ink); font-weight: 600; letter-spacing: 0.08em; }
[data-theme="editorial"] .cover-media { order: 3; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-2xs); }
[data-theme="editorial"] .cover-photo-2 { display: block; }
[data-theme="editorial"] .cover-photo img { aspect-ratio: 3 / 4; }
[data-theme="editorial"] .cover-when { order: 4; margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--color-ink); color: var(--color-ink); }
[data-theme="editorial"] .cover-actions { order: 5; }
@supports (height: 1svh) { [data-theme="editorial"] .cover-photo img { height: min(36svh, 26rem); aspect-ratio: auto; } }

/* 4. 모노: 흑백 사진 끝까지, 굵은 이름 두 줄 */
[data-theme="mono"] .names-en { display: none; }
[data-theme="mono"] .names-ko, [data-theme="mono"] .has-en .names-ko { flex-direction: column; align-items: flex-start; gap: 0; font-size: clamp(2.25rem, 1.6rem + 3.2vw, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.045em; color: var(--color-ink); }
[data-theme="mono"] .names-ko .amp { margin: var(--space-2xs) 0; font-size: var(--text-sm); font-weight: 500; }
[data-theme="mono"] .cover-date-en { display: block; font-weight: 600; font-size: var(--text-md); color: var(--color-ink); letter-spacing: 0; }
[data-theme="mono"] .cover-when { margin-top: var(--space-xs); }

/* 5. 블러쉬: 둥근 사진 안쪽에, 손글씨 이름 */
[data-theme="blush"] .cover { padding: var(--space-md) var(--space-lg) var(--space-2xl); }
[data-theme="blush"] .cover-text { padding: var(--space-md) 0 0; }
[data-theme="blush"] .names-en { font-size: clamp(2.75rem, 2rem + 3.6vw, 3.5rem); line-height: 1.25; letter-spacing: 0; }
[data-theme="blush"] .cover-date-en { display: block; font-family: var(--font-display); font-size: var(--text-md); letter-spacing: 0.06em; }

/* 6. 세이지: 둥근 사진, 글은 왼쪽 */
[data-theme="sage"] .cover { padding: var(--space-md) var(--space-md) var(--space-2xl); }
[data-theme="sage"] .cover-text { padding: var(--space-lg) var(--space-xs) 0; }
[data-theme="sage"] .cover-date-en { display: block; }
[data-theme="sage"] .cover-when { padding-top: var(--space-md); border-top: 1px solid var(--color-rule-strong); }

/* 7. 네이비: 금빛 테두리 안 사진, 금빛 영문 */
[data-theme="midnight"] .cover { padding: var(--space-lg) var(--space-xl) var(--space-2xl); }
[data-theme="midnight"] .cover-photo { padding: var(--space-xs); border: 1px solid var(--color-accent); }
[data-theme="midnight"] .names-en { color: var(--color-accent); }
[data-theme="midnight"] .cover-text { padding: var(--space-lg) 0 0; }
[data-theme="midnight"] .cover-date-en { display: block; }
@supports (height: 1svh) { [data-theme="midnight"] .cover-photo img { height: min(44svh, 30rem); } }

/* 8. 필름: 흑백 사진 끝까지, 큰 월 · 일 */
[data-theme="film"] .names-en { display: none; }
[data-theme="film"] .cover-text { padding-top: var(--space-md); }
[data-theme="film"] .cover-figure {
  display: block; font-family: var(--font-figure); font-weight: 200; font-size: var(--text-figure);
  line-height: 1; letter-spacing: -0.01em; color: var(--color-ink); font-variant-numeric: tabular-nums;
}
[data-theme="film"] .cf-y { display: none; }
[data-theme="film"] .names { gap: var(--space-2xs); }
[data-theme="film"] .names-ko, [data-theme="film"] .has-en .names-ko { flex-direction: column; align-items: flex-start; gap: var(--space-2xs); font-size: var(--text-names); font-weight: 200; color: var(--color-ink); letter-spacing: -0.02em; }
@supports (height: 1svh) { [data-theme="film"] .cover-photo img { height: min(40svh, 30rem); } }

/* 9. 한지: 사진 옆에 세로로 쓴 이름, 사진 귀퉁이에 囍 도장 */
[data-theme="hanji"] .cover { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-md); align-items: start; padding: var(--space-xl) var(--gutter) var(--space-2xl); }
[data-theme="hanji"] .cover-media { grid-column: 1; grid-row: 1; }
[data-theme="hanji"] .cover-photo { position: relative; padding: var(--space-xs); border: 1px solid var(--color-rule-strong); background: var(--color-card); }
[data-theme="hanji"] .cover-photo::after {
  content: "囍" / ""; position: absolute; right: calc(-1 * var(--space-sm)); bottom: calc(-1 * var(--space-sm));
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 3px;
  background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-size: 1.6rem; line-height: 1;
}
[data-theme="hanji"] .cover-photo img { aspect-ratio: 3 / 4; }
@supports (height: 1svh) { [data-theme="hanji"] .cover-photo img { height: min(50svh, 30rem); aspect-ratio: auto; } }
[data-theme="hanji"] .cover-text { display: contents; }
[data-theme="hanji"] .names { grid-column: 2; grid-row: 1; writing-mode: vertical-rl; flex-direction: column; align-items: center; gap: var(--space-md); }
[data-theme="hanji"] .names-en { display: none; }
[data-theme="hanji"] .names-ko, [data-theme="hanji"] .has-en .names-ko { flex-direction: column; align-items: center; gap: var(--space-sm); font-size: 1.75rem; letter-spacing: 0.24em; color: var(--color-ink); font-weight: 400; }
[data-theme="hanji"] .names-ko .amp { letter-spacing: 0.1em; }
[data-theme="hanji"] .cover-when { grid-column: 1 / -1; margin-top: var(--space-xl); }
[data-theme="hanji"] .cover-actions { grid-column: 1 / -1; }

/* 10. 팝: 분홍으로 물든 흑백 사진, 파란 그림자, 굵은 이름 */
[data-theme="pop"] .cover { padding: var(--space-lg) var(--space-lg) var(--space-2xl); }
[data-theme="pop"] .cover-photo { background: var(--color-pop); box-shadow: var(--shadow-photo); margin-right: var(--space-xs); }
[data-theme="pop"] .cover-photo img { mix-blend-mode: multiply; }
[data-theme="pop"] .cover-text { padding: var(--space-xl) 0 0; }
[data-theme="pop"] .names-en { display: none; }
[data-theme="pop"] .names-ko, [data-theme="pop"] .has-en .names-ko { flex-direction: column; align-items: flex-start; gap: 0; font-size: clamp(2.5rem, 1.8rem + 3.6vw, 3.25rem); line-height: 1.1; color: var(--color-ink); letter-spacing: 0; }
[data-theme="pop"] .names-ko .amp { color: var(--color-ink-2); }
@supports (height: 1svh) { [data-theme="pop"] .cover-photo img { height: min(44svh, 32rem); } }

/* 11. 터미널: 초록 화면, 명령어처럼 */
[data-theme="terminal"] .names::before { content: "$ ./marry --forever" / ""; font-size: var(--text-sm); font-weight: 400; color: var(--color-accent); }
[data-theme="terminal"] .names-en { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); order: 3; }
[data-theme="terminal"] .names-ko, [data-theme="terminal"] .has-en .names-ko { flex-direction: column; align-items: flex-start; gap: 0; font-size: 2rem; font-weight: 700; color: var(--color-ink); letter-spacing: -0.01em; }
[data-theme="terminal"] .names-ko .n:last-child::after { content: "\2590" / ""; margin-left: var(--space-2xs); color: var(--color-accent); font-weight: 400; }
[data-theme="terminal"] .cover-text { padding-top: var(--space-lg); }
@supports (height: 1svh) { [data-theme="terminal"] .cover-photo img { height: min(46svh, 30rem); } }

/* ── 섹션 ───────────────────────────────────────────── */
.sec, .after { padding: var(--sec-pad) var(--gutter); text-align: var(--align); }
.sec h2, .after h2 {
  margin-bottom: var(--space-xl); font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: var(--text-xl); line-height: 1.4; letter-spacing: var(--tracking-head);
}
.prose { color: var(--color-ink-2); line-height: 2; }
.prose p + p { margin-top: var(--space-lg); }
.sec-act { margin-top: var(--space-xl); }
.sec-note { margin-bottom: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
.after { border-bottom: 1px solid var(--color-rule); background: var(--color-card); }

/* 가운데 맞춘 디자인: 제목 아래 짧은 선 */
[data-theme="minimal"] .sec h2::after, [data-theme="blush"] .sec h2::after, [data-theme="midnight"] .sec h2::after, [data-theme="hanji"] .sec h2::after {
  content: ""; display: block; width: var(--space-lg); height: 1px; margin: var(--space-md) auto 0; background: var(--color-rule-strong);
}
[data-theme="midnight"] .sec h2::after { background: var(--color-accent); }
[data-theme="hanji"] .sec h2::after { background: var(--color-accent); }
/* 왼쪽 맞춘 디자인: 섹션 사이에 가는 선 */
[data-theme="editorial"] .sec, [data-theme="mono"] .sec, [data-theme="film"] .sec, [data-theme="cinema"] .sec, [data-theme="terminal"] .sec { border-top: 1px solid var(--color-rule); }
[data-theme="editorial"] .sec { border-top-color: var(--color-ink); }
[data-theme="editorial"] .sec h2 { font-size: 1.5rem; letter-spacing: 0; }
[data-theme="mono"] .sec h2 { font-size: 1.5rem; }
[data-theme="pop"] .sec h2 { font-size: 1.75rem; }
[data-theme="pop"] .sec h2::after { content: ""; display: block; width: var(--space-2xl); height: 6px; margin-top: var(--space-sm); background: var(--color-pop); }
[data-theme="terminal"] .sec h2::before { content: "# " / ""; color: var(--color-accent); }
/* 바탕을 번갈아 */
[data-theme="minimal"] .date, [data-theme="minimal"] .accounts { background: var(--color-card); }
[data-theme="blush"] .date, [data-theme="blush"] .accounts { background: var(--color-card); }
[data-theme="sage"] .date { background: var(--tint-moss); }
[data-theme="sage"] .accounts { background: var(--color-card); }
[data-theme="hanji"] .date, [data-theme="hanji"] .accounts { background: var(--color-card); }
[data-theme="pop"] .date { background: var(--color-card); }
[data-theme="midnight"] .date, [data-theme="midnight"] .accounts { background: var(--color-card); }

/* 혼주 */
.family { display: grid; gap: var(--space-sm); margin-top: var(--space-2xl); }
.parents .pa { color: var(--color-ink-2); }
.parents .of { color: var(--color-muted); font-size: var(--text-sm); }
.parents .me { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--display-weight); }
[data-theme="mono"] .parents .me, [data-theme="film"] .parents .me, [data-theme="minimal"] .parents .me, [data-theme="cinema"] .parents .me, [data-theme="midnight"] .parents .me { font-weight: 500; }

/* 달력 · 디데이 */
.date-time { color: var(--color-ink-2); }
.cal { width: 100%; max-width: 20rem; margin: var(--space-xl) var(--block-inline) 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cal th { padding-bottom: var(--space-sm); font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); }
.cal td { height: 2.5rem; padding: 0; text-align: center; font-size: var(--text-sm); }
.cal td span { display: inline-grid; place-items: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; }
.cal .is-sun { color: var(--color-sun); }
.cal .is-sat { color: var(--color-sat); }
.cal .is-day span { background: var(--color-day); color: var(--color-day-ink); font-weight: 600; }
.dday { margin-top: var(--space-xl); font-family: var(--font-latin); font-size: 2.5rem; font-weight: 400; line-height: 1; letter-spacing: 0.01em; color: var(--color-ink); }
[data-theme="film"] .dday { font-family: var(--font-figure); font-weight: 200; font-size: 3.5rem; }
[data-theme="mono"] .dday, [data-theme="pop"] .dday { font-weight: 800; letter-spacing: -0.03em; }
.countdown { margin-top: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-sm); }
.countdown strong { color: var(--color-ink); font-weight: 600; }

/* 사진: 세 칸 격자 */
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3xs); margin: 0; padding: 0; list-style: none; }
.g-item { display: block; aspect-ratio: 1; overflow: clip; border-radius: var(--radius-box); -webkit-tap-highlight-color: transparent; }
.g-item img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.g-item:focus-visible { outline-offset: -3px; }
.gallery { padding-inline: 0; }
.gallery h2 { padding-inline: var(--gutter); }
[data-theme="blush"] .g-grid, [data-theme="sage"] .g-grid, [data-theme="pop"] .g-grid { gap: var(--space-2xs); padding-inline: var(--space-md); }
[data-theme="editorial"] .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-theme="editorial"] .g-grid li:first-child { grid-column: 1 / -1; }
[data-theme="editorial"] .g-grid li:first-child .g-item { aspect-ratio: 3 / 2; }

/* 오시는 길 */
.venue { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); }
.venue .hall { display: block; margin-top: var(--space-2xs); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
[data-theme="mono"] .venue, [data-theme="film"] .venue, [data-theme="minimal"] .venue, [data-theme="cinema"] .venue, [data-theme="midnight"] .venue { font-weight: 500; }
.addr { display: flex; flex-wrap: wrap; align-items: center; justify-content: var(--justify); gap: var(--space-xs) var(--space-sm); margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-sm); }
.venue-tel { margin-top: var(--space-xs); }
.venue-tel a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: var(--control-h); color: var(--color-ink-2); font-size: var(--text-sm); }
.maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--space-xs); max-width: 22rem; margin: var(--space-lg) var(--block-inline) 0; }
.is-mobile .maps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ways { display: grid; gap: var(--space-md); margin: var(--space-2xl) 0 0; text-align: left; }
.way { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.way dt { font-size: var(--text-sm); font-weight: 600; }
.way dd { margin: 0; color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.7; }

/* 마음 전하실 곳 */
.acc { border-top: 1px solid var(--color-rule); text-align: left; }
.acc:last-of-type { border-bottom: 1px solid var(--color-rule); }
.acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; font-size: var(--text-sm); font-weight: 500; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { transition: transform var(--dur-short) var(--ease-out); }
.acc[open] summary .ico { transform: rotate(180deg); }
.acct-list { display: grid; gap: var(--space-md); margin: 0; padding: 0 0 var(--space-md); list-style: none; }
.acct { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.acct-text { min-width: 0; }
.acct-who { color: var(--color-muted); font-size: var(--text-xs); }
.acct-role { color: var(--color-ink-2); }
.acct-num { margin-top: var(--space-3xs); font-size: var(--text-sm); }
.acct-num .num { white-space: nowrap; }
.acct-bank { color: var(--color-ink-2); }
.acct-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-xs); }
[data-theme="blush"] .acc, [data-theme="sage"] .acc, [data-theme="pop"] .acc { margin-top: var(--space-xs); padding-inline: var(--space-md); border: 0; border-radius: var(--radius-box); background: var(--color-paper); }

/* 끝 */
.foot { padding: var(--sec-pad) var(--gutter) var(--space-3xl); border-top: 1px solid var(--color-rule); text-align: var(--align); }
.foot-names { margin-top: var(--space-xl); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); letter-spacing: var(--tracking-head); }
.foot-credit, .foot-made { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); line-height: 1.6; }

/* 화면에 들어오면 살짝 떠오르기(스크립트가 켜졌을 때만 숨겨 둔다) */
.js.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js.rv-on .rv.in { opacity: 1; transform: none; }


/* ── 창(연락하기 · 사진 크게 보기) ─────────────────────── */
dialog { padding: 0; border: 0; color: var(--color-ink); background: var(--color-paper); }
.sheet-dialog { width: min(calc(100% - var(--space-xl)), 26rem); padding: var(--space-lg); border-radius: var(--radius-box); box-shadow: var(--shadow-dialog); }
.sheet-dialog::backdrop { background: var(--color-scrim); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); }
.dlg-head h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); }
.ct-list { margin: 0; padding: 0; list-style: none; }
.ct { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); }
.ct-role { color: var(--color-muted); font-size: var(--text-sm); }
.ct-acts { display: flex; gap: var(--space-xs); }

.viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; background: var(--color-viewer); color: var(--color-viewer-ink); }
.viewer::backdrop { background: var(--color-viewer); }
.viewer[open] { display: grid; place-items: center; }
.viewer-stage { display: grid; place-items: center; width: 100%; height: 100%; touch-action: pan-y; }
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.viewer-img.is-dragging { transition: none; }
.viewer-btn {
  position: fixed; display: grid; place-items: center; width: var(--control-h); height: var(--control-h);
  border: 1px solid var(--color-viewer-edge); border-radius: 50%; background: var(--color-viewer-btn); color: var(--color-viewer-ink); cursor: pointer;
}
.viewer-btn:focus-visible { outline: 2px solid var(--color-viewer-ink); outline-offset: 2px; }
.viewer-btn:active { background: var(--color-viewer-ink); color: var(--color-viewer); }
.viewer-prev { left: var(--space-sm); top: calc(50% - var(--control-h) / 2); }
.viewer-next { right: var(--space-sm); top: calc(50% - var(--control-h) / 2); }
.viewer-close { right: var(--space-sm); top: calc(var(--space-sm) + env(safe-area-inset-top)); }
.viewer-count { position: fixed; left: 0; right: 0; bottom: calc(var(--space-lg) + env(safe-area-inset-bottom)); text-align: center; font-size: var(--text-sm); }

/* ── 알림 · 계절 효과 단추 · 예시 막대 ─────────────────── */
.toast {
  font-family: var(--font-ui);
  position: fixed; left: 50%; bottom: calc(var(--space-2xl) + env(safe-area-inset-bottom)); z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md); border-radius: var(--radius-btn); background: var(--color-ink); color: var(--color-paper);
  font-size: var(--text-sm); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, var(--space-xs));
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: var(--z-fx); pointer-events: none; }
.fx-toggle {
  position: fixed; right: max(var(--space-sm), calc((100% - var(--sheet)) / 2 + var(--space-sm))); bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); z-index: var(--z-ui);
  display: grid; place-items: center; width: var(--control-h); height: var(--control-h);
  border: 1px solid var(--color-rule-strong); border-radius: 50%; background: var(--color-paper); color: var(--color-ink-2); cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.fx-toggle:hover { background: var(--color-card); }
.fx-toggle:active { background: var(--color-paper-2); }
.fx-toggle[aria-pressed="false"] { color: var(--color-muted); }
.fx-toggle[aria-pressed="false"] .ico { opacity: 0.45; }

.demo-bar {
  font-family: var(--font-ui);
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-ui); max-width: var(--sheet); margin-inline: auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm) calc(var(--space-xs) + env(safe-area-inset-bottom));
  background: var(--color-bar); color: var(--color-bar-ink);
}
.demo-field { display: grid; min-width: 0; }
.demo-field select {
  width: 100%; min-height: var(--control-h); padding: 0 var(--space-sm); border: 1px solid var(--color-bar-rule); border-radius: var(--space-2xs);
  background: var(--color-bar-field); color: var(--color-bar-ink); font: inherit; font-size: var(--text-sm);
}
.demo-field select:focus-visible { outline: 2px solid var(--color-bar-ink); outline-offset: 1px; }
.demo-note { font-family: var(--font-ui); letter-spacing: 0; padding: var(--space-xs) var(--gutter); background: var(--color-bar); color: var(--color-bar-muted); font-size: var(--text-xs); text-align: center; }
[data-demo] .sheet { padding-bottom: 4.5rem; }
[data-demo] .fx-toggle { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }

/* 넓은 화면: 가운데 한 장 */
@media (min-width: 40rem) {
  .sheet { box-shadow: 0 0 0 1px var(--color-rule); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
