:root {
  --paper: #f5f0e5;
  --ink: #211f1b;
  --muted: #625c52;
  --rule: #aaa194;
  --red: #872e28;
  --wash: #eae2d3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ded8cd;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: #43201e; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

.sheet {
  max-width: 1160px;
  margin: 32px auto;
  background: var(--paper);
  padding: 36px 58px 44px;
  box-shadow: 0 12px 60px #382e2520;
}

.small,
.eyebrow,
.mast-meta,
nav,
.date,
.tag,
.foot,
.status-title,
.byline,
.kicker {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
}

.mast-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--ink);
  padding: 9px 0;
  color: var(--muted);
}

.masthead {
  text-align: center;
  border-top: 4px double var(--ink);
  border-bottom: 4px double var(--ink);
  padding: 17px 0 20px;
}
.masthead a { color: inherit; text-decoration: none; }
.masthead h1 {
  font-size: clamp(54px, 8.5vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.067em;
  margin: 0;
  font-weight: 900;
}
.masthead p {
  font-size: 15px;
  font-style: italic;
  margin: 12px 0 0;
  color: var(--muted);
}

nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
  padding: 12px 0;
}
nav a { color: var(--ink); text-decoration: none; }
nav a:hover,
nav a[aria-current="page"] { text-decoration: underline; }

.lead {
  padding: 34px 0 23px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.eyebrow,
.tag { color: var(--red); }
.lead h2 {
  font-size: clamp(31px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 12px auto;
  max-width: 870px;
}
.dek {
  font-size: 19px;
  max-width: 730px;
  margin: 14px auto;
  color: var(--muted);
  line-height: 1.45;
}
.byline {
  margin-top: 21px;
  color: var(--muted);
  font-size: 11px;
}

.main {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(220px, 1fr);
  gap: 30px;
  padding: 28px 0 34px;
}

.article {
  font-size: 17px;
  line-height: 1.78;
  max-width: 42em;
}
.article p { margin: 0 0 1.05em; }
.article p:first-child:first-letter {
  float: left;
  font-size: 76px;
  line-height: 0.79;
  margin: 9px 9px 0 0;
  color: var(--red);
}
.article.teaser { max-width: none; }
.article.teaser p:first-child:first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  color: inherit;
}

.side {
  border-left: 1px solid var(--rule);
  padding-left: 25px;
}
.side section {
  border-top: 3px double var(--ink);
  padding: 12px 0 20px;
}
.side h3 { font-size: 24px; line-height: 1.2; margin: 9px 0; }
.side p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0;
}
.quote {
  font-size: 26px !important;
  line-height: 1.27 !important;
  color: var(--ink) !important;
  font-style: italic;
  margin: 10px 0 20px !important;
}
.side dl { margin: 8px 0 0; }
.side dt {
  font-size: 15px;
  font-weight: bold;
  border-top: 1px solid var(--rule);
  padding: 10px 0 2px;
}
.side dd {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--muted);
}

