/* Self-hosted fonts (SIL Open Font License 1.1 – see assets/fonts/LICENSE-*.txt) */
@font-face{font-family:'DM Serif Display';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/dm-serif-display-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'DM Serif Display';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/dm-serif-display-latin-400-italic.woff2) format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/manrope-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/manrope-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/manrope-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/manrope-latin-700-normal.woff2) format('woff2')}
/* ==========================================================================
   Arthur Liangfei Tan — public site styles (mobile-first)
   Matches the design of arthurliangfeitan.org
   ========================================================================== */
:root {
  --ink: #12302b;
  --ink-2: #173a34;
  --ink-3: #24493f;
  --paper: #f1eee6;
  --paper-2: #e6e0d2;
  --card: #fbfaf6;
  --brass: #c27a48;
  --brass-2: #e3a776;
  --brass-ink: #92502a;
  --text: #1d2a27;
  --muted: #56645f;
  --line: #dcd5c6;
  --line-dark: rgba(255, 255, 255, .14);
  --ok: #2f6b45;
  --err: #a23b2a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 48, 43, .06), 0 10px 30px -12px rgba(18, 48, 43, .18);
  --serif: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--card); color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--paper { background: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 54px; padding: .9em 1.7em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--brass { background: #ca8452; color: var(--ink); } /* 4.6:1 text contrast (WCAG AA) */
.btn--brass:hover { background: var(--brass-2); color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--brass-ink); text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(4px); }

.eyebrow { font: 600 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); margin: 0 0 1rem; }
.eyebrow--dark { color: var(--brass-ink); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head--row .section-title { margin: 0; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-title--sm { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-lede { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .96); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--ink); color: #c9d6d0; font-size: .84rem; display: none; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar__right { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
a.topbar__item:hover { color: #fff; }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--ink); color: var(--brass-2); font: 500 1.05rem/1 var(--serif); letter-spacing: .04em; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px var(--brass);
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font: 500 1.22rem/1.15 var(--serif); white-space: nowrap; }
.brand__sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__sub { color: #a6b8b1; }
.brand--light .brand__mark { background: var(--ink-3); box-shadow: inset 0 0 0 2px var(--ink-3), inset 0 0 0 3px var(--brass); }

.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; color: var(--ink); cursor: pointer; flex: none; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close, .nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }
.site-nav {
  position: fixed; top: 71px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px; box-shadow: 0 20px 30px -20px rgba(18,48,43,.35);
  display: none; max-height: calc(100vh - 71px); max-height: calc(100dvh - 71px); overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.site-nav li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.site-nav a[aria-current="page"] { color: var(--brass-ink); }
.nav-cta { width: 100%; }

@media (min-width: 960px) {
  .topbar { display: block; }
  .nav-row { min-height: 82px; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex !important; align-items: center; gap: 28px; padding: 0; border: 0; box-shadow: none; background: transparent; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: 6px; margin: 0; }
  .site-nav li a { border: 0; padding: 8px 12px; font-size: .97rem; position: relative; }
  .site-nav li a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
  .site-nav li a:hover::after, .site-nav li a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-cta { width: auto; min-height: 44px; padding: .6em 1.2em; }
  .brand__name { font-size: 1.35rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #e8edf3; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(194,122,72,.22), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 9vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 120px);
}
.hero__grid { position: relative; display: grid; gap: 44px; align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 5.6vw, 3.9rem); line-height: 1.06; margin-bottom: .45em; }
.hero__lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: #c9d6d0; max-width: 640px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__card { background: var(--paper); color: var(--text); border-radius: 20px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); max-width: 440px; width: 100%; justify-self: center; }
.hero__portrait { border-radius: 12px; overflow: hidden; aspect-ratio: 6 / 5; background: var(--ink-2); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.monogram {
  height: 100%; display: flex; align-items: center; justify-content: center; gap: .08em;
  font: 400 clamp(5rem, 16vw, 8.5rem)/1 var(--serif); color: var(--brass-2);
  background: radial-gradient(circle at 50% 45%, #2a4f46, var(--ink) 70%);
  position: relative;
}
.monogram::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(227,167,118,.45); border-radius: 8px; }
.monogram span:last-child { font-style: italic; }
.hero__facts { margin: 0; padding: 14px 8px 4px; display: grid; gap: 12px; }
.hero__facts div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: start; font-size: .93rem; }
.hero__facts dt { color: var(--brass-ink); font-weight: 600; display: flex; gap: 6px; align-items: center; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.hero__facts dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 64px; }
  .hero__card { justify-self: end; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust__list { list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.trust__list li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid var(--brass); }
.trust__list strong { font: 500 1.2rem/1.2 var(--serif); color: var(--ink); }
.trust__list span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
@media (min-width: 860px) { .trust__list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Split / about ---------- */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.note-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.note-card::before { content: ""; position: absolute; top: -1px; left: 28px; width: 56px; height: 3px; background: var(--brass); }
.note-card__title { font-size: 1.35rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--ok); width: 22px; height: 22px; margin-top: 2px; }

/* ---------- Practice cards ---------- */
.practice-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .practice-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .practice-grid { grid-template-columns: repeat(4, 1fr); } .practice-grid--wide { grid-template-columns: 1fr 1fr; } }
.practice-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brass-2); color: var(--text); }
.practice-card__num { position: absolute; top: 18px; right: 22px; font: italic 400 1.5rem/1 var(--serif); color: var(--line); }
.practice-card__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--brass-2); }
.practice-card__icon .icon { width: 26px; height: 26px; }
.practice-card__title { font-size: 1.4rem; margin: 8px 0 0; }
.practice-card__text { color: var(--muted); font-size: .97rem; margin: 0 0 6px; flex: 1; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 26px 22px; border-top: 2px solid var(--ink); background: linear-gradient(180deg, var(--paper), transparent 70%); border-radius: 0 0 var(--radius) var(--radius); }
.step__n { font: italic 400 2.2rem/1 var(--serif); color: var(--brass); display: block; margin-bottom: 10px; }
.step__title { font-size: 1.35rem; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Posts ---------- */
.post-grid { display: grid; gap: 22px; }
@media (min-width: 680px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--ink-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { height: 100%; display: grid; place-items: center; color: var(--brass-2); background: radial-gradient(circle at 30% 20%, var(--ink-3), var(--ink) 70%); }
.post-card__placeholder .icon { width: 56px; height: 56px; opacity: .8; }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); margin: 0; flex-wrap: wrap; }
.post-card__title { font-size: 1.32rem; margin: 2px 0 0; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--brass-ink); }
.post-card__excerpt { color: var(--muted); font-size: .96rem; flex: 1; margin: 0 0 4px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--brass-ink); font-size: .76rem; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.tag--light { background: rgba(227,167,118,.18); color: var(--brass-2); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chips a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; }
.chips a span { color: var(--muted); font-size: .8rem; margin-left: 4px; }
.chips a[aria-current="page"], .chips a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips a[aria-current="page"] span, .chips a:hover span { color: var(--brass-2); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.pagination span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq__item[open] { border-color: var(--brass-2); box-shadow: var(--shadow); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font: 600 1.04rem/1.45 var(--sans); margin: 0; color: var(--ink); letter-spacing: 0; }
.faq__icon { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s; }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { padding: 0 22px 20px; color: var(--muted); }
.faq__a p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #c9d6d0; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(227,167,118,.25); box-shadow: 0 0 0 40px rgba(227,167,118,.04), 0 0 0 80px rgba(227,167,118,.03); }
.cta-band__inner { display: grid; gap: 28px; align-items: center; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.5fr auto; } }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--ink), var(--ink-2)); color: #c9d6d0; padding: clamp(36px, 6vw, 70px) 0 clamp(40px, 6vw, 72px); }
.page-hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); max-width: 900px; margin-bottom: .35em; }
.page-hero__lede { font-size: 1.12rem; max-width: 760px; margin: 0; }
.page-hero__row { display: flex; gap: 20px; align-items: flex-start; }
.page-hero__icon { display: none; width: 72px; height: 72px; border-radius: 16px; place-items: center; background: rgba(227,167,118,.14); color: var(--brass-2); flex: none; margin-top: 6px; }
.page-hero__icon .icon { width: 36px; height: 36px; }
@media (min-width: 760px) { .page-hero__icon { display: grid; } }
.breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: #a6b8b1; min-width: 0; max-width: 100%; }
.breadcrumbs li:last-child { flex: 1 1 0; }
.breadcrumbs li + li::before { content: "/"; color: #5d756e; }
.breadcrumbs a { color: var(--brass-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: #fff; }
.breadcrumbs [aria-current] { color: #c9d6d0; display: inline-block; min-width: 0; max-width: min(46ch, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.content-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } .content-side { position: -webkit-sticky; position: sticky; top: 140px; align-self: start; } }
.content-side { display: grid; gap: 20px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--card); }
.side-card--dark { background: var(--ink); color: #c9d6d0; border-color: var(--ink); }
.side-card--dark .side-card__title { color: #fff; }
.side-card__title { font-size: 1.3rem; }
.side-card__phone { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; color: var(--brass-2); text-decoration: none; font-weight: 600; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--brass-ink); }
.side-links .icon { color: var(--brass-ink); }

.toc { border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 32px; background: var(--paper); }
.toc__title { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-ink); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Long-form typography */
.prose { font-size: 1.07rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin: 1.8em 0 .55em; }
.prose h3 { font-size: 1.35rem; margin: 1.5em 0 .5em; }
.prose h4 { font: 700 1.05rem/1.4 var(--sans); margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brass); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brass); font: italic 1.25rem/1.55 var(--serif); color: var(--ink); }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--paper); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose a { color: var(--brass-ink); font-weight: 500; }
.faq-block { margin-top: 56px; }

/* Article */
.page-hero--article .page-hero__title { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; margin: 0; color: #a6b8b1; }
.article__meta a { color: var(--brass-2); }
.article__figure { margin: -36px auto 0; position: relative; }
.article__figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.related-service { margin-top: 40px; padding: 20px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.related-service__label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-ink); font-weight: 700; margin-bottom: 6px; }
.related-service a { color: var(--ink); text-decoration: none; }
.related-service a:hover strong { color: var(--brass-ink); }
.author-box { margin-top: 28px; display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.author-box__mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--brass-2); display: grid; place-items: center; font: 500 1.2rem/1 var(--serif); flex: none; }
.author-box__name { font: 500 1.2rem/1.3 var(--serif); color: var(--ink); margin-bottom: 4px; }
.author-box p:last-child { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .94rem; color: var(--ink); }
.req { color: var(--err); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1.5px solid #cfc3ae; border-radius: 10px; padding: 12px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(194,122,72,.2); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__error { color: var(--err); font-size: .88rem; margin: 0; font-weight: 500; }
.field__hint { color: var(--muted); font-size: .86rem; margin: 0; }
.field--check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; accent-color: var(--ink); }
.field--check label { font-weight: 400; font-size: .93rem; color: var(--muted); }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; }
.alert .icon { width: 22px; height: 22px; margin-top: 2px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert--success { background: #e9f4ec; color: #1f4d30; border: 1px solid #b9dcc3; }
.alert--error { background: #fbecea; color: #7a2a1d; border: 1px solid #efc4bd; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { width: 22px; height: 22px; color: var(--brass-2); margin-top: 3px; }
.contact-list strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; }
.contact-list span, .contact-list a { color: #c9d6d0; font-size: .95rem; }
.contact-list a { color: var(--brass-2); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.25) contrast(1.05); }
.error-links { display: grid; gap: 40px; }
@media (min-width: 860px) { .error-links { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0c211d; color: #a6b8b1; padding-top: clamp(48px, 7vw, 80px); font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; } }
.footer-col--about p { margin: 18px 0; max-width: 420px; }
.footer-title { color: #fff; font: 600 .8rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a, .footer-address a { color: #c9d6d0; text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-links a:hover, .footer-address a:hover { color: var(--brass-2); }
.footer-address { display: grid; gap: 2px; }
.footer-hours { margin-top: 14px; font-size: .9rem; }
.socials { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: #c9d6d0; }
.socials a:hover { border-color: var(--brass-2); color: var(--brass-2); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 22px; padding-bottom: 28px; font-size: .84rem; }
.footer-bottom p { margin: 0 0 8px; }
.footer-disclaimer { color: #7c918a; max-width: 920px; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(251,250,246,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(18,48,43,.25); }
.mobile-cta__btn { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.mobile-cta__btn--primary { background: var(--ink); color: #fff; flex: 2; }
.mobile-cta__btn--primary:hover { color: #fff; }
body { padding-bottom: 76px; }
@media (min-width: 960px) { .mobile-cta { display: none; } body { padding-bottom: 0; } }

@media print {
  .site-header, .mobile-cta, .cta-band, .site-footer, .content-side, .toc { display: none !important; }
  .page-hero { background: none; color: #000; } .page-hero__title { color: #000; }
}

/* ==========================================================================
   .org identity: light editorial hero, square monogram, copper accents
   ========================================================================== */
.brand__mark { border-radius: 10px; background: var(--ink); color: var(--brass-2); box-shadow: none; font-family: var(--serif); font-weight: 400; }
.brand--light .brand__mark { background: var(--ink-3); box-shadow: none; }
.brand__name { font-weight: 400; letter-spacing: 0; }
.hero { color: var(--text); background:
    radial-gradient(900px 420px at 100% 0%, rgba(194,122,72,.16), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--card) 100%);
  border-bottom: 1px solid var(--line); }
.hero::before { opacity: .5; background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(18,48,43,.035) 22px 23px); }
.hero .eyebrow { color: var(--brass-ink); }
.hero__title { color: var(--ink); font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.015em; }
.hero__lede { color: var(--muted); }
.hero .btn--brass { background: var(--ink); color: #fff; }
.hero .btn--brass:hover { background: var(--ink-3); color: #fff; }
.hero .btn--ghost-light { color: var(--ink); border-color: var(--ink); }
.hero .btn--ghost-light:hover { background: var(--ink); color: #fff; }
.hero__card { background: var(--ink); color: #c9d6d0; border-radius: 6px; padding: 16px; box-shadow: 18px 18px 0 -2px var(--brass-2); }
.hero__portrait { border-radius: 3px; }
.monogram { background: radial-gradient(circle at 50% 45%, #2a5249, var(--ink-2) 70%); border-radius: 3px; }
.monogram::after { border-radius: 2px; }
.hero__facts dt { color: var(--brass-2); }
.hero__facts dd { color: #fff; }
.trust { background: var(--ink); border-bottom: 0; }
.trust__list li { border-left-color: var(--brass-2); }
.trust__list strong { color: #fff; }
.trust__list span { color: #a6b8b1; }
.practice-card { border-radius: 6px; }
.practice-card__icon { border-radius: 50%; background: var(--paper-2); color: var(--brass-ink); }
.practice-card__num { font-style: normal; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--brass-ink); opacity: .6; }
.post-card, .faq__item, .side-card, .note-card, .toc { border-radius: 6px; }
.btn { border-radius: 6px; }
.step { border-top-color: var(--brass); }
.page-hero { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
@media (min-width: 1100px) { .practice-grid, .practice-grid--wide { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Images managed from the admin (banners, cards, about, CTA, logo)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero--image { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(52px, 8vw, 100px); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; color: transparent; font-size: 0; }
.page-hero--image::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,48,43,.92) 0%, rgba(18,48,43,.78) 45%, rgba(18,48,43,.45) 100%); }
.page-hero--image .page-hero__lede { color: #dfe7e3; }

.practice-card--image { padding-top: 0; overflow: hidden; }
.practice-card__media { display: block; aspect-ratio: 16 / 9; margin: 0 -24px 6px; overflow: hidden; background: var(--ink-2); }
.practice-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.practice-card:hover .practice-card__media img { transform: scale(1.04); }
.practice-card--image .practice-card__num { top: 12px; right: 14px; z-index: 1; color: #fff; opacity: 1; background: rgba(18,48,43,.75); padding: 6px 9px; border-radius: 4px; }
.practice-card--image .practice-card__icon { margin-top: -34px; position: relative; z-index: 1; border: 3px solid var(--card); background: var(--ink); color: var(--brass-2); }

.about-figure { margin: 0 0 24px; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 14px 14px 0 -2px var(--paper-2); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

.cta-band--image { isolation: isolate; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; color: transparent; font-size: 0; }
.cta-band--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,48,43,.93), rgba(18,48,43,.72)); }

.brand__logo { width: auto; height: 44px; max-width: 160px; object-fit: contain; flex: none; }
.author-box__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }

/* Real portrait in the hero card: taller frame, keep the face in view */
.hero__portrait--photo { aspect-ratio: 4 / 5; }
.hero__portrait--photo img { object-position: 50% 18%; }
.author-box__photo { object-position: 50% 20%; }

/* ==========================================================================
   Additions for the CMS (not on the reference site)
   ========================================================================== */
body.nav-open { overflow: hidden; }
.updated { margin-top: 2.5rem; font-size: .88rem; color: var(--muted); }
.notfound .eyebrow { margin-top: 0; }
.maint { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 2rem; background: var(--paper); }
.alert__body { flex: 1; }
.toc ol.toc__plain { list-style: none; padding-left: 0; }

/* Header dropdown menus (managed in Admin → Menus) */
.site-nav li.has-children { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.site-nav li.has-children > a { flex: 1; }
.sub-toggle { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.sub-toggle .icon { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu { list-style: none; margin: 0; padding: 0 0 8px 14px; width: 100%; display: none; }
.sub-menu.is-open { display: block; }
.sub-menu a { font-size: .98rem !important; color: var(--muted) !important; }
@media (min-width: 960px) {
  .site-nav li.has-children { flex-wrap: nowrap; }
  .sub-toggle { width: 24px; height: 24px; margin-left: -8px; }
  .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); display: block; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
  .site-nav li.has-children:hover .sub-menu, .site-nav li.has-children:focus-within .sub-menu, .sub-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .sub-menu a { padding: 9px 12px !important; color: var(--ink) !important; border-radius: 4px; }
  .sub-menu a::after { display: none; }
  .sub-menu a:hover { background: var(--paper); }
}

/* Post tags */
.post-tags{list-style:none;margin:2rem 0 0;padding:1.25rem 0 0;border-top:1px solid rgba(18,48,43,.12);display:flex;flex-wrap:wrap;gap:.5rem}
.post-tags a{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .8rem;border-radius:999px;background:var(--card);border:1px solid rgba(18,48,43,.14);color:var(--ink);font-size:.85rem;font-weight:600;text-decoration:none;min-height:36px}
.post-tags a:hover,.post-tags a:focus-visible{border-color:var(--brass);color:var(--brass-ink)}
.post-tags svg{width:14px;height:14px}

/* Cookie consent banner */
.cc{position:fixed;z-index:60;left:16px;right:16px;bottom:16px;max-width:560px;margin:0 auto;background:var(--card);color:var(--ink);border:1px solid rgba(18,48,43,.14);border-radius:14px;box-shadow:0 12px 40px rgba(18,48,43,.18);padding:1rem 1.1rem;display:flex;flex-wrap:wrap;gap:.75rem 1rem;align-items:center}
.cc[hidden]{display:none}
.cc__text{margin:0;flex:1 1 280px;font-size:.92rem;line-height:1.5}
.cc__text a{color:var(--brass-ink)}
.cc__actions{display:flex;gap:.5rem;margin-left:auto}
.linklike{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
@media (max-width:959px){.cc{bottom:84px}}
.btn--sm{padding:.55rem 1rem;font-size:.88rem;min-height:40px}
