/*
   main.css: main version style. index.html 전용이다.
   [A] base layout과 [B] theme 오버라이드를 한 파일로 합쳤다.
   [B]가 [A] 뒤에 와서 색과 font와 여백을 다시 입힌다.
   layout과 동작은 js/main.js가, 날짜와 사진과 profile 같은 내용은 js/config.js가 관리한다.
 */

/* [A] base layout */


/* 01. 변수 & base */

:root {
  --paper: #faf7f1;
  --paper-deep: #f1ece2;
  --card: #ffffff;
  --line: #e7e0d2;
  --line-soft: #efe9dc;

  --ink: #433e35;
  --ink-bright: #2b2720;
  --soft: #8a8172;
  --faint: #a89f8e;

  --rose: #bd5d7c;
  --rose-soft: #e7c3cf;
  --leaf: #5a7a5e;
  --gold: #b08d4f;

  --serif: 'Gowun Batang', serif;
  --sans: 'IBM Plex Sans KR', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* 은은한 종이 질감 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.5;
  background-image: 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='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}


/* 02. layout & reveal animation */

.paper {
  position: relative;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--paper);
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

section {
  padding: 68px 26px;
}

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

.rv.d1 { transition-delay: 0.12s; }
.rv.d2 { transition-delay: 0.24s; }
.rv.d3 { transition-delay: 0.36s; }


/* 03. 표지 */

.cover {
  padding: 72px 26px 56px;
  text-align: center;
}

.cover .small-cap {
  font-size: 13px;
  letter-spacing: 0.45em;
  text-indent: 0.45em;       /* letter-spacing 마지막 글자 보정 */
  color: var(--gold);
}

.cover h1 {
  margin-top: 26px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.14em;
  color: var(--ink-bright);
  line-height: 1.6;
}

.cover h1 .and {
  display: block;
  margin: 2px 0;
  font-size: 17px;
  color: var(--rose);
}

.cover .cover-date {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 17.5px;
  color: var(--ink);
}

.cover .cover-venue {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--soft);
}

/* 아치형 main 사진 */
.arch-photo {
  width: min(100%, 400px);   /* height는 aspect-ratio(4/5)를 따라 폭에 비례해 자동으로 커진다 */
  aspect-ratio: 4 / 5;
  margin: 44px auto 0;
  overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -28px rgba(95, 75, 55, 0.45);
  background: var(--card);
}

.arch-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* '축하 전하기' 아래의 전체폭 사진. 좌우 padding이 없는 .paper의 직계 자식이라 화면을 꽉 채운다. */
.bless-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}


/* 04. section label & 구분 장식 */

.label {
  margin-bottom: 14px;
  text-align: center;
  font-size: 13.5px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--gold);
}

.label-title {
  margin-bottom: 34px;
  text-align: center;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--ink-bright);
}

/* 꽃 glyph 구분선 */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 26px;
  color: var(--rose-soft);
  font-size: 15px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 0 0 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.divider::after {
  background: linear-gradient(90deg, var(--line), transparent);
}


/* 05. 인사말 & 가족 소개 */

.greeting {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 2.15;
  text-align: center;
  word-break: keep-all;
  color: var(--ink);
}

.greeting p + p {
  margin-top: 30px;
}

.greeting .soft {
  font-size: 15.5px;
  color: var(--soft);
}







/* 06. gallery (가로 swipe) & lightbox */

/* gallery. 3열 정사각 grid이며, 사진이 늘면 아래로 자동 확장된다. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.g-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  cursor: pointer;
  box-shadow: 0 8px 18px -14px rgba(95, 75, 55, 0.30);
}

.g-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

/* gallery 3×3 pagination */
.gallery-pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.gallery-pager .pg-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  -webkit-appearance: none;   /* iOS의 native button rendering을 끈다. active 숫자가 안 보이던 문제를 막는다. */
  appearance: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--soft);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

/* hover는 실제 pointer(마우스) 기기에서만 적용한다.
   touch에서는 tap한 뒤 :hover가 고착돼 비활성 page button이 활성(rose 테두리)처럼 보였다. */
@media (hover: hover) {
  .gallery-pager .pg-btn:hover:not(:disabled) {
    border-color: var(--rose);
    color: var(--rose);
  }
}

.gallery-pager .pg-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  -webkit-text-fill-color: #fff;   /* iOS: color가 무시돼 숫자가 안 보이던 것 강제 지정 */
}

.gallery-pager .pg-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* 사진 placeholder */
.ph-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: linear-gradient(150deg, #f7eee9, #f3e7ea);
  border-radius: inherit;
  text-align: center;
}

.ph-placeholder .ico {
  font-size: 26px;
  opacity: 0.6;
}

.ph-placeholder .fn {
  font-size: 12px;
  color: var(--soft);
}

.ph-placeholder .hint {
  font-size: 11px;
  color: var(--faint);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(38, 30, 24, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lightbox .lb-cap {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #d8cfc2;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(0, 0, 0, 0.55);              /* 시인성↑: 어두운 알약 + 밝은 테두리 */
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: background 0.2s, transform 0.15s;
}

.lightbox button:hover  { background: rgba(0, 0, 0, 0.78); }
.lightbox button:active { transform: scale(0.93); }

/* 닫기는 상단에, 이전과 다음 화살표는 사진 좌우 끝에 약간 투명하게 둔다.
   닫기(✕)는 너무 커 보이지 않게 화살표보다 작게(34px) 줄였다. */
.lightbox .lb-close { top: 14px; right: 14px; width: 34px; height: 34px; font-size: 16px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); opacity: 0.55; }
.lightbox .lb-prev  { left: 10px; }
.lightbox .lb-next  { right: 10px; }
.lightbox .lb-prev:active, .lightbox .lb-next:active { transform: translateY(-50%) scale(0.93); }

/* 가로/짧은 화면(세로 여백 부족): 사진을 더 줄여 하단 button과 겹치지 않게 */
@media (max-height: 600px) {
  .lightbox img { max-height: 62vh; }
}


/* 07. 예식 안내 (D-day & 달력) */

.when-date {
  text-align: center;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--ink-bright);
}

