:root {
  color-scheme: light;
  --paper: #fdfcf9;
  --oat: #f7f4ef;
  --surface: #fff;
  --ink: #292622;
  --muted: #62584d;
  --line: #dfd5c8;
  --gold: #c5a880;
  --accent: #705436;
  --dark: #2a2723;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 var(--sans); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid #a36d26; outline-offset: 4px; }
section { scroll-margin-top: 22px; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(3.6rem, 7.3vw, 7.05rem); letter-spacing: .03em; }
h2 { font-size: clamp(2.05rem, 4.1vw, 3.6rem); letter-spacing: .035em; }
h3 { font-size: clamp(1.24rem, 2.15vw, 1.65rem); }
.wrap { width: min(calc(100% - 88px), 1200px); margin-inline: auto; }
.section { padding-block: clamp(72px, 8.8vw, 125px); }
.skip { position: absolute; top: 10px; left: 12px; padding: 8px 12px; background: #fff; transform: translateY(-160%); z-index: 3; }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .actions, .foot { display: flex; align-items: center; gap: 20px; }
.top-inner { min-height: 82px; justify-content: space-between; }
.brand { display: grid; text-decoration: none; gap: 1px; }
.brand span { font: 700 1.13rem/1.35 var(--serif); letter-spacing: .075em; }
.brand small { color: var(--muted); font-size: .62rem; letter-spacing: .2em; }
.top nav { display: flex; align-items: center; gap: clamp(15px, 3.5vw, 42px); }
.top nav a { padding-block: 9px; font-size: .91rem; color: var(--muted); text-decoration: none; }
.top nav a:hover, .foot a:hover { text-decoration: underline; text-underline-offset: .3em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 10px 22px; border: 1px solid var(--gold); background: var(--gold); border-radius: 3px; color: #28221c; font-size: .97rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button:hover { background: #d3ba98; }
.button.compact { min-height: 42px; padding: 6px 15px; font-size: .87rem; }
.button.outline { background: transparent; border-color: var(--accent); }
.button.outline:hover { background: #eee4d7; }
.text-link { display: inline-block; width: fit-content; color: var(--accent); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .32em; }
.text-link:hover { color: var(--ink); }
.actions { flex-wrap: wrap; }
.eyebrow { color: var(--accent); font-size: .77rem; line-height: 1.55; font-weight: 700; letter-spacing: .15em; }
.hero { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(38px, 6vw, 92px); align-items: center; padding-block: clamp(58px, 7.1vw, 104px); }
.hero-copy { min-width: 0; }
.hero-copy .place { margin: 18px 0 13px; color: var(--muted); font-size: .91rem; letter-spacing: .08em; }
.hero-copy h1::after { display: block; content: ""; width: 60px; height: 1px; margin: 24px 0 21px; background: var(--gold); }
.hero-copy .intro { max-width: 26rem; color: var(--muted); font-size: 1.04rem; }
.hero .actions { margin-top: 27px; }
.hero-image { min-width: 0; position: relative; }
.hero-image img { aspect-ratio: 1.13; object-fit: cover; object-position: 43% 48%; border-radius: 5px; }
.hero-image figcaption { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); padding-top: 11px; font-size: .75rem; letter-spacing: .09em; }
.hero-image figcaption span:first-child { color: var(--accent); }
.band { background: var(--oat); border-block: 1px solid #eee8de; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 85px); }
.split > * { min-width: 0; }
#about .split { padding-block: clamp(58px, 7vw, 95px); }
.split h2, .section-head h2, .faq h2, .booking h2 { margin: 10px 0 17px; }
.body-copy, .section-head > p:last-child:not(.eyebrow) { color: var(--muted); max-width: 39rem; }
.reference { margin-top: 16px; color: var(--muted); font-size: .78rem; }
.principle { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.principle div { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: clamp(14px, 2.7vw, 30px); }
.principle span, .number { display: block; margin-bottom: 12px; color: var(--accent); font: 1.25rem/1 var(--serif); }
.principle strong { display: block; font-weight: 700; line-height: 1.5; }
.principle p { font-size: .88rem; color: var(--muted); margin-top: 5px; }
.section-head { margin-bottom: 36px; }
.equipment, .visit { align-items: center; }
.photo img { border-radius: 5px; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { color: var(--muted); padding-top: 9px; font-size: .8rem; }
.table-wrap > a { margin-top: 17px; }
table { width: 100%; border-collapse: collapse; text-align: left; line-height: 1.55; }
caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
th, td { padding: 13px 12px; border-block-end: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--accent); font-size: .82rem; }
tbody th { width: 34%; font-size: .91rem; }
td, thead th:last-child { background: #faf6ee; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(13px, 2vw, 23px); }
.card { background: var(--surface); padding: clamp(22px, 3vw, 38px); border: 1px solid var(--line); border-radius: 4px; }
.card p, .steps p, .questions p { margin-top: 9px; color: var(--muted); }
.card a { margin-top: 11px; }
.steps { list-style: none; padding: 0; margin: 23px 0 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: "0" counter(step); color: var(--accent); font: 1.26rem/1.5 var(--serif); }
.steps h3 { font-size: 1.23rem; }
.steps p { margin-top: 4px; }
.dark { color: #fbf7ef; background: var(--dark); }
.dark .eyebrow, .dark .text-link { color: #ead1ac; }
.dark .text-link:hover { color: white; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); margin-bottom: 25px; }
.doctor { display: grid; align-items: center; min-height: 175px; border: 1px solid #6b5e51; border-radius: 4px; background: #35302a; overflow: hidden; }
.doctor.portrait { grid-template-columns: minmax(95px, 29%) 1fr; }
.doctor img { align-self: end; aspect-ratio: .88; object-fit: cover; object-position: 50% 8%; }
.doctor div { padding: 19px clamp(16px, 3vw, 34px); }
.doctor p { color: #eee1d1; margin-top: 7px; font-size: .94rem; }
.faq { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(26px, 5.7vw, 76px); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { list-style: none; padding: 15px 26px 15px 0; font-weight: 700; cursor: pointer; position: relative; min-height: 51px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 3px; color: var(--accent); }
.questions details[open] summary::after { content: "−"; }
.questions p { margin: -2px 0 17px; }
.booking { text-align: center; background: #f2e8d9; border-top: 1px solid var(--line); }
.booking .actions { justify-content: center; margin-top: 20px; }
.booking .address { margin-top: 17px; color: var(--muted); font-size: .88rem; }
.foot { flex-wrap: wrap; min-height: 100px; padding-block: 17px; gap: 18px 26px; font-size: .87rem; }
.foot img { width: 144px; margin-right: auto; }
.foot a { text-decoration: none; }

@media (max-width: 860px) {
  .wrap { width: min(calc(100% - 48px), 1200px); }
  .hero { gap: 30px; }
  .hero-image img { aspect-ratio: 1; }
  .cards { gap: 12px; }
  .card { padding: 20px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 38px); }
  .top nav { display: none; }
  .top-inner { min-height: 69px; gap: 9px; }
  .brand span { font-size: .98rem; }
  .brand small { font-size: .54rem; }
  .button.compact { padding-inline: 10px; }
  .hero, .split, .faq, .cards, .team-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 39px 54px; gap: 25px; }
  .hero-image img { aspect-ratio: 1.24; }
  .hero-copy h1::after { margin: 17px 0 16px; }
  .hero-copy .place { margin-block: 13px 10px; }
  .hero .actions { gap: 12px; margin-top: 20px; }
  .hero .button { padding-inline: 13px; }
  .hero .text-link { font-size: .9rem; }
  .section { padding-block: 59px; }
  .section-head { margin-bottom: 24px; }
  th, td { padding-inline: 8px; }
  .doctor { min-height: 135px; }
  .faq h2 { margin-bottom: 0; }
  .booking .actions { column-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
