/* Gablebook v1.0.4 (focus ring; v1.0.2 hero plate; v1.0.0 base): archival paper, brick and sage. IM Fell English (display) + Hedvig Letters Sans (text), both self-hosted.
   References studied (SPEC D): The Met Collection object pages (tombstone facts beside a big serif title), Ancestry record
   cards (evidence labels on every line), National Trust for Historic Preservation (editorial bands, brick accents). */
@font-face { font-family: "Fell"; src: url("fonts/im-fell-english-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fell"; src: url("fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hedvig Sans"; src: url("fonts/hedvig-letters-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #f3ede2;
  --paper-2: #e9dfcd;
  --card: #fbf8f2;
  --ink: #1f1d1a;
  --ink-2: #4a453e;
  --rule: #cbbda5;
  --brick: #8a3a26;
  --brick-2: #6f2c1b;
  --sage: #3f5e4a;
  --sage-2: #e0e7dd;
  --night: #23211d;
  --gold: #c9a24a;
  --f-display: "Fell", "Iowan Old Style", Georgia, serif;
  --f-text: "Hedvig Sans", "Segoe UI", system-ui, sans-serif;
  --shell: 1180px;
  --r: 4px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-text); font-synthesis: none; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--brick); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brick-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brick-2); outline-offset: 2px; }
/* v1.0.4 (GB-A11Y-FOCUS): gold alone was about 2:1 on the paper tones. Brick-2 is 7.7:1 or more on every light ground;
   the dark grounds keep a light ring (gold 5.9-6.7:1 on night, paper 6.2:1 on sage). */
