/* Laojia v2: quiet editorial look. Pale paper, ink text, one red seal; no wallpaper or fretwork.
   Cormorant Garamond only for large headings; Source Serif 4 for body, nav and forms. */
:root {
  --paper: #F7F3EA; --paper-2: #EFE8DA; --card: #FFFDF8; --ink: #23201C; --ink-2: #4A443D;
  --muted: #6E665C; --rule: #DCD2C0; --seal: #9E2B25; --seal-dark: #7F211C;
  --head: "Cormorant Garamond", "Noto Serif TC", "Noto Serif SC", Georgia, serif;
  --body: "Source Serif 4", "Noto Serif TC", "Noto Serif SC", Georgia, serif;
  --wrap: 1120px;
}
html[lang="zh-Hant"] { --head: "Noto Serif TC", "Cormorant Garamond", serif; --body: "Noto Serif TC", "Source Serif 4", serif; }
html[lang="zh-Hans"] { --head: "Noto Serif SC", "Cormorant Garamond", serif; --body: "Noto Serif SC", "Source Serif 4", serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--seal); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
.zh { font-family: "Noto Serif TC", "Noto Serif SC", serif; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; color: var(--ink); margin: 0; }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; max-width: 820px; }
h3 { font-size: 24px; line-height: 1.25; }
html[lang^="zh"] h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.25; letter-spacing: 0.04em; }
html[lang^="zh"] h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.4; }
html[lang^="zh"] h3 { font-size: 20px; }
.kicker { font: 600 12px/1.4 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
html[lang^="zh"] .kicker { letter-spacing: 0.3em; font-size: 13px; }
.seal { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--seal); color: #FBF3EA;
  font: 600 12px/1 "Noto Serif TC", serif; writing-mode: vertical-rl; letter-spacing: 0.08em; border-radius: 3px; }
.seal.small { width: 24px; height: 24px; font-size: 9px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 14px 26px;
  font: 600 15px/1 var(--body); letter-spacing: 0.02em; border-radius: 2px; border: 1px solid var(--ink); cursor: pointer; }
