@font-face { font-family: 'Gentium Plus'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/gentium-plus-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Gentium Plus'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/gentium-plus-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Gentium Plus'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/gentium-plus-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Gentium Plus'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/gentium-plus-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chiron GoRound TC'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/chiron-goround-tc-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chiron GoRound TC'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/chiron-goround-tc-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chiron GoRound TC'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/chiron-goround-tc-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chiron GoRound TC'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/chiron-goround-tc-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chiron GoRound TC'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/chiron-goround-tc-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chiron GoRound TC'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/chiron-goround-tc-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chiron GoRound TC'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/chiron-goround-tc-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Chiron GoRound TC'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/chiron-goround-tc-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f5f1e8;
  --fg-light-base-body: #24251f;
  --fg-light-base-heading: #24251f;
  --fg-light-base-muted: #56574d;
  --fg-light-base-link: #24662d;
  --fg-light-base-inverse: #24251f;
  --bg-light-card: #fffdf8;
  --fg-light-card-body: #24251f;
  --fg-light-card-heading: #24251f;
  --fg-light-card-muted: #56574d;
  --fg-light-card-link: #24662d;
  --fg-light-card-inverse: #24251f;
  --bg-light-elevated: #ebe3d2;
  --fg-light-elevated-body: #24251f;
  --fg-light-elevated-heading: #24251f;
  --fg-light-elevated-muted: #56574d;
  --fg-light-elevated-link: #24662d;
  --fg-light-elevated-inverse: #24251f;
  --brand-light-accent: #24662d;
  --brand-light-accent-hover: #164b20;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #24662d;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #76766a;
  --border-light-subtle: #ddd5c3;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-ring); }

:root {
  --font-head: 'Gentium Plus', Georgia, 'Times New Roman', serif;
  --font-body: 'Chiron GoRound TC', 'Trebuchet MS', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --wide: 72rem;
  --measure: 39rem;
  --dot-rule: 2px dotted var(--border-light-default);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

@media (min-width: 60rem) { html { scroll-padding-top: 8.5rem; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 0 0 1.25rem; }

a.text-role-link { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a.text-role-link:hover { color: var(--brand-light-accent-hover); text-decoration-thickness: 2px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border-light-subtle);
}

.masthead {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
}

.brand .site-logo { width: 2rem; height: 2rem; flex: none; }
.brand .wordmark { min-width: 0; }
.brand .wordmark { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.brand:hover .wordmark { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.site-menu { flex: none; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-light-default);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-menu > summary:hover { background: var(--bg-light-elevated); }

.menu-icon {
  display: inline-block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.site-menu[open] > ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.5rem var(--gutter) 1.4rem;
  list-style: none;
  background: var(--bg-light-card);
  border-bottom: 1px solid var(--border-light-default);
}

.site-menu ul ul { list-style: none; margin: 0; padding: 0 0 0 1rem; }

.site-menu li a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: var(--dot-rule);
  text-decoration: none;
  font-size: 1.05rem;
}

.site-menu li a:hover { text-decoration: underline; }

.navbar { display: none; }

@media (min-width: 30rem) {
  .brand { font-size: 1.2rem; gap: 0.7rem; }
  .brand .site-logo { width: 2.4rem; height: 2.4rem; }
}

@media (min-width: 60rem) {
  .site-menu { display: none; }
  .navbar { display: block; }
  .masthead { justify-content: center; padding: 0.9rem var(--gutter) 0.8rem; }
  .brand { flex: none; font-size: 1.35rem; }
}

.navbar {
  background: var(--bg-light-elevated);
  border-top: 1px solid var(--border-light-subtle);
}

.site-nav {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-nav > ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0.6rem 0 0.65rem;
  list-style: none;
}

.site-nav > ul > li { display: flex; align-items: center; gap: 1.1rem; }

.site-nav > ul > li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-light-accent);
}

.site-nav a.text-role-link {
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-heading);
}

.site-nav a.text-role-link:hover {
  color: var(--brand-light-accent-hover);
  text-decoration: underline;
}

.site-nav ul ul { list-style: none; margin: 0; padding: 0; }

/* ---------- page frame ---------- */

.page { padding-bottom: 4rem; }

.breadcrumbs {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 0;
  font-size: 0.875rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--fg-muted); }

