@font-face {
  font-family: MaruBuri;
  src: url("https://hangeul.pstatic.net/hangeul_static/webfont/MaruBuri/MaruBuri-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #28211c;
  --muted: #65594f;
  --paper: #fcf8f0;
  --canvas: #f3ede2;
  --line: #d9cbb8;
  --orange: #9f4627;
  --orange-tint: #f7eadf;
  --serif: MaruBuri, "AppleMyungjo", "Nanum Myeongjo", serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.6 system-ui, -apple-system, sans-serif;
  word-break: keep-all;
}
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.page-width { width: min(calc(100% - 72px), 1080px); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { display: block; width: 57px; height: auto; }
.brand span { padding-left: 16px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 680; }
.invitation-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 13px; font-weight: 650; text-decoration: none;
}
.invitation-link span, .inline-link span { color: var(--orange); }
.invitation-link:hover, .inline-link:hover { color: var(--orange); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 274px;
  margin-top: 26px;
  padding: 30px clamp(35px, 6vw, 72px);
  border: 1px solid #dbc8af;
  border-radius: 5px;
  background: #f7ecd9 url("../intro-cut-01/01-blank-hanji.png") center 54% / cover;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 49%;
  background: url("../intro-cut-01/keyframes-final/00-start-brush.png") center 57% / cover;
  mask-image: linear-gradient(90deg, transparent, #000 37%);
}
.hero-copy { position: relative; }
.hero .venue { color: var(--orange); font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.hero h1 {
  font: 650 clamp(40px, 5.1vw, 58px)/1.16 var(--serif);
  letter-spacing: -.07em;
  margin-bottom: 16px;
}
.hero-copy > p:last-child { color: #594b3f; font-size: 14px; line-height: 1.65; }

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 310px);
  gap: 17px 22px;
  margin-top: 22px;
  align-items: start;
  scroll-margin-top: 16px;
}
.steps { grid-column: 1 / -1; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; }
.steps ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.steps li + li { border-left: 1px solid var(--line); }
.steps button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 55px; padding: 7px 4px;
  border: 0; border-bottom: 2px solid transparent; background: transparent;
  font-size: 14px; font-weight: 680; white-space: nowrap;
}
.steps button > span:first-child {
  font: 650 11px/1 system-ui, sans-serif;
  display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid #cbbbaa; border-radius: 50%;
}
.steps button[aria-current] { border-color: var(--orange); color: var(--orange); }
.steps button[aria-current] > span:first-child { background: var(--orange); color: #fff; border-color: var(--orange); }
.steps button:disabled { color: var(--muted); font-weight: 530; }
.planner-layout.room-flow { grid-template-columns: minmax(0, 1fr); }
.room-flow .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.room-flow .steps li:last-child { border-left: 1px solid var(--line); }

.stage-card, .estimate-card { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; }
.stage-card { min-width: 0; padding: clamp(20px, 4vw, 31px); }
.stage-card h2, dialog h2 {
  font: 650 clamp(23px, 3vw, 31px)/1.35 var(--serif);
  letter-spacing: -.05em;
}
.stage-card h2:focus { outline: none; }
.stage-intro { color: var(--muted); font-size: 14px; margin-top: 8px; }
.field-group { padding: 0; border: 0; min-width: 0; margin: 23px 0 0; }
.field-group legend, .field-label { padding: 0; margin-bottom: 8px; display: block; font-size: 14px; font-weight: 730; }
.choice-grid { display: grid; gap: 7px; }
.event-choices { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.time-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice, .course-choice { position: relative; display: block; }
.choice input, .course-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span, .course-card {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 5px;
  border: 1px solid var(--line); border-radius: 4px; background: #fffaf2; cursor: pointer;
}
.choice span { font-size: 14px; white-space: nowrap; }
.choice input:checked + span, .course-choice input:checked + .course-card {
  background: var(--orange-tint); border-color: var(--orange); color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}
.choice input:focus-visible + span, .course-choice input:focus-visible + .course-card {
  outline: 2px solid var(--orange); outline-offset: 3px;
}
.text-input {
  display: block; width: 100%; min-height: 46px; padding: 9px 12px;
  border: 1px solid #cdbda7; border-radius: 4px; background: #fffcf6;
  text-align: left; font-size: 16px;
}
textarea.text-input { resize: vertical; }
.date-input { width: min(100%, 275px); }
.hint { margin-top: 7px; color: var(--muted); font-size: 12px; }
.count-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border-bottom: 1px solid #e5d9ca; padding: 8px 0;
}
.count-row label { font-weight: 680; font-size: 14px; }
.count-row small { display: inline-block; color: var(--muted); margin-left: 5px; font-size: 12px; font-weight: 450; }
.counter {
  display: grid; grid-template-columns: 44px 42px 44px; flex: 0 0 auto; align-items: center;
  border: 1px solid var(--line); background: #fffcf6; border-radius: 4px;
}
.counter button { border: 0; min-height: 44px; background: transparent; font-size: 20px; }
.counter input {
  min-width: 0; width: 100%; border: 0; height: 44px; padding: 0;
  text-align: center; background: transparent; font-size: 16px; font-variant-numeric: tabular-nums;
  appearance: textfield;
}
.counter input::-webkit-inner-spin-button, .counter input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.counter button:disabled { color: #9d9083; }

.course-grid, .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.course-card { align-items: flex-start; flex-direction: column; min-height: 150px; padding: clamp(12px, 2vw, 20px); gap: 8px; }
.course-card strong { font: 650 23px/1.2 var(--serif); }
.space-choice .course-card { min-height: 91px; }
.space-choice .course-card strong { font-size: clamp(17px, 2.8vw, 22px); }
.course-price { font-weight: 740; font-size: clamp(16px, 2vw, 24px); letter-spacing: -.035em; }
.course-price small, .course-note { font-size: 12px; font-weight: 500; color: var(--muted); }
.course-note.course-benefit {
  display: inline-block;
  padding: 4px 7px;
  background: var(--orange-tint);
  color: var(--orange);
  border-radius: 3px;
  font-weight: 730;
}
.notice { background: #f3e9db; color: #594a3c; border-left: 2px solid #ac8063; padding: 10px 12px; font-size: 13px; margin: 16px 0 0; }

.option-list { border-top: 1px solid var(--line); }
.option { border-bottom: 1px solid var(--line); padding: 3px 0; }
.option > label {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 10px 1px; cursor: pointer;
}
.option input[type="checkbox"] { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--orange); }
.option strong, .option small { display: block; }
.option strong { font-weight: 700; }
.option small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.option-price { color: var(--orange); font-size: 12px; font-weight: 700; text-align: right; }
.partner-list { --profile-size: 56px; }
.partner-list .option > label {
  grid-template-columns: 20px var(--profile-size) minmax(0, 1fr) auto;
  align-items: center;
}
.partner-list .option input { margin-top: 0; }
.partner-list .partner-benefit { color: var(--orange); font-weight: 650; }
.partner-photo {
  display: block;
  width: var(--profile-size);
  height: var(--profile-size);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf2;
  object-fit: cover;
}
.balloon-photo { object-position: 39% 42%; }
.partner-logo { object-fit: contain; }
.inline-link { color: var(--orange); font-size: 13px; font-weight: 670; text-underline-offset: 3px; }
.option .inline-link { display: inline-flex; align-items: center; margin: -4px 0 3px 30px; min-height: 39px; gap: 5px; }
.option-benefit { margin: -2px 0 9px 30px; color: var(--orange); font-size: 13px; font-weight: 720; }
.option-details { margin: -2px 0 7px 30px; }
.option-details summary {
  cursor: pointer;
  min-height: 40px;
  padding: 8px 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}
.detail-content { padding: 12px; background: #f5ebdf; border-radius: 4px; font-size: 13px; }
.detail-content h3 { margin: 0 0 6px; font: 650 17px/1.4 var(--serif); }
.sample-track { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 7px; }
.sample-track span { color: var(--muted); font-size: 12px; }
.detail-content audio { display: block; width: 100%; max-width: 360px; }
.partner-rates { list-style: none; padding: 0; margin: 0; }
.partner-rates li + li { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 9px; }
.partner-rates li > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; }
.partner-rates p { margin-top: 4px; }
.partner-rates del { color: var(--muted); margin-right: 3px; }
.partner-rates b { color: var(--orange); }
.song-questions { margin: 0 0 10px 30px; padding: 10px 12px; background: #f5ebdf; }
.song-questions label { display: block; font-size: 13px; margin: 4px 0; }
.song-questions input { margin-bottom: 9px; }

.review-details, .estimate-details { margin: 0; }
.review-details { margin-top: 17px; border-top: 1px solid var(--line); }
.review-details > div, .estimate-details > div {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 9px;
  align-items: start; border-bottom: 1px solid #e5d9ca; padding: 8px 0; font-size: 13px;
}
.review-details dt, .estimate-details dt { color: var(--muted); }
.review-details dd, .estimate-details dd { margin: 0; overflow-wrap: anywhere; }
.contact-grid { margin-top: 16px; }
.stage-error { color: #8a281c; margin-top: 8px; font-size: 13px; font-weight: 650; }
.stage-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
}
.main-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 46px; border: 1px solid var(--ink); border-radius: 4px; padding: 7px 15px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.main-button { background: var(--ink); color: #fff8ef; }
.main-button:hover { background: #463328; }
.secondary-button { background: transparent; border-color: #bbab98; }
.mobile-quote { display: none; }

.estimate-card { position: sticky; top: 18px; padding: 22px; }
.estimate-header { border-bottom: 1px solid #b7a58f; padding-bottom: 15px; }
.estimate-header h2 { font: 650 24px/1.4 var(--serif); letter-spacing: -.04em; }
.estimate-header output {
  display: block; margin-top: 13px; font-size: 30px; font-weight: 740; line-height: 1.1;
  color: var(--orange); letter-spacing: -.055em; font-variant-numeric: tabular-nums;
}
#estimate-help, .estimate-note { font-size: 12px; color: var(--muted); }
#estimate-help { margin-top: 7px; }
.estimate-details { padding-top: 5px; }
.estimate-details > div { grid-template-columns: 65px minmax(0, 1fr); }
.estimate-details dd { text-align: right; font-weight: 600; }
.estimate-note { margin-top: 13px; line-height: 1.5; }

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px;
  margin-top: 30px; padding: 19px 0 28px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}
.site-footer strong { color: var(--ink); }
.site-footer a { margin-left: auto; }
dialog {
  width: min(90vw, 420px); padding: 24px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink);
}
dialog::backdrop { background: #292119a8; }
dialog p { margin: 11px 0 18px; color: var(--muted); }
dialog form { text-align: right; }

@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .page-width { width: calc(100% - 32px); }
  .header-inner { min-height: 61px; }
  .brand { gap: 10px; }
  .brand img { width: 47px; }
  .brand span { padding-left: 10px; font-size: 12px; }
  .invitation-link { font-size: 12px; }
  .hero { min-height: 207px; margin-top: 14px; padding: 23px 18px; }
  .hero::after { left: 43%; background-position: 60% 57%; opacity: .63; }
  .hero .venue { font-size: 12px; margin-bottom: 8px; }
  .hero h1 { font-size: clamp(35px, 8vw, 50px); margin-bottom: 10px; }
  .hero-copy > p:last-child { font-size: 12px; max-width: 25ch; }
  .desktop-break { display: none; }
  .planner-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 13px; }
  .steps { grid-column: 1; }
  .steps button { font-size: 12px; gap: 4px; min-height: 48px; }
  .steps button > span:first-child { width: 17px; height: 17px; font-size: 10px; }
  .stage-card { padding: 17px 15px 23px; }
  .stage-card h2 { font-size: 24px; }
  .field-group { margin-top: 20px; }
  .choice-grid { gap: 4px; }
  .choice span { font-size: 12px; padding-inline: 1px; }
  .estimate-card { position: static; padding: 17px; }
  .partner-list { --profile-size: 48px; }
  .partner-list .option > label { gap: 7px; }
  .partner-list .option-price { font-size: 11px; }
  .stage-actions {
    position: fixed; z-index: 2; inset: auto 0 0; justify-content: flex-end;
    margin: 0; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); background: var(--paper);
    box-shadow: 0 -5px 22px #3323130e;
  }
  .mobile-quote { display: grid; gap: 0; margin-right: auto; line-height: 1.25; white-space: nowrap; }
  .mobile-quote span { color: var(--muted); font-size: 11px; }
  .mobile-quote strong { font-size: 15px; color: var(--orange); font-variant-numeric: tabular-nums; }
  .site-footer { margin-top: 19px; }
}
@media (max-width: 365px) {
  .stage-actions { padding-inline: 10px; gap: 5px; }
  .stage-actions button { padding-inline: 9px; gap: 6px; font-size: 13px; }
  .steps button { gap: 2px; font-size: 11px; }
  .count-row small { display: block; margin-left: 0; }
}

.dialog-next { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.dialog-actions .main-button { text-decoration: none; }

/* 개인정보 수집 동의 */
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14px; font-weight: 650; line-height: 1.6; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.consent-detail { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.consent-detail summary { cursor: pointer; width: max-content; text-decoration: underline; text-underline-offset: 3px; }
.consent-detail ul { margin: 8px 0 0; padding: 12px 14px 12px 28px; border: 1px solid var(--line); border-radius: 4px; }
.consent-detail li { margin: 0 0 4px; }
.consent-detail a { color: inherit; }
.policy-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.policy-links a { color: inherit; text-decoration: none; }
.policy-links a:hover { text-decoration: underline; }
.planner-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 신청 조회 (lookup.html) */
.lookup-page { display: grid; gap: 16px; }
.lookup-hero { margin-bottom: 0; }
.lookup-card { max-width: 760px; width: 100%; margin: 0 auto; }
.lookup-ref { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.lookup-actions { justify-content: flex-end; }
.lookup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lookup-chip { flex: none; font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--orange-tint); color: var(--orange); white-space: nowrap; }
.lookup-chip[data-tone="ok"] { background: #e8f1e4; color: #3f6b3c; }
.lookup-chip[data-tone="cancel"] { background: #eee8e2; color: var(--muted); }
.lookup-list { margin: 18px 0 0; border-top: 1px solid var(--line); }
.lookup-list div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lookup-list div[hidden] { display: none; }
.lookup-list dt { color: var(--muted); white-space: nowrap; }
.lookup-list dd { margin: 0; word-break: keep-all; }
.lookup-invite { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 5px; background: #fffdf8; }
.lookup-invite h3 { margin: 0 0 6px; font-size: 15px; }
.lookup-invite p { margin: 0; font-size: 14px; line-height: 1.7; color: #4d4036; word-break: keep-all; }
.lookup-invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lookup-invite-actions a { text-decoration: none; }
.lookup-invite-actions a[hidden] { display: none; }
.lookup-foot { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.lookup-foot a { color: inherit; }
.header-links { display: flex; gap: 16px; align-items: center; }
.lookup-page .stage-actions { position: static; box-shadow: none; background: transparent; padding: 0; margin-top: 18px; border: 0; }
.lookup-page .nowrap { white-space: nowrap; }
