:root {
  --ink: #161512;
  --paper: #f4f0e6;
  --paper-deep: #e7dfcf;
  --red: #7d1b18;
  --red-bright: #b62a22;
  --gold: #c89b4b;
  --line: rgba(22, 21, 18, .16);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; }
button, input { font: inherit; }
a { color: inherit; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .18; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { min-height: 84px; padding: 16px clamp(22px, 5vw, 76px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; width: fit-content; }
.brand-seal { display: grid; place-items: center; width: 42px; aspect-ratio: 1; color: var(--paper); background: var(--red); font-family: var(--serif); font-weight: 900; font-size: 1.3rem; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .08em; }
.brand small { display: block; font-size: .62rem; letter-spacing: .18em; color: #625d53; }
nav { display: flex; gap: 36px; }
nav a { text-decoration: none; font-size: .9rem; font-weight: 600; }
nav a:hover { color: var(--red); }
.mode-toggle { justify-self: end; border: 1px solid var(--ink); background: transparent; min-height: 42px; padding: 0 16px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.mode-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.header-count { justify-self: end; display: flex; gap: 10px; align-items: center; text-decoration: none; }
.header-count strong { font-family: var(--serif); color: var(--red); font-size: 1.8rem; line-height: 1; }
.header-count span { color: #6b655b; font-size: .68rem; line-height: 1.35; }
.hero { min-height: 690px; display: grid; grid-template-columns: 1.15fr .85fr; border-bottom: 1px solid var(--line); }
.hero-copy { padding: clamp(62px, 8vw, 110px) clamp(24px, 7vw, 110px); border-right: 1px solid var(--line); }
.eyebrow { margin: 0 0 20px; color: var(--red); text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 800; }
h1, h2 { font-family: var(--serif); }
h1 { margin: 0; font-size: clamp(3.2rem, 6.6vw, 7.2rem); line-height: 1.02; letter-spacing: -.06em; font-weight: 900; }
h1 em { color: var(--red); font-style: normal; }
.hero-lead { max-width: 720px; margin: 30px 0; font-size: 1.08rem; line-height: 1.9; color: #514c43; }
.child-copy { display: none; }
.search-shell { max-width: 690px; height: 64px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: 0 18px; background: white; border: 1px solid rgba(22,21,18,.28); box-shadow: 8px 8px 0 var(--red); }
.search-shell > span { font-size: 1.7rem; transform: rotate(-20deg); }
.search-shell input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 1rem; }
kbd { border: 1px solid var(--line); padding: 4px 7px; color: #777167; background: var(--paper); font-family: var(--sans); font-size: .72rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: #6a645b; font-size: .78rem; }
.hero-meta strong { color: var(--ink); margin-right: 3px; }
.featured { position: relative; min-height: 600px; overflow: hidden; color: var(--paper); background: var(--red); padding: 40px clamp(28px, 4vw, 62px); display: flex; flex-direction: column; justify-content: space-between; }
.featured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, transparent 42%, rgba(255,255,255,.07)); }
.featured-label { margin: 0; font-size: .72rem; letter-spacing: .16em; position: relative; z-index: 2; }
.featured-label small { display: block; margin-top: 7px; font-size: .64rem; font-weight: 400; letter-spacing: .08em; opacity: .74; }
.featured-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; filter: saturate(.92) contrast(1.03); opacity: .76; mix-blend-mode: normal; }
.featured-photo.is-deceased { filter: grayscale(1) contrast(1.04); opacity: .62; mix-blend-mode: luminosity; }
.featured::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(125,27,24,.08), rgba(125,27,24,.28) 45%, rgba(70,12,10,.96) 100%); }
.orbit { position: absolute; border: 1px solid rgba(242,209,138,.28); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 78%; aspect-ratio: 1; right: -12%; top: 11%; }
.orbit-two { width: 110%; height: 38%; right: -26%; top: 31%; }
.featured-body { position: relative; z-index: 2; }
.featured-body > span { color: #eac98f; font-size: .8rem; letter-spacing: .1em; }
.featured h2 { font-size: clamp(3rem, 6vw, 5.5rem); margin: 10px 0 14px; letter-spacing: -.05em; }
.featured p { max-width: 390px; line-height: 1.7; }
.featured-cta { display: inline-block; border-bottom: 1px solid rgba(255,255,255,.6); color: white; padding: 12px 0; text-decoration: none; }
.featured-cta span { margin-left: 40px; }
.people-section, .standards { padding: 100px clamp(22px, 5vw, 76px); }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; margin-bottom: 48px; }
.section-heading h2, .about-section h2, .standards h2 { font-size: clamp(2.3rem, 4.2vw, 4.7rem); line-height: 1.15; margin: 0; letter-spacing: -.04em; }
.section-heading > p { max-width: 610px; margin: 0; color: #5f594f; line-height: 1.9; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding: 28px 0; }
.filter-btn { min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: #5c564d; background: transparent; cursor: pointer; }
.filter-btn:hover, .filter-btn.active { color: white; background: var(--red); border-color: var(--red); }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.person-card { min-height: 520px; padding: 0; border: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: inherit; text-align: left; text-decoration: none; background: transparent; display: grid; grid-template-rows: 300px 1fr; cursor: pointer; position: relative; overflow: hidden; transition: color .25s, background .25s; }
.person-card:hover, .person-card:focus-visible { color: white; background: var(--red); outline: none; }
.portrait-wrap { position: relative; display: block; overflow: hidden; background: #cfc6b5; }
.portrait-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22,21,18,.2)); }
.portrait-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 22%; filter: saturate(.94) contrast(1.03); transition: transform .45s, filter .3s; }
.portrait-wrap img.is-deceased { filter: grayscale(1) sepia(.12) contrast(1.06); }
.person-card:hover img, .person-card:focus-visible img { transform: scale(1.035); filter: saturate(1.03) contrast(1.03); }
.person-card:hover img.is-deceased, .person-card:focus-visible img.is-deceased { filter: grayscale(1) sepia(.08) contrast(1.03); }
.portrait-no { position: absolute; z-index: 2; right: 14px; bottom: 12px; color: white; font-family: var(--serif); font-size: .78rem; }
.card-copy { display: flex; min-height: 220px; flex-direction: column; padding: 22px 24px 24px; }
.card-top { display: flex; justify-content: space-between; color: #716a60; font-size: .72rem; letter-spacing: .08em; }
.person-card:hover .card-top { color: #e7c98e; }
.person-card h3 { margin: 22px 0 4px; font-family: var(--serif); font-size: 2.2rem; }
.person-card .years { color: #726b62; font-size: .76rem; }
.person-card:hover .years { color: #ecd7b2; }
.person-card p { margin: auto 0 0; padding-top: 18px; line-height: 1.65; font-size: .9rem; position: relative; z-index: 1; }
.empty-state { padding: 80px 20px; text-align: center; border: 1px solid var(--line); }
.empty-state span { font-family: var(--serif); font-size: 2rem; }
.fields-section { padding: 100px clamp(22px, 5vw, 76px); border-top: 1px solid var(--line); }
.field-directory { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.field-directory > a { min-height: 270px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: color .25s, background .25s; }
.field-directory > a:hover { color: var(--paper); background: var(--red); }
.field-directory span { color: #736c62; font-size: .72rem; letter-spacing: .08em; }
.field-directory > a:hover span { color: #e7c98e; }
.field-directory h3 { margin: 24px 0 12px; font-family: var(--serif); font-size: 2rem; }
.field-directory p { margin: 0; color: #635d53; line-height: 1.75; font-size: .88rem; }
.field-directory > a:hover p { color: #eadfca; }
.field-directory strong { margin-top: auto; padding-top: 24px; color: var(--red); font-size: .8rem; }
.field-directory > a:hover strong { color: #f2d18a; }
.timeline-section { color: var(--paper); background: var(--ink); padding: 100px clamp(22px, 5vw, 76px); }
.inverse .eyebrow { color: #d7ad62; }
.inverse > p { color: #bcb4a6; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; }
.timeline article { min-height: 280px; padding: 32px; border-top: 1px solid #736650; border-right: 1px solid #4d483f; position: relative; }
.timeline article::before { content: ""; position: absolute; width: 10px; height: 10px; background: var(--gold); top: -5px; left: 0; border-radius: 50%; }
.timeline time { color: #d7ad62; font-size: .8rem; }
.timeline strong { display: block; margin: 50px 0 16px; font-family: var(--serif); font-size: 1.5rem; }
.timeline p { color: #bcb4a6; line-height: 1.8; font-size: .9rem; }
.about-section { display: grid; grid-template-columns: .25fr .8fr .95fr; gap: 60px; padding: 110px clamp(22px, 5vw, 76px); border-bottom: 1px solid var(--line); align-items: start; }
.manifesto-number { font-family: var(--serif); font-size: 5rem; color: var(--red); line-height: 1; }
.manifesto-copy { border-left: 1px solid var(--line); padding-left: 50px; color: #514c43; line-height: 1.95; }
.manifesto-copy p:first-child { margin-top: 0; }
.standards > h2 { max-width: 900px; }
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; border-top: 1px solid var(--line); }
.standards-grid article { padding: 32px 42px 20px 0; }
.standards-grid span { color: var(--red); font-family: var(--serif); }
.standards-grid h3 { font-family: var(--serif); font-size: 1.4rem; margin: 24px 0 12px; }
.standards-grid p { color: #635d53; line-height: 1.8; }
.standards-link { display: inline-block; margin-top: 34px; color: var(--red); font-weight: 800; text-underline-offset: 4px; }
footer { padding: 50px clamp(22px, 5vw, 76px); background: #dcd3c1; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 30px; }
footer p { margin: 0; color: #645e54; font-size: .8rem; line-height: 1.8; }
footer > a { font-size: .82rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: .82rem; }
.footer-contact { display: block; margin-top: 8px; }
.footer-contact a { color: var(--red); font-weight: 700; text-underline-offset: 3px; }
dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(13,12,10,.82); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 4; right: 18px; top: 14px; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%; color: var(--ink); background: transparent; font-size: 1.5rem; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: .4fr .6fr; min-height: 620px; }
.dialog-portrait { background: var(--red); color: white; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 0; position: relative; }
.dialog-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(50,8,7,.82)); }
.dialog-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.95) contrast(1.03); }
.dialog-portrait img.is-deceased { filter: grayscale(1) contrast(1.05); }
.dialog-portrait small { color: #e6c781; }
.dialog-portrait small { position: relative; z-index: 2; margin: auto 30px 28px; }
.dialog-content { padding: 64px clamp(30px, 6vw, 76px) 36px; overflow-y: auto; }
.dialog-kicker { color: var(--red); font-size: .78rem; letter-spacing: .12em; }
.dialog-content h2 { margin: 10px 0 0; font-size: clamp(3rem, 6vw, 5.7rem); }
.dialog-years { color: #777067; }
blockquote { margin: 36px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.5rem; line-height: 1.65; }
.dialog-story h3 { margin-top: 36px; font-size: 1rem; }
.dialog-story p { color: #4f4a42; line-height: 1.95; }
.dialog-foot { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; }
.dialog-foot a { color: var(--red); font-weight: 700; }
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; }
  .featured { min-height: 520px; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .field-directory { grid-template-columns: repeat(2, 1fr); }
  .about-section { grid-template-columns: .2fr 1fr; }
  .manifesto-copy { grid-column: 2; }
}
@media (max-width: 680px) {
  .site-header { min-height: 72px; padding: 12px 18px; }
  .brand-seal { width: 38px; }
  .brand strong { font-size: 1.05rem; }
  .header-count span { display: none; }
  .hero-copy { padding: 60px 22px 70px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .search-shell { box-shadow: 5px 5px 0 var(--red); }
  .hero-meta { flex-direction: column; gap: 8px; }
  .featured { min-height: 480px; }
  .people-section, .fields-section, .standards, .timeline-section { padding: 76px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .people-grid { grid-template-columns: 1fr; }
  .field-directory { grid-template-columns: 1fr; }
  .person-card { min-height: 500px; grid-template-rows: 300px 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline article { min-height: auto; border-right: 0; padding: 30px 0 36px 20px; }
  .timeline strong { margin-top: 26px; }
  .about-section { grid-template-columns: 1fr; padding: 76px 20px; gap: 30px; }
  .manifesto-copy { grid-column: 1; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .standards-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; align-items: start; }
  .footer-links { align-items: flex-start; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-portrait { min-height: 340px; }
  .dialog-content { padding-top: 40px; }
  .dialog-close { color: white; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