.band--ink :focus-visible, .plan :focus-visible, .colophon :focus-visible { outline-color: var(--gold); }
.band--window :focus-visible { outline-color: var(--paper); }
b, strong { font-weight: 400; color: var(--ink); background: linear-gradient(transparent 62%, rgba(201, 162, 74, .35) 62%); }
small { font-size: .85em; }
code { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: .92em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.shell.section { padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.section--tight { padding-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* type */
.display { font: 400 clamp(2.5rem, 6.2vw, 4.75rem)/1.02 var(--f-display); letter-spacing: -.01em; margin: .2em 0 .35em; }
.display em { font-style: italic; color: var(--brick); }
.display--sm { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; }
.h2 { font: 400 clamp(1.8rem, 3.4vw, 2.6rem)/1.1 var(--f-display); margin: 0 0 .6em; }
.h3 { font: 400 1.5rem/1.2 var(--f-display); margin: 1.4em 0 .4em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 40em; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); margin: 0; }
.eyebrow::before { content: ""; display: inline-block; width: 1.6em; height: 1px; background: currentColor; vertical-align: middle; margin-right: .6em; }
.eyebrow--light { color: var(--gold); }
.fine, .cite { font-size: .88rem; color: var(--ink-2); }
.cite { border-top: 1px solid var(--rule); padding-top: .8rem; margin-top: 2.5rem; }
.link-arrow { text-decoration: none; border-bottom: 1px solid currentColor; }
.link-arrow::after { content: " \2192"; }
.prose { max-width: 46rem; }
.prose li { margin: .35em 0; }

/* buttons + fields */
.btn { display: inline-flex; align-items: center; gap: .5em; font: inherit; font-size: 1rem; letter-spacing: .02em; padding: .78em 1.35em; border-radius: var(--r); border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn--brick { background: var(--brick); color: #fff8ef; }
.btn--brick:hover { background: var(--brick-2); color: #fff8ef; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--danger { background: transparent; color: #8c1c13; border-color: #8c1c13; }
.btn--danger:hover { background: #8c1c13; color: #fff; }
.btn--sm { font-size: .9rem; padding: .5em .95em; }
.field { display: grid; gap: .35rem; margin: 0 0 1.1rem; }
.field > span { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field small { color: var(--ink-2); }
input[type=text], select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--ink-2); border-radius: var(--r); padding: .7em .85em; width: 100%; min-height: 2.9rem; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a8174; }
input[aria-invalid=true] { border-color: #8c1c13; box-shadow: 0 0 0 1px #8c1c13; }
.check { display: flex; gap: .6rem; align-items: center; margin: .4rem 0 .9rem; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--brick); }
.check--field { align-self: end; margin-bottom: 1.6rem; }
.err { color: #8c1c13; margin: .5rem 0 0; }
.errbox { border-left: 4px solid #8c1c13; background: #f7e4df; padding: .9rem 1.2rem; margin: 0 0 1.5rem; border-radius: 0 var(--r) var(--r) 0; }
.errbox__h { margin: 0 0 .3rem; color: #8c1c13; }
.errbox ul { margin: 0; padding-left: 1.2rem; }

/* masthead */
.mast { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 5; }
.mast__in { display: flex; align-items: center; gap: 2rem; min-height: 4.6rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; }
.logo .gable { color: var(--brick); }
.logo__word { font: 400 1.75rem/1 var(--f-display); letter-spacing: -.01em; }
.mast__nav { display: flex; gap: 1.6rem; margin-left: auto; }
.mast__nav a, .mast__book { color: var(--ink); text-decoration: none; font-size: .98rem; padding: .3rem 0; border-bottom: 1px solid transparent; }
.mast__nav a:hover, .mast__nav a[aria-current] { border-bottom-color: var(--brick); }
.mast__book { border: 1px solid var(--ink); border-radius: 999px; padding: .5rem 1.05rem; }
.mast__book:hover, .mast__book[aria-current] { background: var(--ink); color: var(--paper); }
.drawer { display: none; margin-left: auto; }
.drawer summary { list-style: none; cursor: pointer; border: 1px solid var(--ink); border-radius: 999px; padding: .45rem 1rem; font-size: .95rem; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer[open] summary { background: var(--ink); color: var(--paper); }
.drawer__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--rule); display: grid; padding: .5rem clamp(16px, 4vw, 40px) 1rem; box-shadow: 0 18px 30px -18px rgba(31, 29, 26, .35); }
.drawer__nav a { color: var(--ink); text-decoration: none; padding: .8rem 0; border-bottom: 1px solid var(--paper-2); font-size: 1.05rem; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); background: radial-gradient(120% 90% at 85% 10%, #f8f3ea 0%, var(--paper) 60%); }
.hero__in { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero__start { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin: 1.8rem 0 .6rem; }
.hero__start .field { margin: 0; flex: 0 1 15rem; }
.hero__fine { font-size: .9rem; color: var(--ink-2); margin: 0; }
.hero__art { position: relative; }
.art { display: block; width: 100%; height: auto; }
.art__ground path { stroke: var(--rule); stroke-width: 2; fill: none; }
.art__house path, .art__house circle { stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.art__house .art__eave { stroke: var(--brick); stroke-width: 4; }
.art__house .art__thin { stroke-width: 1.3; }
.art__house circle { fill: var(--ink); }
.art__tags rect { fill: var(--card); stroke: var(--ink); stroke-width: 1.3; }
.art__string { stroke: var(--brick); stroke-width: 1.3; fill: none; stroke-dasharray: 3 3; }
.art__y { font-family: var(--f-display); font-size: 19px; fill: var(--ink); }
.art__l { font-family: var(--f-text); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; fill: var(--brick); }

/* marks */
.mark { display: inline-block; font-size: .68rem; letter-spacing: .14em; line-height: 1; padding: .34em .55em .3em; border-radius: 2px; vertical-align: .18em; white-space: nowrap; }
.mark--record { background: var(--sage); color: #f4f7f2; border: 1px solid var(--sage); }
.mark--told { background: transparent; color: var(--brick); border: 1px solid var(--brick); }
.mark--guess { background: transparent; color: var(--ink-2); border: 1px dashed var(--ink-2); }
.marks { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--ink); }
.marks__item { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.marks dt, .marks dd { margin: 0; }
.marks .mark { font-size: .78rem; }

/* bands */
.band--paper { background: var(--paper-2); }
.band--ink { background: var(--night); color: #efe7d8; }
.band--ink .h2 { color: #fbf6ec; }
.band--window { background: var(--sage); color: #f2f5ef; }
.band--window .eyebrow { color: #e9d9a8; }
.window-teaser { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; padding-top: 3rem; padding-bottom: 3rem; }
.window-teaser .h2 { margin-top: .3em; }
.window-teaser p { margin: 0; }
.window-teaser__form { display: flex; gap: .7rem; align-items: end; flex-wrap: wrap; }
.window-teaser__form .field { margin: 0; flex: 1 1 8rem; }
.window-teaser__form .field > span { color: #dfe8dc; }
.window-teaser__eg { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 1.5rem; }
.window-teaser__lbl { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #e9d9a8; }
.window-teaser__big { font: 400 1.5rem/1.2 var(--f-display); margin: .3rem 0 !important; }
.window-teaser__big span { font-size: 3.2rem; line-height: 1; margin-right: .2rem; }
.window-teaser__sub { font-size: .92rem; color: #dfe8dc; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.names { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--brick); }
.names li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .9rem 0 .9rem 1.4rem; position: relative; border-bottom: 1px solid var(--rule); }
.names li::before { content: ""; position: absolute; left: -7px; top: 1.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brick); }
.names__y { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); padding-top: .35rem; }
.names__n { font: 400 1.55rem/1.2 var(--f-display); }

/* timeline */
.sample-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; flex-wrap: wrap; }
.sample-head .h2 { margin: .3em 0 0; }
.sample-head__flag { max-width: 24rem; font-size: .9rem; color: var(--ink-2); border: 1px dashed var(--ink-2); padding: .7rem .9rem; margin: 0; border-radius: var(--r); }
.tl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.tl__row { display: grid; grid-template-columns: 9rem 1fr; gap: clamp(1rem, 3vw, 2.5rem); padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.tl__when { margin: 0; }
.tl__y { display: block; font: 400 2.6rem/1 var(--f-display); color: var(--ink); }
.tl__m { display: block; font-size: .85rem; color: var(--ink-2); margin-top: .3rem; }
.tl__body > * { margin: 0; }
.tl__kind { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.tl__t { font: 400 1.55rem/1.25 var(--f-display); margin: .35rem 0 .3rem !important; }
.tl__src { font-size: .93rem; color: var(--ink-2); }
.tl__src span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-right: .4rem; }
.tl__note { margin-top: .5rem !important; max-width: 44rem; }
.tl__act { margin-top: .5rem !important; font-size: .92rem; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1px; background: rgba(239, 231, 216, .25); border: 1px solid rgba(239, 231, 216, .25); margin-top: 2rem; }
.plan { background: var(--night); padding: 2rem 1.75rem; }
.plan--plus { background: #2f2b25; box-shadow: inset 0 3px 0 var(--gold); }
.plan__n { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0; }
.plan__p { font: 400 3.2rem/1 var(--f-display); color: #fbf6ec; margin: .6rem 0 .2rem; }
.plan__p small { font: 400 1rem var(--f-text); color: #cfc5b3; margin-left: .2rem; }
.plan__alt { margin: 0; color: #cfc5b3; }
.plan__free { display: inline-block; margin: .9rem 0 0; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--night); background: var(--gold); padding: .3em .6em; border-radius: 2px; }
.plan__list { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.plan__list li { padding: .55rem 0 .55rem 1.5rem; border-top: 1px solid rgba(239, 231, 216, .14); position: relative; color: #e6ddcc; font-size: .98rem; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: 1px; background: var(--gold); }
.plans__note { color: #cfc5b3; margin: 1.4rem 0 0; font-size: .95rem; }
.notice { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--gold); padding: .9rem 1.1rem; max-width: 46rem; border-radius: 0 var(--r) var(--r) 0; }
.price-line { font-size: .95rem; color: var(--ink-2); margin: 1.2rem 0 0; }
.price-line strong { color: var(--brick); }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.qa .h3 { margin-top: .4em; }

/* page heads */
.pagehead { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, #f8f3ea, var(--paper)); }
.pagehead--msg { min-height: 50vh; }
.window-form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-top: 1.6rem; }
.window-form .field { margin: 0; flex: 0 1 16rem; }

/* census window */
.window-sum { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 2.2rem; }
.window-sum p { margin: 0; padding: 1.2rem 1.2rem 1.2rem 0; color: var(--ink-2); }
.window-sum p + p { border-left: 1px solid var(--rule); padding-left: 1.2rem; }
.window-sum__n { display: block; font: 400 2.8rem/1 var(--f-display); color: var(--ink); margin-bottom: .2rem; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); background: var(--card); }
.ledger { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ledger caption { text-align: left; padding: .9rem 1rem; font-size: .85rem; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.ledger th, .ledger td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.ledger thead th { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); }
.ledger tbody th { font: 400 1.5rem/1 var(--f-display); white-space: nowrap; }
.ledger tbody th small { display: block; font: .78rem/1.35 var(--f-text); color: var(--ink-2); white-space: normal; max-width: 12rem; margin-top: .3rem; }
.ledger .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger tr.is-sealed td, .ledger tr.is-sealed th { color: #6d665c; }
.state { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: .3em .55em; border-radius: 2px; }
.state--open { background: var(--sage); color: #f4f7f2; }
.state--sealed { border: 1px solid var(--ink-2); color: var(--ink-2); }
.window-next { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.facts { padding-left: 1.2rem; max-width: 52rem; }
.facts li { margin: .5rem 0; }

/* research trail */
.trail { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.trail__stop { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.trail__stop:first-child { border-top: 1px solid var(--ink); }
.trail__n { font: 400 3rem/1 var(--f-display); color: var(--brick); margin: 0; }
.trail__stop .h3 { margin-top: 0; }
.trail__stop p { max-width: 46rem; }
.note-card { margin-top: 2.5rem; background: var(--card); border: 1px solid var(--rule); padding: 1.4rem 1.6rem; max-width: 52rem; }
.note-card .h3 { margin-top: 0; }
.caution { border-left: 3px solid var(--gold); background: var(--card); padding: .8rem 1rem; font-size: .97rem; }

/* house book */
.bookhead { padding: clamp(2rem, 5vw, 3.5rem) 0 2rem; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, #f8f3ea, var(--paper)); }
.flash { background: var(--sage-2); border-left: 4px solid var(--sage); padding: .7rem 1rem; margin: 0 0 1.5rem; }
.keycard { background: var(--card); border: 2px solid var(--brick); padding: 1.3rem 1.5rem; margin-bottom: 2rem; }
.keycard .h3 { margin-top: 0; }
.keycard__link { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.keycard__link code { background: var(--paper); padding: .5em .7em; border: 1px solid var(--rule); word-break: break-all; }
.tombstone { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.tombstone__street { font-size: 1.1rem; color: var(--ink-2); margin: -.3rem 0 1rem; }
.tombstone__facts { margin: 0; border-top: 1px solid var(--ink); }
.tombstone__facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.tombstone__facts dt { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding-top: .2rem; }
.tombstone__facts dd { margin: 0; }
.tombstone__notes { max-width: 46rem; margin-top: 1.5rem; }
.evidence { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.sechead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sechead .h2 { margin: 0; }
.empty { color: var(--ink-2); border: 1px dashed var(--rule); padding: 1.2rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.person { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 1.1rem 1.2rem; }
.person > * { margin: 0; }
.person__rel { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: .6rem; align-items: center; }
.person__name { font: 400 1.5rem/1.2 var(--f-display); margin: .35rem 0 .15rem !important; }
.person__years { color: var(--brick); margin-bottom: .4rem !important; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid var(--ink); padding-top: 1rem; }
.tools .h3 { margin-top: .5em; }
.danger .check { font-size: .95rem; }
.danger--inline { margin-top: 1.5rem; }
.card { background: var(--card); border: 1px solid var(--rule); padding: clamp(1.2rem, 3vw, 2rem); max-width: 46rem; }
.form__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.form__row:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.markpick { border: 1px solid var(--rule); border-radius: var(--r); padding: .6rem 1rem .8rem; margin: 0 0 1.1rem; }
.markpick legend { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 0 .4rem; }
.markpick__opt { display: flex; gap: .7rem; align-items: baseline; padding: .45rem 0; cursor: pointer; }
.markpick__opt input { accent-color: var(--brick); width: 1.1rem; height: 1.1rem; }
.markpick__opt small { display: block; color: var(--ink-2); margin-top: .2rem; }
.opener { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.opener__side .h3:first-child { margin-top: 0; }

/* booklet */
.booklet { max-width: 52rem; margin: 0 auto; padding: 2.5rem clamp(16px, 4vw, 40px) 4rem; }
.booklet__cover { border-bottom: 3px double var(--ink); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.booklet__sec { margin: 2rem 0; break-inside: avoid-page; }
.booklet__foot { border-top: 1px solid var(--rule); margin-top: 3rem; font-size: .88rem; color: var(--ink-2); }

/* footer */
.colophon { background: var(--night); color: #d9d0bf; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.colophon a { color: #f1e4c4; }
.colophon__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(239, 231, 216, .18); }
.colophon__word { display: flex; align-items: center; gap: .5rem; font: 400 1.9rem/1 var(--f-display); color: #fbf6ec; margin: 0 0 .8rem; }
.colophon__word .gable { color: var(--gold); }
.colophon__lead p:last-child { max-width: 28rem; }
.colophon__h { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: .25rem 0; }
.indep { font-size: .9rem; color: #c9bfad; max-width: 60rem; margin: 1.5rem 0; }
.colophon__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: #b5ab99; }

/* hero, v1.0.2 (review BRAND-SIBLING-HERO): a centred title-page plate on pale sage, the way a bound house history
   opens; ink headline in one voice (no coloured clause), a ruled label instead of the dash eyebrow, and the drawing set
   below the copy as the frontispiece instead of a copy-left / art-right split. */
.hero--plate { background: #dfe5db; border-bottom: 0; }
.hero--plate .hero__in { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0; max-width: 62rem;
  position: relative; padding: clamp(2.2rem, 5vw, 4rem) clamp(16px, 4vw, 3.5rem) 0; }
.hero--plate .hero__frame { width: 100%; border: 3px double var(--ink); border-bottom: 0; background: #f6f3ec; padding: clamp(1.8rem, 4.5vw, 3.6rem) clamp(1rem, 4vw, 3.5rem) 0; }
.hero__label { display: inline-flex; align-items: center; gap: .9rem; margin: 0; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--sage); }
.hero__label::before, .hero__label::after { content: ""; width: 2.4rem; height: 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; padding-top: 2px; }
.hero--plate .display { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.04; margin: .4em auto .45em; color: var(--ink); }
.hero--plate .hero__start .field { flex: 0 1 18rem; }
.hero--plate .display span { display: block; }
.hero--plate .lede { max-width: 40rem; margin: 0 auto; }
.hero--plate .hero__start { justify-content: center; text-align: left; }
.hero--plate .hero__fine { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.hero--plate .hero__art { max-width: 32rem; width: 100%; margin: 0 auto; }
.hero--plate .art__ground path:first-child { stroke: var(--ink); }

/* phones and tablets */
@media (max-width: 960px) {
  .mast__nav, .mast__book { display: none; }
  .drawer { display: block; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 30rem; }
  .window-teaser { grid-template-columns: 1fr; }
  .window-teaser__eg { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .35); padding: 1.2rem 0 0; }
  .split, .tombstone, .window-next, .opener, .qa { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .colophon__grid { grid-template-columns: 1fr 1fr; }
  .colophon__lead { grid-column: 1 / -1; }
  .window-sum { grid-template-columns: 1fr 1fr; }
  .window-sum p:nth-child(3) { border-left: 0; padding-left: 0; }
  .window-sum p:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .tl__row { grid-template-columns: 1fr; gap: .3rem; }
  .tl__y { font-size: 2.1rem; }
  .tl__when { display: flex; align-items: baseline; gap: .8rem; }
  .tl__m { margin: 0; }
  .marks__item { grid-template-columns: 1fr; gap: .4rem; }
  .names li { grid-template-columns: 1fr; gap: .1rem; }
  .names__y { padding-top: 0; }
  .trail__stop { grid-template-columns: 1fr; gap: .4rem; }
  .trail__n { font-size: 2.2rem; }
  .form__row, .form__row:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
  .check--field { margin-bottom: 1.1rem; }
  .tombstone__facts div { grid-template-columns: 6rem 1fr; }
  .hero__start .field { flex: 1 1 100%; }
  .hero__start .btn, .window-form .btn, .window-teaser__form .btn { width: 100%; justify-content: center; }
  .window-form .field { flex: 1 1 100%; }
  .colophon__grid { grid-template-columns: 1fr; }
}

/* print: the booklet (and any page) prints clean */
@media print {
  .mast, .colophon, .noprint, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .booklet { padding: 0; }
  .tl__row { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .mark--record { background: #fff; color: #000; border: 1.5px solid #000; }
}
