/* ==========================================================================
   고요산사 템플스테이 — DREXLY 템플릿 21
   정본: 00-디자인보드(사이트맵·색 HEX·활자·상태) · 02-페이지시안(각 면 세부) ·
   06-mobile(모바일 정보 우선순위).
   01-home 은 내비게이션이 디자인보드 사이트맵과 어긋나 폐안 처리하고 사진 원천으로만 썼다.

   레이아웃 원형: Immersive Editorial + Program Calendar + Quiet Motion
   미덕은 「고요함」이다 — 큰 여백, 느린 전환, 낮은 채도. 화려하면 실패다.
   ========================================================================== */

/* ------------------------------------------------------------------ 토큰 */
:root {
  /* 색 — 디자인보드 「색상」 5본 */
  --pine: #1f4b3a;          /* 소나무 그린 */
  --pine-deep: #163627;
  --pine-soft: #2c6049;
  --vermilion: #c43d2b;     /* 사찰 버미리언 */
  --vermilion-deep: #a53222;
  --ink: #2b2b2b;           /* 먹색 */
  --hanji: #f7f4ee;         /* 한지 아이보리 */
  --ash: #e6e2da;           /* 연회색 */

  /* 중립 파생 */
  --paper: var(--hanji);
  --paper-2: #fbf9f5;
  --surface: #ffffff;
  --ink-2: #565349;
  --ink-3: #6e6a60;
  --line: rgba(43, 43, 43, 0.14);
  --line-soft: rgba(43, 43, 43, 0.07);
  --line-strong: rgba(43, 43, 43, 0.26);
  --on-dark: #f2efe8;
  --on-dark-2: rgba(242, 239, 232, 0.72);

  /* 의미 색 — 색만으로 전달하지 않는다(글자·모양 병기) */
  --ok: #1f4b3a;            /* 예약 가능 */
  --ok-bg: rgba(31, 75, 58, 0.09);
  --warn: #82530c;          /* 마감 임박 */
  --warn-bg: rgba(154, 100, 18, 0.11);
  --stop: #a53222;          /* 예약 마감 · 오류 (글자용으로 한 단계 진하게) */
  --stop-bg: rgba(196, 61, 43, 0.09);
  --off: #6b675e;           /* 준비 중 · 비활성 */
  --off-bg: rgba(141, 137, 127, 0.12);

  /* 글꼴 — 디자인보드 「타이포그래피」: 나눔명조(제목·본문) + 고딕(UI) */
  --serif: "Nanum Myeongjo", "Noto Serif KR", Batang, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* 조판 */
  --wrap: 1200px;
  --gutter: 32px;
  --section: 116px;
  --radius: 3px;
  --radius-lg: 6px;
  --shadow: 0 1px 2px rgba(43, 43, 43, 0.04), 0 10px 30px rgba(43, 43, 43, 0.05);
  --shadow-sm: 0 1px 2px rgba(43, 43, 43, 0.05);
  --ease: cubic-bezier(0.22, 0.61, 0.28, 1);
  --slow: 0.55s;
  --z-header: 60;
  --z-drawer: 90;
  --z-toast: 120;
}

/* 시간대 색 — §05 「새벽→낮→저녁 색 변화를 CSS custom property 로 미세 전환」.
   @property 로 등록해야 색이 뚝 끊기지 않고 이어진다(미지원 브라우저는 즉시 전환). */
@property --amb {
  syntax: "<color>";
  inherits: true;
  initial-value: #f7f4ee;
}
@property --amb-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #e6e2da;
}

/* --------------------------------------------------------------- 기본 */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: -0.005em;
  /* 한국어는 어절 단위로 끊는다 — 「2층」·「1박 2일」이 갈라지지 않게 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 200;
  background: var(--pine);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow { max-width: 880px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 22px; height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-sm { width: 16px; height: 16px; stroke-width: 1.5; }
.ico-lg { width: 30px; height: 30px; stroke-width: 1.05; }

/* 사진 액자 — 인라인 요소엔 aspect-ratio 가 먹지 않으므로 반드시 블록 */
.frame {
  display: block;
  overflow: hidden;
  background: var(--ash);
  position: relative;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------- 활자 계층 (디자인보드) */
.display {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}
.page-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}
.section-title {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.45;
  letter-spacing: -0.03em;
}
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pine);
}
.lead {
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 2;
  color: var(--ink-2);
}
.body-serif { font-family: var(--serif); line-height: 2; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.caption { font-size: 13px; line-height: 1.7; color: var(--ink-3); }
.en {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--ink-3);
  word-break: normal;
}
.en-inline {
  font-family: var(--sans);
  font-size: 0.78em;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  word-break: normal;
}

