/* 한그릇 — DESIGN.md 「한 그릇 정물」 토큰. 색의 역할은 DESIGN.md 3장을 따른다. */
:root {
  --color-earth: #1d0b0d;   /* 몰입 구역 배경, 크림 위 본문 글자 */
  --color-leaf: #103b15;    /* 보조 글자, 노란 버튼 위 글자 */
  --color-lemon: #f7ea48;   /* 핵심 버튼 + 첫 화면 제목 전용 */
  --color-cream: #fcf9f0;   /* 본문 구역 배경, 어두운 바탕 위 글자 */
  --color-mist: #dbe2dc;    /* 얇은 구분선 전용 */
  --color-white: #ffffff;   /* 어두운 바탕 위 보조 테두리 */
  --color-earth-soft: #2a1517; /* 흙빛 위 사진 자리 표시 */
  --color-cream-deep: #efe9da; /* 크림 위 사진 자리 표시 */
  --color-white-wash: rgba(255, 255, 255, .08); /* 보조 버튼 hover */
  --color-mist-line: rgba(219, 226, 220, .25); /* 흙빛 위 얇은 구분선(안개색을 옅게) */

  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", sans-serif;

  --text-caption: 14px;
  --text-body: 16px;
  --text-subheading: 20px;
  --text-heading-sm: 26px;
  --text-heading: 30px;
  --text-heading-lg: 36px;
  --text-display: 75px;

  --radius-ui: 1px;
  --radius-photo: 40px;
  --gap: 15px;
  --section-gap: 30px;
  --band-pad: 96px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-earth);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.4;
  letter-spacing: 0.03em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-lemon); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  background: var(--color-lemon); color: var(--color-leaf);
  padding: 8px 16px; border-radius: var(--radius-ui); text-decoration: none;
}
.skip:focus { top: 12px; }

/* 상단 메뉴바 — 크림 배경 고정 */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-mist);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px max(16px, 4vw);
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
}
.nav__logo { font-size: 28px; font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  display: block; padding: 6px 8px;
  font-size: var(--text-body); text-decoration: none;
}
.nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 구역 띠 — 흙빛 ↔ 크림 */
.band { padding-block: var(--band-pad); }
.band--earth { background: var(--color-earth); color: var(--color-cream); }
.band--cream { background: var(--color-cream); color: var(--color-earth); }
.band__inner { max-width: var(--max); margin: 0 auto; padding-inline: max(16px, 4vw); }

/* 넓은 자간 분류 라벨 (Shupatto에서 빌린 요소) */
.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-leaf);
}
.label--light, .band--earth .label { color: var(--color-mist); }

.section-head { display: grid; gap: 8px; margin-bottom: 48px; text-align: center; justify-items: center; }
.section-title { font-size: var(--text-heading-lg); line-height: 1.2; font-weight: 600; }

/* 버튼 */
.btn {
  display: inline-block;
  padding: 12px 34px;
  font-size: var(--text-body); font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; border-radius: var(--radius-ui);
  transition: transform .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--color-lemon); color: var(--color-leaf); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--color-white); color: var(--color-white); border-radius: 0; }
.btn--ghost:hover { background: var(--color-white-wash); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn--primary:hover { transform: none; } }

/* 1. 첫 화면 */
.hero { padding-block: 64px 96px; }
.hero__inner { display: grid; justify-items: center; text-align: center; gap: 20px; }
.hero__bowl {
  width: min(520px, 100%); aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-photo);
  background: var(--color-earth-soft);
  margin-bottom: 12px;
}
.hero__title {
  font-size: var(--text-display); line-height: 1; font-weight: 700; letter-spacing: 0.04em;
  color: var(--color-lemon);
}
.hero__lead { font-size: var(--text-subheading); line-height: 1.35; color: var(--color-cream); margin-bottom: 8px; }

/* 2. 대표 메뉴 */
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.menu-card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.menu-card__img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-photo);
  background: var(--color-cream-deep);
  margin-bottom: 8px;
}
/* 메뉴 이름 ····· 가격 (21st Restaurant Menu Block의 점선 방식) */
.menu-card__row { display: flex; align-items: baseline; gap: 8px; }
.menu-card__name { font-size: var(--text-heading-sm); line-height: 1.3; font-weight: 600; }
.menu-card__leader { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--color-leaf); transform: translateY(-6px); opacity: .5; }
.menu-card__price { font-size: var(--text-subheading); font-weight: 500; color: var(--color-leaf); font-variant-numeric: tabular-nums; }
.menu-card__desc { font-size: var(--text-body); line-height: 1.45; color: var(--color-leaf); }

