/* 템플릿 A "코발트" — 흰 지면 + 코발트 색면, 흑백 사진, 그로테스크 숫자. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --cobalt: #1e3fd8;
  --cobalt-deep: #1531b0;
  --ink: #111111;
  --muted: #555a66;
  --rule: #111111;
  --on-cobalt: #ffffff;
  --on-cobalt-muted: #d6deff;
  --gut-l: 24px;
  --gut-r: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html { background: var(--cobalt-deep); }
body.t-cobalt { background: var(--cobalt-deep); color: var(--ink); font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif; font-size: 17px; line-height: 1.75; }
.t-cobalt .sheet { background: var(--paper); }
.t-cobalt ::selection { background: var(--cobalt); color: var(--on-cobalt); }
.t-cobalt :focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.t-cobalt .sec-field :focus-visible, .t-cobalt .cover-field :focus-visible { outline-color: var(--on-cobalt); }
.d-display, .cover-date, .when .sec-title, .lb-count { font-family: Archivo, "Pretendard Variable", sans-serif; font-stretch: 125%; font-weight: 800; }

/* ---------- 표지 ---------- */
.cover { height: 100svh; min-height: 600px; max-height: 940px; display: grid; grid-template-rows: 46fr 54fr; }
.cover-photo { overflow: hidden; background: #ddd; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.cover-field { background: var(--cobalt); color: var(--on-cobalt); padding: 18px var(--gut-r) 26px var(--gut-l); display: flex; flex-direction: column; }
.cover-date { font-size: min(27.5vw, 15.5svh, 132px); line-height: .8; letter-spacing: -.045em; margin-left: -.04em; white-space: nowrap; animation: cobalt-rise 520ms var(--ease) both; }
.cover-dot { letter-spacing: -.08em; }
.cover-names { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.cover-and { flex: 0 0 28px; height: 3px; background: var(--on-cobalt); }
.cover-when { margin-top: 12px; color: var(--on-cobalt-muted); font-size: 17px; line-height: 1.55; }
@keyframes cobalt-rise {
  from { clip-path: inset(0 0 100% 0); transform: translateY(18%); }
  to { clip-path: inset(0 0 -10% 0); transform: none; }
}

/* ---------- 섹션 공통 ---------- */
.sec { padding: 88px var(--gut-r) 60px var(--gut-l); }
.sec-title { font-size: 28px; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 28px; }
.sec-rule { border-top: 2px solid var(--rule); margin-inline: var(--gut-l) var(--gut-r); padding-inline: 0; padding-top: 24px; }
.sec-field { background: var(--cobalt); color: var(--on-cobalt); padding: 72px var(--gut-r) 72px var(--gut-l); }
.sec-note { color: var(--on-cobalt-muted); margin: -12px 0 28px; }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 34em; }

/* 인사말 — 양가는 4단 그리드의 1~3단 */
.parents { margin-top: 44px; padding-top: 20px; border-top: 1px solid #d4d6dc; display: grid; gap: 10px; width: 75%; min-width: 260px; }
.parents-line { font-size: 17px; }
.parents-of { color: var(--muted); }
.parents-child { font-weight: 800; margin-left: .2em; }
.late { color: var(--muted); }

/* ---------- 일시 ---------- */
.when .sec-title { font-size: 44px; letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; }
.when-line { color: var(--on-cobalt-muted); }
.when-grid { margin-top: 36px; display: grid; gap: 28px; }
.when .cal { font-size: 16px; }
.when .cal th { color: var(--on-cobalt-muted); font-size: 13px; padding-bottom: 10px; }
.when .cal td { height: 40px; }
.when .cal th:first-child, .when .cal td:first-child { color: #ffc9c2; }
.when .cal .is-day span { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--on-cobalt); color: var(--cobalt); font-weight: 800; }
.when-dday { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .5); padding-top: 14px; }
.when-dday-label { color: var(--on-cobalt-muted); }
.when-dday .dday { font-family: Archivo, sans-serif; font-stretch: 125%; font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.03em; }

/* ---------- 사진: 큰 1 + 작은 2 반복 ---------- */
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-right: calc(var(--gut-r) * -1); margin-left: calc(var(--gut-l) * -1); }
.g-wide { grid-column: span 2; aspect-ratio: 4 / 3; }
.g-half { aspect-ratio: 3 / 4; }
.g-half:nth-child(3n) { margin-top: 32px; }
.g-grid .g-item:last-child:nth-child(3n + 2) { grid-column: span 2; aspect-ratio: 4 / 3; }
.g-item { background: #e8e8e8; }
.g-item img { transition: transform 300ms var(--ease); }
.g-item:hover img { transform: scale(1.03); }
.g-item:active img { transform: scale(.985); }

/* ---------- 오시는 길 ---------- */
.venue-name { font-size: 24px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.venue-hall { display: block; font-size: 17px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.address { margin-top: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.address-copy { flex: none; padding: 0 2px; color: var(--cobalt); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.map-apps { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.map-app { min-height: 58px; font-weight: 700; font-size: 16px; color: var(--ink); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.map-app + .map-app { border-left: 1px solid var(--ink); }
.map-app:hover, .map-app:active { background: var(--cobalt); color: var(--on-cobalt); }
.map-web-hint { margin-top: 10px; color: var(--muted); font-size: 15px; }
.transport { margin-top: 36px; display: grid; gap: 18px; }
.transport-item { display: grid; grid-template-columns: 25% 1fr; gap: 12px; }
.transport dt { font-weight: 800; }
.transport dd { color: #2c2f36; }

/* ---------- 마음 전하실 곳 ---------- */
.acc-group { border-top: 1px solid rgba(255, 255, 255, .55); }
.acc-group:last-child { border-bottom: 1px solid rgba(255, 255, 255, .55); }
.acc-toggle { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; font-size: 20px; font-weight: 800; }
.acc-toggle::after { content: ""; width: 16px; height: 16px; flex: none; background: linear-gradient(var(--on-cobalt), var(--on-cobalt)) center / 100% 2px no-repeat, linear-gradient(var(--on-cobalt), var(--on-cobalt)) center / 2px 100% no-repeat; transition: transform 240ms var(--ease); }
.acc-toggle[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc-list { padding-bottom: 18px; display: grid; gap: 4px; }
.acc-row { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; padding: 12px 0; border-top: 1px dashed rgba(255, 255, 255, .35); }
.acc-row:first-child { border-top: 0; }
.acc-who { grid-column: 1; color: var(--on-cobalt-muted); font-size: 15px; }
.acc-holder { color: var(--on-cobalt); }
.acc-line { grid-column: 1; font-size: 18px; font-weight: 700; }
.acc-bank { font-weight: 400; margin-right: .3em; }
.acc-copy { grid-column: 2; grid-row: 1 / span 2; padding: 0 16px; border: 2px solid var(--on-cobalt); font-weight: 700; font-size: 15px; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.acc-copy:hover { background: rgba(255, 255, 255, .12); }
.acc-copy.is-copied { background: var(--on-cobalt); color: var(--cobalt); }
.pay-links { grid-column: 1 / -1; display: flex; gap: 16px; margin-top: 4px; }
.pay { min-height: 40px; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 연락하기 ---------- */
.contact-side + .contact-side { margin-top: 32px; }
.contact-head { font-size: 15px; font-weight: 800; color: var(--cobalt); margin-bottom: 6px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #e1e2e6; }
.contact-role { color: var(--muted); margin-right: .25em; }
.contact-name { font-weight: 700; }
.contact-actions { display: flex; gap: 6px; }
.contact-btn { padding: 0 14px; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 700; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.contact-btn:hover, .contact-btn:active { background: var(--ink); color: var(--paper); }

/* ---------- 공유 ---------- */
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btn { min-height: 56px; font-weight: 800; border: 2px solid var(--cobalt); color: var(--cobalt); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.share-btn[data-share] { background: var(--cobalt); color: var(--on-cobalt); }
.share-btn:hover { background: var(--cobalt-deep); color: var(--on-cobalt); }
.share-btn.is-copied { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- 바닥글 ---------- */
.promise { padding: 40px var(--gut-r) 64px var(--gut-l); border-top: 8px solid var(--cobalt); }
.promise-text { font-weight: 800; font-size: 17px; }
.demo-notice { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.promise-maker { margin-top: 6px; font-size: 15px; }
.promise-maker a { color: var(--cobalt); text-underline-offset: 3px; }

/* ---------- 공용 부품의 코발트 옷 ---------- */
.toast { background: var(--ink); color: var(--paper); }
.lightbox { background: var(--cobalt); color: var(--on-cobalt); }
.lb-count { font-size: 18px; letter-spacing: .02em; }
.bgm { background: var(--paper); color: var(--cobalt); box-shadow: 0 6px 18px rgba(10, 20, 80, .28); }
.bgm[aria-pressed="true"] { background: var(--cobalt); color: var(--on-cobalt); box-shadow: 0 0 0 2px var(--paper), 0 6px 18px rgba(10, 20, 80, .28); }
.bgm-error { background: var(--ink); color: var(--paper); }

@media (min-width: 481px) {
  .cover { max-height: 900px; }
}
