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

:root {
  --paper: #f2ece0;
  --ink: #141210;
  --muted: #4a4540;
  --rule: #141210;
  --red: #b80000;
  --link: #0033aa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  border-top: 6px solid var(--ink);
}

a {
  color: var(--link);
}

a:hover {
  color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* masthead */

.masthead {
  border-bottom: 3px double var(--rule);
  padding: 1rem 1.25rem 0.85rem;
  background: var(--paper);
}

.masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.masthead__edition {
  color: var(--muted);
}

.masthead__title {
  font-family: "Arial Black", Impact, "Helvetica Neue", sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-transform: uppercase;
  padding-top: 0.55rem;
  border-top: 1px solid var(--ink);
}

.masthead__nav a {
  color: var(--ink);
  text-decoration: none;
}

.masthead__nav a:hover {
  text-decoration: underline;
}

.masthead__nav span {
  color: var(--muted);
}

/* page */

.page {
  width: min(46rem, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page > section {
  scroll-margin-top: 1rem;
}

.page > section + section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--ink);
}

/* lead */

.lead {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.lead__kicker {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.lead__headline {
  font-family: "Arial Black", Impact, "Helvetica Neue", sans-serif;
  font-size: clamp(2.4rem, 11vw, 4.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.lead__deck {
  font-size: 1.15rem;
  font-style: italic;
  max-width: 34rem;
  margin-bottom: 0.5rem;
}

.lead__note {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: var(--muted);
  max-width: 30rem;
}

.lead__jump {
  margin-top: 1rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.lead__jump a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead__jump a + a::before {
  content: " · ";
  text-decoration: none;
  color: var(--muted);
}

/* section heads */

.section-head {
  margin-bottom: 1.25rem;
}

.section-head__file {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.section-head__title {
  font-family: "Arial Black", Impact, "Helvetica Neue", sans-serif;
  font-size: clamp(1.35rem, 5vw, 2rem);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.section-head__title--red {
  color: var(--red);
}

.section-head__sub {
  margin-top: 0.45rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 36rem;
}

/* portrait */

.portrait-block {
  margin-bottom: 1.5rem;
}

.portrait {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border: 3px solid var(--ink);
  background: #fff;
  padding: 0.35rem;
}

.portrait__img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: grayscale(1) contrast(1.15);
}

.portrait__stamp {
  position: absolute;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(0.85rem, 3vw, 1.25rem);
  text-transform: uppercase;
  color: var(--red);
  border: 3px solid var(--red);
  padding: 0.1rem 0.45rem;
  background: rgba(242, 236, 224, 0.92);
  line-height: 1.1;
}

.portrait__stamp--robber {
  top: 10%;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
}

.portrait__stamp--liar {
  bottom: 12%;
  right: 4%;
  transform: rotate(8deg);
  font-size: clamp(1.1rem, 4vw, 1.75rem);
}

.portrait__caption {
  margin-top: 0.55rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.portrait__caption strong {
  display: block;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

/* tweet excerpts */

.excerpt {
  border: 2px solid var(--ink);
  border-left: 5px solid var(--ink);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.excerpt--musk {
  border-left-color: var(--ink);
}

.excerpt--khanna {
  border-left-color: var(--muted);
  background: #faf7f0;
}

.excerpt--expose {
  border-left-color: var(--red);
  border-left-width: 6px;
}

.excerpt__when {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.excerpt__who {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.excerpt__avatar {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  object-fit: cover;
}

.excerpt__name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.excerpt__handle {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--muted);
}

.excerpt__text {
  font-size: 1rem;
  line-height: 1.5;
}

.excerpt__text p + p {
  margin-top: 0.5rem;
}

.excerpt__mention {
  font-weight: 700;
}

.excerpt__quote {
  margin-top: 0.6rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 0.92rem;
}

.excerpt__quote-by {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  margin-bottom: 0.25rem;
}

.excerpt__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.excerpt__stats {
  color: var(--muted);
}

.excerpt__link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.excerpt__inline-link {
  display: inline;
  font-weight: 700;
}

/* layout blocks */

.stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* stats row */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
  margin-bottom: 1.25rem;
}

.stats__cell {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-right: 1px solid var(--ink);
  background: #fff;
}

.stats__cell:last-child {
  border-right: 0;
}

.stats__num {
  display: block;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stats__label {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.3;
}

/* trade table */

.ledger {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--ink);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  background: #fff;
}

.ledger caption {
  caption-side: top;
  text-align: left;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 0 0 0.5rem;
}

.ledger th,
.ledger td {
  border: 1px solid var(--ink);
  padding: 0.45rem 0.5rem;
  vertical-align: top;
  text-align: left;
}

.ledger th {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
}

.ledger .up {
  font-weight: 700;
  color: var(--red);
}

.ledger .flag {
  font-weight: 700;
}

.ledger-note {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: var(--muted);
}

/* sidebar box */

.box {
  border: 2px solid var(--ink);
  padding: 0.85rem 1rem;
  background: #fff;
}

.box__title {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ink);
}

.box__title--red {
  color: var(--red);
}

.box p,
.box li {
  font-size: 0.92rem;
  line-height: 1.5;
}

.box ul {
  margin-left: 1.1rem;
}

.box li + li {
  margin-top: 0.55rem;
}

.box__source {
  margin-top: 0.85rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: var(--muted);
}

/* docket */

.docket {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
}

.docket__item {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: #fff;
}

.docket__item:nth-child(2n) {
  border-right: 0;
}

.docket__item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.docket__num {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.docket__item p {
  font-size: 0.92rem;
  line-height: 1.45;
}

/* footer */

.footer {
  border-top: 3px double var(--ink);
  padding: 1.25rem;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: var(--muted);
}

.footer__domain {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.footer__note {
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.5;
}

/* responsive */

@media (max-width: 768px) {
  .split,
  .three-up {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stats__cell {
    border-bottom: 1px solid var(--ink);
  }

  .stats__cell:nth-child(2n) {
    border-right: 0;
  }

  .stats__cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .docket {
    grid-template-columns: 1fr;
  }

  .docket__item {
    border-right: 0;
  }

  .docket__item:last-child {
    border-bottom: 0;
  }

  .ledger {
    font-size: 0.8rem;
  }

  .ledger thead {
    display: none;
  }

  .ledger tr {
    display: block;
    border-bottom: 2px solid var(--ink);
    padding: 0.5rem 0;
  }

  .ledger td {
    display: block;
    border: 0;
    padding: 0.15rem 0.5rem;
  }

  .ledger td::before {
    content: attr(data-label) ": ";
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}