.when-time {
  margin-top: 8px;
  text-align: center;
  font-size: 15px;
  color: var(--soft);
}

/* D-day */
.dday {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.dd-cell {
  min-width: 74px;
  padding: 15px 8px 11px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

.dd-cell b {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}

.dd-cell span {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.dday-note {
  margin-top: 22px;
  text-align: center;
  font-family: var(--serif);
  font-size: 16.5px;
  color: var(--soft);
}

.dday-note b {
  color: var(--rose);
  font-weight: 700;
}

/* 달력 */
.cal {
  margin-top: 36px;
  padding: 26px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.cal-title {
  margin-bottom: 18px;
  text-align: center;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--ink);
}

.cal table {
  width: 100%;
  border-collapse: collapse;
}

.cal th {
  padding: 6px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.cal th:first-child,
.cal td:first-child .d {
  color: #c96a6a;
}

.cal td {
  padding: 4px 0;
  text-align: center;
}

.cal .d {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--soft);
}

.cal .d.wedding-day {
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(189, 93, 124, 0.14); }
  50%      { box-shadow: 0 0 0 8px rgba(189, 93, 124, 0.08); }
}


/* 08. 오시는 길 */

.venue-card {
  padding: 28px 22px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.venue-card .vc-name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink-bright);
}

.venue-card .vc-name small {
  font-size: 16px;
  color: var(--soft);
}

.venue-card .vc-addr {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}

.venue-card .vc-sub {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--soft);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* 길찾기 button 2행 2열 */
.btn-row.btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* 링크(a)와 button은 기본 줄 높이가 달라 같은 값으로 맞춘다. */
.btn-grid .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  line-height: 1.4;
}

/* 주차 안내 */
.parking-note {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--soft);
  text-align: center;
  word-break: keep-all;
}

.parking-note .pn-title {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.parking-note b {
  font-weight: 500;
  color: var(--ink);
}

.parking-note .pn-tip {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--rose);
}

.btn {
  flex: 1;
  min-width: 110px;
  padding: 14px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, transform 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* 네이버 지도 embed. 키가 있으면 지도를, 없으면 안내 문구(.is-fallback)를 보여준다. */
.map-embed {
  height: 260px;
  margin-top: 18px;
  /* section 좌우 padding(26px)을 상쇄해 .paper 폭 전체로 넓힌다 */
  width: auto;
  margin-left: -26px;
  margin-right: -26px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.map-embed .map-note { display: none; }

.map-embed.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 22px 18px;
  text-align: center;
}

.map-embed.is-fallback .map-note {
  display: block;
  font-size: 14.5px;
  color: var(--soft);
}


/* 09. 마음 전하실 곳 */

.gift-note {
  margin-bottom: 22px;
  text-align: center;
  font-size: 16px;
  line-height: 2;
  color: var(--soft);
}

details.gift {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

details.gift + details.gift {
  margin-top: 12px;
}

details.gift summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 18px;
  list-style: none;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink);
}

details.gift summary::-webkit-details-marker {
  display: none;
}

details.gift summary .arrow {
  margin-left: auto;
  color: var(--faint);
  transition: transform 0.3s;
}

details.gift[open] summary .arrow {
  transform: rotate(90deg);
}

details.gift .acc-list {
  border-top: 1px solid var(--line-soft);
}

.acc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  font-size: 15px;
}

.acc + .acc {
  border-top: 1px dashed var(--line-soft);
}

.acc .nm {
  flex: none;
  width: 48px;   /* 이름 3자 폭에 맞춰 줄여서 이름과 계좌정보 사이 공백을 좁힌다 */
  font-weight: 400;
  color: var(--ink);
}

.acc .no {
  font-size: 14px;
  color: var(--soft);
}

.acc button {
  flex: none;
  margin-left: auto;
  padding: 7px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--soft);
  cursor: pointer;
  transition: all 0.25s;
}

.acc button:hover {
  color: var(--rose);
  border-color: var(--rose);
}

.acc button.copied {
  color: var(--leaf);
  border-color: var(--leaf);
}

/* 계좌 펼침 button. details 밖 container용이며 js/private.js가 만든다. */
.reveal-btn {
  display: inline-block;
}

.acc-note {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--soft);
  text-align: center;
}


/* 10. 축하 전하기 */

#bless {
  text-align: center;
}

.bless-input {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 6px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  text-align: center;
}

.bless-input::placeholder { color: var(--soft); }

.bless-input:focus {
  outline: none;
  border-color: var(--rose);
}

.input-hint {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--soft);
  text-align: center;
}

/* 축하 한마디 글자수 counter (config.js가 입력창 뒤에 삽입) */
.bless-count {
  margin: 0 0 8px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--soft);
  text-align: center;
}

.bless-count.over {
  color: #c0392b;
  font-weight: 700;
}

.bless-input.over-limit {
  border-color: #c0392b;
}

.bless-btn {
  margin-top: 8px;
  padding: 17px 38px;
  background: linear-gradient(135deg, #fdf3f6, #fbf6ec);
  border: 1px solid var(--rose-soft);
  border-radius: 99px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--rose);
  cursor: pointer;
  box-shadow: 0 12px 28px -16px rgba(189, 93, 124, 0.4);
  transition: all 0.3s;
}

.bless-btn:hover {
  border-color: var(--rose);
}

.bless-btn:active {
  transform: scale(0.96);
}

.bless-btn.blessed {
  border-color: var(--leaf);
  color: var(--leaf);
  pointer-events: none;
}

.bless-msg {
  min-height: 24px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--leaf);
  opacity: 0;
  transition: opacity 0.6s;
}

.bless-msg.show {
  opacity: 1;
}

/* 축하 기록 */
.bless-log {
  margin-top: 28px;
  padding: 20px 20px 16px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  line-height: 2.2;
}

