:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --paper: #ffffff;
  --ink: #18201d;
  --muted: #5b655f;
  --green: #173f35;
  --green-2: #245749;
  --blue: #1f5e84;
  --blue-bg: #dff1fb;
  --blue-border: #88c9e8;
  --red: #8c2f2f;
  --red-bg: #ffe6e1;
  --red-border: #e1a097;
  --amber-bg: #fff1c7;
  --amber-border: #d9aa3d;
  --line: #d8ddd3;
  --shadow: 0 18px 38px rgba(24, 32, 29, 0.11);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #143f5b;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 42px);
  background: rgba(246, 247, 243, 0.94);
  border-bottom: 1px solid rgba(216, 221, 211, 0.88);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  font-size: 14px;
  font-weight: 680;
}

nav a {
  color: #33423b;
  text-decoration: none;
}

nav a:hover {
  color: var(--green);
  text-decoration: underline;
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 46px clamp(18px, 4vw, 42px) 70px;
}

main,
section[id] {
  scroll-margin-top: 94px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 34px;
  align-items: start;
}

.hero {
  padding: 34px 0 18px;
}

.date-line,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 840;
}

h2 {
  font-size: clamp(28px, 3.2vw, 43px);
  font-weight: 820;
}

h3 {
  font-size: 20px;
  font-weight: 790;
}

h4 {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 840px;
  margin: 22px 0 0;
  color: #34423c;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.38;
}

.summary-panel,
.diff-card,
.transcript,
.change-table,
.sources ul {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.summary-panel {
  padding: 24px;
}

.summary-panel h2 {
  margin-bottom: 14px;
  font-size: 21px;
}

.summary-panel ol {
  margin: 0;
  padding-left: 21px;
  color: #2d3833;
}

.summary-panel li + li {
  margin-top: 10px;
}

.content-section {
  margin-top: 72px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 24px;
}

.section-note {
  margin: 10px 0 0;
  color: var(--muted);
}

.evidence-grid,
.transcript-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101a16;
  box-shadow: var(--shadow);
}

figure img {
  width: 100%;
  height: clamp(520px, 72vw, 760px);
  object-fit: contain;
  background: #101a16;
}

figcaption {
  padding: 15px 17px 17px;
  background: var(--paper);
  color: #33403a;
  font-size: 14px;
}

.change-table {
  display: grid;
  overflow: hidden;
}

.change-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1.3fr) minmax(180px, 1.3fr) minmax(180px, 1fr);
  border-bottom: 1px solid var(--line);
}

.change-row:last-child {
  border-bottom: 0;
}

.change-row > div {
  padding: 15px;
  border-right: 1px solid var(--line);
}

.change-row > div:last-child {
  border-right: 0;
}

.table-head {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 790;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-head > div {
  border-color: rgba(255, 255, 255, 0.16);
}

.diff-stack {
  display: grid;
  gap: 18px;
}

.diff-card {
  padding: 22px;
}

.diff-card h3 {
  margin-bottom: 18px;
}

.diff-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.diff-columns > div {
  min-width: 0;
}

.diff-columns h4 {
  margin-bottom: 8px;
}

.diff-columns p,
.transcript p,
.analysis-copy p {
  margin: 0;
}

.diff-columns p + p,
.transcript p + p,
.analysis-copy p + p {
  margin-top: 14px;
}

del,
ins {
  border-radius: 4px;
  padding: 0 0.14em;
  text-decoration: none;
}

del {
  background: var(--red-bg);
  color: var(--red);
  box-shadow: inset 0 -1px 0 var(--red-border);
}

ins {
  background: var(--blue-bg);
  color: var(--blue);
  box-shadow: inset 0 -1px 0 var(--blue-border);
}

.unchanged-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.transcript-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #b7c3bb;
  border-radius: 6px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: 14px;
  font-weight: 740;
  cursor: pointer;
}

button:hover {
  border-color: var(--green);
}

button.copied {
  border-color: var(--blue-border);
  background: var(--blue-bg);
  color: var(--blue);
}

.transcript {
  padding: 23px;
}

.transcript h3 {
  margin-bottom: 18px;
}

.transcript h4 {
  margin-bottom: 6px;
}

.analysis-copy {
  max-width: 860px;
  padding-left: 20px;
  border-left: 4px solid var(--green);
  color: #303c36;
  font-size: 18px;
}

.sources ul {
  margin: 0;
  padding: 20px 24px 20px 42px;
}

.sources li + li {
  margin-top: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px clamp(18px, 4vw, 42px) 32px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .section-grid,
  .evidence-grid,
  .transcript-grid,
  .diff-columns {
    grid-template-columns: 1fr;
  }

  .change-table {
    gap: 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-head {
    display: none;
  }

  .change-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .change-row > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .change-row > div:last-child {
    border-bottom: 0;
  }

  .change-row > div:first-child {
    background: #edf3ef;
    color: var(--green);
    font-weight: 780;
  }
}

@media (max-width: 560px) {
  main {
    padding-top: 26px;
  }

  h1 {
    font-size: 40px;
  }

  .lede {
    font-size: 18px;
  }

  figure img {
    height: 520px;
  }

  .summary-panel,
  .diff-card,
  .transcript {
    padding: 18px;
  }
}