.section { padding-block: calc(var(--section) / 2); }
.section-first { padding-top: calc(var(--section) * 0.62); }
.section-last { padding-bottom: var(--section); }
.section-tint { background: var(--paper-2); }
.section-ash { background: var(--ash); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { margin-top: 16px; }

/* 얇은 구분선 — 산 능선처럼 옅게 */
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* --------------------------------------------------------------- 버튼 */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  transition: background var(--slow) var(--ease), color var(--slow) var(--ease),
    border-color var(--slow) var(--ease);
}
.btn[disabled], .btn[aria-disabled="true"] {
  --btn-bg: var(--off-bg);
  --btn-fg: var(--off);
  --btn-bd: transparent;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary { --btn-bg: var(--vermilion); --btn-fg: #fff; --btn-bd: var(--vermilion); }
.btn-primary:hover { --btn-bg: var(--vermilion-deep); --btn-bd: var(--vermilion-deep); }
.btn-pine { --btn-bg: var(--pine); --btn-fg: #fff; --btn-bd: var(--pine); }
.btn-pine:hover { --btn-bg: var(--pine-deep); --btn-bd: var(--pine-deep); }
.btn-line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn-line:hover { --btn-bd: var(--pine); --btn-fg: var(--pine); }
.btn-ghost { --btn-bg: var(--surface); --btn-fg: var(--ink-2); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bd: var(--pine); --btn-fg: var(--pine); }
.btn-on-dark { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(242, 239, 232, 0.42); }
.btn-on-dark:hover { --btn-bg: var(--on-dark); --btn-fg: var(--pine-deep); --btn-bd: var(--on-dark); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--pine);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--slow) var(--ease), gap var(--slow) var(--ease);
}
.btn-text:hover { border-bottom-color: var(--pine); gap: 13px; }
.btn-text .ico { width: 15px; height: 15px; }

/* 로딩 표시 — 디자인보드 「로딩」 상태 */
.spinner {
  width: 16px; height: 16px;
  flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- 상태 배지 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--ash);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-warn::before { border-radius: 0; transform: rotate(45deg); }   /* 모양도 다르게 */
.tag-stop { background: var(--stop-bg); color: var(--stop); }
.tag-stop::before { border-radius: 0; }
.tag-off { background: var(--off-bg); color: var(--off); }
.tag-off::before { background: transparent; border: 1.5px solid currentColor; }
.tag-plain { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.tag-plain::before { display: none; }

/* ------------------------------------------------------------- 헤더 §06 */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--slow) var(--ease), border-color var(--slow) var(--ease);
}
.site-header.is-stuck {
  background: rgba(247, 244, 238, 0.97);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 82px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--pine);
}
.brand .ico { width: 30px; height: 30px; stroke-width: 1.05; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--slow) var(--ease);
}
.navlinks a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--vermilion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--slow) var(--ease);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { color: var(--vermilion); font-weight: 600; }
.navlinks a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color var(--slow) var(--ease), color var(--slow) var(--ease),
    background var(--slow) var(--ease);
}
.icon-btn:hover { border-color: var(--pine); color: var(--pine); }
.icon-btn[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.sound-btn .on { display: none; }
.sound-btn[aria-pressed="true"] .on { display: block; }
.sound-btn[aria-pressed="true"] .off { display: none; }
.menu-btn { display: none; }

/* 스크롤 진행 — §08. 얇게, 소리 없이. */
.progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--pine);
  opacity: 0.85;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress-grow linear;
    animation-timeline: scroll(root block);
  }
}
@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --------------------------------------------------------- 모바일 서랍 */
.scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(22, 54, 39, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--slow) var(--ease), visibility var(--slow);
}
.scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: var(--z-drawer);
  width: min(88vw, 340px);
  height: 100%;
  padding: 20px 22px 32px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(101%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform var(--slow) var(--ease), visibility var(--slow);
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.drawer nav { display: flex; flex-direction: column; padding: 10px 0; }
.drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  border-bottom: 1px solid var(--line-soft);
}
.drawer nav a[aria-current="page"] { color: var(--vermilion); }
.drawer-foot { display: grid; gap: 8px; padding-top: 18px; }
.drawer-foot .btn { justify-content: flex-start; }

