/* 바다결 스테이 — 휴대폰 먼저 설계. 색은 회청색, 모래색, 먹색 안에서만 쓴다. */

@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-Regular.subset.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("fonts/Pretendard-SemiBold.subset.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Gowun Batang";
  src: url("fonts/GowunBatang-Regular.page.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #22282b;
  --ink-soft: #4a5358;
  --sea: #4c6572;
  --sea-deep: #33474f;
  --sea-pale: #c6d1d5;
  --sand: #f4efe6;
  --sand-2: #e8e0d2;
  --sand-3: #cbbfab;
  --gutter: 22px;
  --bar: 58px;
  --serif: "Gowun Batang", "Noto Serif KR", "Batang", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

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

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

body {
  margin: 0;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom));
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-synthesis: none;
}

img { display: block; max-width: 100%; height: auto; background: var(--sand-2); }
a { color: inherit; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -.015em;
}
h2 { font-size: 1.85rem; }
h3 { font-size: 1.5rem; }

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

.wrap { padding-inline: var(--gutter); }

.skip {
  position: absolute;
  left: -999px;
  z-index: 30;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--sand);
}
.skip:focus { left: 8px; top: 8px; }

.eyebrow {
  margin-bottom: .55em;
  color: var(--sea);
  font-size: .875rem;
  font-weight: 600;
}

/* 샘플 표시 띠 */
.notice {
  margin: 0;
  padding: 7px var(--gutter);
  background: var(--ink);
  color: var(--sand-2);
  font-size: .8rem;
  line-height: 1.55;
  text-align: center;
}

/* 머리글 */
.site-head {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding-inline: var(--gutter);
  background: var(--sand);
}
.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  text-decoration: none;
}
.menu-btn {
  min-height: 44px;
  padding: 0 0 0 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 6px var(--gutter) 16px;
  border-top: 1px solid var(--sand-2);
  background: var(--sand);
}
.site-nav.is-open { display: block; }
.site-nav a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}

/* 첫 화면 */
.hero-img {
  width: 100%;
  height: 50vh;
  height: 50svh;
  min-height: 280px;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero-panel { padding: 26px var(--gutter) 30px; }
.hero h1 { font-size: 2.5rem; }
.hero-line { margin: .5em 0 1.1em; font-size: 1.08rem; color: var(--ink-soft); }
.text-link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.glance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--sand-3);
}
.glance li { padding: 13px var(--gutter); font-size: 1rem; }
.glance li:nth-child(odd) { border-right: 1px solid var(--sand-3); }
.glance li:nth-child(-n+2) { border-bottom: 1px solid var(--sand-3); }
.glance span { display: block; color: var(--sea); font-size: .8rem; font-weight: 600; }

/* 숙소 이야기 */
.story { padding-block: 68px 76px; }
.story-text { margin-top: 26px; font-size: 1.05rem; color: var(--ink-soft); }

/* 객실 */
.rooms { padding-bottom: 28px; }
.rooms > h2 { margin-bottom: 26px; }
.room { margin-bottom: 72px; }
.room-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.room-body { padding: 26px var(--gutter) 0; }
.room-body p { color: var(--ink-soft); }
.room-body .eyebrow { color: var(--sea); }
.room-body h3 { margin-bottom: .5em; font-size: 1.85rem; }
.room-detail {
  width: 62%;
  margin: 30px var(--gutter) 0 auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.specs {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--sand-3);
}
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sand-3);
}
.specs dt { color: var(--sea); font-weight: 600; }

/* 시설 */
.wide-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fac-grid { display: grid; gap: 26px; padding-block: 34px 76px; }
.fac-grid h3 { font-size: 1.3rem; margin-bottom: .3em; }
.fac-grid p { color: var(--ink-soft); }

/* 주변 */
.around { background: var(--ink); color: var(--sand); }
.around-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.around-body { padding: 42px var(--gutter) 56px; }
.moments { margin-top: 26px; }
.moments div { padding: 15px 0; border-top: 1px solid #4a5358; }
.moments dt { font-weight: 600; }
.moments dd { color: var(--sea-pale); }

/* 요금 */
.rates { padding-block: 72px 64px; }
table { width: 100%; margin-top: 22px; border-collapse: collapse; }
caption {
  padding-bottom: 12px;
  color: var(--ink-soft);
  font-size: .94rem;
  text-align: left;
}
th, td {
  padding: 15px 0;
  border-bottom: 1px solid var(--sand-3);
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}
th:first-child { text-align: left; }
thead th { padding-block: 9px; color: var(--sea); font-size: .875rem; font-weight: 600; }
thead tr th { border-bottom-color: var(--ink); }
tbody th { font-family: var(--serif); font-size: 1.2rem; }
tbody td { font-variant-numeric: tabular-nums; }
th small { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); }

/* 예약 문의 */
.reserve {
  padding-block: 54px;
  background: var(--sea-deep);
  color: var(--sand);
  scroll-margin-top: 0;
}
.reserve p { margin-top: 12px; color: #dfe4e2; }
.contact-list { margin-top: 24px; border-top: 1px solid #6c828b; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #6c828b;
  font-variant-numeric: tabular-nums;
}
.contact-list span { font-weight: 600; }

/* 오시는 길 */
.location { padding-block: 72px 0; }
.location h2 { margin-bottom: 16px; }
.location p { color: var(--ink-soft); }
.map-slot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-height: 250px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--sand-3);
  background: var(--sand-2);
  color: var(--ink-soft);
  font-size: .94rem;
}
.map-slot strong { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }

