/* Bashi Spa: styles. Color tokens are documented in brand/brand-guide.md */

:root {
  --paper: #F7F2EA;
  --surface: #FFFDF9;
  --mist: #E8E2D7;
  --ink: #2A2825;
  --stone: #6A645B;
  --jialing: #2E6A64;
  --jialing-ink: #FFFDF9;
  --clay: #B95F38;

  --serif: "Fraunces", "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brush: "Ma Shan Zheng", "KaiTi", "STKaiti", "Kaiti SC", serif;

  --radius: 14px;
  --wrap: 1080px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1A1917;
    --surface: #23211E;
    --mist: #2E2B27;
    --ink: #EEE8DD;
    --stone: #A9A196;
    --jialing: #79B7AD;
    --jialing-ink: #1A1917;
    --clay: #E08B62;
  }
}
:root[data-theme="dark"] {
  --paper: #1A1917;
  --surface: #23211E;
  --mist: #2E2B27;
  --ink: #EEE8DD;
  --stone: #A9A196;
  --jialing: #79B7AD;
  --jialing-ink: #1A1917;
  --clay: #E08B62;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--jialing); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { font-family: var(--serif); font-size: 1.5rem; line-height: 1; display: flex; flex-direction: column; }
.wordmark small { font-family: var(--sans); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--stone); margin-top: 3px; }
nav { margin-left: auto; }
.lang-toggle {
  font: 500 .9rem/1 var(--sans); color: var(--ink); background: transparent;
  border: 1px solid var(--mist); border-radius: 999px; padding: 8px 12px; cursor: pointer;
  min-width: 52px;
}
.lang-toggle:hover { border-color: var(--jialing); color: var(--jialing); }
:lang(zh-CN) h1 { letter-spacing: .04em; }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--jialing); }
@media (max-width: 560px) { nav { display: none; } .lang-toggle { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--jialing); color: var(--jialing-ink);
  font-weight: 500; text-decoration: none; border: 2px solid var(--jialing);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--jialing); }
.btn-small { padding: 8px 16px; font-size: .95rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 120px); }
.hero-inner { position: relative; }
.hero-chars {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  margin: 0; font-family: var(--brush); font-size: clamp(5rem, 18vw, 13rem); line-height: 1;
  white-space: nowrap; color: var(--clay); opacity: .14; pointer-events: none; user-select: none;
}
@media (max-width: 560px) {
  .hero-chars { top: 0; transform: none; opacity: .1; }
}
.lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: var(--stone); margin-bottom: 1.25em; }
.pronounce { color: var(--stone); max-width: 36ch; }
.pronounce strong { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--mist); }
.section-lede { color: var(--stone); max-width: 60ch; margin-bottom: 2em; }
.fine { font-size: .9rem; color: var(--stone); margin-top: 1.5em; }
.muted { color: var(--stone); }

/* Services: menu-style rows with a price table */
.service-list { border-top: 1px solid var(--mist); }
.service-row {
  display: grid; gap: 20px 56px;
  padding: 36px 0; border-bottom: 1px solid var(--mist);
}
@media (min-width: 860px) {
  .service-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
}
.service-info h3 { font-size: 1.4rem; margin-bottom: .4em; }
.service-desc { color: var(--stone); max-width: 46ch; margin-bottom: 0; }
.service-styles { margin-top: 18px; }

.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th {
  font: 500 .75rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--stone); text-align: left; padding: 0 0 10px; border-bottom: 1px solid var(--mist);
}
:lang(zh-CN) .price-table th { letter-spacing: .04em; font-size: .85rem; }
.price-table td { padding: 12px 0; border-bottom: 1px dashed var(--mist); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .col-label { padding-right: 16px; }
.price-table .col-time { white-space: nowrap; padding-right: 16px; }
.price-table .col-price { text-align: right; white-space: nowrap; font-weight: 500; color: var(--jialing); width: 1%; }
.price-table th.col-price { color: var(--stone); }
.price-table:not(:has(.col-label)) .col-time { width: auto; }

.addon-list { list-style: none; margin: 0; padding: 0; }
.addon-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--mist); }
.price { font-weight: 500; color: var(--jialing); white-space: nowrap; }
.addons { margin-top: 40px; max-width: 520px; }

/* Service style chips */
.styles-label { display: block; font-size: .85rem; color: var(--stone); margin-bottom: 8px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .9rem; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--jialing) 10%, transparent);
  color: var(--jialing); border: 1px solid color-mix(in srgb, var(--jialing) 30%, transparent);
}

/* About */
.about { display: grid; gap: 40px; }
@media (min-width: 860px) { .about { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.about-text p { max-width: 62ch; }
.license { font-size: .95rem; color: var(--stone); border-left: 3px solid var(--clay); padding-left: 12px; }
.expect { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius); padding: 24px; }
.expect ul { margin: 0; padding-left: 1.1em; }
.expect li { margin-bottom: .5em; }

/* Visit */
.visit { display: grid; gap: 40px; }
@media (min-width: 760px) { .visit { grid-template-columns: 1fr 1fr; } }
address { font-style: normal; font-size: 1.15rem; margin-bottom: .75em; }
.contact-lines { margin: 1.25em 0 1.5em; }
.contact-lines p { margin: 0 0 .35em; }
.hours { margin: 0; max-width: 340px; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px dashed var(--mist); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--stone); }

/* Gallery */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
  .gallery-wide { grid-column: 1; grid-row: 1 / span 2; }
}
.gallery figure, .visit-photo { margin: 0; }
.gallery img, .visit-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--mist); background: var(--mist);
}
.gallery figure { display: flex; flex-direction: column; }
.gallery figure img { flex: 1; min-height: 0; aspect-ratio: 4 / 3; }
.gallery-wide img { aspect-ratio: auto; }
figcaption { font-size: .9rem; color: var(--stone); margin-top: 8px; }
.visit-photo { margin-top: 28px; max-width: 480px; }
.visit-photo img { aspect-ratio: 4 / 3; height: auto; }

/* Policies */
.policy-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.policy-grid p { color: var(--stone); }

/* Footer */
.site-footer { padding: 32px 0 48px; color: var(--stone); font-size: .9rem; }
.footer-inner { display: flex; align-items: center; gap: 12px; }
.footer-inner p { margin: 0; }