/* --------------------------------------------------------------- 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 460px);
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--pine-deep);
  color: var(--on-dark);
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 12px 34px rgba(22, 54, 39, 0.28);
  transform: translate(-50%, 14px);
  opacity: 0;
  visibility: hidden;
  /* 폭 전체 제출 버튼을 덮어 클릭을 삼키지 않게 — lumiere 사고 재발 방지 */
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { flex: none; }

/* =========================================================== 홈 : 히어로 */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 64px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 30em; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* 족자 — 한지 위에 걸린 세로 그림 */
.scroll-art {
  position: relative;
  padding: 14px 14px 34px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.scroll-art .frame { aspect-ratio: 184 / 410; }
.scroll-art figcaption {
  position: absolute;
  left: 14px; right: 14px; bottom: 9px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.scroll-art::before,
.scroll-art::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: var(--pine);
  opacity: 0.5;
}
.scroll-art::before { top: 0; }
.scroll-art::after { bottom: 0; }

/* 숨 한 칸 — 전폭 사진 띠 */
.breath { margin-block: 0; }
.breath .frame {
  aspect-ratio: 49 / 15;
  max-height: 62vh;
  background: var(--pine-deep);
}
.breath figcaption {
  max-width: var(--wrap);
  margin: 18px auto 0;
  padding: 0 var(--gutter);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------- 홈 : 템플스테이란 */
.about-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
}
.about-body p + p { margin-top: 20px; }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 26px 20px 4px 0;
  border-right: 1px solid var(--line-soft);
}
.pillar:last-child { border-right: 0; }
.pillar .ico { color: var(--pine); margin-bottom: 14px; }
.pillar h3 { font-size: 17px; font-weight: 700; }
.pillar p { margin-top: 8px; font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }

/* ======================================== 홈 : 하루의 이야기 (시그니처 연출) */
/* §05 — 새벽→낮→저녁 색 변화를 custom property 로 미세 전환.
   진행 판정은 IntersectionObserver 가 한다(스크롤 리스너 금지, §10). */
