:root {
  --lime: #efefea;      /* 회벽 */
  --paper: #f8f8f5;
  --basalt: #2f302d;    /* 현무암 */
  --rafter: #7a4e2d;    /* 서까래 */
  --lamp: #f2c76e;      /* 등불 */
  --gravel: #6c6e69;    /* 송이 자갈 */
  --rule: #d4d4cc;
  --serif: "Gowun Batang", "Noto Serif KR", serif;
  --sans: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lime);
  color: var(--basalt);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rafter); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--basalt); color: var(--lime); padding: 8px 14px;
}
.skip:focus { top: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.25rem); margin-bottom: .8em; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; margin: 2em 0 .7em; }
p { margin: 0 0 1em; }

/* ---------- hero ---------- */
.hero {
  background: var(--lime);
  color: var(--basalt);
}
/* ---------- 상단 메뉴 ---------- */
.site-header { background: var(--lime); border-bottom: 1px solid var(--rule); }
.home .site-header { border-bottom: 0; }
.topbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 36px;
  max-width: 1200px; margin: 0 auto;
  padding: 16px var(--gutter) 10px;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  margin: 0; color: var(--basalt); text-decoration: none; white-space: nowrap;
}
.brand-en {
  font-family: var(--serif); font-weight: 400; font-size: .7em;
  color: var(--gravel); letter-spacing: .04em; margin-left: 6px;
}
.menu {
  display: flex; gap: 4px 22px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
}
.menu::-webkit-scrollbar { display: none; }
.menu a {
  flex: none;
  color: var(--basalt); text-decoration: none;
  font-size: clamp(1.02rem, 1.6vw, 1.12rem); font-weight: 700;
  padding: 10px 2px 8px;
  border-bottom: 2px solid transparent;
}
.menu a:hover { color: var(--rafter); }
.menu a[aria-current="page"] { color: var(--rafter); border-bottom-color: var(--rafter); }
@media (max-width: 899px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .menu { width: calc(100% + 2 * var(--gutter)); }
}
@media (min-width: 900px) {
  .menu { margin: 0; padding: 0; overflow: visible; flex-wrap: wrap; }
}