.btn:hover { background: var(--seal-dark); border-color: var(--seal-dark); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(247, 243, 234, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .word { font: 500 26px/1 var(--head); font-family: "Cormorant Garamond", serif; letter-spacing: 0.02em; }
nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
nav a { color: var(--ink-2); text-decoration: none; }
nav a:hover { color: var(--seal); }
.nav-cta { color: var(--seal) !important; border-bottom: 1px solid var(--seal); padding-bottom: 2px; }
.lang { display: flex; gap: 10px; font-size: 14px; }
.lang a[aria-current] { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { padding-top: 84px; }
.hero-text { text-align: center; }
.hero-text h1 { max-width: 900px; margin: 0 auto; }
.hero-sub { max-width: 680px; margin: 26px auto 0; font-size: 19px; color: var(--ink-2); }
.hero-actions { margin: 36px 0 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.assure { font-size: 15px; color: var(--muted); font-style: italic; }
html[lang^="zh"] .assure { font-style: normal; }
.hero-art { height: clamp(240px, 34vw, 440px); margin-top: 40px; background: url("/img/hero-scroll.jpg") center 62% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 82%, transparent 100%); }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-top: 28px; padding-bottom: 96px; border-bottom: 1px solid var(--rule); }
.promise h3 { font-size: 22px; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--muted); font-size: 16px; }

/* Photographs */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; filter: contrast(1.02); box-shadow: 0 18px 40px -24px rgba(35, 32, 28, 0.45); }
.photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); font-style: italic; }
html[lang^="zh"] .photo figcaption { font-style: normal; }
.photo .ai { display: block; font-size: 12px; font-style: normal; letter-spacing: 0.04em; margin-top: 2px; color: #8C8378; }

/* Story */
.story { padding: 110px 0 40px; }
.story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.story-text .meta { color: var(--muted); font-size: 15px; margin: 16px 0 22px; }
.story-text p { margin: 0 0 18px; }
.drop::first-letter { float: left; font: 500 76px/0.8 "Cormorant Garamond", serif; margin: 8px 10px 0 0; color: var(--seal); }
html[lang^="zh"] .drop::first-letter { font: inherit; float: none; margin: 0; color: inherit; }
.src { font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; }
.doc-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; margin-top: 96px; align-items: start; }
.doc { background: #EFE6D2; padding: 34px; box-shadow: inset 0 0 60px rgba(120, 95, 60, 0.18), 0 18px 40px -26px rgba(35, 32, 28, 0.5); }
.doc-page { writing-mode: vertical-rl; height: 360px; font: 500 22px/1.9 "Noto Serif TC", serif; color: #2B2520; letter-spacing: 0.18em;
  border: 1px solid rgba(120, 30, 25, 0.35); outline: 1px solid rgba(120, 30, 25, 0.2); outline-offset: 5px; padding: 18px 14px; margin: 0 auto; }
.doc-page span { display: block; padding: 0 6px; border-left: 1px solid rgba(120, 30, 25, 0.18); }
.tr { font-size: 19px; line-height: 1.75; color: var(--ink); margin: 0 0 40px; }
.tree { border-top: 1px solid var(--rule); padding-top: 26px; }
.gen { display: flex; justify-content: center; gap: 22px; position: relative; padding: 14px 0; }
.gen + .gen::before { content: ""; position: absolute; top: -2px; left: 50%; height: 16px; border-left: 1px solid var(--rule); }
.person { text-align: center; min-width: 150px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.person .zh { display: block; font-size: 21px; letter-spacing: 0.08em; }
.person .en { display: block; font-size: 15px; }
.person small { display: block; color: var(--muted); font-size: 13px; }
.note { font-size: 14px; color: var(--muted); font-style: italic; margin-top: 40px; }
html[lang^="zh"] .note { font-style: normal; }

/* How it works */
.how { padding-top: 110px; padding-bottom: 90px; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: s; }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; }
.steps .n { font: 400 30px/1 "Noto Serif TC", serif; color: var(--seal); display: block; margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
.how-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.band { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: end; padding-bottom: 20px; }
.tree-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 80px; align-items: center; }
.story-grid .photo.tall img { max-height: 640px; width: auto; margin: 0 auto; }

/* Offers */
.offers { padding-top: 110px; padding-bottom: 100px; }
.free-band { margin: 44px 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 36px;
  padding: 30px 36px; background: var(--card); border: 1px solid var(--rule); }
.free-band p { margin: 6px 0 0; color: var(--ink-2); max-width: 680px; }
.offer-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 0; align-items: stretch; border: 1px solid var(--rule); background: var(--card); }
.offer { padding: 40px 34px; display: flex; flex-direction: column; }
.offer + .offer { border-left: 1px solid var(--rule); }
.offer.main { background: #FFFFFF; box-shadow: 0 30px 60px -40px rgba(35, 32, 28, 0.55); position: relative; margin: -14px 0; border: 1px solid var(--ink); }
.badge { font: 600 12px/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--seal); margin: 0 0 16px; }
html[lang^="zh"] .badge { letter-spacing: 0.2em; }
.price { font: 500 40px/1 "Cormorant Garamond", serif; margin: 14px 0 4px; }
.offer.main .price { font-size: 52px; }
.tagline { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.offer ul { padding-left: 18px; margin: 0 0 30px; font-size: 16px; color: var(--ink-2); flex: 1; }
.offer li { margin-bottom: 8px; }
.offer .btn { align-self: flex-start; }

/* Founder: text only, centred, so no illustration is mistaken for the founder's family */
.founder { background: var(--paper-2); padding: 100px 0; }
.founder-inner { max-width: 760px; text-align: center; }
.founder-inner .seal { width: 44px; height: 44px; font-size: 15px; margin-bottom: 26px; }
.founder p { font-size: 19px; line-height: 1.8; }
.founder .kicker { font-size: 12px; line-height: 1.4; }
.sign { font: italic 500 26px/1 "Cormorant Garamond", serif; color: var(--ink); margin-top: 26px; }
.draft { display: inline-block; margin-left: 10px; padding: 2px 8px; background: #FCE9C5; color: #7A4B00; letter-spacing: 0.06em; text-transform: none; }

/* FAQ */
.faq { padding-top: 100px; padding-bottom: 80px; max-width: 900px; }
.faq h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--rule); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--seal); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--ink-2); margin: 12px 0 0; }