.story {
  --amb: #f7f4ee;
  --amb-2: #e6e2da;
  position: relative;
  background: linear-gradient(180deg, var(--amb) 0%, var(--amb) 72%, var(--paper) 100%);
  transition: --amb 1.6s var(--ease), --amb-2 1.6s var(--ease);
}
.story[data-hour="dawn"]    { --amb: #e9e6e9; --amb-2: #d5d1d6; }
.story[data-hour="morning"] { --amb: #f6f1e5; --amb-2: #e8dfcd; }
.story[data-hour="day"]     { --amb: #f7f4ee; --amb-2: #e6e2da; }
.story[data-hour="evening"] { --amb: #f3e9df; --amb-2: #e3d2c3; }

.story-grid {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.story-side {
  position: sticky;
  top: 116px;
}
.story-side .section-title { margin-bottom: 18px; }
.hour-dial {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  background: var(--amb-2);
  transition: background 1.6s var(--ease);
}
.hour-dial dt {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* 바탕이 시간대에 따라 어두워지므로 가장 어두운 새벽에서도 AA 를 넘기는 먹빛을 쓴다 */
  color: var(--ink-2);
}
.hour-dial dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hour-dial .hour-en { font-family: var(--sans); font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; }
.hour-steps { display: flex; gap: 6px; margin-top: 18px; }
.hour-steps li {
  flex: 1;
  height: 3px;
  background: rgba(43, 43, 43, 0.14);
  transition: background var(--slow) var(--ease);
}
.hour-steps li.on { background: var(--pine); }

.acts { display: grid; gap: clamp(48px, 6vw, 78px); }
.act {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.act .frame { aspect-ratio: 3 / 2; box-shadow: var(--shadow-sm); }
.act-no {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--vermilion);
  margin-bottom: 12px;
}
.act h3 { font-size: clamp(21px, 2vw, 26px); }
.act-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.act p.act-desc { margin-top: 14px; font-family: var(--serif); line-height: 1.95; color: var(--ink-2); }

/* --------------------------------------------------------------- 인용 밴드 */
.quote-band {
  background: var(--pine);
  color: var(--on-dark);
  text-align: center;
  padding-block: clamp(64px, 8vw, 104px);
}
.quote-band .ico { color: rgba(242, 239, 232, 0.5); margin: 0 auto 26px; }
.quote-band blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(21px, 2.5vw, 32px);
  line-height: 1.75;
  letter-spacing: -0.03em;
}
.quote-band cite {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--on-dark-2);
}
.fact-band {
  background: var(--pine);
  color: var(--on-dark);
  padding-block: clamp(52px, 6vw, 78px);
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.fact .ico { color: rgba(242, 239, 232, 0.62); margin-bottom: 14px; }
.fact h3 { font-size: 18px; }
.fact p { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--on-dark-2); }

/* --------------------------------------------------------------- 방문 안내 */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
}
.visit-list { border-top: 1px solid var(--line); }
.visit-list > div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.visit-list dt { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.visit-list dd { margin: 0; font-size: 15px; }
.visit-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.visit-card h3 { font-size: 20px; }
.visit-card p { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.visit-card .btn { margin-top: 20px; }
.visit-card .btn + .btn { margin-top: 8px; }

/* ============================================================ 면 머리글 */
.page-head {
  position: relative;
  padding-block: clamp(46px, 6vw, 78px) clamp(34px, 4vw, 52px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-head .eyebrow { margin-bottom: 16px; }
.page-head .lead { margin-top: 18px; max-width: 34em; }
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 56px;
  align-items: center;
}
.page-head-grid .frame { aspect-ratio: 175 / 95; box-shadow: var(--shadow-sm); }
.head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
/* 솔가지 — 한지 바탕에 찍힌 사진이라 darken 으로 겹치면 흰 바탕이 그대로 사라진다
   (multiply 는 바탕보다 조금 어두워져 네모 자국이 남는다). 가장자리는 마스크로 흐린다. */
.deco-pine {
  position: absolute;
  top: -18px; right: -22px;
  width: 190px;
  mix-blend-mode: darken;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 120% at 78% 22%, #000 52%, transparent 92%);
  mask-image: radial-gradient(120% 120% at 78% 22%, #000 52%, transparent 92%);
}

/* =========================================================== 프로그램 : 찾기 */
.finder {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.filters { position: sticky; top: 112px; }
.filters h2 { font-size: 15px; font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color var(--slow) var(--ease), background var(--slow) var(--ease),
    color var(--slow) var(--ease);
}
.chip:hover { border-color: var(--pine); color: var(--pine); }
.chip[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
/* 상태를 색만으로 전하지 않는다 §09 — 고른 것에는 체크 표시가 붙는다 */
.chip[aria-pressed="true"]::before { content: "✓"; font-size: 12px; line-height: 1; }
.chip .cnt { font-size: 12px; opacity: 0.72; }

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.switch-row input { width: 20px; height: 20px; accent-color: var(--pine); flex: none; }
.filter-reset { margin-top: 20px; }

.result-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.result-line b { font-family: var(--serif); font-size: 17px; color: var(--ink); }

.prog-list { display: grid; }
.prog {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}
.prog .frame { aspect-ratio: 3 / 2; }
.prog-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.prog h3 { font-size: 22px; }
.prog h3 .en { margin-top: 3px; }
.prog-desc { margin-top: 12px; font-family: var(--serif); font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.prog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}
.prog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.prog-side { text-align: right; min-width: 168px; }
.prog-price {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.prog-price small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-3); }
.prog-side .btn { margin-top: 14px; }
.prog[hidden] { display: none; }
.prog.is-off .frame img { filter: grayscale(0.55) opacity(0.8); }

.empty-state {
  display: none;
  padding: 62px 32px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  background: var(--paper-2);
}
.empty-state.show { display: block; }
.empty-state .ico { color: var(--ink-3); margin: 0 auto 16px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { margin-top: 10px; font-size: 14.5px; color: var(--ink-3); }
.empty-state .btn { margin-top: 22px; }

/* ------------------------------------------------------ 프로그램 : 진행 안내 */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}
.guide-item .ico { color: var(--pine); margin-bottom: 16px; }
.guide-item h3 { font-size: 17px; }
.guide-item ul { margin-top: 12px; display: grid; gap: 8px; }
.guide-item li {
  position: relative;
  padding-left: 17px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}
.guide-item li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--vermilion);
  opacity: 0.55;
}

/* --------------------------------------------------------------- 아코디언 */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 66px;
  padding: 16px 0;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.acc-trigger .ico { color: var(--ink-3); transition: transform var(--slow) var(--ease); }
.acc-item.open .acc-trigger { color: var(--pine); }
.acc-item.open .acc-trigger .ico { transform: rotate(180deg); color: var(--pine); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--slow) var(--ease);
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-body {
  padding: 0 0 24px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  max-width: 62em;
}
.acc-body ul { display: grid; gap: 6px; margin-top: 10px; }
.acc-body li { position: relative; padding-left: 16px; }
.acc-body li::before { content: "·"; position: absolute; left: 4px; }

/* ============================================================== 공간 : 필름 */
.film-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--slow) var(--ease), border-color var(--slow) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-current="true"] { color: var(--pine); border-bottom-color: var(--pine); font-weight: 700; }

.film-count { font-family: var(--serif); font-size: 15px; color: var(--ink-3); }
.film-count b { color: var(--ink); font-size: 19px; font-weight: 800; }

.film {
  margin-top: 26px;
  height: min(68vh, 552px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  /* contain 으로 막으면 끝에 닿았을 때 본문이 안 내려가 갇힌다 — 이어 흐르게 둔다 */
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.film:focus-visible { outline-offset: -2px; }
.panel {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  min-height: min(68vh, 552px);
  padding: 26px 8px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.panel .frame { aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.panel-no {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--vermilion);
  margin-bottom: 14px;
}
.panel h3 { font-size: clamp(23px, 2.4vw, 30px); }
.panel h3 .en { margin-top: 5px; }
.panel-desc { margin-top: 18px; font-family: var(--serif); line-height: 2; color: var(--ink-2); }
.panel-facts { margin-top: 22px; display: grid; gap: 9px; }
.panel-facts li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-2);
}
.panel-facts .ico { color: var(--pine); margin-top: 3px; }

.film-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.film-dots { display: flex; gap: 2px; }
.dot {
  width: 30px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.dot::before {
  content: "";
  width: 100%; height: 2px;
  background: var(--line-strong);
  transition: background var(--slow) var(--ease);
}
.dot[aria-current="true"]::before { background: var(--pine); height: 3px; }
.film-arrows { display: flex; gap: 8px; }

/* ============================================================== 일정 : 달력 */
.sched-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 56px;
  align-items: start;
}
.cal { background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.cal-head h3 { font-size: 19px; }
.cal-nav { display: flex; gap: 6px; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cal th {
  padding: 12px 0 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.cal th.sun { color: var(--vermilion); }
.cal td { padding: 0; text-align: center; vertical-align: top; }
.day {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 8px 0 14px;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--slow) var(--ease), color var(--slow) var(--ease);
}
/* 프로그램이 없는 날은 아예 단추로 만들지 않는다 — 눌러도 아무 일 없는 칸을 두지 않기 위해 */
.day.plain { display: block; cursor: default; color: var(--ink-2); }
.day.day-out { pointer-events: none; }   /* 앞뒤 달 칸 — 숫자를 적지 않는다 */
.day.sun:not(.out) { color: var(--vermilion); }
.day .mark {
  position: absolute;
  left: 50%; bottom: 6px;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
}
.day.ok .mark { background: var(--ok); }
.day.warn .mark { background: var(--warn); border-radius: 0; transform: translateX(-50%) rotate(45deg); }
.day.stop .mark { background: transparent; border: 1.5px solid var(--stop); }
.day:not([disabled]):hover { background: var(--paper-2); }
.day[aria-pressed="true"] {
  background: var(--pine);
  color: #fff;
  font-weight: 700;
}
.day[aria-pressed="true"] .mark { background: #fff; border-color: #fff; }
.day[disabled] { cursor: not-allowed; color: var(--off); }
.day.today { box-shadow: inset 0 0 0 1px var(--line-strong); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-2);
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.legend .l-ok { background: var(--ok); }
.legend .l-warn { background: var(--warn); border-radius: 0; transform: rotate(45deg); }
.legend .l-stop { background: transparent; border: 1.5px solid var(--stop); }
.legend .l-today { background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; }

.month-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}
.month-switch label { font-size: 14px; flex: 1 1 100%; margin-bottom: 2px; }
.select {
  min-height: 44px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23837f75' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.month-state { flex: 1 1 100%; margin-top: 4px; }

.state-box {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.7;
}
.state-box .ico { flex: none; margin-top: 2px; }
.state-box .btn { margin-top: 10px; }
.state-load { color: var(--ink-2); }
.state-empty { border-style: dashed; color: var(--ink-2); }
.state-fail { border-color: rgba(196, 61, 43, 0.4); background: var(--stop-bg); color: var(--stop); }
.state-fail strong { display: block; color: var(--stop); }
.state-fail .btn { --btn-bd: var(--stop); --btn-fg: var(--stop); }

/* 뼈대(스켈레톤) */
.skeleton { display: grid; gap: 10px; }
.skeleton i {
  display: block;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ash) 25%, var(--paper-2) 50%, var(--ash) 75%);
  background-size: 240% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton i:nth-child(2) { width: 72%; }
.skeleton i:nth-child(3) { width: 48%; }
@keyframes shimmer { to { background-position: -240% 0; } }

/* 일정 상세 */
.day-detail h2 { font-size: 22px; }
.day-panels { margin-top: 20px; }
.day-panel { display: none; }
.day-panel.show { display: block; }
.slot {
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.slot + .slot { margin-top: 12px; }
.slot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.slot h3 { font-size: 19px; }
.slot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.slot-meta span { display: inline-flex; align-items: center; gap: 6px; }
.slot .btn { margin-top: 16px; }
.slot.is-full { background: var(--paper-2); }

.timeline { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; font-size: 14px; }
.timeline time { font-family: var(--sans); font-weight: 600; color: var(--pine); font-variant-numeric: tabular-nums; }
.timeline span { color: var(--ink-2); }

.note-box {
  margin-top: 26px;
  padding: 22px 24px;
  background: var(--paper-2);
  border-left: 2px solid var(--pine);
}
.note-box h3 { font-size: 16px; font-family: var(--sans); font-weight: 700; }
.note-box ul { margin-top: 12px; display: grid; gap: 8px; }
.note-box li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.note-box li::before { content: "·"; position: absolute; left: 4px; color: var(--pine); }
.tz-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ============================================================== 예약 : 단계 */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 44px;
}
.step { text-align: center; }
.step-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  margin: 0 auto 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface);
}
.step-name { font-size: 13.5px; color: var(--ink-3); }
.step.done .step-mark { background: var(--pine); border-color: var(--pine); color: #fff; }
.step.done .step-name { color: var(--ink-2); }
.step.now .step-mark { background: var(--vermilion); border-color: var(--vermilion); color: #fff; }
.step.now .step-name { color: var(--ink); font-weight: 700; }
.step { position: relative; }
/* 앞 단계와 잇는 선 — 빈 span 은 폭이 0 이라 li 가상요소로 긋는다 */
.step + .step::before {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(-50% + 22px);
  width: calc(100% - 44px);
  height: 1px;
  background: var(--line);
}
.step.done + .step::before { background: var(--pine); }

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px;
  align-items: start;
}
.summary {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}
.summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.summary-top h2 { font-size: 18px; }
.summary-prog { display: flex; gap: 16px; padding: 18px 0; }
.summary-prog .frame { width: 108px; flex: none; aspect-ratio: 3 / 2; }
.summary-prog h3 { font-size: 17px; }
.summary-prog p { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }
.summary-rows { border-top: 1px solid var(--line-soft); }
.summary-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.summary-rows dt { color: var(--ink-3); }
.summary-rows dd { margin: 0; font-weight: 500; text-align: right; }
.counter-box { display: flex; align-items: center; gap: 4px; }
.counter-box button {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}
.counter-box button:hover:not([disabled]) { border-color: var(--pine); color: var(--pine); }
.counter-box button[disabled] { color: var(--off); cursor: not-allowed; background: var(--off-bg); }
.counter-box output { min-width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}
.total-row dt { font-size: 15px; font-weight: 600; }
.total-row dd { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 800; letter-spacing: -0.03em; color: var(--vermilion); }
.total-row dd small { font-family: var(--sans); font-size: 14px; font-weight: 500; }

/* --------------------------------------------------------------- 폼 */
.form-block + .form-block { margin-top: 44px; }
.form-block > h2 { font-size: 21px; margin-bottom: 6px; }
.form-block > p.caption { margin-bottom: 22px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: block; }
.field.full { grid-column: 1 / -1; }
.field > label,
.field > .lbl {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.req { color: var(--vermilion); margin-left: 2px; }
.control {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}
.control::placeholder { color: #8b867c; }
.control:hover { border-color: var(--line-strong); }
.control:focus { outline: 0; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(31, 75, 58, 0.12); }
textarea.control { min-height: 118px; resize: vertical; line-height: 1.7; }
.field-msg {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 13px;
  color: var(--stop);
}
.field.invalid .control { border-color: var(--stop); background: var(--stop-bg); }
.field.invalid .field-msg { display: flex; }
.field-hint { margin-top: 7px; font-size: 12.5px; color: var(--ink-3); }
.counter { text-align: right; margin-top: 6px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
}
.agree input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--pine); }
.agree a { border-bottom: 1px solid var(--line-strong); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.form-actions .btn { flex: 1 1 200px; }

.prep-box {
  margin-top: 34px;
  padding: 26px 28px;
  border: 1px solid var(--pine);
  background: var(--ok-bg);
}
.prep-box h2 { font-size: 18px; display: flex; align-items: center; gap: 9px; }
.prep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin-top: 18px; }
.prep-grid h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--pine); letter-spacing: 0.02em; }
.prep-grid h3 span { margin-left: 7px; font-weight: 400; color: var(--ink-3); }
.prep-grid ul { margin-top: 7px; display: grid; gap: 5px; }
.prep-grid li { position: relative; padding-left: 15px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.prep-grid li::before { content: "·"; position: absolute; left: 4px; color: var(--pine); }

.done-panel {
  display: none;
  padding: 44px 34px;
  text-align: center;
  border: 1px solid var(--pine);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.done-panel.show { display: block; }
.done-panel .ico { color: var(--pine); margin: 0 auto 18px; }
.done-panel h2 { font-size: 24px; }
.done-panel p { margin-top: 12px; color: var(--ink-2); }
.done-no {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  background: var(--ok-bg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pine);
}
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

/* --------------------------------------------------------------- 푸터 */
.site-footer {
  position: relative;
  margin-top: 0;
  background: var(--pine-deep);
  color: var(--on-dark);
  overflow: hidden;
}
.ridge { display: block; width: 100%; height: 54px; color: var(--paper); }
.foot-main { padding-block: 56px 40px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.foot-brand .brand { color: var(--on-dark); }
.foot-brand .brand-name { color: var(--on-dark); }
.foot-brand .brand-name small { color: var(--on-dark-2); }
.foot-brand p { margin-top: 18px; font-size: 13.5px; line-height: 1.9; color: var(--on-dark-2); }
.foot-contact { margin-top: 18px; display: grid; gap: 7px; font-size: 13.5px; }
.foot-contact a, .foot-contact span { display: inline-flex; align-items: flex-start; gap: 9px; color: var(--on-dark-2); }
.foot-contact a:hover { color: var(--on-dark); }
.foot-contact .ico { margin-top: 3px; }
.foot-col h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 16px;
}
.foot-col li a, .foot-col li span {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--on-dark-2);
  transition: color var(--slow) var(--ease);
}
.foot-col li a:hover { color: var(--on-dark); }
.foot-en { font-size: 13px; line-height: 1.85; color: var(--on-dark-2); }
.foot-en b { display: block; color: var(--on-dark); font-weight: 600; margin-bottom: 6px; }
.foot-legal {
  padding-block: 20px 26px;
  border-top: 1px solid rgba(242, 239, 232, 0.14);
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(242, 239, 232, 0.68);
}
.foot-legal p + p { margin-top: 4px; }
.foot-social { display: flex; gap: 6px; margin-top: 18px; }
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(242, 239, 232, 0.2);
  border-radius: var(--radius);
  color: var(--on-dark-2);
}
.foot-social a:hover { border-color: var(--on-dark); color: var(--on-dark); }

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 50;
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--slow) var(--ease), visibility var(--slow), border-color var(--slow) var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { border-color: var(--pine); color: var(--pine); }

/* --------------------------------------------------------------- 등장 효과 */
/* IntersectionObserver 는 빠른 스크롤에서 요소를 놓치는 일이 있어(실측) 위치를 직접 잰다.
   .js 가 없으면(자바스크립트 미사용) 처음부터 보인다 — 본문이 사라지지 않게. */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ========================================================= 모션 줄이기 §05 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .film { scroll-snap-type: none; }
  /* 시간대 전환은 최종 상태(저녁)로 고정한다 */
  .story, .story[data-hour] { --amb: #f3e9df; --amb-2: #e3d2c3; }
  .progress { transform: scaleX(1); opacity: 0.3; }
}

/* ================================================= 페이지 전환 §06 (선택 기능) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 0.42s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ============================================================== 반응형 */
/* 1024 이하 — 내비를 서랍으로, 2열 유지 */
@media (max-width: 1080px) {
  :root { --section: 96px; --gutter: 28px; }
  .navlinks { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { height: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
  .story-grid { grid-template-columns: 216px minmax(0, 1fr); gap: 44px; }
  .about-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 44px; }
  .finder { grid-template-columns: 210px minmax(0, 1fr); gap: 36px; }
  .panel { grid-template-columns: 380px minmax(0, 1fr); gap: 36px; }
  .sched-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; }
  .book-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; }
  .visit-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; }
  .page-head-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  .prog { grid-template-columns: 232px minmax(0, 1fr); }
  .prog-side { grid-column: 2; text-align: left; margin-top: 4px; }
}