/* 목록만 세로로 scroll한다. 합계(.bl-total)는 scroll 영역 밖이라 항상 보인다.
   높이는 약 5.5줄치(.bl-line 24.75px에 줄간격 7px 기준)로 잡았다.
   마지막 줄이 반쯤 걸쳐 보이는 것 자체가 아래에 더 있다는 신호가 된다. */
.bless-log .bl-lines {
  max-height: 168px;
  overflow-y: auto;
  padding-right: 8px;                /* scrollbar와 글자 사이 여백 */
  overscroll-behavior: contain;      /* 끝까지 내려도 page가 따라 밀리지 않게 */
  -webkit-overflow-scrolling: touch; /* iOS 관성 scroll */
  scrollbar-width: thin;
  scrollbar-color: var(--rose-soft) transparent;
}

/* 기본 회색 막대가 종이 톤을 깨서 scrollbar도 theme 색으로 */
.bless-log .bl-lines::-webkit-scrollbar { width: 4px; }
.bless-log .bl-lines::-webkit-scrollbar-track { background: transparent; }

.bless-log .bl-lines::-webkit-scrollbar-thumb {
  background: var(--rose-soft);
  border-radius: 99px;
}

.bless-log .bl-line {
  color: var(--soft);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.bless-log .bl-line + .bl-line {
  margin-top: 7px;
}

.bless-log .bl-line .ts {
  color: var(--rose);
}

/* '더보기'. scroll 영역 안, 목록 맨 끝에 붙어 끝까지 내려야 보인다. */
.bless-log .bl-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 9px 12px;
  background: transparent;
  border: 1px dashed var(--rose-soft);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--rose);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

@media (hover: hover) {
  .bless-log .bl-more:hover {
    background: #fdf3f6;
    border-color: var(--rose);
  }
}

.bless-log .bl-more:disabled {
  color: var(--faint);
  border-color: var(--line);
  cursor: default;
}

.bless-log .bl-total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--ink);
}

.bless-log .bl-total b {
  color: var(--rose);
  font-weight: 700;
}

/* 꽃잎 confetti */
.confetti {
  position: fixed;
  z-index: 110;
  pointer-events: none;
  font-size: 16px;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(420deg);
    opacity: 0.15;
  }
}

/* hidden page banner (예식 후 노출) */
.release-banner {
  display: none;
  margin: 26px auto 0;
  padding: 16px;
  max-width: 330px;
  text-align: center;
  text-decoration: none;
  background: #f3f7f1;
  border: 1px solid #cbdcc8;
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--leaf);
}

.release-banner.show {
  display: block;
}


/* 11. footer */

footer {
  padding: 40px 26px 60px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  line-height: 2.4;
  color: var(--faint);
}

footer .thanks-line {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--soft);
}

/* version 안내 문구. 개발자와 terminal version link 위에 오는 설명이다. */
footer .version-note {
  margin: 24px auto 0;
  max-width: 330px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--faint);
  word-break: keep-all;
}

/* version 전환 link. 반반 가로 배치로 작게 둔다. */
footer .version-links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

footer .version-link {
  flex: 1;
  padding: 9px 8px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--soft);
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s;
}

footer .version-link:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}

/* 청첩장 공유 button. page 톤에 맞춘 부드러운 outline. */
footer .share-btn {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  padding: 13px 12px;
  background: var(--card);
  color: var(--rose);
  border: 1px solid var(--rose-soft);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
}

footer .share-btn:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
footer .share-btn:active { transform: scale(0.97); }


/* 12. 반응형 & 접근성 */

@media (max-width: 380px) {
  .dd-cell {
    min-width: 62px;
  }

  .cover h1 {
    font-size: 36px;
  }
}

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

  .rv {
    opacity: 1;
    transform: none;
  }
}


/* [B] theme 오버라이드
   [A]의 layout 위에 색과 font와 여백을 다시 입힌다. */

:root {
  /* 면(surface): 따뜻한 ivory 화이트 */
  --paper: #fffdfb;
  --paper-deep: #f3ede6;
  --card: #ffffff;

  /* 선(line): 따뜻한 hairline */
  --line: #ece5dd;
  --line-soft: #f4efe9;

  /* 글자: 부드러운 웜 charcoal. 본문과 보조 text를 더 진하게 잡아 가독성을 올렸다.
     soft는 #978d82(약 2.7:1)에서 #6f665a(약 5.8:1)로,
     faint는 #c2b8ac(약 1.9:1)에서 #7d7466(약 4.4:1)로 올렸다. */
  --ink: #35302a;
  --ink-bright: #1c1813;
  --soft: #6f665a;
  --faint: #7d7466;

  /* 포인트: 로맨틱 red-rose, 웜 gold, sage */
  --rose: #c2566a;
  --rose-soft: #f0d3d8;
  --leaf: #7e977f;
  --gold: #bd9670;

  /* font: 본문은 Gowun Dodum, 제목과 serif는 Gowun Batang */
  --sans: 'Gowun Dodum', 'Apple SD Gothic Neo', sans-serif;
  --serif: 'Gowun Batang', serif;
  --display: 'Gowun Batang', serif;
}

/* 종이 질감(noise)을 없애 맑고 모던하게 */
body::before { display: none; }

/* 본문 card. 얇은 웜 hairline을 데스크톱에서만 은은하게 준다. */
.paper {
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}


/* 표지: 여백을 더 넓히고 디스플레이 명조로 */

.cover {
  padding: 52px 26px 56px;   /* WEDDING INVITATION 위 공백을 줄인다 */
}

.cover .small-cap {
  font-size: 12px;           /* invitation 문구를 작게 */
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--gold);
}

.cover h1 {
  margin-top: 26px;
  font-family: var(--display);
  font-size: 40px;           /* 표지 제목을 크게 */
  font-weight: 400;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

/* 이름 사이 빨간 heart 악센트 (vividvows 톤) */
.cover h1 .and {
  display: block;
  margin: 8px 0;
  font-size: 24px;
  color: var(--rose);
  text-indent: 0;
}

.cover .cover-date {
  margin-top: 26px;
  font-family: var(--display);
  letter-spacing: 0.02em;
}

.arch-photo {
  margin-top: 28px;          /* 아치 사진과 예식장 문구 사이 공백을 줄인다 */
  border-color: var(--line);
  box-shadow: 0 26px 54px -30px rgba(120, 70, 60, 0.32);
}


/* section label & 구분 장식 */

.label {
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold);
}

