@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Zilla+Slab:wght@500;700&display=swap');

:root {
  --bg: #fafafa;
  --ink: #1a1a1a;
  --muted: #555555;
  --faint: #858585;
  --rule: #d8d6ce;
  --gold: #d4a800;
  --gold-tint: #f6ecc6;
  --accent: #8b1a1a;
  --max-width: 680px;
  --wide-width: 56rem;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --slab: 'Zilla Slab', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  font-feature-settings: 'kern', 'liga';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.wrap {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Masthead */
.masthead {
  position: relative;
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0;
  margin-bottom: 4rem;
}

.lang-tabs {
  position: absolute;
  top: 100%;
  left: 2rem;
  display: flex;
  gap: 0;
  z-index: 10;
}

.lang-tabs a {
  display: block;
  padding: 0.45rem 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-top: none;
  border-radius: 0 0 4px 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lang-tabs a.active {
  background: var(--bg);
  color: var(--muted);
  border-color: var(--rule);
}

.lang-tabs a:not(.active) {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.lang-tabs a:not(.active):hover {
  background: var(--ink);
  border-color: var(--ink);
}

.masthead-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-weight: 400;
  letter-spacing: 0.03em;
}

.site-title a {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
}

nav.primary ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
  flex-wrap: wrap;
}

nav.primary li { margin: 0; }

nav.primary a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
}

nav.primary a:hover,
nav.primary a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* Headings */
h1 {
  font-family: var(--slab);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  font-size: 2.4rem;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.page-kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
  display: block;
}

.page-lede {
  font-family: var(--sans);
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  margin: 0 0 4.5rem;
  max-width: 34rem;
  line-height: 1.5;
}

h2 {
  font-size: 1.35rem;
  margin: 4.5rem 0 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.05rem;
  margin: 2.5rem 0 0.6rem;
}

h4 {
  font-size: 0.78rem;
  margin: 2rem 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

/* Body */
p, ul, ol { margin: 0 0 1.35rem; }

p { hyphens: auto; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--rule);
}

a:hover {
  text-decoration-color: var(--gold);
}

strong { font-weight: 700; }
em { font-style: italic; }

blockquote {
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--muted);
}

blockquote p:last-child { margin-bottom: 0; }

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--faint);
}

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.55rem; }

/* Landing */
.landing {
  min-height: 70vh;
  padding: 4rem 1.5rem 5rem;
  max-width: 42rem;
  margin: 0 auto;
}

.landing .epigraph {
  margin: 0 0 2.5rem;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--accent);
  max-width: 34rem;
}

.landing .epigraph p {
  font-size: 1.15rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.landing .epigraph cite {
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--muted);
}

.landing .thesis {
  font-size: 1.3rem;
  line-height: 1.55;
  margin: 0 0 3.5rem;
}

.landing .name-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 3.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
  max-width: 32rem;
  line-height: 1.65;
}

.landing .name-block {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 2.5rem 0 3rem;
  max-width: 42rem;
}

.landing .name-block .name-note {
  flex: 1 1 auto;
  margin: 0;
  border-top: none;
  padding-top: 0;
  max-width: none;
}

.landing .name-block .film-thumb {
  flex: 0 0 220px;
  margin: 0;
  max-width: 220px;
}

.landing .name-block .film-thumb a {
  max-width: 220px;
}

.landing .name-block .film-thumb figcaption {
  white-space: normal;
}

@media (max-width: 40rem) {
  .landing .name-block {
    flex-direction: column;
    align-items: center;
  }
  .landing .name-block .film-thumb {
    flex: 0 0 auto;
    margin: 1rem auto 0;
  }
}

.film-thumb {
  margin: 1.5rem 0 1rem;
  padding: 0;
  text-align: center;
}

.film-thumb a {
  display: block;
  text-decoration: none;
  border: none;
  max-width: 320px;
  margin: 0 auto;
}

.film-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.film-thumb figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(26, 26, 26, 0.6);
  font-style: italic;
  text-align: center;
  white-space: nowrap;
}

.portrait-right {
  float: right;
  width: 140px;
  margin: 0.35rem 0 1rem 1.5rem;
  padding: 0;
}

.portrait-right img {
  display: block;
  width: 100%;
  height: auto;
}

.portrait-right figcaption {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(26, 26, 26, 0.6);
  font-style: italic;
  text-align: center;
}

@media (max-width: 34rem) {
  .portrait-right {
    float: none;
    margin: 1rem auto;
    width: 160px;
  }
}

@media (max-width: 40rem) {
  .film-thumb figcaption { white-space: normal; }
}

.landing-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.landing-nav li {
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.landing-nav a {
  display: block;
  padding: 1.4rem 0;
  text-decoration: none;
  color: var(--ink);
}

.landing-nav a:hover .num { color: var(--gold); }

.landing-nav .num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--faint);
  display: inline-block;
  width: 2.5rem;
  letter-spacing: 0.1em;
}

.landing-nav .title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 0.85rem;
}

.landing-nav .desc {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 3rem 0;
}

