/* see busan 사이트 공통 스타일
   톤: 저녁의 음악 바. 호두나무 패널, 램프 불빛(앰버), 콘크리트 보, 검은 가죽.
   테마: 저녁의 지하 바라서 어두운 테마 하나로 고정한다.
   모서리 규칙: 버튼·칩은 완전한 알약형, 사진·카드 14px, 입력칸 10px. */
:root {
  /* 색은 음악 바 사진에서 뽑았다: 어두운 엄버 바탕, 호두나무 패널, 램프에 비친 크림색 벽,
     콘크리트 천장의 황갈색과 옅은 초록 기, 전구 불빛(앰버) */
  --bg: #1c1814;
  --bg-2: #211c17;
  --surface: #2a211b;
  --surface-2: #34271f;
  --wood: #5b3a2b;
  --line: #3d3027;
  --line-2: #56443a;
  --text: #efe3cc;
  --muted: #b3a38a;
  --faint: #7f7061;
  --accent: #e3ae62;
  --accent-ink: #1f160f;
  --accent-soft: rgba(227, 174, 98, 0.14);
  --sage: #a9b39a;
  --danger: #ec8a73;
  --ok: #a9b39a;
  --r-card: 14px;
  --r-input: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(calc(-100% - 20px)); padding: 11px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* 안내 알림 띠 (.proto는 기존 스타일 클래스명) */
.proto {
  background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600;
  text-align: center; padding: 7px 16px; line-height: 1.5;
}
.proto a { color: inherit; }

/* 내비게이션 */
/* 상단바 자동 숨김(header-autohide.js): 아래로 내리면 숨기고 위로 올리면 다시 보인다 */
[data-autohide] { transition: transform .32s var(--ease); }
[data-autohide].is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { [data-autohide] { transition: none; } }
.nav { position: sticky; top: 0; z-index: 30; background: rgba(28, 24, 20, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(61, 48, 39, 0.6); }
.nav .wrap { height: 64px; display: flex; align-items: center; gap: 28px; }
a.brand { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 650; letter-spacing: 0.3em; font-size: 15px; white-space: nowrap; }
.doc-toc { margin: 24px 0 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.doc-toc summary { min-height: 48px; padding: 10px 14px; color: var(--text); font-weight: 650; cursor: pointer; }
.doc-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 0 14px 14px; }
.doc-toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.doc-toc a:hover { background: var(--accent-soft); }
@media (max-width: 600px) { .doc-toc nav { grid-template-columns: 1fr; } }
/* 로고: see의 마지막 e가 a와 섞여 sea(바다)로도 읽힌다. 가로세로 비율 367:64.
   그림 위쪽은 b의 올라간 획이라 소문자 몸통이 아래로 치우친다. 옆 글자와 가운데가 맞도록 살짝 올린다 */
.logo { display: block; width: auto; height: 24px; transform: translateY(-4px); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font: inherit; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); transition: transform .2s var(--ease), background .2s;
}
.btn:hover { background: #ecbf7c; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* 공통 섹션 */
section { padding: 96px 0; }
h1, h2, h3 { letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.3; font-weight: 700; }
.lede { color: var(--muted); font-size: 17px; max-width: 56ch; margin: 14px 0 0; }
.eyebrow { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }

/* 스크롤 등장 (움직임 줄이기를 켠 분에게는 그대로 보인다) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* 입력 공통 */
.field { display: grid; gap: 8px; margin-bottom: 22px; align-content: start; }
.field > label, .field > .label { font-size: 15px; font-weight: 600; }
.field .req { color: var(--accent); font-weight: 600; margin-left: 2px; }
.help { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.error { font-size: 13.5px; color: var(--danger); margin: 0; min-height: 0; }
input[type=text], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: var(--r-input); padding: 12px 14px; outline: none;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 96px; resize: vertical; }
.invalid { border-color: var(--danger) !important; }

/* 알약형 선택지 */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 15px; }
.choice input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

footer.site { border-top: 1px solid var(--line); padding: 48px 0 64px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
footer.site p { margin: 0; }
footer.site .wordmark { display: inline-flex; margin-bottom: 14px; color: var(--text); }

@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  section { padding: 56px 0; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ── 분위기: 명조 제목, 필름 그레인, 램프 불빛 ──
   빈티지 스피커·호두나무·전구 조명의 분위기에 맞춰 제목만 명조로 쓴다(본문과 버튼은 Pretendard 그대로). */
:root { --serif: "Nanum Myeongjo", "AppleMyungjo", serif; }
.serif { font-family: var(--serif); font-weight: 800; letter-spacing: -0.02em; }
/* 필름 그레인: 화면에 고정된 한 겹. 스크롤되는 요소에는 걸지 않는다(모바일 성능) */
.grain::after {
  content: ''; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .grain::after { animation: grain 1.2s steps(6) infinite; }
  @keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
}
.glow { position: relative; isolation: isolate; }
.glow::before { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 70vmax; max-width: 100vw; height: 70vmax; left: 50%; top: 40%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(227, 174, 98, 0.13), rgba(227, 174, 98, 0.04) 55%, transparent 72%); }

/* ── 회차 달력 (첫 화면·신청서 공통, assets/js/calendar.js) ── */
:root { --holiday: #e0735f; }
  .months { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
  .months button { font: inherit; display: grid; text-align: left; gap: 0; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
  .months button em { font-style: normal; font-family: var(--serif); font-weight: 800; font-size: 19px; color: var(--text); }
  .months button small { font-size: 12.5px; }
  .months button[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }
  .months button[aria-pressed=true] small { color: var(--accent); }
  .months button.closed em { color: var(--muted); }
  .grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .grid7 .dow { text-align: center; font-size: 13px; color: var(--muted); padding-bottom: 8px; }
  .grid7 .dow.sun { color: var(--holiday); }
  .grid7 .dow.sat { color: var(--holiday); }
  .day { position: relative; min-height: 88px; border-radius: 10px; padding: 8px 6px; display: grid; align-content: start; justify-items: center; gap: 3px; font-variant-numeric: tabular-nums; text-align: center; }
  .day.we { background: rgba(239, 227, 204, 0.035); }
  .day .n { font-size: 15px; color: var(--faint); line-height: 1.3; }
  .day.we .n { color: #a8987f; }
  .day.red .n { color: var(--holiday); opacity: .75; }
  .day.today .n { outline: 1px solid var(--muted); outline-offset: 2px; border-radius: 4px; padding: 0 3px; }
  .day .hol { font-size: 10.5px; color: var(--holiday); line-height: 1.2; }
  .day.past { opacity: .45; }
  button.day { font: inherit; color: inherit; border: 1px solid var(--line-2); background: rgba(42, 33, 27, .9); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
  button.day:hover { border-color: var(--muted); }
  button.day:active { transform: scale(.97); }
  button.day .n { color: var(--text); font-weight: 650; }
  button.day.red .n { color: var(--holiday); opacity: 1; }
  button.day .band { font-size: 11.5px; color: #d6c8b0; overflow-wrap: normal; }
  button.day .st { font-size: 11px; color: var(--muted); line-height: 1.3; }
  button.day::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 6px; height: 2px; border-radius: 2px; background: var(--ok); }
  button.day.few::after { background: var(--accent); }
  button.day.full { background: transparent; cursor: not-allowed; }
  button.day.full::after { background: #5b4a3e; }
  button.day.full .band, button.day.full .st { color: var(--faint); }
  button.day[aria-pressed=true] { border-color: var(--accent); background: rgba(227, 174, 98, .14); box-shadow: 0 0 0 1px var(--accent); }
  .calnote { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
  .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
  .legend span::before { content: ''; display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 6px; background: var(--ok); }
  .legend .few::before { background: var(--accent); }
  .legend .full::before { background: #5b4a3e; }
  .legend .red::before { background: var(--holiday); }

button.day[aria-disabled=true] { background: transparent; cursor: not-allowed; }
button.day.outband { border-style: dashed; }
button.day.outband .band { color: var(--accent); }
.legend .outband::before { background: transparent; border-top: 2px dashed var(--muted); height: 0; }
/* 고를 수 없는 날(신청 마감·다른 나이대 등): 날짜에 줄을 긋고 흐리게 해 눌러 볼 칸처럼 보이지 않게 한다.
   휴대폰에서는 칸 안 글씨가 숨어 색 막대만 남으므로 색 말고도 구분되게 한다 */
button.day[aria-disabled=true], button.day[aria-disabled=true]:hover { border-color: var(--line); }
button.day[aria-disabled=true]:active { transform: none; }
/* 키보드 초점은 크림색 테두리로: 고른 날(앰버 테두리·배경)과 헷갈리지 않게 */
button.day:focus-visible { outline-color: var(--text); }
button.day[aria-disabled=true] .n { color: var(--faint); font-weight: 500; text-decoration: line-through; }
button.day.red[aria-disabled=true] .n { color: var(--holiday); opacity: .6; }
/* 달력에서 주말·공휴일은 막대가 아니라 빨간 날짜로 보이므로 범례도 빨간 글자로 */
.legend .red { color: var(--holiday); }
.legend .red::before { display: none; }
@media (max-width: 900px) {
    .months { padding: 0 6px; }
    .grid7 { gap: 3px; }
    .day { min-height: 74px; padding: 6px 2px 10px; gap: 2px; }
    .day .n { font-size: 14px; }
    button.day .band { font-size: 10.5px; }
    button.day .st { font-size: 10px; letter-spacing: -0.03em; }
    .day .hol { font-size: 9.5px; letter-spacing: -0.04em; }
    .legend { padding: 0 6px; }
}
/* 휴대폰: 칸이 좁아 글씨가 겹치므로 날짜와 상태 막대만 보인다. 연령대·남은 자리·공휴일 이름은
   날짜를 누르면 아래 안내(첫 화면)와 고른 날짜 칩(신청서)에 나오고, 화면 읽기에는 aria-label로 읽힌다. */
@media (max-width: 480px) {
    .day { min-height: 52px; padding: 10px 2px 14px; }
    .day .n { font-size: 15px; }
    button.day .band, button.day .st, .day .hol { display: none; }
}
.nowrap { white-space: nowrap; }