.label-title {
  margin-bottom: 30px;
  font-family: var(--display);
  font-size: 23px;           /* section 타이틀을 크게 */
  letter-spacing: 0.12em;
  text-indent: 0.12em;
}

.divider {
  color: var(--rose);
  font-size: 12px;
  opacity: 0.7;
}

.divider::before,
.divider::after {
  flex-basis: 70px;
}


/* 인사말: 본문은 부드러운 serif를 유지 */

.greeting {
  font-size: 18.5px;
  line-height: 2.15;
}



/* 신랑, 신부 profile (main version 전용) */

/* 나란한 2열. 큰 세로 사진 2장을 나란히 두고 아래에 이름과 정보를 붙인다. */
.profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

/* 세로형 card. 위에 사진, 아래에 캡션을 두고 배경과 테두리 없이 page 위에 바로 올린다. */
.pf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-align: center;
}

/* 세로 4:5 frame. object-fit:cover로 신랑과 신부의 높이를 맞춘다. */
.pf-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: #f3e6ea;   /* image load 전 배경 */
}

.pf-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* frame에 꽉 차게 crop */
  object-position: 50% 20%;  /* 기본 crop 초점. 개별값은 config.photoFocus로 덮어쓴다. */
}

/* 사진이 없을 때만 쓰는 이니셜. 4:5 box는 그대로 유지한다. */
.pf-photo.is-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #f8ebe9, #f3e6ea);   /* 사진 없을 때만 배경(이니셜) */
  font-family: var(--display);
  font-size: 44px;
  color: var(--rose);
}

.pf-card figcaption {
  width: 100%;
  margin-top: 12px;
}


.pf-name {
  display: inline;
  margin-left: 7px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-bright);
}

.pf-line {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--soft);
  word-break: keep-all;
}





.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pf-tag {
  padding: 4px 11px;
  border-radius: 99px;
  background: #fbeef0;
  font-size: 12.5px;
  color: var(--rose);
}

/* 두 card 사이 heart. 나란한 2열에서는 render가 넣지 않지만, 안전하게 숨겨 둔다. */
.pf-amp {
  display: none;
}

@media (max-width: 360px) {
  .profile { gap: 10px; }
  .pf-name { font-size: 23px; }
  .pf-photo.is-empty { font-size: 36px; }
}


/* 예식 안내: 달력 강조일 펄스 색을 rose로 */

.venue-card .vc-name {
  font-family: var(--display);
}

/* 예식 시간 '오전 11시'를 날짜보다 또렷하게. 크고 진하게, rose 색으로 준다. */
.when-time {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rose);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(194, 86, 106, 0.14); }
  50%      { box-shadow: 0 0 0 8px rgba(194, 86, 106, 0.07); }
}


/* button, 축하, lightbox: 톤에 맞춰 보정 */

/* 사진 자리표시. 중립 톤. */
.g-item     { box-shadow: 0 14px 30px -22px rgba(120, 70, 60, 0.24); }

/* gallery 안내 문구를 가독성을 위해 조금 더 진한 색으로 */
.gallery-hint { color: var(--soft); }

/* 축하 button. 맑은 화이트 알약에 rose를 얹고 크림 gradient은 뺐다. */
.bless-btn {
  padding: 13px 30px;        /* '한번 더 축하하기' button을 작게 */
  font-size: 16px;
  background: #ffffff;
  border-color: var(--rose-soft);
  color: var(--rose);
  font-family: var(--display);
  box-shadow: 0 14px 28px -18px rgba(194, 86, 106, 0.3);
}

.bless-btn:hover { border-color: var(--rose); }

/* lightbox 배경. 따뜻한 dark. */
.lightbox { background: rgba(28, 20, 18, 0.93); }

/* hidden page banner(예식 후 노출). 옅은 sage. */
.release-banner {
  background: #f6f8f6;
  border-color: #e1e9e1;
}


/* 여백 정리, 오시는 길과 안내 사항의 box 제거 */

/* section 상하 여백을 줄여 divider와 문구 사이 공백을 좁힌다 */
section {
  padding: 48px 26px;
}

/* 오시는 길과 안내 사항은 card(box)를 없애고 배경 위에 바로 올린다.
   테두리 없이 깔끔하게 두고, 정렬은 본문과 같은 가운데를 유지한다. */
.venue-card {
  padding: 6px 0 0;
  background: none;
  border: none;
  border-radius: 0;
}

.parking-note {
  margin-top: 24px;
  padding: 2px 8px 0;
  background: none;
  border: none;
  border-radius: 0;
}


/* [C] modern theme
   [A]와 [B] 위에 덮는다. 따뜻한 off-white 면, taupe 포인트, Pretendard 본문,
   Playfair Display 표지 제목, Dancing Script section 머리말로 깔끔하게 정리한다.
   표지는 전체폭 사진 위에 이름과 일시를 얹는 hero 형식이다. */

:root {
  --paper: #f8f6f2;
  --paper-deep: #ebe6df;
  --card: #ffffff;
  --line: #e4ded6;
  --line-soft: #eeeae4;
  --empty: #ece7e1;          /* 사진이 없을 때의 빈 면 */

  --ink: #2e2a27;
  --ink-bright: #1f1c1a;
  --soft: #766d66;
  --faint: #9c938b;

  --rose: #8c7d71;           /* 포인트(taupe). [A][B]가 rose로 칠한 강조가 모두 이 색을 따른다. */
  --rose-soft: #ddd5cc;
  --gold: #9c8f84;
  --sunday: #c0504d;
  --groom: #6f8fc9;
  --bride: #c27fae;

  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --serif: var(--sans);
  --display: 'Playfair Display', 'Times New Roman', serif;
  --script: 'Dancing Script', cursive;
}

