:root {
  color-scheme: light;
  --paper: #f7f2e9;
  --cream: #fcf8f0;
  --linen: #ede5d8;
  --ink: #272a26;
  --muted: #4e5149;
  --teal: #164d4b;
  --teal-hover: #113b3b;
  --mist: #dce9e2;
  --line: #d3c8b8;
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", "Georgia", serif;
  --sans: "PingFang TC", system-ui, "Microsoft JhengHei", sans-serif;
  --header-height: 5.25rem;
  --section-space: clamp(4rem, 8vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1.25rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.125rem/1.85 var(--sans); overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .27em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #875631; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.45rem); line-height: 1.25; letter-spacing: .06em; text-wrap: balance; }
h3 { font-size: 1.35rem; line-height: 1.45; }
.wrap { width: min(76rem, calc(100% - clamp(2.5rem, 10vw, 9rem))); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-title { margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.muted { color: var(--muted); }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--cream); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { position: sticky; top: 0; z-index: 4; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .65rem; text-decoration: none; line-height: 1.35; }
.brand strong { font: 700 1.6rem/1.25 var(--serif); letter-spacing: .07em; }
.brand span { color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2.25rem); }
.nav > a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none; }
.nav > a:not(.button):hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: .6rem 1.7rem; border-radius: .5rem; background: var(--teal); color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.button:hover { background: var(--teal-hover); }
.nav > .button { min-height: 48px; padding-inline: 1.3rem; }
.menu-toggle { display: none; min-height: 48px; padding: .25rem .7rem; border: 1px solid var(--line); border-radius: .5rem; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }

.hero { padding-block: clamp(2.8rem, 7vw, 7rem); background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.eyebrow { color: var(--teal); font-weight: 650; letter-spacing: .055em; }
h1 { margin-block: 1.15rem 1.4rem; font-size: clamp(2.85rem, 5.4vw, 5rem); line-height: 1.18; letter-spacing: .017em; text-wrap: balance; }
.hero p:not(.eyebrow) { max-width: 31ch; margin-bottom: 1.6rem; color: var(--muted); }
.hero .button { min-width: 8rem; }
.portrait { display: block; max-width: 100%; object-fit: cover; background: var(--linen); }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; max-height: 38rem; border: 1px solid var(--line); border-radius: .5rem 4.5rem .5rem .5rem; object-position: center 25%; }

.services, .articles { background: var(--linen); border-block: 1px solid var(--line); }
.grid { display: grid; gap: clamp(1rem, 2.3vw, 1.65rem); }
.services-grid, .credentials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 1.15rem; padding: clamp(1.25rem, 2.7vw, 2.1rem); background: var(--cream); }
.card h3 { margin-bottom: .9rem; }
.service-list { margin: 0; }
.service-list > div + div { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.service-list dt { font-weight: 700; }
.service-list dd { margin: .2rem 0 0; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.about-photo { width: min(100%, 18rem); aspect-ratio: 1; border-radius: 50%; justify-self: center; object-position: center 26%; }
.about-copy { max-width: 42rem; }
.about-copy p + p { margin-top: 1.15rem; }
.credentials { margin-top: clamp(2.75rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.credentials > h3 { font-size: 1.65rem; }
.credentials > p { max-width: 44rem; margin-block: .75rem 1.5rem; }
.credentials ul { padding-left: 1.35rem; margin: 0; }
.credentials li + li { margin-top: .55rem; }
.practice { margin-top: 1.65rem; }
.practice ul { margin-block: .55rem; }

.faq { background: var(--cream); border-top: 1px solid var(--line); }
.narrow { max-width: 49rem; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.15rem; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 1.6rem; color: var(--teal); font-size: 1.55rem; font-weight: 400; line-height: 1; text-align: center; }
details[open] summary::after { content: "−"; }
details p { padding: 0 2rem 1.25rem 0; color: var(--muted); }

.articles .section-title { margin-bottom: .65rem; }
.articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.7rem; }
.article-placeholder { min-height: 9rem; display: grid; place-items: center; padding: 1.3rem; background: var(--cream); border: 1px solid var(--line); border-radius: 1.15rem; color: var(--muted); text-align: center; }

.booking { background: var(--mist); text-align: center; }
.booking p { max-width: 36rem; margin: 1rem auto 1.55rem; }
.booking .button { min-height: 62px; padding-inline: clamp(1rem, 4vw, 2.6rem); font-size: 1.2rem; }
footer { padding-block: 1.8rem; background: var(--cream); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: .8rem 2rem; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; color: var(--muted); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--teal); }

@media (max-width: 800px) {
  :root { --header-height: 4.5rem; }
  .menu-toggle { display: inline-flex; flex: none; align-items: center; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: .55rem max(1.25rem, 5vw) 1.1rem; background: var(--cream); border-bottom: 1px solid var(--line); gap: 0; }
  .nav.is-open { display: grid; }
  .nav > a:not(.button) { min-height: 48px; padding-block: .45rem; border-bottom: 1px solid var(--line); }
  .nav > .button { margin-top: .75rem; }
  .hero-grid, .services-grid, .about-grid, .credentials-grid, .articles-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 2rem; }
  .hero-photo { max-width: 34rem; aspect-ratio: 5 / 4; max-height: none; border-top-right-radius: 3rem; }
  .about-photo { width: min(55%, 13rem); justify-self: start; }
  .article-placeholder { min-height: 7rem; }
}
@media (max-width: 420px) {
  .brand { gap: 0 .4rem; }
  .brand strong { font-size: 1.4rem; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 2.85rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.article-card { max-width: 100%; }
.article-card p { margin-bottom: .9rem; color: var(--muted); }
.article-card time { color: var(--muted); }
.article-card a:hover, .article-header > a:hover, .author-card a:hover { color: var(--teal); }

.article-reading { max-width: 49rem; }
.article-header { padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
.article-prose { margin-top: 1.8rem; }
.article-lead { font-size: 1.25rem; line-height: 1.8; }
.article-section { margin-top: clamp(2rem, 5vw, 3.5rem); }
.article-section h2 { margin-bottom: 1rem; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.article-section p + p { margin-top: 1rem; }
.article-section ul { margin-block: .85rem; padding-inline-start: 1.5rem; }
.article-invite { margin-block: 2.5rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: 1.15rem; background: var(--mist); }
.article-invite p, .author-card p { margin-bottom: .9rem; }
.author-card h2 { font-size: 1.5rem; }