.note {
  background: var(--wash);
  border-left: 3px solid var(--red);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.section-head {
  border-top: 4px double var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
}
.section-head h2 {
  font-size: 38px;
  line-height: 1;
  margin: 5px 0;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.section-head .small { color: var(--muted); text-align: right; }

.ledger-intro {
  max-width: 800px;
  color: var(--muted);
  font-size: 15px;
}

.entry {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.date { font-size: 13px; color: var(--red); padding-top: 3px; }
.date small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.entry h3 { font-size: 23px; line-height: 1.2; margin: 4px 0 8px; }
.entry p { font-size: 15px; line-height: 1.55; margin: 4px 0; }
.entry .caveat { font-size: 14px; color: var(--muted); }
.entry .source { font: 12px/1.5 Arial, sans-serif; margin-top: 8px; }
.entry .tag {
  font: 700 10px/1.5 Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.entry[data-status="outage"] .tag,
.entry[data-status="open"] .tag { color: #625c52; }
.entry[data-status="confirmed"] .tag { color: #315c4a; }
.entry[hidden] { display: none; }

.sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 18px 0 25px;
}
.sources h3 { font-size: 20px; margin: 0 0 7px; }
.sources p { font-size: 14px; margin: 5px 0; color: var(--muted); }

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 4px double var(--ink);
  color: var(--muted);
}
.foot a { color: var(--muted); }

.edition-note {
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  font: 12px/1.55 Arial, sans-serif;
  color: var(--muted);
}

.feature {
  margin: 26px 0;
  padding: 22px 0;
  border-top: 4px double var(--ink);
  border-bottom: 1px solid var(--ink);
}
.feature h2 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  margin: 10px 0;
  letter-spacing: -0.05em;
}
.feature .dek { margin: 12px 0; max-width: 820px; }

.ledger-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  align-items: center;
  font: 12px Arial, sans-serif;
}
.ledger-tools input,
.ledger-tools select {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 9px;
  font: inherit;
  color: var(--ink);
  border-radius: 2px;
}
.ledger-tools input { flex: 1; min-width: 180px; }
.ledger-tools button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 9px;
  font: inherit;
  cursor: pointer;
}

.archive {
  border-top: 1px solid var(--rule);
  padding: 15px 0;
}
.archive summary { cursor: pointer; font-weight: bold; }
.archive p { font-size: 15px; }
.archive .small { color: var(--muted); }

.watch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 12px 0;
}
.watch-grid h3 { font-size: 20px; margin: 0; }
.watch-grid p { font-size: 15px; margin: 8px 0; }
.research-note { font-size: 14px; color: var(--muted); }

.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 18px 0 8px;
  font: 700 10px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.topic-row span {
  border: 1px solid var(--rule);
  padding: 6px 10px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px 0;
}
.home-card {
  border-top: 3px double var(--ink);
  padding-top: 14px;
}
.home-card h3 {
  font-size: 28px;
  line-height: 1.15;
  margin: 8px 0 10px;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.home-card p { font-size: 15px; color: var(--muted); margin: 0 0 12px; }

@media (max-width: 760px) {
  .sheet { margin: 0; padding: 20px; }
  .main { display: block; }
  .side { border-left: 0; padding: 0; margin-top: 25px; }
  .side section { padding-bottom: 12px; }
  .lead { padding-top: 24px; }
  .mast-meta { font-size: 9px; }
  .masthead h1 { font-size: clamp(42px, 11vw, 80px); }
  .article { font-size: 16px; }
  .entry { grid-template-columns: 75px 1fr; gap: 13px; }
  .sources { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 31px; }
  nav { gap: 16px; font-size: 9px; }
  .watch-grid,
  .home-grid { grid-template-columns: 1fr; }
}

@media print {
  body,
  .sheet { background: white; }
  .sheet {
    margin: 0;
    max-width: none;
    box-shadow: none;
    padding: 0;
  }
  nav,
  .skip-link,
  .ledger-tools { display: none; }
  .main { grid-template-columns: 2.25fr 1fr; }
  .entry { break-inside: avoid; }
  a { color: inherit; }
  .section-head { break-after: avoid; }
  .entry[hidden] { display: grid; }
}

.thesis-lead { padding-block: 42px 28px; }
.thesis-main h2 { margin: 0 0 12px; line-height: 1.2; }
.thesis-questions { margin-bottom: 0; }
.thesis-questions dt { font-weight: bold; }
.thesis-questions dd { margin: 0 0 12px; }
.thesis-questions dd:last-child { margin-bottom: 0; }
.thesis-status { align-self: start; background: var(--wash); padding: 20px; }
.thesis-status .eyebrow { margin-bottom: 8px; }
.thesis-status p:last-child { margin-bottom: 0; }

/* ---- living editorial: since-publication box ---- */
.since {
  margin: 0 0 4px;
  padding: 18px 0 6px;
  border-bottom: 1px solid var(--rule);
}
.since-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.since-head h3 { font-size: 24px; margin: 0; font-weight: 500; letter-spacing: -0.02em; }
.since-head p { margin: 0; font: 12px/1.5 Arial, sans-serif; color: var(--muted); }
.since-list { list-style: none; margin: 12px 0 0; padding: 0; }
.since-list li {
  display: grid;
  grid-template-columns: 90px 1fr 230px;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.45;
}
.since-list .date { font-size: 12px; }
.since-list .tag { font-size: 9px; color: var(--muted); padding-top: 3px; }

.revisions { list-style: none; margin: 0; padding: 12px 0 24px; }
.revisions li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}