body {
  letter-spacing: -0.01em;
}

.paper {
  border: 0;
  box-shadow: 0 0 48px rgba(60, 50, 40, 0.08);
}

section {
  padding: 76px 26px;
}

.divider { display: none; }


/* 표지 hero */

.cover.hero {
  position: relative;
  height: min(100svh, 860px);
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #a59d93 0%, #877e74 55%, #5f5850 100%);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 사진이 없으면 placeholder 문구 없이 빈 면만 둔다 */
.hero-photo .ph-placeholder { background: transparent; }
.hero-photo .ph-placeholder > * { display: none; }

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0) 24%,
    rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0.36) 100%);
}

.cover.hero .hero-title {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-indent: 0;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.hero-meta {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 60px);
  left: 0;
  right: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-date {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.03em;
}

.hero-venue {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.88;
}

.release-banner {
  margin: 28px 26px 0;
  max-width: none;
  border-radius: 4px;
}


/* section 머리말: 영문 script + 짧은 한글 제목 */

.label {
  margin-bottom: 26px;
  font-family: var(--script);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0;
  text-indent: 0;
  color: var(--gold);
}

.label + .label-title {
  margin-top: -16px;
}

.label-title {
  margin-bottom: 34px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-indent: 0;
  color: var(--ink-bright);
}


/* 인사말 & 가족 */

.greeting {
  font-size: 15.5px;
  line-height: 2.1;
}

.greeting p + p { margin-top: 28px; }
.greeting .soft { font-size: 15px; }






/* 달력 & countdown */

.cal {
  margin-top: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.cal-title {
  margin-bottom: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-indent: 0;
  color: var(--ink-bright);
}

.cal table {
  border-bottom: 1px solid var(--line);
}

.cal tbody tr:last-child td { padding-bottom: 16px; }

.cal th {
  padding: 8px 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.cal th:first-child,
.cal td:first-child .d {
  color: var(--sunday);
}

.cal .d {
  width: 36px;
  height: 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.cal .d.wedding-day,
.cal td:first-child .d.wedding-day {
  background: var(--rose);
  color: #fff;
  font-weight: 600;
  animation: none;
  box-shadow: 0 0 0 4px rgba(140, 125, 113, 0.16);
}

.when {
  margin-top: 30px;
  text-align: center;
}

.when .when-date,
.when .when-time {
  display: inline;
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0;
}

.when .when-date { font-weight: 500; color: var(--ink); }
.when .when-time { margin-left: 6px; font-weight: 600; color: var(--rose); }

.dday {
  gap: 0;
  margin-top: 26px;
  align-items: center;
}

.dd-cell {
  position: relative;
  min-width: 64px;
  padding: 12px 6px 10px;
  background: var(--card);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 18px -10px rgba(60, 50, 40, 0.22);
}

.dd-cell + .dd-cell { margin-left: 22px; }

.dd-cell + .dd-cell::before {
  content: ':';
  position: absolute;
  top: 50%;
  left: -14px;
  transform: translateY(-62%);
  font-weight: 600;
  color: var(--ink);
}

.dd-cell b {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-bright);
}

.dd-cell span {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--soft);
}

@media (max-width: 380px) {
  .dd-cell { min-width: 56px; }
  .dd-cell + .dd-cell { margin-left: 18px; }
  .dd-cell + .dd-cell::before { left: -12px; }
  .cover.hero .hero-title { font-size: 56px; }
}

.dday-note {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.dday-note b { color: var(--rose); font-weight: 600; }


/* 빈 사진 자리: 문구 없이 단색 면 */

.ph-placeholder {
  gap: 0;
  background: var(--empty);
}

.ph-placeholder .fn,
.ph-placeholder .hint { display: none; }

.ph-placeholder .ico {
  font-size: 18px;
  opacity: 0.22;
  filter: grayscale(1);
}


/* gallery */

.gallery { gap: 6px; }

.g-item {
  border: 0;
  border-radius: 2px;
  background: var(--empty);
  box-shadow: none;
}

.gallery-hint {
  font-size: 13px;
  letter-spacing: 0;
  color: var(--faint);
}


/* profile */

/* 인사말 아래에 놓인다. 위 문단과 사진 사이를 넉넉히 띄운다. */
.profile { gap: 18px; margin-top: 52px; }

.pf-photo {
  border-radius: 4px;
  background: var(--empty);
}

.pf-photo.is-empty {
  background: var(--empty);
  font-family: var(--display);
  font-size: 40px;
  color: #b3a99f;
}

.pf-card figcaption { margin-top: 14px; }



/* 부모 이름과 서열. 좁은 화면에서는 "의 장남" 앞에서만 줄을 바꾼다. */
.pf-family {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--soft);
  word-break: keep-all;
}

.pf-family span { white-space: nowrap; }

.pf-name {
  display: block;
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}



/* 오시는 길 & 안내 */

.venue-card .vc-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
}

.venue-card .vc-name small {
  font-size: 14px;
  font-weight: 400;
  color: var(--soft);
}

.venue-card .vc-addr { font-size: 15px; color: var(--ink); }
.venue-card .vc-sub { font-size: 13.5px; color: var(--soft); }

.btn-row { gap: 8px; }

.btn {
  padding: 13px 8px;
  background: #efebe6;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.btn:hover {
  background: #e6e0d9;
  color: var(--ink);
}

.map-embed {
  border-color: var(--line);
  background: var(--empty);
}

.parking-note { font-size: 14.5px; color: var(--soft); }

.parking-note .pn-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}


/* 마음 전하실 곳 & 축하 */

.gift-note {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--soft);
}

details.gift {
  border: 0;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 18px -12px rgba(60, 50, 40, 0.2);
}

details.gift summary { font-size: 15px; font-weight: 500; }

.bless-input { border-radius: 4px; }

.bless-btn {
  padding: 14px 34px;
  background: var(--rose);
  border: 0;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  box-shadow: none;
}

