:root {
  color-scheme: light;
  --paper: #fbfaf8;
  --white: #fff;
  --ink: #262233;
  --muted: #575265;
  --plum: #493954;
  --mist: #efedf2;
  --line: #ded8e3;
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.9 var(--sans); }
a { color: var(--plum); text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #81638e; outline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
p, ul, ol, figure { margin: 0 0 1.2rem; }
h1, h2, h3 { margin: 0; line-height: 1.35; text-wrap: pretty; }
h2 { font-family: var(--serif); font-weight: 650; font-size: clamp(1.8rem, 3.1vw, 2.65rem); margin-bottom: 1.35rem; }
h3 { font-size: 1.15rem; margin-bottom: .55rem; }
h4 { font-size: 1rem; line-height: 1.55; margin: 0 0 .55rem; }
.subchapter { margin-top: 2.5rem; }
.subchapter > h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 1.7rem); margin-bottom: 1rem; }
.subchapter + .subchapter { padding-top: 1.7rem; border-top: 1px solid var(--line); }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.read { width: min(680px, 100%); }
.skip { position: absolute; top: -100px; left: 12px; background: var(--white); padding: 8px 16px; z-index: 2; }
.skip:focus { top: 12px; }

.masthead { border-bottom: 1px solid var(--line); }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: .95rem; text-decoration: none; }
.brand img { width: 100px; filter: brightness(0) saturate(100%); }
.brand span { color: var(--muted); font-size: .8rem; padding-left: .9rem; border-left: 1px solid var(--line); white-space: nowrap; }
.top-links { display: flex; align-items: center; gap: clamp(.75rem, 2.4vw, 2rem); }
.top-links a { font-size: .875rem; text-decoration: none; white-space: nowrap; }
.top-links a:hover { text-decoration: underline; }
.top-link { font-weight: 650; }

.hero { padding-top: 26px; }
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  border-radius: 18px;
  overflow: hidden;
  background: var(--mist);
}
.hero-copy { align-self: center; padding: clamp(2rem, 4.5vw, 4.25rem); min-width: 0; }
.clinic-label { display: block; color: var(--muted); font-size: .86rem; margin-bottom: 1.35rem; }
.hero-treatment { display: block; font-family: var(--sans); font-size: clamp(1.15rem, 2.2vw, 1.65rem); font-weight: 650; }
.hero-wordmark {
  display: block;
  font: 400 clamp(3.7rem, 7.5vw, 7rem)/.98 "Baskerville", "Times New Roman", serif;
  letter-spacing: -.055em;
  margin: .05em 0 .15em -.045em;
}
.hero-tagline { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 2.55vw, 2.2rem); font-weight: 650; }
.lead { margin: 1.25rem 0 1.35rem; color: var(--muted); max-width: 39rem; }
.hero figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; margin: 0; min-width: 0; }
.hero figure img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: 53% 35%; }
figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; line-height: 1.65; }
.hero figcaption {
  background: #e8e3eb;
  margin: 0;
  padding: .65rem 1rem .65rem 1.15rem;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .55rem 1.25rem;
  border: 1px solid var(--plum);
  background: var(--plum);
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
  font-size: .9rem;
  border-radius: 999px;
}
.button:hover { background: #5c4967; }
.text-action { font-size: .9rem; font-weight: 550; min-height: 44px; display: inline-flex; align-items: center; }
.sub .hero-panel { display: block; background: #e9e5ed; }
.sub .hero-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; }
.sub .hero-intro .lead { margin-top: 0; }
.sub h1 { font: 650 clamp(2rem, 4vw, 3.45rem)/1.25 var(--serif); }
.term { white-space: nowrap; }
.breadcrumb { grid-column: 1 / -1; font-size: .84rem; justify-self: start; }
.breadcrumb::before { content: "‹"; display: inline-block; margin-right: .4em; }

.reading-layout {
  display: grid;
  grid-template-columns: minmax(12.5rem, .23fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.6vw, 4.4rem);
  align-items: start;
  padding-block: clamp(2.1rem, 5vw, 4.5rem);
}
.toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; padding: .25rem 0 .25rem .15rem; }
.toc h2 { font: 650 .9rem/1.4 var(--sans); color: var(--muted); margin: 0 0 .6rem .85rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li + li { margin-top: 2px; }
.toc a { display: block; padding: .48rem .7rem .48rem .85rem; border-radius: 5px; text-decoration: none; font-size: .88rem; line-height: 1.55; }
.toc a:hover, .toc a:focus-visible { background: var(--mist); }
.toc a:focus-visible { outline-offset: -2px; }
.toc a[href="#book"] { margin-top: .35rem; font-weight: 700; }
.chapters { min-width: 0; }
.section { padding-block: clamp(2.65rem, 5vw, 4.35rem); border-top: 1px solid var(--line); }
.section:first-child { padding-top: .2rem; border-top: 0; }
.section > .wrap { width: 100%; }
.section > .wrap > :last-child, .read > :last-child { margin-bottom: 0; }
.section h2 { max-width: 26em; }
.section p, .card p, .steps p { color: var(--muted); }

.columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.6rem 0; }
.columns.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card { min-width: 0; border-top: 2px solid #a994ae; padding: 1rem .35rem .25rem 0; }
.card :last-child { margin-bottom: 0; }
.card p { font-size: .93rem; }
.columns.two .card { background: var(--mist); border: 0; padding: 1.2rem 1.25rem; border-radius: 10px; }
#related .columns { grid-template-columns: 1fr; gap: 0; }
#related .card {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.8fr);
  align-items: baseline;
  gap: .5rem 1.2rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: .9rem 0;
}
#related .card h3 { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: clamp(1.1rem, 3vw, 2.4rem); align-items: center; margin: 1.65rem 0; }
.split > figure, .split > .read > :last-child { margin-bottom: 0; }
.split img { border-radius: 12px; width: 100%; }
.split .portrait { max-width: 13.5rem; justify-self: center; }
.portrait figure { margin-bottom: 0; }
.portrait img { object-fit: cover; object-position: center 18%; aspect-ratio: 4 / 5; background: var(--mist); }
.callout { border-left: 3px solid #a088ab; background: var(--mist); border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout :last-child { margin-bottom: 0; }

.table-box { margin: 1.6rem 0; }
table { border-spacing: 0; width: 100%; table-layout: fixed; font-size: .92rem; }
caption { color: var(--ink); text-align: left; font-weight: 650; margin-bottom: .65rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem .9rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { color: var(--plum); background: var(--mist); }
thead th:first-child { border-top-left-radius: 10px; }
thead th:last-child { border-top-right-radius: 10px; }
tbody th { color: var(--ink); }
tbody td { color: var(--muted); }
.table-label { display: none; }
.steps { list-style: none; counter-reset: step; margin: 1.25rem 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 1.1rem 0 1.1rem 3.5rem; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .95rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--mist);
  font: 500 1.15rem "Baskerville", Georgia, serif;
  color: var(--plum);
}
.steps li p { margin-bottom: 0; }

details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  position: relative;
  display: block;
  list-style: none;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  padding: .95rem 2.2rem .95rem 0;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: .35rem; top: 1.32rem; width: .58rem; height: .58rem; border-right: 2px solid var(--plum); border-bottom: 2px solid var(--plum); transform: rotate(45deg); }