/* ---- actors page ---- */
.actors-section { padding-bottom: 18px; }
.fronts-figure { margin: 22px 0 8px; }
.figure-scroll { overflow-x: auto; }
.fronts-figure svg { display: block; width: 100%; min-width: 620px; height: auto; }
.fronts-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 760px; }
.ax-east { fill: #f1e2da; stroke: var(--red); stroke-width: 1.25; }
.ax-west { fill: #e2e4e1; stroke: #3d4a57; stroke-width: 1.25; }
.ax-front { fill: var(--wash); stroke: var(--rule); stroke-width: 1.25; }
.ax-link { fill: none; stroke: var(--muted); stroke-width: 1.25; }
.ax-arrowhead { fill: var(--muted); }
.ax-head { font: 700 10px Arial, Helvetica, sans-serif; letter-spacing: 0.12em; fill: var(--muted); }
.ax-head-east { fill: var(--red); }
.ax-head-west { fill: #3d4a57; }
.ax-name { font: 700 13px Arial, Helvetica, sans-serif; fill: var(--ink); }
.ax-body { font: 12px Arial, Helvetica, sans-serif; fill: var(--muted); }
.ax-front-name { font: 600 14px Georgia, "Times New Roman", serif; fill: var(--ink); }

.tie-key {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0 18px;
  margin: 10px 0 0;
  max-width: 800px;
}
.tie-key dt {
  font: 700 10px/1.5 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  border-top: 1px solid var(--rule);
  padding: 10px 0;
}
.tie-key dd { margin: 0; border-top: 1px solid var(--rule); padding: 8px 0; font-size: 15px; }

.table-wrap { overflow-x: auto; margin: 16px 0 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; min-width: 640px; }
.data-table th,
.data-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); }
.data-table thead th {
  font: 700 10px/1.5 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 0;
  border-bottom: 1px solid var(--ink);
}
.data-table tbody th { font-size: 15px; min-width: 120px; }
.data-table td { color: var(--ink); }

@media (max-width: 760px) {
  .since-list li { grid-template-columns: 70px 1fr; }
  .since-list .tag { grid-column: 2; padding-top: 0; }
  .revisions li { grid-template-columns: 1fr; gap: 2px; }
  .tie-key { grid-template-columns: 1fr; }
  .tie-key dd { border-top: 0; padding-top: 0; }
}

/* ---- cyber war: chapter callout ---- */
.chapter {
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--wash);
  border-left: 3px solid var(--red);
}
.chapter h3 { font-size: 26px; line-height: 1.2; margin: 6px 0 8px; font-weight: 500; letter-spacing: -0.02em; }
.chapter p { font-size: 15px; margin: 6px 0; }
.article .since-list { margin: 8px 0 4px; }

/* ---- homepage: supporting evidence feed ---- */
.evidence-list { list-style: none; margin: 10px 0 0; padding: 0; }
.evidence-list li { border-top: 1px solid var(--rule); padding: 9px 0; }
.evidence-list a { display: block; color: var(--ink); text-decoration: none; }
.evidence-list a:hover .ev-title { text-decoration: underline; }
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font: 700 9px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ev-meta .ev-date { color: var(--red); }
.ev-meta .ev-confirmed { color: #315c4a; }
.ev-title { display: block; font-size: 14px; line-height: 1.4; margin-top: 3px; }
.side .feed-more { font: 12px/1.5 Arial, Helvetica, sans-serif; margin-top: 10px; }