.bless-btn:hover { background: #7d6f64; border-color: transparent; }

.bless-log { border-radius: 4px; }

/* 축하 아래 전체폭 사진은 지정했을 때만 보인다 */
.bless-photo:not([src]) { display: none; }


/* footer */

footer .share-btn {
  background: var(--rose);
  border: 0;
  border-radius: 4px;
  font-weight: 600;
  color: #fff;
}

footer .share-btn:hover { background: #7d6f64; color: #fff; }

footer .version-link { border-radius: 4px; }


/* [D] 샤랄라 톤
   [C] 위에 블러시 핑크 포인트, 표지의 빛 번짐과 반짝임, 떨어지는 꽃잎을 얹는다. */

:root {
  --paper: #fcf9f7;
  --paper-deep: #f1e7e4;
  --empty: #f3e9e7;
  --line: #eadfdb;

  --rose: #c4959a;           /* 블러시 더스티 로즈 */
  --rose-deep: #b3838a;
  --rose-soft: #ecd7d9;
  --gold: #c99aa0;           /* script 머리말 색 */
  --blush-glow: rgba(214, 160, 168, 0.35);
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #f8e9ea 0%, transparent 60%),
    var(--paper-deep);
}

/* 본문에 아주 옅은 블러시 빛을 위아래로 */
.paper {
  background:
    radial-gradient(500px 380px at 0% 18%, rgba(244, 214, 218, 0.35), transparent 70%),
    radial-gradient(520px 420px at 100% 52%, rgba(244, 214, 218, 0.3), transparent 70%),
    radial-gradient(480px 380px at 0% 86%, rgba(244, 214, 218, 0.3), transparent 70%),
    var(--paper);
}


/* 표지: 부드러운 블러시 톤 빈 면 + 빛 번짐 + 반짝임 */

.hero-photo {
  background:
    radial-gradient(120% 60% at 50% 0%, #f3dedd 0%, transparent 60%),
    linear-gradient(180deg, #dcc4c1 0%, #bfa29f 48%, #8f7774 100%);
}

.hero-shade {
  background: linear-gradient(180deg,
    rgba(70, 40, 45, 0.18) 0%, rgba(70, 40, 45, 0) 26%,
    rgba(70, 40, 45, 0) 56%, rgba(70, 40, 45, 0.34) 100%);
}

/* 사진 위에도 은은한 빛 번짐(light leak)을 얹는다 */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(60% 40% at 85% 12%, rgba(255, 228, 232, 0.55), transparent 70%),
    radial-gradient(50% 35% at 10% 70%, rgba(255, 236, 226, 0.35), transparent 70%);
  animation: glowDrift 9s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  from { opacity: 0.75; transform: translate3d(0, 0, 0); }
  to   { opacity: 1;    transform: translate3d(-10px, 8px, 0); }
}

.cover.hero .hero-title {
  text-shadow:
    0 0 28px rgba(255, 240, 242, 0.45),
    0 2px 22px rgba(80, 40, 50, 0.18);
}

.hero-date::before,
.hero-date::after {
  content: '✦';
  margin: 0 10px;
  font-size: 10px;
  vertical-align: 3px;
  opacity: 0.85;
}

/* 반짝이는 별 */
.sparkles { position: absolute; inset: 0; pointer-events: none; }

.sparkles i {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
  opacity: 0;
  animation: twinkle 3.6s ease-in-out infinite;
}

.sparkles i:nth-child(1)  { top: 14%; left: 18%; animation-delay: 0s; }
.sparkles i:nth-child(2)  { top: 22%; left: 78%; animation-delay: 1.1s; transform: scale(0.7); }
.sparkles i:nth-child(3)  { top: 31%; left: 42%; animation-delay: 2.3s; }
.sparkles i:nth-child(4)  { top: 36%; left: 88%; animation-delay: 0.6s; transform: scale(0.6); }
.sparkles i:nth-child(5)  { top: 44%; left: 9%;  animation-delay: 1.8s; transform: scale(0.8); }
.sparkles i:nth-child(6)  { top: 61%; left: 84%; animation-delay: 2.9s; }
.sparkles i:nth-child(7)  { top: 66%; left: 24%; animation-delay: 0.3s; transform: scale(0.6); }
.sparkles i:nth-child(8)  { top: 72%; left: 63%; animation-delay: 1.5s; transform: scale(0.75); }
.sparkles i:nth-child(9)  { top: 18%; left: 56%; animation-delay: 3.2s; transform: scale(0.5); }
.sparkles i:nth-child(10) { top: 52%; left: 70%; animation-delay: 2.1s; transform: scale(0.55); }
.sparkles i:nth-child(11) { top: 80%; left: 14%; animation-delay: 0.9s; transform: scale(0.7); }
.sparkles i:nth-child(12) { top: 9%;  left: 36%; animation-delay: 2.6s; transform: scale(0.65); }

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50%      { opacity: 0.95; }
}


/* 떨어지는 꽃잎. 본문 폭 안에서만 내린다. */

.petals {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  width: min(100%, 430px);
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}

.petals i {
  position: absolute;
  top: -24px;
  width: 11px;
  height: 9px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #fbe3e6, #eab7bf);
  opacity: 0;
  animation: petalFall 16s linear infinite;
}

.petals i:nth-child(1)  { left: 6%;  animation-delay: 0s;   animation-duration: 15s; }
.petals i:nth-child(2)  { left: 18%; animation-delay: 5s;   animation-duration: 18s; transform: scale(0.8); }
.petals i:nth-child(3)  { left: 31%; animation-delay: 9s;   animation-duration: 14s; }
.petals i:nth-child(4)  { left: 44%; animation-delay: 2.5s; animation-duration: 19s; transform: scale(0.7); }
.petals i:nth-child(5)  { left: 57%; animation-delay: 7s;   animation-duration: 16s; }
.petals i:nth-child(6)  { left: 68%; animation-delay: 12s;  animation-duration: 17s; transform: scale(0.85); }
.petals i:nth-child(7)  { left: 79%; animation-delay: 4s;   animation-duration: 15s; }
.petals i:nth-child(8)  { left: 90%; animation-delay: 10s;  animation-duration: 20s; transform: scale(0.75); }
.petals i:nth-child(9)  { left: 50%; animation-delay: 14s;  animation-duration: 18s; transform: scale(0.65); }
.petals i:nth-child(10) { left: 24%; animation-delay: 16s;  animation-duration: 16s; }

@keyframes petalFall {
  0%   { opacity: 0;    transform: translate3d(0, 0, 0) rotate(0deg); }
  8%   { opacity: 0.85; }
  25%  { transform: translate3d(22px, 25vh, 0) rotate(90deg); }
  50%  { transform: translate3d(-14px, 52vh, 0) rotate(190deg); }
  75%  { transform: translate3d(26px, 78vh, 0) rotate(280deg); }
  92%  { opacity: 0.7; }
  100% { opacity: 0;    transform: translate3d(-8px, 104vh, 0) rotate(360deg); }
}


/* section 머리말 위에 작은 반짝임 */

.label::before {
  content: '✧';
  display: block;
  margin-bottom: 2px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--rose);
  opacity: 0.8;
}

.label {
  font-size: 25px;
}


/* 달력 강조일: 블러시 원 + 은은한 숨쉬기 */

.cal .d.wedding-day,
.cal td:first-child .d.wedding-day {
  background: linear-gradient(145deg, #d6a9ae, var(--rose-deep));
  box-shadow: 0 6px 16px -4px rgba(179, 131, 138, 0.55);
  animation: blushPulse 2.8s ease-in-out infinite;
}

@keyframes blushPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(214, 160, 168, 0.22), 0 6px 16px -4px rgba(179, 131, 138, 0.5); }
  50%      { box-shadow: 0 0 0 9px rgba(214, 160, 168, 0.08), 0 6px 16px -4px rgba(179, 131, 138, 0.5); }
}

