:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #1e2528;
  --muted: #5e676c;
  --line: #d8d6cf;
  --accent: #215f8f;
  --accent-strong: #17486d;
  --green: #2f6f5e;
  --code: #263238;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.68;
  letter-spacing: 0;
}

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

a:hover,
a:focus {
  color: var(--accent-strong);
}

.cite {
  margin-left: 0.12em;
  white-space: nowrap;
  text-decoration: none;
}

.math-inline {
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1em;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.header-inner,
.article {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
}

.header-inner {
  padding: 58px 0 34px;
}

.course,
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 2.7rem;
  font-weight: 700;
}

.subtitle {
  max-width: 760px;
  margin: 22px 0 0;
  color: #354045;
  font-size: 1.18rem;
  line-height: 1.55;
}

.authors {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.link-row a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.article {
  padding: 34px 0 72px;
}

.section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

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

h2 {
  margin: 0 0 18px;
  font-size: 1.8rem;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

p {
  margin: 0 0 18px;
}

.math-block {
  overflow-x: auto;
  margin: 18px 0 22px;
  padding: 10px 2px;
}

.finding {
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.finding:first-of-type {
  margin-top: 12px;
}

.finding:last-child {
  margin-bottom: 0;
}

.core-insight {
  margin: 26px 0 2px;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: #f3f7f4;
  color: #3f4b4f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
}

.core-insight strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
}

.regime-chart {
  margin: 28px 0;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.regime-chart figcaption {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.regime-chart svg {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

.axis {
  stroke: #4c5559;
  stroke-width: 1.4;
}

.grid {
  stroke: #e3e0d8;
  stroke-width: 1;
}

.linear {
  stroke: #99958c;
  stroke-dasharray: 5 6;
  stroke-width: 1.2;
}

.series {
  fill: none;
  stroke-width: 2.6;
}

.series-asi,
.point.asi,
.legend-asi {
  stroke: #9f3d36;
  background: #9f3d36;
}

.series-kulkarni,
.point.kulkarni,
.legend-kulkarni {
  stroke: #856a21;
  background: #856a21;
}

.series-carmon,
.point.carmon,
.legend-carmon {
  stroke: var(--green);
  background: var(--green);
}

.point {
  fill: #ffffff;
  stroke-width: 2;
}

.tick,
.axis-label,
.linear-label {
  fill: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.linear-label {
  fill: #6d6860;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
}

.privacy-map {
  max-width: 760px;
  margin: 26px 0 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy-map figcaption {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.privacy-map figcaption strong {
  color: var(--ink);
}

.privacy-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  list-style: none;
}

.privacy-route {
  min-width: 0;
  padding: 14px 15px 15px;
  border-right: 1px solid var(--line);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.privacy-route:last-child {
  border-right: 0;
}

.route-place,
.privacy-route > strong,
.route-result {
  display: block;
}

.route-place {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy-route > strong {
  min-height: 2.6em;
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1.3;
}

.route-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
}

.noise-chip {
  padding: 2px 5px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-strong);
  font-weight: 700;
  white-space: nowrap;
}

.route-result {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.route-barrier .route-result {
  color: #8c3731;
}

.route-open .route-result {
  color: #755d1d;
}

.privacy-enabler {
  margin-top: 10px;
  padding: 10px 13px;
  border-left: 3px solid var(--green);
  background: #f3f7f4;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
}

.privacy-enabler strong {
  color: var(--green);
}

.map-takeaway {
  color: #3f4b4f;
}

.compact-list {
  margin: 0;
  padding-left: 22px;
}

.compact-list li {
  margin-bottom: 14px;
}

.references ol {
  margin: 0;
  padding-left: 22px;
}

.references li {
  margin-bottom: 12px;
}

strong {
  font-weight: 700;
}

code {
  color: var(--code);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
    line-height: 1.62;
  }

  .header-inner,
  .article {
    width: min(100% - 28px, 900px);
  }

  .header-inner {
    padding: 38px 0 26px;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.48rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .subtitle {
    font-size: 1.02rem;
  }

  .finding {
    padding-top: 20px;
  }

  .regime-chart {
    margin-left: -2px;
    margin-right: -2px;
  }

  .privacy-routes {
    grid-template-columns: 1fr;
  }

  .privacy-route {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .privacy-route > strong {
    min-height: 0;
  }

  .privacy-route:last-child {
    border-bottom: 0;
  }
}