details[open] summary::after { top: 1.52rem; transform: rotate(225deg); }
details p { margin: 0 0 1.05rem; padding: .85rem 1rem; background: var(--mist); border-radius: 8px; }
.refs { font-size: .86rem; padding-left: 1.35rem; }
.refs li { margin-bottom: .85rem; padding: .25rem .3rem; }
.backlinks { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .4rem; font-size: .76rem; color: var(--muted); margin-top: .3rem; }
.backlinks a { display: inline-grid; place-items: center; min-width: 1.85rem; min-height: 1.85rem; border-radius: 4px; background: var(--mist); text-decoration: none; }
.backlinks a:hover { text-decoration: underline; }
sup { vertical-align: super; line-height: 0; }
sup a { font-size: .73rem; margin-left: .24em; white-space: nowrap; }
sup a:target, .refs li:target { background: #f5e2a8; }

.booking { border: 0; background: #3d3048; color: var(--white); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 14px; margin: 0 0 2.15rem; }
.booking p, .booking sup a { color: #f1eaf3; }
.booking .actions { margin-top: 1.1rem; }
.booking .button { background: #f1eaf3; border-color: #f1eaf3; color: var(--plum); }
.booking .button.outline { background: transparent; color: var(--white); border-color: #c4b3cc; }
.booking .button:hover { background: var(--white); color: var(--plum); }
footer { padding: 1.3rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer .wrap { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 44px); }
  .reading-layout { display: block; padding-top: 1.4rem; }
  .toc { position: static; overflow: visible; max-height: none; padding: .9rem .9rem .75rem; margin-bottom: 2.2rem; border: 1px solid var(--line); border-radius: 10px; }
  .toc h2 { margin-left: .55rem; }
  .toc ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: .5rem; }
  .toc li + li, .toc a[href="#book"] { margin-top: 0; }
  .toc a { padding: .55rem; min-height: 40px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { min-height: 64px; gap: 12px; }
  .brand img { width: 81px; }
  .brand span { display: none; }
  .top-links a { min-height: 44px; display: flex; align-items: center; font-size: .82rem; }
  .hero { padding-top: 14px; }
  .hero-panel, .sub .hero-copy { display: block; }
  .hero-copy { padding: 1.35rem 1.25rem 1.25rem; }
  .clinic-label { margin-bottom: .7rem; font-size: .78rem; }
  .hero-wordmark { font-size: clamp(3.55rem, 15vw, 5rem); }
  .lead { margin: .85rem 0 .95rem; font-size: .93rem; line-height: 1.8; }
  .hero figure img { height: auto; min-height: 0; aspect-ratio: 1.65; object-position: 53% 17%; }
  .hero figcaption { padding: .55rem .8rem; font-size: .74rem; }
  .sub .hero-intro .lead { margin-top: .9rem; }
  .sub .clinic-label { margin-top: .7rem; }
  .sub h1 { font-size: clamp(1.85rem, 7.4vw, 2.6rem); }
  .section { padding-block: 2.6rem; }
  .section h2 { margin-bottom: .95rem; }
  .columns, .columns.two, .split, #related .card { grid-template-columns: 1fr; gap: .9rem; }
  #related .card { gap: .3rem; }
  .split .portrait { max-width: 11rem; justify-self: start; }
  .card { padding-top: .85rem; }
  table, caption, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  tbody tr { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: .65rem; }
  tbody th { background: var(--mist); }
  tbody td { padding-block: .62rem; }
  tbody td:last-child { border: 0; }
  .table-label { display: block; font-size: .78rem; font-weight: 650; color: var(--plum); }
  .booking { padding: 1.4rem 1.2rem; }
}
@media (max-width: 360px) {
  .hero-copy { padding-inline: 1rem; }
  .hero-wordmark { font-size: 3.1rem; }
  .actions { column-gap: .7rem; }
  .button { padding-inline: .8rem; font-size: .84rem; }
  .text-action { font-size: .83rem; }
}