.dd-cell {
  box-shadow: 0 1px 2px rgba(120, 60, 70, 0.04), 0 10px 22px -12px var(--blush-glow);
}

.dday-note { color: var(--ink); }


/* 빈 사진 자리: 블러시 면 위 아주 옅은 광택 */

.ph-placeholder,
.g-item,
.pf-photo,
.pf-photo.is-empty {
  background: linear-gradient(150deg, #f7eeec 0%, #f0e2e0 100%);
}

.pf-photo.is-empty { color: #d2b3b6; }


/* button: 블러시 로즈 */

.bless-btn,
footer .share-btn {
  background: linear-gradient(135deg, #d0a3a8, var(--rose-deep));
  box-shadow: 0 10px 22px -12px rgba(179, 131, 138, 0.7);
}

.bless-btn:hover,
footer .share-btn:hover { background: var(--rose-deep); }

.btn { background: #f4eae8; }
.btn:hover { background: #eddcda; }

details.gift {
  box-shadow: 0 1px 2px rgba(120, 60, 70, 0.04), 0 10px 22px -14px var(--blush-glow);
}


@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
  .sparkles i { animation: none; opacity: 0.6; }
  .hero-glow,
  .cal .d.wedding-day { animation: none; }
}

.dday-note .heart { color: #e08a9a; }


/* [E] 손글씨 톤 글꼴과 큰 글자
   본문을 마포꽃섬(살짝 손글씨 느낌)으로 바꾸고 전체 글자 크기를 한 단계 올린다.
   마포꽃섬은 굵기가 하나라 가짜 bold를 끄고, 강조는 크기와 색으로 준다. */

@font-face {
  font-family: 'MapoFlowerIsland';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/MapoFlowerIslandA.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: 'MapoFlowerIsland', 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
}

body {
  font-synthesis: none;
  letter-spacing: 0;
}

.hero-venue { font-size: 16px; }

.label { font-size: 28px; }
.label-title { font-size: 22px; color: var(--ink-bright); }

.greeting { font-size: 17.5px; line-height: 2.1; }
.greeting .soft { font-size: 16.5px; }


.cal-title { font-size: 24px; letter-spacing: 0; }
.cal th { font-size: 13.5px; }
.cal .d { width: 38px; height: 38px; font-size: 17px; }

.when .when-date,
.when .when-time { font-size: 18.5px; }

.dd-cell { min-width: 68px; }
.dd-cell b { font-size: 25px; }
.dd-cell span { font-size: 13px; }

.dday-note { font-size: 17.5px; }

.gallery-hint { font-size: 14.5px; }

.pf-family { font-size: 15px; }
.pf-name { font-size: 20px; }

.venue-card .vc-name { font-size: 22px; }
.venue-card .vc-name small { font-size: 16px; }
.venue-card .vc-addr { font-size: 17px; }
.venue-card .vc-sub { font-size: 15px; }

.btn { font-size: 16px; }

.parking-note { font-size: 16.5px; }
.parking-note .pn-title { font-size: 18px; }

.gift-note { font-size: 16.5px; }
details.gift summary { font-size: 17px; }

.bless-btn,
footer .share-btn { font-size: 17px; }

footer { font-size: 16px; }
footer .thanks-line { font-size: 18px; }

@media (max-width: 380px) {
  .dd-cell { min-width: 58px; }
  .dd-cell b { font-size: 22px; }
}

/* 손글씨 글꼴은 획이 가늘어 보조 글자색을 한 단계 진하게 */
:root { --ink: #2a2522; --soft: #625853; --faint: #857a74; }


/* [F] 표지 제목: 사진 위에 얹는 대각선 필기체 */

.cover.hero .hero-title {
  top: 53%;
  font-family: 'Ms Madi', 'Dancing Script', cursive;
  font-size: 80px;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  transform: translateY(-50%) rotate(-9deg);
  text-shadow:
    0 0 22px rgba(255, 240, 242, 0.55),
    0 2px 16px rgba(80, 40, 50, 0.22);
}

.hero-title span { display: block; white-space: nowrap; }
.hero-title .ht-1 { padding-left: 14%; text-align: left; }
.hero-title .ht-2 { padding-right: 5%; text-align: right; }

@media (max-width: 380px) {
  .cover.hero .hero-title { font-size: 68px; }
}

/* 필기체 획이 가늘어 사진 위에서 묻히지 않게 살짝 두껍게 */
.cover.hero .hero-title { -webkit-text-stroke: 0.6px #fff; }


/* [G] 달력: 토요일 파란색, 글자를 더 진하고 굵게
   마포꽃섬은 굵기가 하나라 얇은 외곽선(text-stroke)으로 획을 두껍게 한다. */

:root { --saturday: #3f6fc4; }

.cal-title,
.cal th,
.cal .d,
.when .when-date,
.when .when-time {
  -webkit-text-stroke: 0.45px currentColor;
}

.cal-title { color: #1a1614; }
.cal th { color: #1f1b19; }
.cal .d { color: #1f1b19; }
.when .when-date { color: #1f1b19; }
.when .when-time { color: var(--rose-deep); }

.cal th:first-child,
.cal td:first-child .d { color: #c23f3b; }

.cal th:last-child,
.cal td:last-child .d { color: var(--saturday); }

/* 예식일 원 안 숫자는 흰색 유지 */
.cal .d.wedding-day,
.cal td:first-child .d.wedding-day,
.cal td:last-child .d.wedding-day {
  color: #fff;
  -webkit-text-stroke: 0.45px #fff;
}

/* countdown과 안내 문구도 달력과 같은 굵기로 */
.dd-cell b, .dday-note { -webkit-text-stroke: 0.45px currentColor; }
.dd-cell b { color: #1f1b19; }


/* [H] 예식일 표시: 크레파스로 동그라미 친 손그림 마크
   채운 원과 그림자를 걷어 내고, 질감 있는 SVG 선을 숫자 둘레에 두른다. */

.cal .d.wedding-day,
.cal td:first-child .d.wedding-day,
.cal td:last-child .d.wedding-day {
  position: relative;
  background: none;
  box-shadow: none;
  animation: none;
  color: #b0606d;
  -webkit-text-stroke: 0.6px #b0606d;
}

.cal .d.wedding-day::before {
  content: '';
  position: absolute;
  inset: -7px -8px -6px -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 60'%3E%3Cdefs%3E%3Cfilter id='c' x='-15%25' y='-15%25' width='130%25' height='130%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='4' result='n'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='n' scale='2.2' xChannelSelector='R' yChannelSelector='G' result='d'/%3E %3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' seed='11' result='g'/%3E %3CfeColorMatrix in='g' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.8 2.05' result='ga'/%3E %3CfeComposite in='d' in2='ga' operator='in'/%3E %3C/filter%3E%3C/defs%3E %3Cg filter='url%28%23c%29' fill='none' stroke='%23d77f8c' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath stroke-width='2.7' opacity='0.9' d='M17 11 C29 3 50 5 56 18 C62 31 54 47 40 52 C26 57 9 50 6 37 C3 24 12 12 27 8 C35 6 44 6 51 10'/%3E %3Cpath stroke-width='1.4' opacity='0.5' d='M12 18 C19 8 38 4 50 10 C60 17 60 36 51 46 C42 55 21 56 11 46 C5 39 5 27 10 20'/%3E %3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-8deg);
  pointer-events: none;
}


/* [I] 크레파스 체크: 숫자는 토요일 파란색, 오른쪽 위에 작은 크레파스 별, 굵기를 한 단계 가볍게 */

.cal .d.wedding-day,
.cal td:first-child .d.wedding-day,
.cal td:last-child .d.wedding-day {
  color: var(--saturday);
  -webkit-text-stroke: 0.3px var(--saturday);
}

.cal .d.wedding-day::after {
  content: '';
  position: absolute;
  top: -15px;
  right: -17px;
  width: 25px;
  height: 25px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cfilter id='c' x='-15%25' y='-15%25' width='130%25' height='130%25'%3E %3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' seed='4' result='n'/%3E %3CfeDisplacementMap in='SourceGraphic' in2='n' scale='2.2' xChannelSelector='R' yChannelSelector='G' result='d'/%3E %3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' seed='11' result='g'/%3E %3CfeColorMatrix in='g' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.8 2.05' result='ga'/%3E %3CfeComposite in='d' in2='ga' operator='in'/%3E %3C/filter%3E%3C/defs%3E %3Cg filter='url%28%23c%29' fill='none' stroke='%23d77f8c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.9'%3E %3Cpath d='M12 3 L14.2 9.3 L21 9.6 L15.6 13.6 L17.6 20.2 L12 16.3 L6.4 20.2 L8.4 13.6 L3 9.6 L9.8 9.3 Z'/%3E %3C/g%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(14deg);
  pointer-events: none;
}

/* 예식 시각: 동그라미 오른쪽 아래에 크레파스로 적은 듯한 손글씨. 위의 별과 대각선으로 짝을 이룬다. */
.cal .d.wedding-day .wd-time {
  position: absolute;
  top: 82%;
  left: 90%;
  font-family: var(--script);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: #c4687a;
  -webkit-text-stroke: 0.2px #c4687a;
  transform: rotate(-9deg);
  pointer-events: none;
}

/* 12. 예식날 베스트 샷 어워즈 이벤트 배너 */
.event-banner-sec {
  padding: 30px 24px 10px;
}

.event-banner-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(135deg, #fffcf7 0%, #faf3e8 100%);
  border: 1.5px solid #ebd8b6;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(176, 141, 79, 0.09);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.event-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(176, 141, 79, 0.16);
  border-color: #dfc499;
}

.event-banner-card:active {
  transform: translateY(1px);
}

.eb-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--rose);
  background: #fbebf0;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.eb-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-bright);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.eb-desc {
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.55;
  margin-bottom: 16px;
  word-break: keep-all;
}

.eb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  background: var(--gold);
  padding: 10px 22px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(176, 141, 79, 0.25);
  transition: all 0.2s ease;
}

.event-banner-card:hover .eb-btn {
  background: #9e7b3f;
}
