/* Crime in the 806: styled to match the original Base44 site.
   Same palette, fonts, grain, rule bars, cards and mono labels. */
:root {
  --background: 47 23% 93%;
  --foreground: 240 3% 10%;
  --card: 45 20% 96%;
  --primary: 240 3% 10%;
  --primary-foreground: 47 23% 93%;
  --secondary: 45 16% 88%;
  --muted-foreground: 60 1% 36%;
  --accent: 19 89% 42%;
  --accent-text: 19 89% 36%;
  --accent-foreground: 47 23% 93%;
  --destructive: 0 72% 38%;
  --border: 240 5% 78%;
  --highlight: 51 100% 50%;
  --font-heading: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1400px;
  --gut: 1rem;
}
@media (min-width: 640px) { :root { --gut: 2rem; } }

*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.5;
  background-color: hsl(var(--background)); color: hsl(var(--foreground));
  background-image: radial-gradient(rgba(26, 26, 27, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
}
::selection { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; }
:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: hsl(var(--highlight)); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 1100; background: hsl(var(--highlight)); color: hsl(var(--primary)); padding: .6rem 1rem; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.skip:focus { top: 8px; }
.ic { flex: none; vertical-align: -2px; }
.tabnum { font-variant-numeric: tabular-nums; }

.k { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .3em; color: hsl(var(--accent-text)); margin-bottom: .75rem; }
.k-line { display: flex; align-items: center; gap: .75rem; }
.k-line::before { content: ""; height: 1px; width: 3rem; background: hsl(var(--accent)); }
.lbl { font-family: var(--font-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .2em; color: hsl(var(--muted-foreground)); }
.mono-sm { font-family: var(--font-mono); font-size: .875rem; color: hsl(var(--muted-foreground)); }
.mono-link { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); display: inline-flex; align-items: center; gap: .5rem; }
.mono-link:hover { color: hsl(var(--accent-text)); }
.rule-bar { height: .25rem; background: hsl(var(--primary)); }
.rule-bar-accent { height: 1rem; background: hsl(var(--accent)); }

/* header: hidden until you scroll, as on the original */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: transform .3s; }
.js .site-header { transform: translateY(-100%); }
.js .site-header.show, .js .site-header:focus-within { transform: none; }
.bar { height: 3rem; display: flex; align-items: center; gap: 1.5rem; padding-inline: 1rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-bottom: 2px solid hsl(var(--accent)); }
@media (min-width: 640px) { .bar { padding-inline: 2rem; } }
.brand { font-family: var(--font-heading); font-weight: 900; letter-spacing: -.025em; font-size: .875rem; text-transform: uppercase; white-space: nowrap; }
.nav { display: none; gap: 1.4rem; font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .15em; }
@media (min-width: 820px) { .nav { display: flex; } }
.nav a { color: hsl(var(--primary-foreground) / .7); padding-block: .25rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: hsl(var(--highlight)); }
.nav a[aria-current="page"] { color: hsl(var(--primary-foreground)); border-color: hsl(var(--accent)); }
.search-btn { margin-left: auto; display: flex; align-items: center; gap: .5rem; background: none; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--primary-foreground) / .7); }
.search-btn:hover { color: hsl(var(--highlight)); }
.sb-text, .sb-kbd { display: none; }
@media (min-width: 640px) { .sb-text { display: inline; } }
@media (min-width: 768px) { .sb-kbd { display: inline-flex; align-items: center; gap: 2px; border: 1px solid currentColor; padding: 2px 6px; border-radius: 2px; opacity: .8; } }

