:root {
  --ink: #2f2a26;
  --muted: #6b625b;
  --paper: #faf6f1;
  --accent: #7c6a58;
  --accent-dark: #5b4d3f;
  --line: #e6ddd2;
  --max: 880px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  /* Georgia first so Latin keeps its face; the CJK faces only catch glyphs
     Georgia lacks (the 关于 nav item, the whole Chinese page). */
  font-family: "Georgia", "Iowan Old Style", "Songti SC", "Noto Serif CJK SC",
               "Source Han Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* CJK runs need more leading than Latin at the same size. */
:lang(zh) main { line-height: 1.8; }

a { color: var(--accent-dark); }

img { max-width: 100%; display: block; border-radius: 6px; }

/* Portrait/lead images: cap the width without letting it beat the column. */
.inline-figure { width: 100%; max-width: 320px; margin-bottom: 24px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  display: inline-block;
  padding: 9px 2px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  padding-top: 56px;
  padding-bottom: 24px;
  text-align: center;
}

.hero img.headshot {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: 1.55rem;
  font-weight: normal;
  max-width: 760px;
  margin: 0 auto 14px;
  line-height: 1.5;
  text-wrap: balance;
}

.hero .sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  background: var(--accent-dark);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--ink); }

main { padding: 8px 0 60px; }

section { padding: 32px 0; }

h2 { font-size: 1.5rem; font-weight: normal; margin-top: 0; margin-bottom: 18px; text-wrap: balance; }
h3 { font-size: 1.1rem; margin-top: 0; margin-bottom: 6px; }

ul.check {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
ul.check li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}
ul.check li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent-dark);
}

.divider { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

.service-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 36px;
}
.service-item img { width: 100%; height: 170px; object-fit: cover; }
@media (max-width: 640px) {
  .service-item { grid-template-columns: 1fr; }
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.rate-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: #fff;
}
.rate-card .price { font-size: 1.6rem; margin: 8px 0; }
.rate-card .note { color: var(--muted); font-size: 0.9rem; }
.rate-card > :last-child { margin-bottom: 0; }

.note-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 24px;
}

form.contact-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin-top: 24px;
}
form.contact-form label {
  font-size: 0.9rem;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
form.contact-form textarea { min-height: 120px; resize: vertical; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .name-row { grid-template-columns: 1fr; } }

.form-status { font-size: 0.9rem; margin-top: 8px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { color: var(--muted); }
footer .safe-note { max-width: 640px; margin: 0 auto 14px; }


@media (max-width: 640px) {
    .nav-inner { padding: 14px 20px; gap: 8px; }
    nav.main-nav ul { gap: 10px 16px; }
    /* keep the vertical tap area, but no side padding: the five links only
       fit on one row at 375px if their boxes stay text-width */
    nav.main-nav a { font-size: 0.88rem; padding: 9px 0; }

  .hero { padding-top: 36px; padding-bottom: 16px; }
    .hero img.headshot { width: 150px; height: 150px; margin-bottom: 20px; }
    .hero h1 { font-size: 1.3rem; line-height: 1.45; max-width: 100%; }
    .hero .sub { font-size: 0.95rem; }

  h2 { font-size: 1.3rem; }
    section { padding: 24px 0; }

  /* iOS Safari zooms the whole page when a focused field is under 16px. */
  form.contact-form input,
    form.contact-form textarea { font-size: 16px; }

  .note-box { font-size: 0.95rem; }
    .inline-figure { max-width: 100%; }
}