/* 900 이하 — 태블릿: 보조 패널을 아래로 내리고 필터를 가로 띠로 */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { border-bottom: 1px solid var(--line-soft); padding-right: 16px; }
  .pillar:nth-child(2n) { border-right: 0; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .fact-grid { grid-template-columns: 1fr; gap: 26px; }
  .visit-grid, .sched-grid, .book-grid, .page-head-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-head-grid .frame { max-width: 460px; }
  .finder { grid-template-columns: 1fr; gap: 28px; }
  .filters { position: static; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .switch-row { margin-top: 16px; padding-top: 16px; }
  .story-grid { grid-template-columns: 1fr; gap: 30px; }
  .story-side { position: static; }
  .hour-dial { margin-top: 20px; }
  .panel { grid-template-columns: 1fr; gap: 22px; align-content: center; }
  .film { height: auto; }
  .prep-grid { grid-template-columns: 1fr; }
}

/* 767 이하 — 모바일: PC 축소가 아니라 우선순위 재편 (§08) */
@media (max-width: 767px) {
  :root { --section: 76px; --gutter: 20px; }
  body { font-size: 15.5px; }

  .hero { padding-block: 34px 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  /* 모바일에서는 사진을 먼저 보여 주고 글이 따른다 */
  .hero-art { order: -1; }
  .scroll-art { padding: 10px 10px 26px; }
  .scroll-art .frame { aspect-ratio: 4 / 3; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .hero-meta { gap: 8px 16px; margin-top: 28px; }

  .breath .frame { aspect-ratio: 4 / 3; max-height: none; }
  .pillars { grid-template-columns: 1fr; margin-top: 34px; }
  .pillar { border-right: 0; padding: 20px 0 16px; }

  .act { grid-template-columns: 1fr; gap: 16px; }
  .acts { gap: 44px; }
  .hour-steps { margin-top: 14px; }

  .guide-grid { grid-template-columns: 1fr; gap: 26px; }
  .prog { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .prog-side { grid-column: 1; text-align: left; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .prog-side .btn { margin-top: 0; }

  /* 갤러리는 저자극 — 스냅을 풀고 세로로 쌓는다 */
  .film { height: auto; overflow: visible; scroll-snap-type: none; border: 0; margin-top: 22px; }
  .panel { min-height: 0; padding: 0 0 34px; border-bottom: 1px solid var(--line-soft); }
  .panel:last-child { border-bottom: 0; }
  .film-nav { display: none; }
  .film-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; width: 100%; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }

  .cal-head { padding: 12px 10px; }
  .cal th { font-size: 11px; }
  .day { font-size: 13.5px; min-height: 48px; padding: 6px 0 12px; }
  .legend { padding: 12px 10px; gap: 8px 14px; font-size: 12px; }
  .month-switch { padding: 16px; }
  .select { flex: 1 1 auto; min-width: 0; }

  .stepper { gap: 4px; margin-bottom: 30px; }
  .step-mark { width: 30px; height: 30px; font-size: 12.5px; }
  .step-name { font-size: 11.5px; letter-spacing: -0.03em; }
  .step-line::before { top: 15px; right: calc(50% + 22px); width: calc(100% - 44px); }
  .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .summary { padding: 20px; }
  .form-actions .btn { flex: 1 1 100%; }

  /* 헤더가 좁아지므로 소리 단추는 서랍 안에서만 내놓는다 */
  .nav-actions .sound-btn { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand, .foot-en { grid-column: 1 / -1; }
  .ridge { height: 34px; }
  .deco-pine { width: 104px; top: -22px; right: -20px; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .prog-badges { gap: 5px; }
  .day { min-height: 46px; }
  .brand .ico { width: 26px; height: 26px; }
  .brand-name { font-size: 17px; }
  /* 예약은 서랍 아래에 크게 놓여 있다 — 좁은 화면에서는 머리글을 비운다 */
  .nav-cta { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* 가로 방향(낮은 높이) — 스냅 높이를 줄여 갇히지 않게 */
@media (max-height: 560px) and (orientation: landscape) {
  .film { height: auto; overflow: visible; scroll-snap-type: none; }
  .panel { min-height: 0; padding: 26px 0; }
  .story-side { position: static; }
}

/* 글자 크게 보기(사용자 확대) 대응 — 고정 높이를 쓰지 않는다 */
@media (min-width: 768px) {
  .film { max-height: 560px; }
}

@media print {
  .site-header, .drawer, .scrim, .to-top, .toast, .film-nav { display: none !important; }
  .film { height: auto; overflow: visible; }
}