/* ---------- body copy ---------- */

.prose { max-width: var(--measure); }

.prose h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.4rem;
  border-top: var(--dot-rule);
}

.prose h3 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }

.prose p { margin: 0 0 1.15rem; }
.prose > h2:first-child { margin-top: 0.5rem; }

.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.prose li::marker { color: var(--brand-light-accent); }

.prose blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 3px solid var(--brand-light-accent);
}

.table-scroll { overflow-x: auto; margin: 1.6rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border-light-subtle); vertical-align: top; }
.prose th { font-family: var(--font-head); font-weight: 400; border-bottom: 1px solid var(--border-light-default); }

.photo-hero, .photo-inline { margin: 2rem 0; }
.photo-hero img, .photo-inline img { display: block; border-radius: 4px; }

/* ---------- line drawings ---------- */

.face-map { margin: 0; }
.face-map svg, svg.face-map { display: block; width: 100%; height: auto; }

.face-map .ink, .tray .ink, .chair .ink {
  fill: none;
  stroke: var(--fg-heading);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.face-map .fiber {
  fill: none;
  stroke: var(--border-light-default);
  stroke-width: 1;
  stroke-dasharray: 2 5;
  stroke-linecap: round;
}

.face-map .pt, .tray .pt, .chair .pt { fill: var(--brand-light-accent); }

.face-map .leader { fill: none; stroke: var(--brand-light-accent); stroke-width: 1; }

.face-map .label {
  fill: var(--fg-heading);
  font-family: var(--font-head);
  font-size: 19px;
}

.face-map .zone .label { fill: var(--fg-link); text-decoration: underline; }
.face-map .zone:hover .label { fill: var(--brand-light-accent-hover); }
.face-map .zone:hover .pt { fill: var(--brand-light-accent-hover); }
.face-map .zone:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- home: split cover ---------- */

.cover {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cover h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 1.6rem;
  max-width: 17ch;
}

.cover-lines .display-line { margin: 0 0 0.9rem; max-width: 30rem; }
.cover-lines .display-line:first-child { font-size: 1.2rem; line-height: 1.55; }
.cover-lines .display-line + .display-line { color: var(--fg-muted); }

.face-map--cover { max-width: 30rem; justify-self: center; width: 100%; }

@media (min-width: 52rem) {
  .cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; }
}

.pair {
  max-width: calc(var(--wide) - 2 * var(--gutter));
  margin: 0 var(--gutter) 3rem;
  display: grid;
  border: 1px solid var(--border-light-subtle);
  border-radius: 6px;
}

@media (min-width: 72rem) { .pair { margin-left: auto; margin-right: auto; } }

.pair-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  column-gap: 1.1rem;
  align-items: center;
  padding: 1.5rem clamp(1.1rem, 3vw, 2rem);
}

.pair-item + .pair-item { border-top: var(--dot-rule); }

.pair-icon {
  grid-row: span 2;
  width: 3.25rem;
  height: 3.25rem;
  fill: none;
  stroke: var(--fg-heading);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pair-item:last-child .pair-icon path:first-child { fill: var(--bg-light-elevated); }

.pair-name { margin: 0; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.2; }
.pair-link { margin: 0.15rem 0 0; }

@media (min-width: 44rem) {
  .pair { grid-template-columns: 1fr 1fr; }
  .pair-item + .pair-item { border-top: 0; border-left: var(--dot-rule); }
}

.prose--home { margin: 0 auto; padding: 0 var(--gutter); max-width: calc(var(--measure) + 2 * var(--gutter)); }

/* ---------- topic hub: grid ---------- */

.hub-head, .hub > .prose {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem var(--gutter) 0;
}

.hub-head { display: grid; gap: 1.5rem; align-items: center; }

.face-map--hub { max-width: 26rem; width: 100%; justify-self: center; }

@media (min-width: 52rem) {
  .hub-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; }
}

