/* Tracery's public pages (the storefront), in the "Modern heritage" design
   (brand/DESIGN.md): paper, ink, hunter green and brass; IM Fell English for each
   page's big headline and nothing else, Libre Baskerville for every other heading,
   name and eyebrow, Public Sans for the rest; square edges, hairline rules, no shadows.
   Two rules of the storefront's own: green means you can click it; and a
   real piece of a delivered tree (.example) is the whitest thing on the page,
   in a dark hairline frame with a small "Example ·" label. */

/* The fonts, served from /fonts with their licenses (OFL). Latin and Latin
   Extended only; anything else falls back to the next font in the stack. */
@font-face { font-family: 'IM Fell English'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/im-fell-english-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IM Fell English'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/im-fell-english.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IM Fell English SC'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/im-fell-english-sc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/libre-baskerville-italic-latin-ext.woff) format('woff');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/libre-baskerville-italic.woff) format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/libre-baskerville-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/libre-baskerville.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 400 700; font-display: swap; size-adjust: 102.5%;
  src: url(/fonts/public-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 400 700; font-display: swap; size-adjust: 102.5%;
  src: url(/fonts/public-sans-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; size-adjust: 102.5%;
  src: url(/fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; size-adjust: 102.5%;
  src: url(/fonts/public-sans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f5f2ea;
  --sheet: #fffdf8;
  --sand: #ece6d6;
  --ink: #1b1f1c;
  --body: #3b3d39;
  --muted: #66625b;
  --rule: #d8d2c3;
  --field: #cfc8b6;
  --brass: #a8843f;
  --brass-label: #86652a;
  --pale-brass: #cdbf98;
  --badge: #efe7d3;
  --badge-ink: #6e5524;
  --display: "IM Fell English", Georgia, "Times New Roman", serif;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  /* What you can click (buttons, links), the closing band, and decorative icons.
     Example panels keep their own colors further down. */
  --action: #1f4d30;
  --action-hover: #163a23;
  --action-ink: #f5f2ea;
  --link: #1f4d30;
  --link-hover: #163a23;
  --band: #1f4d30;
  --band-ink: #f5f2ea;
  --icon: #1f4d30;
  --placeholder: #8a857a;
  --warn: #8a3b12;
  --warn-ink: #6d2e0e;
  --todo: #fff3c4;
  --todo-ink: #5a4300;
  color-scheme: light dark;
}

/* Dark: the device asks for it. Warm charcoal with no hue, from the Tracery theme's
   dark palette (theme/theme.toml), so the storefront, the account pages and the
   trees match. Buttons turn a lighter hunter green with dark text (7:1). */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614;
    --sheet: #1e1d1a;
    --sand: #1e1d1a;
    --ink: #ece6da;
    --body: #d3cdc1;
    --muted: #aaa398;
    --rule: #33312c;
    --field: #4a463e;
    --brass-label: #c9a868;
    --badge: #2b2822;
    --badge-ink: #d9bf87;
    --action: #6eb086;
    --action-hover: #82c199;
    --action-ink: #0f1612;
    --link: #7cbf95;
    --link-hover: #9ad0ae;
    --band: #1b442a;
    --band-ink: #ece6da;
    --icon: #7cbf95;
    --placeholder: #8f887d;
    --warn: #e8a07a;
    --warn-ink: #f0b898;
    --todo: #4a3d10;
    --todo-ink: #f5dc8a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; }
p { margin: 0; }
.serif { font-family: var(--serif); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--sheet); padding: 8px 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 860px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.center { text-align: center; }
.split { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.split > * { min-width: 0; }
.split.middle { align-items: center; }
.split.bottom { align-items: flex-end; }
.grow-sm { flex: 1 1 340px; }
.grow-md { flex: 1 1 440px; }
.grow-lg { flex: 1 1 540px; }
.pad-xl { padding-top: 96px; padding-bottom: 96px; }
.pad-l { padding-top: 72px; padding-bottom: 72px; }
.pad-m { padding-top: 56px; padding-bottom: 56px; }
@media (max-width: 640px) {
  .pad-xl { padding-top: 64px; padding-bottom: 64px; }
  .pad-l { padding-top: 52px; padding-bottom: 52px; }
}

/* --- Header, welcome strip, footer -------------------------------------- */

.welcome { background: var(--band); color: var(--band-ink); font-size: 15px; }
.welcome .wrap { padding-top: 9px; padding-bottom: 9px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.welcome a { color: var(--band-ink); font-weight: 500; }
.welcome a:hover { color: var(--pale-brass); }

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
/* The wordmark: the mark beside "Tracery" in Fell over "GENEALOGY" in spaced Baskerville
   caps, drawn as outlines by brand/mark/build.py (theme/wordmark.svg, and -dark for dark
   mode), so it never depends on the fonts loading. */
.wordmark { flex-grow: 1; display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { display: block; width: 158px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--link); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -1px 0 var(--link); }
.nav .account { padding-left: 24px; border-left: 1px solid var(--rule); }
.nav a.nav-start {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  background: var(--action); color: var(--action-ink); font-weight: 500;
}
.nav a.nav-start:hover { background: var(--action-hover); color: var(--action-ink); text-decoration: none; }
.nav a.nav-start[aria-current="page"] { box-shadow: none; }
.nav-break { display: none; }
/* Signed in: the person's initial, square like the trees' own account button,
   opening a small menu with their name, Account and Sign out. */
.me { position: relative; margin-left: -12px; }
.me summary { list-style: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--rule); color: var(--ink); font: 400 13px/1 var(--serif); letter-spacing: .04em; cursor: pointer; }
.me summary::-webkit-details-marker { display: none; }
.me summary:hover, .me[open] summary { border-color: var(--ink); }
.me summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 230px; max-width: 80vw;
  padding: 14px 16px; background: var(--sheet); border: 1px solid var(--rule); }
.me-who { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 14px;
  line-height: 1.45; overflow-wrap: anywhere; }
.me-who strong { display: block; font-weight: 600; color: var(--ink); }
.me-who span { color: var(--muted); }
.nav .me-menu a, .me-menu button { display: block; width: 100%; padding: 7px 0; font: inherit; font-size: 15px;
  color: var(--ink); text-align: left; background: none; border: 0; cursor: pointer; text-decoration: none; }
.nav .me-menu a:hover, .me-menu button:hover { color: var(--link); text-decoration: underline; }
.me-menu form { margin: 0; }
@media (max-width: 560px) {
  /* The wordmark and Start share the first line; the menu and Sign in wrap
     beneath. The menu's box steps aside so its links can be ordered. */
  .site-header .nav { display: contents; }
  .site-header .wordmark { order: 0; }
  .nav a.nav-start { order: 1; }
  .nav-break { display: block; order: 2; flex-basis: 100%; height: 0; }
  .nav a { order: 3; }
  /* Signed in, the initial joins Start on the first line and its menu holds My
     trees, so the second line is just the menu. */
  .nav .me { order: 1; margin-left: -4px; }
  .nav a.account[href="/trees"] { display: none; }
  /* Tight enough that the menu and Sign in fit one line at 375px in Public Sans. */
  .site-header .wrap { gap: 2px 14px; }
  .nav .account { padding-left: 14px; }
}

.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; font-size: 14px; color: var(--muted); }
.site-footer .wordmark img { width: 135px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* --- Type ---------------------------------------------------------------- */

.kicker {
  font: italic 15px/1.4 var(--serif); color: var(--brass-label);
  display: flex; align-items: center; gap: 14px; margin: 0;
}
.center .kicker { justify-content: center; }
.kicker.line::after { content: ""; flex-grow: 1; height: 1px; background: var(--rule); }
.display { font-family: var(--display); font-size: clamp(2.7rem, 6.4vw, 4.1rem); line-height: 1.04; margin: 20px 0 0; text-wrap: balance; }
.display.md { font-size: clamp(2.55rem, 5.8vw, 3.7rem); line-height: 1.06; }
.title { font-size: clamp(1.75rem, 3.6vw, 2.25rem); line-height: 1.2; margin: 14px 0 0; text-wrap: balance; }
.title.sm { font-size: clamp(1.6rem, 3.2vw, 2rem); }
.brass-rule { width: 44px; height: 2px; background: var(--brass); margin: 30px 0; border: 0; }
.center .brass-rule { margin-left: auto; margin-right: auto; }
.lead { font-size: 20px; color: var(--body); max-width: 640px; }
.center .lead { margin: 0 auto; }
.lead.sm { font-size: 19px; max-width: 540px; }
.body { color: var(--body); }
.body + .body { margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.note { margin-top: 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .lead { font-size: 18px; } }

/* --- Buttons and links --------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 0;
  background: var(--action); color: var(--action-ink); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--action-hover); color: var(--action-ink); }
.btn.tall { min-height: 56px; padding: 0 24px; }
.btn.outline { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn.outline:hover { background: var(--sheet); color: var(--link-hover); }
.btn.light { background: var(--band-ink); color: var(--band); }
.btn.light:hover { background: var(--sheet); }
.btn.block { display: flex; width: 100%; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--link); font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--link); padding-bottom: 2px;
}

/* --- Sections ------------------------------------------------------------ */

.ruled { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ruled-top { border-top: 1px solid var(--rule); }
.band { background: var(--sand); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.closing { background: var(--band); color: var(--band-ink); }
.closing .kicker { color: var(--pale-brass); }
.closing .title { margin-bottom: 12px; }
.closing .brass-rule { margin: 20px 0; }
.closing p { color: color-mix(in srgb, var(--band-ink) 82%, var(--band)); }

/* Columns of icon + heading + sentence, divided by hairlines. */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--col, 260px), 1fr)); }
.columns > div { padding: 40px 32px; border-left: 1px solid var(--rule); }
.columns > div:first-child { padding-left: 0; border-left: 0; }
.columns > div:last-child { padding-right: 0; }
.columns h2 { font-size: 21px; line-height: 1.35; margin: 16px 0 10px; }
.columns.five { --col: 210px; }
.columns.five > div { padding: 40px 24px; }
.columns.five > div:first-child { padding-left: 0; }
.columns.five h2 { font-size: 19px; margin: 16px 0 8px; }
.columns.five p { font-size: 15px; }
@media (max-width: 900px) {
  .columns > div, .columns.five > div { padding: 28px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .columns > div:first-child { border-top: 0; }
}
.icon { display: block; color: var(--icon); }

/* Definition rows: a hairline between each. */
.rows > div, .rows > li { padding: 20px 0; border-top: 1px solid var(--rule); }
.rows > :last-child { border-bottom: 1px solid var(--rule); }
.rows dt, .rows .row-title { font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.rows dd { margin: 6px 0 0; color: var(--body); }
dl { margin: 0; }
.row-icon { display: flex; gap: 18px; }
.row-icon svg { flex-shrink: 0; margin-top: 2px; }
.row-label { display: flex; gap: 20px; }
.row-label > :first-child { font-family: var(--serif); font-size: 18px; width: 120px; flex-shrink: 0; }
@media (max-width: 480px) { .row-label { flex-direction: column; gap: 4px; } }

/* --- "Example ·" fields: real pieces of a delivered tree ----------------- */

/* The whitest thing on the page, in a dark hairline frame, with the label in a
   ruled band across the top: a window onto a delivered tree. No green here,
   which is kept for things you can click; links inside turn ink. The label is
   a solid title bar across the top: an EXAMPLE tag and a plain sentence at
   reading size, so a reader scrolling past knows what this is before any name.
   In dark mode the excerpt shows the tree's own dark palette, lifted a step
   above everything around it, under a light bar. (:where keeps these
   overridable from :root.) */
:where(:root) {
  --example-white: #fff; --example-frame: #2b2d2a; --example-bar-ink: #f5f2ea;
  --example-tag: #cdbf98; --example-tag-ink: #1b1f1c; --confirmed: #1f4d30; --meter-empty: #e4dccb;
}
@media (prefers-color-scheme: dark) {
  :where(:root) {
    --example-white: #23211d; --example-frame: #d8d1c3; --example-bar-ink: #171614;
    --example-tag: #171614; --example-tag-ink: #d9bf87; --confirmed: #8fc39a; --meter-empty: #3d3a33;
  }
}
.example {
  background: var(--example-white); border: 1px solid var(--example-frame);
  padding: 0 24px 28px; margin: 0;
}
@media (max-width: 640px) { .example { padding: 0 12px 16px; } }
.example-label {
  display: flex; align-items: baseline; gap: 6px 12px; margin: 0 -24px 24px; padding: 12px 24px;
  background: var(--example-frame); color: var(--example-bar-ink); font-size: 15px; line-height: 1.4;
}
@media (max-width: 640px) { .example-label { margin: 0 -12px 16px; padding: 10px 12px; font-size: 14px; } }
.example-tag {
  flex-shrink: 0; padding: 3px 8px 2px; background: var(--example-tag); color: var(--example-tag-ink);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
/* A label in the display face, without the tag box: "Example of a family tree". */
.example-label.fell { align-items: baseline; gap: 0 .35em; font-size: 17px; }
.example-label .example-word { font-family: var(--display); font-size: 1.4em; line-height: 1; font-weight: 700; letter-spacing: .01em; }
.example a { color: var(--ink); }
.example a:hover { color: var(--body); }
.example .record figcaption a { color: #ece6da; }
.sheet { background: var(--example-white); border: 1px solid var(--rule); }
.sheet.pad { padding: 24px; }
.sheet .placeholder { color: var(--muted); font-style: italic; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot.confirmed { background: var(--confirmed); }
.dot.probable { border: 1.5px solid var(--brass); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 7px; background: var(--badge);
  color: var(--badge-ink); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
}

/* The tree view excerpt. */
.tree { font-size: 14px; line-height: 1.4; }
.tree-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.tree-bar .serif { font-size: 14px; flex-grow: 1; }
.tree-search { display: flex; align-items: center; gap: 6px; border-bottom: 1.5px solid var(--ink); padding: 2px 4px; color: var(--muted); font-size: 13px; min-width: 140px; }
.tree-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--body); }
.tree-filters > span { border: 1px solid var(--rule); padding: 2px 8px; }
.tree-filters .legend { margin-left: auto; border: 0; padding: 0; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.tree-filters .legend span { display: flex; align-items: center; gap: 4px; }
.tree-filters .legend .dot { width: 8px; height: 8px; }
.tree-rows { padding: 8px 14px 14px; }
.tree-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 10px; }
.tree-row.focus { background: var(--badge); padding: 8px 10px; }
.tree-row .who { flex-grow: 1; min-width: 0; }
.tree-row .name { font-family: var(--serif); font-size: 14px; }
.tree-row.focus .name { font-size: 15px; }
.tree-row .dates { color: var(--muted); }
.tree-row .line { color: var(--body); font-size: 13px; }
.tree-row .chev { width: 12px; flex-shrink: 0; margin-top: 4px; }
.tree-row .branch { width: 10px; height: 10px; flex-shrink: 0; margin-top: 4px; background: #4f7d6e; }
.tree-row .branch.plum { background: #8a6a9a; }
.tree-row .dot { margin-top: 5px; }
.tree-kids { margin-left: 15px; border-left: 1px solid var(--rule); padding-left: 12px; }

.quote-card {
  position: relative; margin: -18px 0 0 40px; padding: 16px 18px; background: var(--paper);
  border-top: 2px solid var(--brass); font-size: 15px; line-height: 1.55;
}
@media (max-width: 640px) { .quote-card { margin-left: 12px; } }
.quote-card q { font-family: var(--serif); font-size: 15.5px; line-height: 1.6; font-style: italic; quotes: "\201C" "\201D"; }
.quote-card sup, .person sup { color: var(--brass-label); }
.quote-card .cite { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* The first fold's person card: one ancestor as their page opens in a tree,
   photo first, rearranged for a storefront column. Stacks on a phone, the
   photo cropped to the face. */
.pc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.pc-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-position: 50% 15%; object-fit: cover; background: #e6dcc4; border: 1px solid var(--rule); }
.pc-text .meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.pc-name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 14px 0 8px; }
.pc-dates { font-size: 16px; color: var(--body); }
.places { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: 13px; }
.places > span:not(.arrow) { border: 1px solid var(--rule); background: var(--paper); padding: 2px 9px; color: var(--body); }
.places .arrow { color: var(--brass-label); }
.pc .brass-rule { margin: 22px 0 18px; }
.pc-line { font-family: var(--serif); font-size: 16.5px; line-height: 1.7; margin: 0; }
.pc-src { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .pc { grid-template-columns: 1fr; gap: 20px; }
  .pc-photo { aspect-ratio: 4 / 3; object-position: 50% 8%; }
}

/* The same card three across, photo on top, further down the home page. */
.pc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pc-card { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pc-card .pc-photo { aspect-ratio: 4 / 5; object-position: 50% 15%; }
.pc-card .pc-name { font-size: 1.35rem; margin: 10px 0 6px; }
.pc-card .pc-dates { font-size: 15px; }
.pc-card .places { margin: 10px 0 14px; }
.pc-card .pc-line { font-size: 15.5px; line-height: 1.65; }
.pc-card .pc-src { margin-top: 12px; }
@media (min-width: 561px) and (max-width: 820px) {
  .pc-row { grid-template-columns: 1fr; }
  .pc-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 22px; }
}

/* The tree excerpt beside a short note, further down the home page. */
.tree-sample { min-width: 0; }
/* The tree excerpt and, beside it, the views a delivered tree offers. */
.sample-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; }
.sample-grid > * { min-width: 0; }
.sample-grid.middle { align-items: start; }
@media (max-width: 900px) { .sample-grid { grid-template-columns: 1fr; gap: 32px; } }
.section-title { max-width: 30ch; margin-bottom: 16px; }
.section-intro { max-width: 620px; margin: 0; }
.sort-by .kicker { margin: 0 0 6px; }
.sort-list { list-style: none; margin: 0; padding: 0; }
.sort-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--rule); }
.sort-list li:last-child { border-bottom: 1px solid var(--rule); }
.sort-list .icon { margin-top: 2px; }
.sort-name { font-family: var(--serif); font-size: 18px; line-height: 1.3; color: var(--ink); }
.sort-line { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 3px; }

/* A person's page beside the record. */
.person-sheet { display: flex; flex-wrap: wrap; }
.crumbs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 10px 18px; border-bottom: 1px solid var(--rule); background: var(--paper); font-size: 13px; color: var(--muted); }
.crumbs :last-child { color: var(--ink); }
.person { flex: 1 1 480px; min-width: 0; padding: 36px 40px; }
@media (max-width: 640px) { .person { padding: 24px 20px; } }
.person .meta { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.person h3 { font-size: clamp(1.9rem, 3.6vw, 2.4rem); line-height: 1.15; margin: 12px 0 6px; }
.person .brass-rule { margin: 24px 0; }
.person p { font-family: var(--serif); font-size: 17px; line-height: 1.8; margin-bottom: 18px; }
.person p sup { font-family: var(--sans); font-size: 12px; }
.person p sup.lit { background: var(--badge); padding: 0 3px; }
.person ol { margin: 28px 0 0; padding: 16px 0 0 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); line-height: 1.5; }
.record { flex: 1 1 400px; min-width: 0; margin: 0; background: #3a3f3b; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.record .scan {
  flex-grow: 1; min-height: 380px; background: #e6dcc4; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px; justify-content: center;
}
.record .scan .placeholder-text { text-align: center; color: #5e5340; font-size: 13px; letter-spacing: .04em; }
.record .scan-link { display: block; flex-grow: 1; }
.record .scan-img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: top; background: #e6dcc4; }
.record figcaption a { color: #ece6da; }
.record figcaption { color: #ece6da; font-size: 14px; line-height: 1.5; }
.record figcaption .serif { font-size: 15px; }
.record figcaption .src { color: #c9c3b6; margin-top: 4px; }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.people > div { padding: 18px 20px; background: var(--example-white); border: 1px solid var(--rule); border-top: 2px solid var(--brass); }
.people .serif { font-size: 17px; }
.people .muted { font-size: 14px; }
.people .body { font-size: 15px; margin-top: 8px; }

/* Confidence levels. */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.levels .sheet { padding: 24px; }
.meter { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.meter span { width: 6px; background: var(--meter-empty); }
.meter span:nth-child(1) { height: 8px; }
.meter span:nth-child(2) { height: 13px; }
.meter span:nth-child(3) { height: 18px; }
.meter.confirmed span { background: var(--confirmed); }
.meter.probable span:nth-child(-n+2) { background: var(--brass); }
.meter.uncertain span:nth-child(1) { background: #8a5a44; }
.level-name { font-family: var(--serif); font-size: 21px; margin-top: 12px; }
.levels p { margin-top: 8px; color: var(--body); font-size: 15px; }
.levels .who { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.levels .who .serif { font-size: 15px; color: var(--ink); }

/* Research summary. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 20px; margin: 20px 0; }
.stats .serif { font-size: 34px; line-height: 1; }
.stats .muted { font-size: 14px; margin-top: 6px; }

/* How it works. */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.steps .step-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--brass-label); padding-bottom: 14px; border-bottom: 1px solid var(--pale-brass); width: 56px; }
.steps h3 { font-size: 19px; line-height: 1.35; margin: 18px 0 8px; }
.steps p { color: var(--body); font-size: 16px; }

/* The "from" price. */
.from { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; margin-top: 40px; padding: 32px; background: var(--paper); border: 1px solid var(--rule); }
.from .price { font-family: var(--serif); font-size: 50px; line-height: 1; }
.from p { flex: 1 1 360px; min-width: 0; color: var(--body); font-size: 18px; }

/* --- Pricing ------------------------------------------------------------- */

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.tier { background: var(--sheet); border: 1px solid var(--rule); padding: 32px 28px; display: flex; flex-direction: column; }
.tier h2 { font-size: 23px; margin: 0; }
.tier .price { font-family: var(--serif); font-size: 46px; line-height: 1; margin-top: 14px; }
.tier .floor { margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--brass); }
.tier .floor strong { display: block; font-size: 22px; font-weight: 500; }
.tier .floor span { color: var(--muted); font-size: 14px; }
.tier ul { list-style: none; margin: 20px 0 28px; padding: 0; font-size: 15px; color: var(--body); flex-grow: 1; }
.tier li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.tier li svg { flex-shrink: 0; margin-top: 4px; }
.includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; margin-top: 24px; }
.includes > div { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--body); }
.includes svg { flex-shrink: 0; }

/* --- Start form ---------------------------------------------------------- */

.form { flex: 1 1 560px; min-width: 0; max-width: 700px; border-bottom: 1px solid var(--rule); }
.field { padding: 26px 0; border-top: 1px solid var(--rule); margin: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.field.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field legend { float: left; width: 100%; padding: 0; }
.field legend + * { clear: both; }
.lbl { display: block; font-size: 15px; font-weight: 500; margin: 0 0 8px; }
.opt { font-weight: normal; color: var(--muted); font-size: 13px; margin-left: 6px; }
.hint { display: block; color: var(--muted); font-size: 14px; margin: -2px 0 10px; }
.inp, .ta {
  width: 100%; background: var(--sheet); border: 1px solid var(--field); border-radius: 0;
  font: inherit; font-size: 16px; color: var(--ink);
}
.inp { height: 48px; padding: 0 14px; }
.ta { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.inp::placeholder, .ta::placeholder { color: var(--placeholder); }
.inp:focus, .ta:focus { outline: 2px solid var(--link); outline-offset: -1px; border-color: var(--link); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--field); background: var(--sheet); font-size: 15px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .ring { width: 14px; height: 14px; border: 1px solid var(--muted); border-radius: 50%; flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.choice:has(input:checked) .ring { border: 4px solid var(--link); }
.choice:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.choice .aside { color: var(--muted); font-size: 13px; }
.phone { display: none; max-width: 420px; margin-top: 16px; }
.field:has(input[value="A chat"]:checked) .phone { display: block; }
.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-bottom: 40px; }
.send-row .btn { gap: 48px; min-height: 56px; padding: 0 24px; }
.form-error { margin: 0 0 4px; padding: 10px 14px; border-left: 2px solid var(--warn); background: var(--sheet); color: var(--warn-ink); }
/* Invisible unless Turnstile needs the visitor to click; then it shows above Send. */
.turnstile { flex-basis: 100%; }

.sent { flex: 1 1 560px; min-width: 0; max-width: 700px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 48px 0 56px; }
.sent h2 { font-size: 30px; line-height: 1.15; margin: 18px 0 12px; }
.sent .lead strong { font-weight: 500; color: var(--ink); }
.sent .papers { margin-top: 36px; padding: 24px; border: 1px solid var(--rule); background: var(--sheet); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.sent .papers p { flex: 1 1 280px; color: var(--body); font-size: 16px; }

.next { flex: 1 1 320px; min-width: 0; max-width: 400px; border-top: 2px solid var(--icon); padding-top: 24px; }
.next ol { list-style: none; margin: 18px 0 0; padding: 0; }
.next li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.next li:first-child { padding-top: 0; border-top: 0; }
.next .num { font-family: var(--serif); font-size: 19px; color: var(--brass-label); line-height: 1.2; width: 18px; flex-shrink: 0; }
.next .serif { font-size: 18px; line-height: 1.3; }
.next li p { margin-top: 6px; color: var(--body); font-size: 15px; }
.next .write { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--body); font-size: 15px; }
.next .write strong { font-weight: 500; color: var(--ink); }

/* --- About --------------------------------------------------------------- */

.story p { font-size: 19px; color: var(--body); margin-bottom: 20px; }
.story p:last-child { margin-bottom: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: 15px; color: var(--muted); padding-top: 40px; padding-bottom: 40px; }

/* A placeholder still waiting for real content: visible on purpose. */
.todo { background: var(--todo); color: var(--todo-ink); padding: 0 4px; font-style: normal; }
.closing > .wrap { padding-top: 88px; padding-bottom: 88px; }
@media (max-width: 640px) { .closing > .wrap { padding-top: 60px; padding-bottom: 60px; } }

/* The FAQs page: grouped questions in one readable column. */
.faq { max-width: 820px; }
.faq-group { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 48px 0 6px; }
.faq-lead { max-width: 680px; margin: 10px 0 4px; }