/* Form */
.check { background: var(--card); border-top: 1px solid var(--rule); padding: 100px 0; }
.check .lead { color: var(--ink-2); margin: 10px 0 34px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; max-width: 900px; }
form .full { grid-column: 1 / -1; }
label { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea { width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 2px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(158, 43, 37, 0.35); border-color: var(--seal); }
textarea { min-height: 110px; resize: vertical; }
.check-row { display: flex; gap: 12px; align-items: flex-start; }
.check-row input { width: auto; margin-top: 5px; }
.hp { display: none; }
.err { display: none; color: var(--seal); grid-column: 1 / -1; margin: 0; }
#thanks { display: none; }

/* Footer and legal */
footer { border-top: 1px solid var(--rule); padding: 34px 0 44px; font-size: 14px; color: var(--muted); }
.foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.legal { max-width: 820px; padding-top: 70px; padding-bottom: 90px; }
.legal h2 { font-size: 28px; margin: 34px 0 8px; }

/* Small screens */
@media (max-width: 860px) {
  nav > a:not(.nav-cta) { display: none; }
  .promise, .steps { grid-template-columns: 1fr 1fr; gap: 30px; }
  .story-grid, .doc-grid, .tree-grid, .how-head, .band { grid-template-columns: 1fr; gap: 40px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer + .offer { border-left: 0; border-top: 1px solid var(--rule); }
  .offer.main { margin: 0; }
  .free-band { flex-direction: column; align-items: flex-start; }
  form { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .doc-grid > * { min-width: 0; }
  .doc { padding: 14px; }
  .doc-page { height: 270px; font-size: 15px; line-height: 1.5; letter-spacing: 0.06em; padding: 10px 4px; outline-offset: 3px; }
  .doc-page span { padding: 0 2px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .promise, .steps { grid-template-columns: 1fr; }
  .bar { padding: 12px 18px; } .wrap { padding-left: 20px; padding-right: 20px; }
  .brand .word { font-size: 22px; }
  .hero { padding-top: 56px; }
}

/* Sample family tree, in the visual language of the Ha family site: paper cards with a red
   given-name seal, relation tab, 故 mark, gold marriage line, ink descent lines, generation rail. */
.tree-grid { grid-template-columns: 380px 1fr; gap: 44px; }
.ftree-scroll { overflow-x: auto; }
.ftree { position: relative; width: 640px; height: 456px; margin-top: 6px; }
.flines { position: absolute; inset: 0; width: 640px; height: 430px; }
.flines path { fill: none; stroke-linecap: square; }
.flines .descent { stroke: #8C8378; stroke-width: 1.25; }
.flines .marriage { stroke: #B8995C; stroke-width: 1.5; }
.frail { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 0; width: 52px; height: 430px;
  border-right: 1px solid rgba(194, 173, 132, 0.6); background: rgba(239, 232, 218, 0.9); }
.frail li { position: absolute; left: 0; width: 52px; text-align: center; }
.frail b { display: block; font: 500 24px/1 "Noto Serif TC", serif; color: var(--ink); }
.frail span { display: block; font-size: 10px; letter-spacing: 0.06em; color: var(--muted); margin-top: 6px; line-height: 1.2; }
.frail .g0 { top: 58px; } .frail .g1 { top: 208px; } .frail .g2 { top: 358px; }
.tcard { position: absolute; width: 190px; height: 84px; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #FFFDF8; border: 1px solid #D9C6A0; box-shadow: inset 0 0 0 3px #FFFDF8, inset 0 0 0 4px rgba(161, 46, 42, 0.22),
  0 6px 14px -10px rgba(35, 32, 28, 0.45); }
.pos-p1 { left: 130px; top: 34px; } .pos-p2 { left: 130px; top: 184px; } .pos-p3 { left: 380px; top: 184px; }
.pos-p4 { left: 130px; top: 334px; } .pos-p5 { left: 380px; top: 334px; }
.tcard .rel { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 1px 12px; background: #FBF6EC; border: 1px solid #D9C6A0; border-radius: 9px;
  font: italic 400 11px/1.4 "Cormorant Garamond", "Noto Serif TC", serif; color: #8A7148; letter-spacing: 0.04em; }
html[lang^="zh"] .tcard .rel { font-style: normal; font-family: "Noto Serif TC", serif; font-size: 10.5px; }
.tcard .ko { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; display: grid; place-items: center;
  font: 600 9px/1 "Noto Serif TC", serif; color: var(--seal); border: 1px solid rgba(158, 43, 37, 0.6); }
.tcard .mono { flex: 0 0 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--seal); color: #FBF3EA; box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(251, 243, 234, 0.75); }
.tcard .mono i { font: normal 600 15px/1.05 "Noto Serif TC", serif; }
.tcard .who { display: flex; flex-direction: column; min-width: 0; }
.tcard .nm { font: 500 19px/1.2 "Noto Serif TC", serif; letter-spacing: 0.04em; color: var(--ink); }
.tcard .rom { font: italic 400 14px/1.2 "Cormorant Garamond", serif; color: #6E5A3C; }
.tcard .yr { font-size: 11.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fview { position: absolute; left: 60px; bottom: 0; margin: 0; font: italic 400 13px/1 "Cormorant Garamond", serif; color: var(--muted); }
html[lang^="zh"] .fview { font-style: normal; font-family: "Noto Serif TC", serif; font-size: 12px; }
@media (max-width: 860px) { .tree-grid { grid-template-columns: 1fr; } }
.tree-grid > *, .tree { min-width: 0; }

/* Story: the gap paragraph */
.gap { border-left: 2px solid var(--seal); padding-left: 18px; color: var(--ink); }

/* Inside your family website: a framed, clickable miniature of the private family site (tour_v2.py) */
.inside { background: var(--paper-2); padding: 100px 0 90px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.inside .lead { color: var(--ink-2); margin: 12px 0 36px; max-width: 760px; }
.browser { background: #FBF7EF; border: 1px solid #CDB88C; box-shadow: 0 24px 50px -36px rgba(35, 32, 28, 0.35); overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #EFE7D6; border-bottom: 1px solid #D9C6A0; }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #D8CBB0; }
.chrome .addr { margin-left: 12px; flex: 1; max-width: 420px; background: #FBF7EF; border: 1px solid #DCCBA8; border-radius: 12px;
  padding: 3px 12px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chrome .priv { font-size: 11.5px; letter-spacing: 0.06em; color: #2F5D3A; margin-left: auto; white-space: nowrap; }
.fsite { background: linear-gradient(#F8F3E8, #F6F0E3); }
.fsite-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px 6px; }
.fsite-head .seal { width: 38px; height: 38px; font-size: 20px; writing-mode: horizontal-tb; }
.fsite-head b { display: block; font: 600 20px/1.2 "Noto Serif TC", serif; letter-spacing: 0.12em; }
.fsite-head small { color: var(--muted); font-size: 12px; font-style: italic; }
.fsite-nav { display: flex; gap: 2px; overflow-x: auto; padding: 6px 14px 0; border-bottom: 1px solid #D9C6A0; scrollbar-width: none; }
.fsite-nav::-webkit-scrollbar { display: none; }
.fsite-nav button { flex: 0 0 auto; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 8px 12px 9px; text-align: center; color: var(--ink-2); }
.fsite-nav b { display: block; font: 500 15px/1.2 "Noto Serif TC", serif; letter-spacing: 0.1em; }
.fsite-nav small { display: block; font: 600 9.5px/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.fsite-nav button[aria-selected="true"] { border-bottom-color: var(--seal); color: var(--ink); }
.fsite-nav button[aria-selected="true"] small { color: var(--seal); }
.fsite-nav button:focus-visible { outline: 2px solid rgba(158, 43, 37, 0.4); outline-offset: -2px; }
.fsite-body { padding: 28px 34px 34px; min-height: 560px; }
.pane { animation: paneIn 0.45s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pane { animation: none; } }
.tour-hint { font-size: 13.5px; color: var(--muted); font-style: italic; margin-top: 14px; }
html[lang^="zh"] .tour-hint { font-style: normal; }

/* chapter header inside the mini site (vertical tab, as on the Ha family site) */
.ch-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; max-width: 760px; }
.ch-tab { writing-mode: vertical-rl; font: 500 17px/1.1 "Noto Serif TC", serif; letter-spacing: 0.22em; padding: 10px 6px;
  border: 1px solid #CDB88C; outline: 1px solid rgba(205, 184, 140, 0.5); outline-offset: 2px; background: #FFFDF8; position: relative; flex: 0 0 auto; }
.ch-tab::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 6px; height: 6px; margin-left: -3px; background: var(--seal); }
.ch-n { font: 600 10.5px/1.4 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
html[lang^="zh"] .ch-n { letter-spacing: 0.24em; }
.ch-head h4, .bio-main h4 { font: 500 32px/1.15 "Cormorant Garamond", "Noto Serif TC", serif; margin: 0 0 6px; }
.ch-lead { margin: 0; color: var(--ink-2); font-size: 15.5px; font-style: italic; }
html[lang^="zh"] .ch-lead { font-style: normal; }

/* panels */
.vb { font: 600 10px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 8px; border: 1px solid; white-space: nowrap; }
html[lang^="zh"] .vb { letter-spacing: 0.2em; font-size: 11px; }
.vb.b-doc { color: #2F5D3A; border-color: #9DB7A2; } .vb.b-prob { color: #8A6A1F; border-color: #D6C08A; } .vb.b-trad { color: var(--seal); border-color: #D9A59F; }
.claims { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.claims li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.bio-page { display: grid; grid-template-columns: 250px 1fr; gap: 40px; }
.bio-photo { display: flex; gap: 10px; align-items: flex-start; }
.bio-photo img { width: 176px; border: 6px solid #FFFDF8; outline: 1px solid #D9C6A0; }
.vname { writing-mode: vertical-rl; font: 500 20px/1.2 "Noto Serif TC", serif; letter-spacing: 0.16em; padding: 10px 6px;
  border: 1px solid #D9C6A0; background: #FFFDF8; }
.vname i { font-style: normal; font-size: 10px; color: var(--seal); border: 1px solid rgba(158, 43, 37, 0.6); margin-top: 8px; padding: 2px 1px; }
.bio-side dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 18px 0; font-size: 13.5px; }
.bio-side dt { font: 600 10px/1.8 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.bio-side dd { margin: 0; }
.bio-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.bio-btns span { border: 1px solid #D9C6A0; padding: 5px 10px; font-size: 12px; color: var(--ink-2); }
.bio-main .rom { font: italic 18px/1.3 "Cormorant Garamond", serif; color: #6E5A3C; margin: 0 0 18px; }
.bio-main p { font-size: 15.5px; }
.mig { list-style: none; margin: 0; padding: 0 0 0 8px; border-left: 1px solid #CDB88C; max-width: 680px; }
.mig li { display: flex; gap: 18px; padding: 0 0 26px; position: relative; }
.mig .mn { flex: 0 0 30px; height: 30px; margin-left: -24px; border-radius: 50%; background: #FFFDF8; border: 1px solid #CDB88C;
  font: 600 13px/28px var(--body); text-align: center; color: var(--seal); }
.mig h5 { font: 500 24px/1.2 "Cormorant Garamond", "Noto Serif TC", serif; margin: 0; }
.mig .yrs { font: 600 11px/1.6 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--seal); margin: 2px 0; }
.mig p { margin: 0; color: var(--ink-2); }
.arch { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.doc-page.small { height: 300px; font-size: 17px; background: #EFE6D2; box-shadow: inset 0 0 40px rgba(120, 95, 60, 0.2); }
.tx { margin: 6px 0 18px; padding-left: 20px; columns: 2; font: 15px/1.8 "Noto Serif TC", serif; }
.tr-s { font-size: 15.5px; color: var(--ink); }
.stories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stories img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #D9C6A0; filter: sepia(0.08); }
.stories h5 { font: 500 19px/1.3 "Cormorant Garamond", "Noto Serif TC", serif; margin: 10px 0 2px; }
.stories p { margin: 0; font-size: 13px; color: var(--muted); }
.fmap { position: relative; max-width: 820px; border: 1px solid #CDB88C; box-shadow: inset 0 0 0 4px #FBF7EF; }
.fmap img, .fmap svg { display: block; width: 100%; height: auto; }
.fmap svg { position: absolute; inset: 0; }
.fmap .route { fill: none; stroke: var(--seal); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.fmap circle { fill: var(--seal); stroke: #FFFDF8; stroke-width: 2.5; }
.ml { position: absolute; transform: translate(12px, -50%); background: rgba(255, 253, 248, 0.9); border: 1px solid #D9C6A0;
  padding: 3px 8px; white-space: nowrap; pointer-events: none; }
.ml.l { transform: translate(calc(-100% - 12px), -50%); }
.ml.u { transform: translate(-50%, calc(-100% - 12px)); }
.ml b { display: block; font: 600 12.5px/1.25 var(--body); }
.ml small { display: block; font-size: 10.5px; color: var(--seal); letter-spacing: 0.06em; }
.labels h5 { font: 600 10.5px/1.4 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.vchips span { border: 1px solid #D9C6A0; background: #FFFDF8; padding: 6px 12px; font-size: 14px; }
.vchips small { color: var(--muted); margin-left: 4px; }
.upd { list-style: none; margin: 0; padding: 0; max-width: 700px; }
.upd li { position: relative; padding: 0 0 18px 22px; }
.upd li::before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; background: var(--seal); transform: rotate(45deg); }
.upd p { margin: 0; font-size: 16px; }
@media (max-width: 860px) {
  .fsite-body { padding: 22px 18px 26px; min-height: 0; }
  .bio-page, .arch { grid-template-columns: 1fr; gap: 22px; }
  .stories { grid-template-columns: 1fr; }
  .tx { columns: 1; }
  .chrome .priv { display: none; }
  .ml b { font-size: 11px; } .ml small { display: none; }
}

/* Consent banner (consent.js): bottom sheet, nothing loads until Accept */
#cookie-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto;
  background: #FFFDF8; border: 1px solid var(--rule); box-shadow: 0 18px 40px -18px rgba(35, 32, 28, 0.45);
  padding: 18px 20px; display: flex; gap: 18px; align-items: center; }
#cookie-consent p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-actions .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 620px) { #cookie-consent { flex-direction: column; align-items: stretch; } .consent-actions .btn { flex: 1; } }

/* Logo: the .ai stays in the wordmark, a shade lighter so the name leads (Jon, 29 Nov 2026) */
.brand .tld { color: var(--muted); }