.hub > .prose { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-left: max(0px, calc((100% - var(--wide)) / 2)); }

.guides {
  margin-top: 3rem;
  padding: 2.5rem var(--gutter) 3rem;
}

.guides-label {
  max-width: var(--wide);
  margin: 0 auto 1.25rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.2;
}

.guides ul {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

.guides li {
  position: relative;
  background: var(--bg-light-card);
  border: 1px solid var(--border-light-subtle);
  border-radius: 6px;
  padding: 1.1rem 1.2rem 1.2rem 3.3rem;
  line-height: 1.4;
}

.guides li::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--brand-light-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5C12 1.5 4 10.6 4 15.6C4 20 7.6 23 12 23C16.4 23 20 20 20 15.6C20 10.6 12 1.5 12 1.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5C12 1.5 4 10.6 4 15.6C4 20 7.6 23 12 23C16.4 23 20 20 20 15.6C20 10.6 12 1.5 12 1.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.guides li a { font-family: var(--font-head); font-size: 1.15rem; }

/* ---------- article: two-column ---------- */

.article-grid {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 0;
  display: grid;
  gap: 2.5rem;
}

.read-title h1 { max-width: 20ch; }

.margin {
  align-self: start;
  padding: 1.4rem;
  border-radius: 6px;
}

.face-map--margin { max-width: 9rem; margin: 0 auto 1rem; }

.margin-note { margin: 0 0 0.6rem; font-size: 0.95rem; line-height: 1.5; }
.margin-link { margin: 0; font-size: 0.95rem; }

@media (min-width: 60rem) {
  .article-grid { grid-template-columns: minmax(0, var(--measure)) 15rem; justify-content: space-between; gap: 4rem; }
  .margin { position: sticky; top: 9rem; margin-top: 5.5rem; }
}

/* ---------- about: one-column ---------- */

.about { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 2rem var(--gutter) 0; }

.tray { margin: 0 0 2rem; }
.tray svg { display: block; width: 100%; max-width: 30rem; height: auto; }

/* ---------- contact: two-column ---------- */

.contact { max-width: var(--wide); margin: 0 auto; padding: 1.5rem var(--gutter) 0; }

.contact-grid { display: grid; gap: 2.5rem; }

@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 4rem; align-items: start; }
}

.chair { display: block; width: 11rem; height: auto; margin: 0 0 1rem; }

.ask-form {
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light-subtle);
  border-radius: 6px;
}

.field { display: grid; gap: 0.35rem; }

.field label { font-family: var(--font-head); font-size: 1.1rem; }

.field input, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  color: var(--fg-body);
  background: var(--bg-light-card);
  border: 1px solid var(--border-light-default);
  border-radius: 4px;
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

.ask-form button {
  justify-self: start;
  font: inherit;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-light-accent);
  color: var(--brand-light-on-accent);
  cursor: pointer;
}

.ask-form button:hover { background: var(--brand-light-accent-hover); }

.contact-aside { font-size: 0.95rem; margin: 1.25rem 0 0; }

/* ---------- thank you: one-column, centered ---------- */

.thanks { max-width: 36rem; margin: 0 auto; padding: 3rem var(--gutter) 0; text-align: center; }

.thanks-drop { width: 3rem; height: 3rem; margin: 0 auto 1rem; display: block; fill: var(--bg-light-elevated); stroke: var(--brand-light-accent); stroke-width: 1.6; stroke-linecap: round; }

.thanks .prose { margin: 0 auto; text-align: left; }

.thanks-links ul { list-style: none; margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: var(--dot-rule); }
.thanks-links li { margin: 0 0 0.7rem; }

/* ---------- footer ---------- */

.site-footer { border-top: var(--dot-rule); }

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem var(--gutter) 2.75rem;
}

.footer-name { margin: 0 0 0.35rem; font-family: var(--font-head); font-size: 1.25rem; }
.footer-line { margin: 0; max-width: 34rem; font-size: 0.95rem; }