/* hero */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.hero-wash { position: absolute; inset: 0; background: hsl(var(--background) / .85); }
.hero-noise { position: absolute; inset: 0; opacity: .4; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; width: 100%; padding-bottom: 4rem; padding-top: 6rem; }
.hero-title { font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .78; font-size: 22vw; }
@media (min-width: 640px) { .hero-title { font-size: 15vw; } }
@media (min-width: 1024px) { .hero-title { font-size: 12rem; } }
.hero-title .a { color: hsl(var(--accent)); }
.hero-lede { font-size: 1.125rem; color: hsl(var(--muted-foreground)); margin: 2rem 0 0; max-width: 36rem; line-height: 1.625; }
@media (min-width: 640px) { .hero-lede { font-size: 1.25rem; } }
.hero-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: 0; padding: .75rem 1.5rem; font-family: var(--font-heading); font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: hsl(var(--accent)); }
.u-link { font-family: var(--font-mono); font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.u-link:hover { color: hsl(var(--accent-text)); }

/* sections */
.section { padding-block: 5rem; }
.sec-head { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1rem; margin-bottom: 3rem; border-bottom: 2px solid hsl(var(--primary)); }
@media (min-width: 640px) { .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.sec-head h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; font-size: 2.25rem; line-height: 1.1; }
@media (min-width: 640px) { .sec-head h2 { font-size: 3rem; line-height: 1; } }
.sub-head { border-top: 4px solid hsl(var(--primary)); padding-top: 2rem; margin-top: 4rem; }
.sub-head .k { margin-bottom: 1.5rem; }

/* timeline bars */
.horizon { position: relative; height: 190px; margin: 0 0 3.2rem; }
.posts { position: absolute; inset: 0 0 20px 0; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: linear-gradient(hsl(var(--primary)) 0 4px, hsl(var(--accent)) 4px 20px); }
.ticks { position: absolute; left: 0; right: 0; top: calc(100% + 6px); height: 20px; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.tick { position: absolute; left: var(--x); transform: translateX(-50%); }
.tick:first-child { transform: none; }
.post { position: absolute; left: var(--x); bottom: 0; width: 24px; margin-left: -12px; height: calc(var(--h) * var(--s, 1)); display: block; }
.post-pole { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: hsl(var(--primary)); transform-origin: bottom; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); transition: background-color .15s; }
.post:hover .post-pole, .post:focus-visible .post-pole, .post.on .post-pole { background: hsl(var(--accent)); width: 8px; margin-left: -4px; }
.post:focus-visible { outline: none; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.readout { min-height: 2.8em; margin: 0 0 1rem; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.readout strong { color: hsl(var(--foreground)); font-weight: 500; }

/* case cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 3rem 2rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards > li[hidden] { display: none; }
.card { display: block; border-top: 2px solid hsl(var(--primary)); padding-top: 1rem; transition: background-color .15s; height: 100%; }
.card:hover { background: hsl(var(--secondary) / .4); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); margin-bottom: .75rem; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); margin-bottom: 1rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transition: filter .5s, transform .5s; }
.card:hover .card-img img { filter: none; transform: scale(1.05); }
.card-title { font-weight: 700; font-size: 1.5rem; line-height: 1.25; transition: color .15s; }
.card:hover .card-title { color: hsl(var(--accent-text)); }
.card-sum { font-size: .875rem; line-height: 1.625; color: hsl(var(--muted-foreground)); margin: .5rem 0 0; }
.badges { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: 1rem; }
.badge { font-family: var(--font-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .05em; padding: .125rem .5rem; border: 1px solid transparent; line-height: 1.5; }
.badge-solid { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge-status { border-color: hsl(var(--accent)); color: hsl(var(--accent-text)); }
.badge-cold { border-color: hsl(var(--highlight)); background: hsl(var(--highlight)); color: hsl(var(--primary)); }
.badge-exec { border-color: hsl(var(--destructive)); color: hsl(var(--destructive)); }

.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.ways h3 { font-family: var(--font-mono); font-size: .6875rem; font-weight: 400; text-transform: uppercase; letter-spacing: .2em; color: hsl(var(--muted-foreground)); border-bottom: 2px solid hsl(var(--primary)); padding-bottom: .5rem; margin-bottom: .75rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .25rem 0; }
.plain a:hover { color: hsl(var(--accent-text)); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.count { font-family: var(--font-mono); font-size: .75rem; color: hsl(var(--muted-foreground)); margin-left: .35rem; }

/* page headers */
.page-head { padding-top: 5rem; padding-bottom: 2rem; }
.back { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }
.back:hover { color: hsl(var(--accent-text)); }
.page-head h1, .d-head h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; font-size: 3rem; }
@media (min-width: 640px) { .page-head h1 { font-size: 4.5rem; } }
.lede { font-size: 1.125rem; color: hsl(var(--muted-foreground)); margin: 1.25rem 0 0; max-width: 42rem; line-height: 1.625; }
.lede p { margin: 0 0 1em; }
.stats { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }
.crumbs a:hover { color: hsl(var(--accent-text)); }
.crumbs .sl { color: hsl(var(--accent-text)); }

/* archive filters */
.filters { display: grid; gap: 1.25rem; padding-block: 2rem 1.25rem; }
.f-search { display: flex; align-items: center; gap: .75rem; border: 2px solid hsl(var(--primary)); background: hsl(var(--card)); padding: .75rem 1rem; max-width: 36rem; }
.f-search svg { color: hsl(var(--accent-text)); }
.f-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: inherit; font-size: 1.125rem; color: hsl(var(--foreground)); }
.f-group { border-block: 2px solid hsl(var(--primary)); padding-block: 1rem; margin-bottom: -2px; }
.f-group .lbl { margin-bottom: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-btn, .chip { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .75rem; border: 1px solid hsl(var(--border)); background: transparent; color: hsl(var(--foreground)); cursor: pointer; transition: border-color .15s, color .15s; display: inline-flex; align-items: center; gap: .5rem; }
.chip-btn:hover, .chip:hover { border-color: hsl(var(--accent)); color: hsl(var(--accent-text)); }
.chip-btn[aria-pressed="true"] { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.chip .n { color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.tag-banner { border: 2px solid hsl(var(--accent)); background: hsl(var(--secondary)); padding: .75rem 1rem; display: flex; align-items: center; gap: .75rem; font-family: var(--font-mono); font-size: .875rem; }
.tag-banner[hidden] { display: none; }
.tag-banner button { margin-left: auto; background: none; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.tag-banner button:hover { color: hsl(var(--accent-text)); }
.view-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.5rem; }
.seg { display: inline-flex; }
.seg button { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; padding: .5rem 1rem; border: 2px solid hsl(var(--primary)); background: transparent; cursor: pointer; }
.seg button + button { border-left: 0; }
.seg button[aria-pressed="true"] { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.empty { font-family: var(--font-mono); font-size: .875rem; color: hsl(var(--muted-foreground)); padding: 3rem 0; text-transform: uppercase; letter-spacing: .1em; }
.empty[hidden], [hidden] { display: none !important; }
.map-panel { border: 2px solid hsl(var(--primary)); background: hsl(var(--card)); }
.map-bar { padding: .75rem 1rem; border-bottom: 2px solid hsl(var(--primary)); display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; }
.map-bar svg { color: hsl(var(--accent-text)); }
.map-bar .r { margin-left: auto; font-size: .6875rem; letter-spacing: normal; color: hsl(var(--muted-foreground)); text-transform: none; }
.map { height: 460px; width: 100%; background: #e8e6df; }
.leaflet-tile-pane { filter: grayscale(1) contrast(1.05); }
.leaflet-popup-content { font-family: var(--font-heading); margin: 12px 14px; }
.pop-d { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #737373; }
.pop-t { font-weight: 700; font-size: 14px; color: #171717; display: block; margin: 2px 0; }
.pop-t:hover { color: #c2410c; }
.pop-l { font-size: 12px; color: #525252; }
.pop-m { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #737373; margin-top: 4px; }

/* dossier */
.d-head { padding-top: 5rem; padding-bottom: 2.5rem; }
.d-head h1 { font-size: 3rem; max-width: 56rem; }
@media (min-width: 640px) { .d-head h1 { font-size: 4.5rem; } }
@media (min-width: 1024px) { .d-head h1 { font-size: 6rem; } }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .2em; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.d-meta .sl, .d-by .sl { color: hsl(var(--accent-text)); }
.d-bar { height: .25rem; width: 6rem; background: hsl(var(--accent)); margin-top: 2rem; }
.d-by { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-family: var(--font-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .2em; color: hsl(var(--muted-foreground)); margin-top: 1rem; }
.d-by a { color: hsl(var(--foreground)); text-decoration: underline; text-decoration-color: hsl(var(--accent)); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.d-by a:hover { color: hsl(var(--accent-text)); }
.d-by b { font-weight: 400; color: hsl(var(--foreground)); }
.hero-fig { margin: 0 0 3rem; }
.hero-fig .frame { aspect-ratio: 21 / 9; overflow: hidden; border: 2px solid hsl(var(--primary)); background: hsl(var(--secondary)); }
.hero-fig img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.hero-fig figcaption { font-family: var(--font-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); margin-top: .5rem; }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 1024px) { .d-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.d-article { min-width: 0; max-width: 48rem; }
.file { background: hsl(var(--card)); border: 2px solid hsl(var(--primary)); align-self: start; }
@media (min-width: 1024px) { .file { position: sticky; top: 5rem; } }
.file-bar { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); padding: .5rem 1rem; font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .2em; display: flex; justify-content: space-between; }
.file-bar span:last-child { color: hsl(var(--highlight)); }
.file-body { padding-inline: 1rem; }
.file-row { border-top: 1px solid hsl(var(--border)); padding-block: .75rem; }
.file-row:first-child { border-top: 0; }
.file-row .lbl { display: flex; align-items: center; gap: .5rem; letter-spacing: .18em; margin-bottom: .25rem; }
.file-row .v { font-family: var(--font-heading); font-weight: 600; }
.file-row .v a { text-decoration: underline; text-decoration-color: hsl(var(--accent)); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.file-row .v a:hover { color: hsl(var(--accent-text)); }
.file-row .chips { gap: .375rem; }
.file-row .chip { font-size: .6875rem; padding: .125rem .375rem; background: hsl(var(--secondary)); }
.file-status { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .875rem; color: hsl(var(--accent-text)); }
.file-status.cold { color: hsl(var(--primary)); background: hsl(var(--highlight)); padding: 0 .4rem; }
.file-status.exec { color: hsl(var(--destructive)); }
.people-box, .related { margin-top: 4rem; padding-top: 2rem; border-top: 4px solid hsl(var(--primary)); }
.people-box .k { margin-bottom: 1rem; }
.related .k { margin-bottom: 1.5rem; }
.rel-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .rel-grid { grid-template-columns: repeat(3, 1fr); } }
.rel-grid a { display: block; }
.rel-grid .card-img { margin-bottom: .75rem; }
.rel-grid a:hover .card-img img { filter: none; transform: none; }
.rel-grid .rt { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; line-height: 1.25; transition: color .15s; }
.rel-grid a:hover .rt { color: hsl(var(--accent-text)); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; }
.pn a { display: block; border-top: 2px solid hsl(var(--primary)); padding-top: .75rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.pn a:hover { color: hsl(var(--accent-text)); }
.pn a span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .625rem; text-transform: uppercase; letter-spacing: .2em; color: hsl(var(--muted-foreground)); margin-bottom: .25rem; }
.pn-next { text-align: right; }
@media (max-width: 560px) { .pn { grid-template-columns: 1fr; } .pn-next { text-align: left; } }
.notice { border: 2px dashed hsl(var(--primary)); padding: 1rem 1.25rem; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }

/* markdown body (matches the original MarkdownBody) */
.prose { min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 1.25rem; }
@media (min-width: 640px) { .prose p, .prose li { font-size: 1.125rem; } }
.prose h2 { font-weight: 900; font-size: 1.875rem; letter-spacing: -.025em; line-height: 1.15; margin: 3rem 0 1rem; padding-bottom: .5rem; border-bottom: 4px solid hsl(var(--primary)); }
@media (min-width: 640px) { .prose h2 { font-size: 2.25rem; } }
.prose h3 { font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .025em; color: hsl(var(--accent-text)); margin: 2rem 0 .75rem; }
.prose h4 { font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .025em; margin: 1.5rem 0 .5rem; }
.prose strong { font-weight: 700; color: hsl(var(--primary)); }
.prose em { font-style: normal; color: hsl(var(--muted-foreground)); }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.prose ul li { position: relative; padding-left: 1.25rem; margin-bottom: .375rem; font-size: 1.0625rem; line-height: 1.7; }
.prose ul li::before { content: "\2014"; position: absolute; left: 0; color: hsl(var(--accent-text)); font-family: var(--font-mono); }
.prose ol { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.prose ol li { margin-bottom: .375rem; font-size: 1.0625rem; line-height: 1.7; }
.prose ol li::marker { color: hsl(var(--accent-text)); font-family: var(--font-mono); }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 4px solid hsl(var(--accent)); font-style: italic; color: hsl(var(--muted-foreground)); }
.prose blockquote p { font-size: 1.0625rem; margin-bottom: .75rem; }
.prose a { color: hsl(var(--accent-text)); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.prose a:hover { color: hsl(var(--primary)); }
.prose img { display: block; width: 100%; max-width: 42rem; filter: grayscale(1); border: 1px solid hsl(var(--border)); background: hsl(var(--secondary)); }
.inline-fig { margin: 1.5rem 0; }
.inline-fig figcaption, .prose .caption { font-family: var(--font-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); margin: .25rem 0 1.5rem; }
.inline-fig figcaption { margin: .25rem 0 0; }
.prose sup { color: hsl(var(--accent-text)); font-family: var(--font-mono); font-size: .7em; }
.prose hr { border: 0; border-top: 2px solid hsl(var(--primary)); margin: 2rem 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .875rem; border: 1px solid hsl(var(--border)); }
.prose thead { background: hsl(var(--secondary)); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .05em; }
.prose th, .prose td { border: 1px solid hsl(var(--border)); padding: .5rem .75rem; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; }

/* people */
.cards-4 .card-img { aspect-ratio: 4 / 5; }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: hsl(var(--muted-foreground)); opacity: .4; }
.role-badge { border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.p-head { padding-bottom: 2.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .p-head { grid-template-columns: 320px 1fr; } }
.p-head .portrait { aspect-ratio: 4 / 5; overflow: hidden; border: 2px solid hsl(var(--primary)); background: hsl(var(--secondary)); }
.p-head .portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); display: block; }
.p-head h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; font-size: 3rem; }
@media (min-width: 640px) { .p-head h1 { font-size: 4.5rem; } }
.aka { font-family: var(--font-mono); font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--muted-foreground)); margin: 1rem 0 0; }
.p-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; font-family: var(--font-mono); font-size: .875rem; color: hsl(var(--muted-foreground)); }
.p-bio { margin-top: 2rem; max-width: 42rem; }
.conn { list-style: none; margin: 0; padding: 0; }
.conn li { border-top: 1px solid hsl(var(--border)); padding: .75rem 0; }
.conn .note { display: block; font-size: .875rem; color: hsl(var(--muted-foreground)); }

/* county timeline */
.tl-scroll { overflow-x: auto; padding-bottom: .5rem; }
.tl { min-width: 780px; }
.tl-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: end; border-top: 1px solid hsl(var(--border)); }
.tl-label { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; padding-bottom: .6rem; }
.tl-label a:hover { color: hsl(var(--accent-text)); }
.tl-axis { border-top: 0; align-items: start; }
.tl .horizon { margin: 0; }
.horizon-row { height: 84px; --s: .58; }
.horizon-row .posts { bottom: 6px; }
.horizon-row .ground { height: 6px; background: hsl(var(--primary)); }
.horizon-axis { height: 30px; }
.horizon-axis .ground, .horizon-axis .posts { display: none; }
.horizon-axis .ticks { top: 0; }
.tl .readout { margin-top: 1.5rem; }

/* prose pages + forms */
.prose-page { padding-top: 6rem; padding-bottom: 4rem; }
.prose-page > .in { max-width: 48rem; }
.prose-page h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; line-height: 1; font-size: 2.25rem; }
@media (min-width: 640px) { .prose-page h1 { font-size: 3rem; } }
.bar-short { margin-top: 1.5rem; height: .25rem; width: 4rem; background: hsl(var(--accent)); }
.pp { margin-top: 2.5rem; font-size: .9375rem; line-height: 1.625; }
.pp p { margin: 0 0 1.5rem; } .pp ul { padding-left: 1.2rem; margin: 0 0 1.5rem; } .pp li { margin-bottom: .5rem; }
.pp a { color: hsl(var(--accent-text)); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.pp a:hover { color: hsl(var(--primary)); }
.pp h2 { font-weight: 700; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .025em; border-top: 2px solid hsl(var(--primary)); padding-top: 1.5rem; margin: 3rem 0 .75rem; }
.pp-end { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.mail-line { margin-top: 2rem; display: flex; align-items: center; gap: .75rem; border-left: 2px solid hsl(var(--accent)); padding-left: 1rem; font-family: var(--font-mono); font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; }
.mail-line:hover { color: hsl(var(--accent-text)); }
.contact-form { margin-top: 3rem; display: grid; gap: 1.25rem; }
.field label { display: block; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); margin-bottom: .5rem; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 2px solid hsl(var(--border)); border-radius: 0; outline: none; padding: .5rem 0; font: inherit; font-size: .9375rem; color: hsl(var(--foreground)); }
.field select { cursor: pointer; }
.field textarea { resize: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: hsl(var(--accent)); }
.send { justify-self: start; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; padding: .75rem 1.5rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: 0; cursor: pointer; transition: background-color .15s; }
.send:hover { background: hsl(var(--accent)); }
.form-status { margin: 0; min-height: 1.5em; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--accent-text)); }
.form-status a { text-decoration: underline; }
.nf { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1rem 2rem; }
.nf h1 { font-weight: 900; text-transform: uppercase; font-size: 3rem; margin-bottom: 1rem; }
.nf .btn { margin-top: 1rem; }

/* search dialog */
.search { padding: 0; border: 2px solid hsl(var(--primary)); background: hsl(var(--background)); color: hsl(var(--foreground)); width: min(42rem, calc(100vw - 2rem)); max-width: none; margin: 12vh auto 0; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }
.search::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.s-top { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 2px solid hsl(var(--primary)); }
.s-top svg { color: hsl(var(--accent-text)); }
.s-top input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font: inherit; font-size: 1.125rem; color: hsl(var(--foreground)); }
.s-top kbd { font-family: var(--font-mono); font-size: .75rem; color: hsl(var(--muted-foreground)); background: none; border: 0; cursor: pointer; padding: 0; }
.s-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .5rem 1.25rem; border-bottom: 1px solid hsl(var(--border)); font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.s-links a:hover { color: hsl(var(--accent-text)); }
.search-results { list-style: none; margin: 0; padding: 0; max-height: 55vh; overflow-y: auto; }
.search-results li + li { border-top: 1px solid hsl(var(--border)); }
.search-results a { display: block; padding: .75rem 1.25rem; }
.search-results a:hover, .search-results a:focus-visible { background: hsl(var(--secondary)); outline: none; }
.r-top { display: flex; align-items: baseline; gap: .75rem; }
.r-d { font-family: var(--font-mono); font-size: .75rem; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.r-t { font-family: var(--font-heading); font-weight: 700; }
.search-results a:hover .r-t { color: hsl(var(--accent-text)); }
.r-k { margin-left: auto; font-family: var(--font-mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--muted-foreground)); }
.r-s { font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--muted-foreground)); margin-top: .25rem; }
.s-none { padding: 2rem 1.25rem; text-align: center; font-family: var(--font-mono); font-size: .875rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; }

/* footer */
.site-footer { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); margin-top: 6rem; }
.foot-bar { height: .25rem; background: hsl(var(--accent)); }
.foot { padding-block: 4rem; }
.foot-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1fr 2fr; } }
.foot-name { font-family: var(--font-heading); font-weight: 900; font-size: 1.875rem; text-transform: uppercase; letter-spacing: -.025em; line-height: 1; margin: 0; }
.foot-blurb { color: hsl(var(--primary-foreground) / .6); font-size: .875rem; line-height: 1.625; max-width: 20rem; margin: 1rem 0 0; }
.foot-tax { font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .2em; color: hsl(var(--accent)); margin-bottom: 1rem; }
.foot .chip { font-size: .75rem; color: hsl(var(--primary-foreground) / .7); border-color: hsl(var(--primary-foreground) / .2); padding: .25rem .5rem; }
.foot .chip:hover { color: hsl(var(--highlight)); border-color: hsl(var(--primary-foreground) / .2); }
.foot-links { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--primary-foreground) / .7); }
.foot-links a:hover { color: hsl(var(--highlight)); }
.foot-end { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--primary-foreground) / .2); display: flex; flex-direction: column; gap: .75rem; font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--primary-foreground) / .4); }
@media (min-width: 640px) { .foot-end { flex-direction: row; justify-content: space-between; } }

@media (max-width: 560px) { .tick:nth-child(even) { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .post-pole { animation: none; } .card-img img { transition: none; } }
@media print { .site-header, .site-footer, .filters, .file, .pn, .hero-cta { display: none; } body { background: #fff; } .d-grid { display: block; } }
.file-row .chip { text-decoration: none !important; }