/* 이용 안내와 질문 */
.guide { display: grid; gap: 62px; padding-block: 72px 80px; }
.guide h2 { margin-bottom: 20px; }
.guide-list { border-top: 1px solid var(--ink); }
.guide-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sand-3);
}
.guide-list dt { color: var(--sea); font-weight: 600; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--sand-3); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sea); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 15px; color: var(--ink-soft); }

/* 바닥글 */
.site-foot { padding-block: 44px 40px; background: var(--ink); color: var(--sand-2); font-size: .94rem; }
.foot-name { margin-bottom: .4em; font-family: var(--serif); font-size: 1.2rem; color: var(--sand); }
.foot-notice { margin-top: 18px; padding-top: 16px; border-top: 1px solid #4a5358; }

/* 휴대폰 아래 고정 버튼 */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  height: calc(var(--bar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--sand-3);
  background: var(--sand);
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
}
.action-bar a + a { border-left: 1px solid var(--sand-3); }
.action-bar .primary { border-left: 0; background: var(--sea-deep); color: var(--sand); }

/* 태블릿 */
@media (min-width: 720px) {
  :root { --gutter: 44px; }
  h2 { font-size: 2.2rem; }
  .notice { font-size: .84rem; }
  .hero-img { height: 56vh; height: 56svh; }
  .hero h1 { font-size: 3.2rem; }
  .glance { grid-template-columns: repeat(4, 1fr); }
  .glance li:nth-child(n) { border-bottom: 0; border-right: 1px solid var(--sand-3); }
  .glance li:last-child { border-right: 0; }
  .room { display: grid; grid-template-columns: minmax(0, 1fr) 40%; column-gap: 36px; }
  .room-photo { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .room-body { padding-right: 0; }
  .room-detail { width: auto; margin: 30px var(--gutter) 0 0; }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .fac-grid h2 { grid-column: 1 / -1; }
  .wide-photo { aspect-ratio: 3 / 2; }
  .around-photo { aspect-ratio: 16 / 9; }
}

/* 넓은 화면: 고정 버튼 대신 상단 메뉴 */
@media (min-width: 1024px) {
  :root { --gutter: max(56px, calc((100vw - 1240px) / 2)); }
  html { scroll-padding-top: 84px; }
  body { padding-bottom: 0; font-size: 17px; }
  .action-bar, .menu-btn { display: none; }

  .site-head { position: sticky; top: 0; min-height: 72px; border-bottom: 1px solid var(--sand-2); }
  .brand { font-size: 1.35rem; }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    border: 0;
    background: none;
  }
  .site-nav a { padding: 6px 0; font-size: .95rem; }
  .site-nav a:hover { color: var(--sea); }
  .site-nav .nav-cta {
    margin-left: 6px;
    padding: 9px 18px;
    background: var(--sea-deep);
    color: var(--sand);
    font-weight: 600;
  }
  .site-nav .nav-cta:hover { background: var(--ink); color: var(--sand); }

  .hero { position: relative; }
  .hero-img { height: calc(100vh - 112px); min-height: 560px; max-height: 860px; object-position: 50% 55%; }
  .hero-panel {
    position: absolute;
    left: var(--gutter);
    bottom: 0;
    width: 500px;
    padding: 40px 44px 38px;
    background: var(--sand);
  }
  .hero h1 { font-size: 3.5rem; }

  .story {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 72px;
    padding-block: 120px;
  }
  .story-text { margin-top: 8px; }

  .rooms > h2 { margin-bottom: 40px; }
  .room {
    display: grid;
    grid-template-columns: 7fr 4fr;
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    margin-bottom: 112px;
    padding-right: var(--gutter);
  }
  .room-photo { grid-column: 1; grid-row: 1 / 3; height: 100%; min-height: 560px; aspect-ratio: auto; }
  .room-body { padding: 0; }
  .room-detail { width: 58%; margin: 34px 0 0 auto; align-self: end; }
  .room-flip { grid-template-columns: 4fr 7fr; padding-right: 0; padding-left: var(--gutter); }
  .room-flip .room-photo { grid-column: 2; }
  .room-flip .room-body, .room-flip .room-detail { grid-column: 1; }
  .room-flip .room-detail { margin-left: 0; margin-right: auto; }

  .wide-photo { aspect-ratio: 21 / 9; }
  .fac-grid { grid-template-columns: 5fr 3fr 3fr; gap: 48px; padding-block: 56px 120px; }
  .fac-grid h2 { grid-column: auto; }

  .around { display: grid; grid-template-columns: 7fr 4fr; }
  .around-photo { height: 100%; aspect-ratio: auto; min-height: 560px; }
  .around-body { align-self: center; padding: 56px var(--gutter) 56px 64px; }

  .rates {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 72px;
    padding-block: 120px 96px;
  }
  table { margin-top: 8px; }
  th, td { padding-block: 20px; }
  tbody th { font-size: 1.45rem; }
  tbody td { font-size: 1.15rem; }

  .reserve { padding-block: 72px; }
  .reserve .wrap { display: grid; grid-template-columns: 5fr 6fr; column-gap: 72px; }
  .reserve h2 { grid-column: 1; }
  .reserve p { grid-column: 1; }
  .contact-list { grid-column: 2; grid-row: 1 / 3; margin-top: 8px; }

  .location {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 72px;
    padding-block: 120px 0;
  }
  .map-slot { min-height: 340px; margin-top: 0; }

  .guide { grid-template-columns: 5fr 6fr; gap: 72px; padding-block: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