/* ---------- 하위 페이지 머리말 ---------- */
.page-head { padding: clamp(40px, 7vw, 80px) 0 0; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; line-height: 1.25; }
.lede { margin: .8em 0 0; font-size: 1.08rem; color: #4a4b46; }
.page-head + .block { padding-top: clamp(28px, 5vw, 48px); }
.h3 { font-size: 1.2rem; margin: 2em 0 .7em; }

/* ---------- 첫 화면 둘러보기 ---------- */
.tour { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--basalt); }
.tour li { border-bottom: 1px solid var(--rule); }
.tour a {
  display: grid; gap: 2px 24px; padding: 16px 0;
  text-decoration: none; color: var(--basalt);
}
@media (min-width: 640px) { .tour a { grid-template-columns: 8.5em 1fr; align-items: baseline; } }
.tour .t { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.tour .d { color: #4a4b46; }
.tour a:hover .t { color: var(--rafter); text-decoration: underline; text-underline-offset: 4px; }

.hero-inner {
  display: grid; gap: 36px;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(16px, 4vw, 48px) var(--gutter) clamp(48px, 7vw, 88px);
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center; gap: clamp(40px, 6vw, 88px);
    min-height: calc(88svh - 72px);
  }
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.hero-sub { margin: 1.1em 0 1.8em; font-size: 1.05rem; max-width: 30em; color: #4a4b46; }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 685 / 600;
  object-fit: cover;
  border-radius: 4px;
  background: var(--rule);
}
@media (min-width: 900px) {
  .hero-figure img { max-height: 74svh; }
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta-number { font-size: 1.05rem; letter-spacing: .02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-lamp { background: var(--lamp); color: var(--basalt); }
.btn-lamp:hover { background: #f6d48b; }
.btn-dark { background: var(--basalt); color: var(--lime); }
.btn-dark:hover { background: #45463f; }

/* 돌담 띠: 페이지에서 한 번만 쓰는 장식 */
.dolldam {
  display: block; width: 100%; height: clamp(40px, 7.3vw, 88px);
}

/* ---------- sections ---------- */
.block { padding: clamp(56px, 9vw, 112px) 0 0; }
.prose { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter); }
.prose > p { color: #3d3e3a; }

figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--gravel); padding-top: 8px; }
figure img { width: 100%; border-radius: 3px; background: var(--rule); }

.pair {
  display: grid; gap: 20px;
  max-width: 1120px; margin: 32px auto 0; padding: 0 var(--gutter);
}
@media (min-width: 720px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair img { aspect-ratio: 16 / 10; object-fit: cover; }

.gallery {
  display: grid; gap: 20px;
  max-width: 1120px; margin: 32px auto 0; padding: 0 var(--gutter);
  grid-template-columns: 1fr;
}
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .wide { grid-column: span 2; grid-row: span 2; }
  .gallery .wide img { aspect-ratio: auto; height: calc(100% - 34px); }
}

.near, .refund, .amenities, .stories { list-style: none; padding: 0; margin: 0; }
.near li, .refund li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.near li span:last-child, .refund li span:last-child { color: var(--rafter); white-space: nowrap; }
.amenities li { padding: 10px 0 10px 22px; position: relative; border-bottom: 1px solid var(--rule); }
.amenities li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em;
  width: 8px; height: 6px; border-radius: 50% 40% 55% 45%; background: var(--basalt);
}

/* ---------- price ---------- */
.price-main {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 0; margin: 0 0 8px;
  border-top: 2px solid var(--basalt); border-bottom: 1px solid var(--rule);
}
.price-main strong { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.2; color: var(--basalt); }
.price-main span { color: var(--gravel); }

.facts { margin: 0; }
.facts > div {
  display: grid; grid-template-columns: 6.5em 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

/* ---------- stories & blog ---------- */
.stories li { border-bottom: 1px solid var(--rule); }
.stories a { display: block; padding: 14px 0; text-decoration: none; }
.stories a:hover { color: var(--rafter); text-decoration: underline; text-underline-offset: 4px; }

.blog-list {
  list-style: none; padding: 0 var(--gutter); margin: 28px auto;
  max-width: 1120px;
  display: grid; gap: 20px;
}
@media (min-width: 720px) { .blog-list { grid-template-columns: repeat(3, 1fr); } }
.blog-list a { display: block; text-decoration: none; }
.blog-list img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 3px; background: var(--rule); }
.blog-list .t { display: block; font-family: var(--serif); font-weight: 700; line-height: 1.45; margin-top: 10px; }
.blog-list .d { display: block; font-size: .88rem; color: var(--gravel); margin-top: 4px; }
.blog-list a:hover .t { color: var(--rafter); text-decoration: underline; text-underline-offset: 4px; }

.text-link { color: var(--rafter); text-underline-offset: 4px; }

/* ---------- contact & footer ---------- */
.contact { padding-bottom: clamp(56px, 9vw, 112px); }
.contact .cta-row { margin: 8px 0 28px; }
.address dd .text-link { display: inline-block; margin-top: 4px; }

.footer {
  background: var(--basalt); color: #cfd0ca;
  padding: 48px 0 calc(110px + env(safe-area-inset-bottom));
  font-size: .95rem; line-height: 1.8;
}
.footer .prose > p { color: #cfd0ca; }
.footer .prose > .brand { color: var(--lime); margin-bottom: .6em; }
.footer a { color: var(--lime); }
@media (min-width: 720px) { .footer { padding-bottom: 48px; } }

/* ---------- 휴대폰 아래 고정 버튼 ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(47,48,45,.94);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.on { transform: none; }
@media (min-width: 720px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta, .btn { transition: none; } }

/* ---------- 기간별 요금표 ---------- */
.rates { width: 100%; border-collapse: collapse; border-top: 2px solid var(--basalt); }
.rates caption { text-align: left; font-size: .95rem; color: var(--gravel); padding-bottom: 10px; caption-side: top; }
.rates th, .rates td { padding: 14px 8px 14px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
.rates thead th { font-size: .9rem; font-weight: 400; color: var(--gravel); padding-top: 10px; padding-bottom: 10px; }
.rates tbody th { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; }
.rates tbody th span { display: block; font-family: var(--sans); font-weight: 400; font-size: .88rem; color: var(--gravel); }
.rates td { white-space: nowrap; }
.rates td:nth-child(2) { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--rafter); }
.rates th:last-child, .rates td:last-child { text-align: right; padding-right: 0; }
.note { margin: 12px 0 8px; color: #4a4b46; }
