:root {
  --ink: #15283a;
  --muted: #5a6a78;
  --paper: #f6f3eb;
  --paper-deep: #ece6d8;
  --navy: #081827;
  --navy-soft: #102a41;
  --gold: #bc7917;
  --gold-light: #f4c56f;
  --teal: #347d76;
  --red: #a7352b;
  --red-dark: #70241e;
  --line: #d3cbb9;
  --white: #fff;
  --measure: 790px;
  --wide: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: #855006;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

a:hover {
  color: #4c2c03;
}

a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #d89832;
  outline-offset: 3px;
}

.watermark {
  position: fixed;
  z-index: 5;
  top: 50%;
  left: 50%;
  color: var(--red);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(7rem, 18vw, 16rem);
  font-weight: 950;
  letter-spacing: .08em;
  opacity: .065;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-22deg);
  user-select: none;
  white-space: nowrap;
}

.site-bar {
  background: #050f19;
  border-bottom: 1px solid #2a4054;
  color: #dce6ee;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.site-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 15px 28px;
}

.brand {
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .14em;
  text-decoration: none;
}

.series {
  color: #9eb1c0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.draft-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 24px;
  background: var(--red);
  border-bottom: 3px solid var(--red-dark);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.draft-ribbon strong {
  color: var(--white);
  font-size: 14px;
}

.hero {
  background:
    radial-gradient(circle at 82% 15%, rgba(52, 125, 118, .24), transparent 35%),
    linear-gradient(145deg, #071521, var(--navy) 55%, #0b2031);
  border-bottom: 6px solid var(--gold);
  color: var(--white);
}

.hero-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 82px 28px 70px;
}

.kicker,
.toc-label {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #b78b46;
  border-radius: 999px;
  color: var(--gold-light);
}

h1 {
  max-width: 1040px;
  margin: 24px 0 20px;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(43px, 6.5vw, 78px);
  font-weight: 850;
  letter-spacing: -.048em;
  line-height: 1.01;
}

.subtitle {
  max-width: 890px;
  margin: 0;
  color: #cbd8e1;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 470;
  line-height: 1.34;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin-top: 30px;
  color: #aabac7;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.thesis {
  max-width: 1010px;
  margin: 38px 0 0;
  padding: 23px 27px;
  background: var(--navy-soft);
  border-left: 5px solid var(--gold-light);
  color: #f0f4f6;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.thesis strong {
  color: var(--gold-light);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1010px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #294258;
  border-radius: 5px;
  background: #294258;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.metric-grid div {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  background: rgba(8, 24, 39, .92);
}

.metric-grid strong {
  color: var(--white);
  font-size: 27px;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.metric-grid span {
  margin-top: 7px;
  color: #aebdca;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-transform: uppercase;
}

.layout {
  display: grid;
  grid-template-columns: 245px minmax(0, var(--measure));
  gap: 72px;
  align-items: start;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 74px 28px 104px;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 22px 22px 18px;
  background: var(--paper-deep);
  border-top: 4px solid var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.toc-label {
  margin: 0 0 12px;
  color: #405466;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: #5a6a78;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--gold);
}

.report {
  min-width: 0;
}

.report h2 {
  margin: 2.8em 0 .78em;
  padding-top: .5em;
  border-top: 1px solid var(--line);
  color: #0b2033;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(29px, 4vw, 41px);
  letter-spacing: -.025em;
  line-height: 1.15;
  scroll-margin-top: 24px;
}

.report h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.report p {
  margin: 0 0 1.24em;
}

.report strong {
  color: #10273a;
}

.report ul,
.report ol {
  margin: 0 0 1.45em;
  padding-left: 1.4em;
}

.report li {
  margin: .48em 0;
  padding-left: .16em;
}

.report blockquote {
  margin: 2em 0;
  padding: 25px 28px;
  background: #ebe4d5;
  border-left: 5px solid var(--teal);
  color: #10273a;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.55;
}

.report blockquote p {
  margin: 0;
}

.report code {
  padding: .08em .28em;
  border: 1px solid #d9d0bd;
  border-radius: 3px;
  background: #eee8dc;
  color: #274257;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .86em;
}

.table-wrap {
  max-width: 100%;
  margin: 2.1em 0 2.4em;
  overflow-x: auto;
  border: 1px solid #cfc6b5;
  border-radius: 5px;
  background: #fbfaf6;
  box-shadow: 0 12px 28px rgba(23, 40, 58, .07);
}

.table-hint {
  display: none;
}

.comment-card {
  margin-top: 4.2em;
  padding: 34px 36px 36px;
  background: #e8e1d3;
  border-top: 5px solid var(--teal);
  box-shadow: 0 15px 34px rgba(23, 40, 58, .08);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.report .comment-card h2 {
  margin: 0 0 .55em;
  padding: 0;
  border: 0;
  font-size: clamp(29px, 4vw, 38px);
}

.comment-label {
  margin: 0 0 9px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.comment-card p {
  font-size: 16px;
  line-height: 1.65;
}

.comment-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 4px;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
}

.comment-button:hover {
  background: #205e59;
  color: var(--white);
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.48;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid #ddd5c5;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #10273a;
  color: var(--white);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .035em;
}

tbody th {
  color: #163149;
  font-weight: 730;
}

tbody tr:nth-child(even) {
  background: #f0eadf;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

footer {
  padding: 34px 28px 42px;
  background: #071522;
  color: #aebdca;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.58;
  text-align: center;
}

footer p {
  max-width: 760px;
  margin: 0 auto 8px;
}

footer strong {
  color: #ffb2aa;
  letter-spacing: .12em;
}

@media (max-width: 940px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout {
    display: block;
    max-width: 850px;
  }

  .toc {
    position: static;
    margin-bottom: 58px;
  }

  .toc ol {
    columns: 2;
    column-gap: 24px;
  }

  .toc li {
    break-inside: avoid;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
    line-height: 1.68;
  }

  .site-bar-inner {
    padding: 13px 18px;
  }

  .series {
    max-width: 170px;
    font-size: 10px;
    text-align: right;
  }

  .draft-ribbon {
    justify-content: space-between;
    padding: 8px 18px;
    font-size: 10px;
  }

  .hero-inner {
    padding: 58px 20px 50px;
  }

  h1 {
    font-size: 42px;
    letter-spacing: -.045em;
  }

  .subtitle {
    font-size: 21px;
  }

  .meta {
    display: grid;
    gap: 7px;
    font-size: 11px;
  }

  .thesis {
    margin-top: 30px;
    padding: 19px 20px;
    font-size: 16px;
  }

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

  .metric-grid div {
    min-height: 100px;
    padding: 16px;
  }

  .metric-grid strong {
    font-size: 22px;
  }

  .metric-grid span {
    font-size: 10px;
  }

  .layout {
    padding: 50px 20px 78px;
  }

  .toc {
    padding: 20px;
  }

  .toc ol {
    columns: 1;
  }

  .report h2 {
    margin-top: 2.4em;
    font-size: 30px;
  }

  .report blockquote {
    padding: 21px 20px;
    font-size: 17px;
  }

  .comment-card {
    padding: 27px 23px 29px;
  }

  .comment-button {
    display: flex;
    justify-content: space-between;
  }

  th,
  td {
    padding: 13px 14px;
  }

  .table-hint {
    display: block;
    position: sticky;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 9px 14px;
    background: #e5dcc9;
    color: #536577;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  footer {
    padding: 31px 20px 36px;
  }
}

@media print {
  .site-bar,
  .toc {
    display: none;
  }

  .draft-ribbon {
    border: 2px solid var(--red);
    color: var(--red);
    background: transparent;
  }

  .layout {
    display: block;
    padding-top: 40px;
  }
}