.timeline li {
  padding: 2.25rem 0 2.25rem 7.5rem;
  border-top: 1px solid var(--rule);
  position: relative;
  margin: 0;
}

.timeline li:last-child {
  border-bottom: 1px solid var(--rule);
}

.timeline .date {
  position: absolute;
  left: 0;
  top: 2.4rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  width: 6.5rem;
}

.timeline .entry-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.timeline p {
  margin: 0.5rem 0;
  font-size: 0.96rem;
}

.timeline .src {
  font-size: 0.82rem;
  color: var(--faint);
  margin-top: 0.85rem;
  display: block;
  font-style: italic;
}

.timeline .src a { color: var(--faint); }
.timeline .src a:hover { text-decoration-color: var(--gold); }

/* Governance definition list */
dl.governance {
  margin: 2rem 0 3rem;
  padding: 0;
}

dl.governance dt {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

dl.governance dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

dl.governance dd {
  margin: 0.6rem 0 0;
  padding: 0;
}

/* Stages */
.stage {
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
  margin-top: 4rem;
}

.stage:first-of-type { margin-top: 2.5rem; }

.stage-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.stage h2 {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
}

.stage .mechanism {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.stage .evidence {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.95rem;
}

.stage .evidence h4 { margin-top: 0; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0.6rem 0;
}

hr + hr { margin-top: 0; }

/* Incidents table */
table.incidents {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0 2.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

table.incidents thead th {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.75rem 0.6rem 0;
  border-bottom: 2px solid var(--ink);
}

table.incidents tbody th,
table.incidents tbody td {
  vertical-align: top;
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

table.incidents tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  width: 11rem;
}

table.incidents tbody td:nth-child(2) {
  white-space: nowrap;
  color: var(--muted);
  width: 10rem;
}

table.incidents tbody td:last-child { padding-right: 0; }

@media (max-width: 40rem) {
  table.incidents,
  table.incidents thead,
  table.incidents tbody,
  table.incidents tr,
  table.incidents th,
  table.incidents td {
    display: block;
    width: auto;
  }
  table.incidents thead { display: none; }
  table.incidents tbody tr {
    border-bottom: 1px solid var(--rule);
    padding: 0.85rem 0;
  }
  table.incidents tbody th,
  table.incidents tbody td {
    padding: 0.1rem 0;
    border: none;
    white-space: normal;
    width: auto;
  }
  table.incidents tbody th { font-size: 1rem; }
  table.incidents tbody td:nth-child(2) { font-size: 0.82rem; }
}

/* Two-column contrast */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  margin: 3rem 0;
}

@media (min-width: 46rem) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.two-col section {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}

.two-col.contrast section:nth-child(2) {
  border-top-color: var(--accent);
}

.two-col h3 {
  margin-top: 0;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.two-col ul { padding-left: 1.1rem; }
.two-col li { font-size: 0.93rem; margin-bottom: 0.75rem; line-height: 1.6; }

.two-col.contrast section:nth-child(2) ul {
  list-style: none;
  padding-left: 0;
}

.two-col.contrast section:nth-child(2) li {
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* Sources */
.sources h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4rem;
}

.ref-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2.5rem;
}

.ref-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.ref-list li:first-child { border-top: 1px solid var(--rule); }

.ref-list .meta {
  color: var(--faint);
  font-size: 0.82rem;
  display: block;
  margin-top: 0.4rem;
  font-style: italic;
}

/* Placeholder markers */
.todo {
  display: block;
  background: var(--gold-tint);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: #5a4300;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.todo::before {
  content: "Draft note: ";
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #7a5a00;
  font-weight: 700;
  margin-right: 0.3rem;
}

/* Pull quote */
.pullquote {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--accent);
  margin: 3rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--accent);
  font-style: normal;
}

.pullquote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 1rem;
  font-weight: 400;
}

/* Cross-page links */
.xref {
  margin: 4rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* Footer */
footer.colophon {
  margin-top: 7rem;
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.colophon-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

footer.colophon p { margin: 0; }
footer.colophon a { color: var(--muted); }

/* Responsive */
@media (max-width: 44rem) {
  html { font-size: 17px; }
  h1 { font-size: 1.9rem; }
  .stage h2 { font-size: 1.45rem; }
  .page-lede { font-size: 1.08rem; margin-bottom: 3rem; }
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  nav.primary ul { gap: 1rem 1.25rem; }
  nav.primary a { font-size: 0.76rem; letter-spacing: 0.08em; }
  .timeline li { padding-left: 0; padding-top: 1.75rem; padding-bottom: 1.75rem; }
  .timeline .date {
    position: static;
    display: block;
    margin-bottom: 0.5rem;
    width: auto;
  }
  .landing .thesis { font-size: 1.18rem; }
  .pullquote { font-size: 1.15rem; }
}

@media print {
  body { background: white; color: black; font-size: 11pt; }
  .masthead, footer.colophon, .todo { display: none; }
  a { color: black; text-decoration: none; }
  h1, h2, h3 { page-break-after: avoid; }
}