/* 3. 재료 이야기 */
.story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.story__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-photo); background: var(--color-earth-soft); }
.story__text { display: grid; gap: 18px; justify-items: start; }
.story__text p:not(.label) { font-size: var(--text-subheading); line-height: 1.6; max-width: 32em; }

/* 4. 방문 안내 */
.visit { max-width: 640px; margin: 0 auto; border-top: 1px solid var(--color-mist); }
.visit__row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--gap);
  padding: 18px 0; border-bottom: 1px solid var(--color-mist);
}
.visit dt { color: var(--color-leaf); font-weight: 500; }
.visit dd { margin: 0; }

/* 5. 방명록 — 흙빛 위 폼 + 최신순 목록 (Fresha 후기 목록 + 21st Rating·Comments 참고) */
.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; }
.guest-summary { font-size: var(--text-body); color: var(--color-mist); }
.guest { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }

.guest-form { display: grid; gap: 22px; justify-items: start; }
.field { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: var(--text-caption); font-weight: 500; letter-spacing: 0.02em; color: var(--color-mist); padding: 0; }
.field legend { margin-bottom: 8px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; }
.field__count { font-size: var(--text-caption); color: var(--color-mist); font-variant-numeric: tabular-nums; opacity: .7; }
.field input[type="text"] {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: var(--text-body); letter-spacing: 0.02em;
  color: var(--color-cream); background: transparent;
  border: 1px solid var(--color-white); border-radius: var(--radius-ui);
}
.field input[type="text"]::placeholder { color: var(--color-mist); opacity: .55; }
.field input[type="text"]:focus-visible { outline: 2px solid var(--color-lemon); outline-offset: 2px; }

.stars { display: flex; gap: 4px; }
.star { position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.star input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.star svg { width: 30px; height: 30px; fill: transparent; stroke: var(--color-white); stroke-width: 1.3; stroke-linejoin: round; transition: fill .12s ease; }
.star.is-on svg { fill: var(--color-cream); stroke: var(--color-cream); }
.star:has(input:focus-visible) { outline: 2px solid var(--color-lemon); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .star svg { transition: none; } }

.guest-form__error { min-height: 1.4em; font-size: var(--text-caption); color: var(--color-cream); }
.guest-form__error:empty { display: none; }
.guest-form .btn { border: 0; font-family: inherit; cursor: pointer; }

.guest-board { display: grid; gap: 14px; }
.guest-list { border-top: 1px solid var(--color-mist-line); }
.guest-item { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--color-mist-line); }
.guest-item__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.guest-item__name { font-weight: 600; }
.guest-item__stars { letter-spacing: 0.08em; color: var(--color-cream); font-size: var(--text-caption); }
.guest-item__time { margin-left: auto; font-size: var(--text-caption); color: var(--color-mist); opacity: .7; }
.guest-item__text { font-size: var(--text-subheading); line-height: 1.45; overflow-wrap: anywhere; }
.guest-empty { padding: 28px 0; color: var(--color-mist); border-top: 1px solid var(--color-mist-line); }

/* 6. 바닥글 */
.footer { padding-block: 48px; border-top: 1px solid var(--color-mist-line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); flex-wrap: wrap; }
.footer__logo { font-size: 28px; font-weight: 700; letter-spacing: 0.02em; }
.footer__note { font-size: var(--text-caption); color: var(--color-mist); }

/* 반응형 */
@media (max-width: 900px) {
  .menu-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .guest { grid-template-columns: 1fr; gap: 48px; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 600px) {
  :root { --band-pad: 64px; --text-display: 44px; --radius-photo: 28px; }
  .section-title { font-size: var(--text-heading); }
  .nav__logo { font-size: 22px; }
  .nav__links a { padding: 6px 4px; font-size: 15px; }
  .visit__row { grid-template-columns: 96px minmax(0, 1fr); }
  .nav__links { gap: 2px; }
  .nav__links a { font-size: 14px; }
}
