/* dalmasil.com: 앱과 같은 밤의 결. 어두운 바탕, 금빛 실선, 상아색 글자, 옻칠한 붉은 단추.
   글꼴은 앱과 같은 것을 그대로(제목 Hahmlet, 본문 Dalmasil Sans = Pretendard를 줄인 판, 둘 다 OFL) */

@font-face { font-family: 'Dalmasil Sans'; src: url('fonts/DalmasilSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Dalmasil Sans'; src: url('fonts/DalmasilSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Hahmlet'; src: url('fonts/Hahmlet-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Hahmlet'; src: url('fonts/Hahmlet-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --night: #0b0a0d;
  --deep: #121014;
  --panel: #17130f;
  --ivory: #ede3cf;
  --dim: #c3b9a7;
  --faint: #a2988a;
  --gold: #d4b06c;
  --gold-line: rgba(212, 176, 108, 0.3);
  --oxblood: #6e1c20;
  --cinnabar: #c9391d;
  --paper: #efe5d1;
  --paper-ink: #2b241e;
  --paper-dim: #5e5140;
  --serif: 'Hahmlet', 'Nanum Myeongjo', 'Batang', serif;
  --sans: 'Dalmasil Sans', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* ── 머리 띠 ── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 10, 13, 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(212, 176, 108, 0.14); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: 0.08em; }
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.nav { display: flex; gap: 18px; margin-left: auto; font-size: 14.5px; }
.nav a { color: var(--dim); text-decoration: none; }
.nav a:hover { color: var(--ivory); }
@media (max-width: 640px) { .nav { display: none; } .top .cta-sm { margin-left: auto; } }

/* ── 단추(앱의 금박 알약 단추) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 26px; font-family: var(--serif); font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: 0.02em; }
.btn.primary { color: var(--ivory); background: linear-gradient(180deg, #7b2327 0%, #55151a 55%, #330b0f 100%); border: 1px solid rgba(226, 191, 120, 0.65); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0), 0 6px 18px rgba(0, 0, 0, 0.45); position: relative; }
.btn.primary::before { content: ''; position: absolute; inset: 3px; border-radius: 23px; border: 1px solid rgba(246, 214, 150, 0.2); pointer-events: none; }
.btn.primary .dia { width: 5px; height: 5px; background: #e2bf78; transform: rotate(45deg); opacity: 0.85; }
.btn.ghost { color: var(--dim); border: 1px solid rgba(226, 191, 120, 0.3); font-family: var(--sans); font-weight: 400; font-size: 14.5px; min-height: 46px; padding: 0 18px; }
.btn.ghost small { color: var(--faint); font-size: 12px; }
.cta-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ── 첫 화면 ── */
.hero { position: relative; overflow: hidden; padding-block: 64px 72px; }
.hero::before { content: ''; position: absolute; inset: 0; background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 28% 68%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 44% 14%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 63% 40%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 86% 18%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 92% 74%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(200, 215, 230, 0.08), transparent 70%);
  pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13.5px; letter-spacing: 0.16em; color: var(--gold); margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(52px, 9vw, 92px); line-height: 1.05; letter-spacing: 0.14em; margin: 0; text-wrap: balance; }
.tagline { font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 2.6vw, 24px); color: var(--ivory); margin: 14px 0 0; }
.rule { width: 72px; height: 1px; background: var(--gold-line); margin: 26px 0; }
.lede { color: var(--dim); max-width: 34em; margin: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.fine { font-size: 13.5px; color: var(--faint); margin: 16px 0 0; }

.phone { position: relative; justify-self: center; width: min(280px, 74vw); }
/* 폰 뒤로 번지는 달빛 */
.phone::before { content: ''; position: absolute; left: -45%; right: -45%; top: -14%; height: 70%; background: radial-gradient(closest-side, rgba(214, 226, 238, 0.16), rgba(214, 226, 238, 0.05) 55%, transparent); pointer-events: none; }
.phone .frame { position: relative; border-radius: 34px; padding: 8px; background: #1a1714; border: 1px solid rgba(226, 191, 120, 0.35); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65); }
.phone .frame img { border-radius: 27px; width: 100%; }

@media (max-width: 820px) {
  .hero { padding-block: 40px 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
}

/* ── 구역 공통 ── */
section.block { padding-block: 72px; border-top: 1px solid rgba(212, 176, 108, 0.12); }
/* 위 메뉴로 옮겨 갈 때 제목이 머리 띠에 가리지 않게 */
section[id] { scroll-margin-top: 60px; }
.block h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4vw, 34px); margin: 0; text-wrap: balance; }
.block .sub { color: var(--dim); margin: 10px 0 0; max-width: 40em; }

/* ── 여덟 방: 문틈으로 불빛이 새어 나오는 문 ── */
.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
@media (max-width: 900px) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.room { min-width: 0; display: grid; gap: 10px; }
.door { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 1px solid var(--gold-line); background: #0e0b0a; }
/* 복도 사진(941x1672)에서 문 둘레만 보이게: 가로 765px, 세로 300~1320px 구간 */
.door .scene { position: absolute; width: 123%; left: -11.4%; top: -29.4%; aspect-ratio: 941 / 1672; }
.door .scene img { position: absolute; max-width: none; display: block; }
.door .corr { inset: 0; width: 100%; height: 100%; }
.door .leaf { object-fit: fill; }
/* 닫힌 문 아래 틈으로 새어 나오는 방의 불빛 */
.door .sill { position: absolute; height: 0.3%; background: linear-gradient(90deg, transparent, rgba(255, 214, 150, 0.9) 18%, rgba(255, 236, 196, 1) 50%, rgba(255, 214, 150, 0.9) 82%, transparent); box-shadow: 0 0 10px 2px rgba(255, 196, 120, 0.55); border-radius: 2px; }
.plate { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.plate b { font-family: var(--serif); font-weight: 600; color: #f0dcae; font-size: 12px; padding: 1px 8px; border-radius: 3px; background: rgba(160, 118, 52, 0.3); border: 1px solid rgba(226, 191, 120, 0.55); letter-spacing: 0.04em; }
.room h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 0; }
.room .what { color: var(--ivory); font-size: 14.5px; margin: 0; }
.room .who { color: var(--faint); font-family: var(--serif); font-weight: 300; font-size: 13.5px; margin: 0; line-height: 1.55; }

/* ── 할 수 있는 것: 앱과 같은 메달 ── */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .features { grid-template-columns: 1fr; } }
.feat { min-width: 0; padding: 20px 18px; border-radius: 14px; border: 1px solid var(--gold-line); background: linear-gradient(180deg, #1f1b17 0%, #15120f 55%, #0b0908 100%); display: grid; gap: 10px; align-content: start; }
.medal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 36%, var(--a) 0%, var(--b) 60%, var(--c) 100%); box-shadow: inset 0 0 0 1px rgba(226, 191, 120, 0.8), inset 0 0 0 4px rgba(0, 0, 0, 0), inset 0 0 0 5px rgba(226, 191, 120, 0.22); }
.medal svg { width: 36px; height: 36px; }
.feat h3 { font-family: var(--serif); font-weight: 600; font-size: 17.5px; margin: 0; }
.feat p { color: var(--dim); font-size: 14.5px; margin: 0; line-height: 1.6; }
.free { justify-self: start; font-size: 12px; color: #f0dcae; padding: 1px 9px; border-radius: 11px; border: 1px solid rgba(226, 191, 120, 0.35); background: rgba(0, 0, 0, 0.3); }

/* ── 달마실과 보내는 하루: 왼쪽은 장면 목록, 오른쪽 폰에 그 장면의 실제 화면 ── */
#day { overflow-x: clip; }
.day { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; margin-top: 34px; }
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: m; }
.moment { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; width: 100%; padding: 14px 18px 14px 20px; border-left: 2px solid rgba(212, 176, 108, 0.16); border-radius: 0 10px 10px 0; position: relative; transition: background-color 0.25s, border-color 0.25s; }
.moment:hover { background: rgba(255, 255, 255, 0.025); }
.moment:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.moment .when { font-size: 12.5px; letter-spacing: 0.08em; color: var(--faint); }
.moment b { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--dim); }
.moment .what { font-size: 14.5px; line-height: 1.6; color: var(--faint); }
.moment.on { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(212, 176, 108, 0.1), rgba(212, 176, 108, 0.02)); }
.moment.on .when { color: var(--gold); }
.moment.on b { color: var(--ivory); }
.moment.on .what { color: var(--dim); }
/* 저절로 넘어가는 동안 고른 장면 왼쪽 줄이 6초에 걸쳐 차오른다 */
.auto .moment.on::before { content: ''; position: absolute; left: -2px; top: 0; width: 2px; height: 100%; background: #f4d690; transform-origin: top; animation: fill 6s linear; }
@keyframes fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.day .phone { width: 300px; }
.stage { position: relative; aspect-ratio: 540 / 1050; border-radius: 27px; overflow: hidden; background: #0e0c0b; }
.day .stage img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: 0; transition: opacity 0.45s ease; }
.day .stage img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .day .stage img { transition: none; } }
.day-cap { display: none; }
/* 좁은 화면: 장면 칩을 가로로 늘어놓고, 고른 장면의 설명 한 줄, 그 아래 폰 */
@media (max-width: 820px) {
  .day { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .day .phone { width: min(290px, 76vw); margin-top: 4px; }
  .moments { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px 4px; }
  .moments::-webkit-scrollbar { display: none; }
  .moments li { flex: none; scroll-snap-align: center; }
  .moment { gap: 0; padding: 7px 15px; border: 1px solid rgba(212, 176, 108, 0.25); border-radius: 22px; text-align: center; }
  .moment.on { border-color: var(--gold); background: rgba(212, 176, 108, 0.14); }
  .moment .when { font-size: 11px; letter-spacing: 0.04em; }
  .moment b { font-size: 15px; white-space: nowrap; }
  .moment .what, .auto .moment.on::before { display: none; }
  .day-cap { display: block; margin: 0; min-height: 6.8em; color: var(--dim); font-size: 15px; text-align: center; }
}

/* ── 투숙객 방명록: 프런트 방명록에 꽂힌 한지 쪽지 ── */
.reviews { columns: 3 260px; column-gap: 16px; margin-top: 30px; }
.review { break-inside: avoid; margin: 0 0 16px; padding: 22px 22px 18px; border-radius: 4px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); position: relative; }
.review:nth-child(3n + 1) { transform: rotate(-0.6deg); }
.review:nth-child(3n + 2) { transform: rotate(0.5deg); }
/* 쪽지를 꽂은 붉은 압정 */
.review::before { content: ''; position: absolute; top: 8px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e76a4f, var(--cinnabar) 55%, #7e1f10); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.review blockquote { margin: 6px 0 14px; font-size: 15px; line-height: 1.75; white-space: pre-line; }
.review figcaption { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12.5px; color: var(--paper-dim); }
.review figcaption span + span::before { content: "·"; margin-right: 8px; }
.review .reward { color: #7a1f1c; }
#reviews .fine { margin-top: 6px; }

/* ── 자주 묻는 질문 ── */
.faq { margin-top: 26px; max-width: 820px; border-top: 1px solid rgba(212, 176, 108, 0.18); }
.qa { border-bottom: 1px solid rgba(212, 176, 108, 0.18); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 4px; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ivory); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: 'Q'; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #f0dcae; border: 1px solid rgba(226, 191, 120, 0.5); background: rgba(160, 118, 52, 0.18); }
.qa summary::after { content: ''; margin-left: auto; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa summary:hover { color: #fff6e2; }
.qa .a { padding: 0 4px 20px 44px; }
.qa .a p { margin: 0 0 8px; color: var(--dim); font-size: 15px; }
.ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.ask .sub { margin: 0; }
.ask .mail { font-size: 16px; }
/* 카카오톡 채널 단추(카카오 노랑에 검은 말풍선) */
.btn.kakao { background: #fee500; color: #191600; font-family: var(--sans); font-weight: 600; font-size: 15px; min-height: 44px; padding: 0 18px; gap: 8px; }
.btn.kakao svg { width: 18px; height: 18px; }
.btn.kakao:hover { background: #ffeb3b; }

/* ── 마지막 띠: 바로 시작하기와 출시 알림 ── */
#notify { background: radial-gradient(ellipse 70% 70% at 15% 0%, rgba(200, 215, 230, 0.07), transparent 70%); }
.closing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .closing { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.insta { margin: 28px 0 0; color: var(--faint); font-size: 14px; }
.insta a { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; color: var(--ivory); font-weight: 600; text-decoration: none; }
.insta a:hover { text-decoration: underline; }
.insta svg { width: 18px; height: 18px; }
.notify { position: relative; display: grid; gap: 12px; padding: 26px 24px; border-radius: 16px; border: 1px solid var(--gold-line); background: linear-gradient(180deg, #1f1b17 0%, #15120f 60%, #0b0908 100%); }
.notify h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 0; }
.notify .lead { margin: 0; color: var(--dim); font-size: 14.5px; }
.notify input[type='email'] { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(226, 191, 120, 0.35); background: #0e0c0b; color: var(--ivory); font: inherit; font-size: 16px; }
.notify input[type='email']::placeholder { color: var(--faint); }
.notify input[type='email']:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.os { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.os label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 18px; border: 1px solid rgba(226, 191, 120, 0.3); color: var(--dim); font-size: 14px; cursor: pointer; }
.os label:has(input:checked) { border-color: var(--gold); color: var(--ivory); background: rgba(212, 176, 108, 0.12); }
.os input, .agree input { accent-color: var(--gold); margin: 0; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--dim); cursor: pointer; line-height: 1.5; }
.agree input { margin-top: 3px; flex: none; }
.agree small { color: var(--faint); }
.notice summary { cursor: pointer; font-size: 13px; color: var(--faint); }
.notice p { margin: 6px 0 0; font-size: 13px; color: var(--faint); line-height: 1.6; }
.notify .btn { justify-self: start; cursor: pointer; }
.notify .btn:disabled { opacity: 0.6; cursor: default; }
.notify .msg { margin: 0; min-height: 1.5em; font-size: 14px; color: #bfe3c9; }
.notify .msg.bad { color: #f0a08f; }
/* 사람 눈에는 안 보이는 칸(자동 입력을 거르는 덫)과 화면 읽기 전용 글 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── 풀이를 만드는 방법 ── */
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
@media (max-width: 700px) { .how { grid-template-columns: 1fr; } }
.how div { min-width: 0; padding: 18px 20px; border-left: 2px solid rgba(212, 176, 108, 0.45); background: rgba(255, 255, 255, 0.02); }
.how h3 { font-family: var(--serif); font-weight: 600; font-size: 16.5px; margin: 0 0 6px; }
.how p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* ── 만든 곳 ── */
.studio { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-top: 8px; }
@media (max-width: 600px) { .studio { grid-template-columns: 1fr; } }
.seal { width: 92px; height: 92px; border-radius: 6px; background: var(--cinnabar); color: #fbeee0; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.15; text-align: center; transform: rotate(-3deg); box-shadow: inset 0 0 0 4px var(--cinnabar), inset 0 0 0 5.5px rgba(250, 228, 205, 0.75), 0 8px 20px rgba(0, 0, 0, 0.5); }
.mail { font-family: var(--serif); font-size: 18px; color: var(--ivory); user-select: all; }

/* ── 바닥 ── */
footer { border-top: 1px solid rgba(212, 176, 108, 0.18); padding-block: 36px 48px; color: var(--faint); font-size: 13px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
footer .links a { color: var(--dim); text-decoration: none; }
footer .links a:hover { color: var(--ivory); text-decoration: underline; }
footer p { margin: 2px 0; }

/* ── 약관 쪽(한지 위에 읽기 좋게) ── */
.doc { padding-block: 40px 72px; }
.doc .sheet { max-width: 760px; margin: 0 auto; background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4vw, 30px); margin: 0; text-wrap: balance; }
.doc .since { color: var(--paper-dim); font-size: 13.5px; margin: 6px 0 26px; }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 17.5px; margin: 28px 0 8px; }
.doc p { margin: 0 0 8px; font-size: 15px; line-height: 1.75; }
.doc a { color: #7a1f1c; }
.doc .back { display: inline-block; margin-bottom: 18px; color: var(--dim); text-decoration: none; font-size: 14px; }
.doc .others { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(95, 72, 40, 0.25); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
