/* Tokyo Mobile Bodywork — quiet, editorial, mobile-first.
   Palette: warm off-white / stone & sand / charcoal. No primaries, gradients or gold. */

:root {
  --bg: #f6f3ee;
  --bg-alt: #eee9e1;
  --stone: #e3dcd0;
  --line: #d9d1c3;
  --ink: #2e2b27;
  --muted: #6c665d;
  --accent: #4a463f;
  --serif: "Cormorant Garamond", "EB Garamond", "Noto Serif SC", "Songti SC", "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1120px;
  --pad: 24px;
  --bookbar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bookbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 .6em; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 9vw, 3.9rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.4rem; line-height: 1.3; font-weight: 500; }

/* CJK: tighter display sizes, more leading */
.lang-zh h1, .lang-ko h1 { font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1.4; letter-spacing: .02em; }
.lang-zh h2, .lang-ko h2 { font-size: clamp(1.4rem, 4.6vw, 2rem); line-height: 1.45; }
.lang-zh h3, .lang-ko h3 { font-size: 1.15rem; }
.lang-zh body, .lang-ko body { line-height: 1.85; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- language bar (all pages, first view) ---------- */
.langbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.langbar ul {
  list-style: none; display: flex; gap: 4px 18px; justify-content: center; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto; padding: 8px var(--pad);
  font-size: 12.5px; letter-spacing: .04em; line-height: 1.6;
}
.langbar a { color: var(--muted); text-decoration: none; padding: 4px 0; display: inline-block; }
.langbar a:hover { color: var(--ink); }
.langbar a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { font-family: var(--serif); font-size: 1.2rem; text-decoration: none; letter-spacing: .02em; white-space: nowrap; margin-right: auto; }
.primary { display: none; }
.primary ul, .mobile-menu ul { list-style: none; }
.primary ul { display: flex; gap: 26px; }
.primary a { text-decoration: none; font-size: .88rem; letter-spacing: .04em; color: var(--muted); }
.primary a:hover, .primary a[aria-current] { color: var(--ink); }
.btn.header-book { display: none; }
.nw { white-space: nowrap; }
.menu-toggle {
  font: inherit; font-size: .85rem; letter-spacing: .08em; color: var(--ink);
  background: none; border: 1px solid var(--line); padding: 8px 14px; min-height: 40px; cursor: pointer;
}
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu ul { padding: 8px var(--pad) 20px; }
.mobile-menu a { display: block; padding: 12px 0; font-family: var(--serif); font-size: 1.45rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu a[aria-current] { color: var(--muted); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-direction: column;
  min-height: 52px; padding: 12px 30px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  font-size: .95rem; letter-spacing: .07em; border: 1px solid var(--ink);
  transition: background-color .3s ease;
}
.btn:hover { background: var(--accent); }
.btn-small { min-height: 40px; padding: 6px 18px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn.is-pending { opacity: .5; cursor: default; }
.textlink { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--line); }
.textlink:hover { text-decoration-color: var(--ink); }
.textlink.is-pending { color: var(--muted); }

/* ---------- labels ---------- */
.label, .eyebrow {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.4em; display: flex; align-items: center; gap: 14px;
}
.label .num { color: var(--ink); letter-spacing: .1em; }
.label .num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line); vertical-align: middle; margin-left: 14px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 64px; }
.hero-inner { display: grid; gap: 40px; }
.hero-sub { font-size: 1.05rem; color: var(--muted); }
.hero-price { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .02em; margin: 1.4em 0 1.2em; }
.hero-price .sep { color: var(--line); margin: 0 .35em; }
.hero-cta { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.hero-cta .btn { min-width: 220px; }

/* ---------- photo placeholders ---------- */
.ph { margin: 0; }
.ph-box {
  width: 100%; background: var(--stone); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.ph-label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 8px; text-align: center; }
.hero-photo .ph-box { aspect-ratio: 4 / 3 !important; }
.ph img { width: 100%; height: auto; aspect-ratio: 2096 / 1184; object-fit: cover; background: var(--stone); }
.hero-photo img { aspect-ratio: 4 / 3; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.page-head { padding: 56px 0 8px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.page-head + .section { padding-top: 40px; }
.split { display: grid; gap: 40px; align-items: center; }
.small-note { font-size: .85rem; color: var(--muted); margin-top: 2.4em; }

.essentials { list-style: none; display: grid; gap: 0; }
.essentials li { border-top: 1px solid var(--line); padding: 24px 0 8px; }
.essentials p { color: var(--muted); }

.lines { list-style: none; }
.lines li { border-top: 1px solid var(--line); padding: 14px 0; }
.lines li:last-child { border-bottom: 1px solid var(--line); }

/* FAQ */
.faq { margin-bottom: 1.6em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 40px 20px 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.35;
}
.lang-zh .faq summary, .lang-ko .faq summary { font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-weight: 300; font-size: 1.3rem; color: var(--muted); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--muted); }

/* steps */
.steps { list-style: none; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 8px; border-top: 1px solid var(--line); padding: 28px 0 12px; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num { font-family: var(--serif); font-size: 1.5rem; color: var(--muted); line-height: 1.3; }
.step p { color: var(--muted); }

/* facts */
.facts { margin: 0; }
.facts .row { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 4px; }
.facts .row:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.facts dd { margin: 0; color: var(--muted); }

/* plans */
.plans { list-style: none; display: grid; gap: 20px; margin-bottom: 40px; }
.plan { border: 1px solid var(--line); padding: 32px 28px 24px; background: var(--bg); }
.plan-dur { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6em; }
.plan-price { font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; margin: 0 0 .5em; }
.plan-desc { color: var(--muted); margin: 0; }

/* booking */
.contact { border: 1px solid var(--line); padding: 28px 24px; background: var(--bg); }
.ig-line { margin: 1.2em 0 0; color: var(--muted); font-size: .95rem; }
.pending-note { font-size: .8rem; color: var(--muted); margin: .8em 0 0; }
.language-note p:first-child { font-family: var(--serif); font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.lang-zh .language-note p:first-child, .lang-ko .language-note p:first-child { font-size: 1.08rem; line-height: 1.85; }
.language-note p { color: var(--muted); }

.final { padding: 88px 0 96px; }
.final .btn { min-width: 240px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .88rem; color: var(--muted); }
.footer-brand { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin: 0 0 .2em; }
.footer-tag { margin-bottom: 2em; }
.footer-nav, .footer-langs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 1.4em; }
.footer-nav a, .footer-langs a { text-decoration: none; }
.footer-nav a:hover, .footer-langs a:hover { color: var(--ink); }
.footer-social { margin: 0 0 1.4em; }
.footer-social a { color: var(--ink); }
.footer-note { font-size: .8rem; margin-top: 2em; }
.footer-copy { font-size: .78rem; margin: 0; }

/* ---------- sticky Book bar (mobile) ---------- */
.bookbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 243, 238, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bookbar .btn { min-height: 54px; padding: 8px 16px; }
.bookbar-price { display: block; font-size: .72rem; letter-spacing: .06em; opacity: .75; margin-top: 2px; }
.bookbar-price .sep { margin: 0 .3em; }

/* ---------- quiet fade-in only ---------- */
.js .fade { opacity: 0; transform: translateY(10px); transition: opacity 1s ease, transform 1s ease; }
.js .fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade { opacity: 1; transform: none; transition: none; }
}

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  :root { --pad: 40px; }
  body { font-size: 17px; }
  .essentials { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .facts .row { grid-template-columns: 200px 1fr; gap: 24px; }
  .section { padding: 104px 0; }
}
@media (min-width: 980px) {
  body { padding-bottom: 0; }
  .bookbar { display: none; }
  .primary { display: block; }
  .btn.header-book { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .header-inner { min-height: 72px; }
  .hero { padding: 72px 0 104px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .page-head { padding: 96px 0 16px; }
}
