@font-face {
  font-family: Poppins;
  src: url(/research/vulnerability-economics/assets/fonts/Poppins-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url(/research/vulnerability-economics/assets/fonts/Poppins-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url(/research/vulnerability-economics/assets/fonts/Poppins-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Newsreader;
  src: url(/research/vulnerability-economics/assets/fonts/Newsreader-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url(/research/vulnerability-economics/assets/fonts/JetBrainsMono-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page-bg: #26282c;
  --surface: #31343a;
  --header-bg: rgba(38, 40, 44, 0.82);
  --footer-bg: #212226;
  --img-bg: #3a3d43;
  --hot-bg: #31343a;
  --ink: #f5f7f7;
  --body: #d7d9dc;
  --sub: #a6a9ae;
  --faint: #767980;
  --border: rgba(245, 247, 247, 0.18);
  --hairline: rgba(245, 247, 247, 0.10);
  --card-border: rgba(245, 247, 247, 0.10);
  --nav-hover: rgba(245, 247, 247, 0.07);
  --nav-hover-accent: rgba(234, 106, 85, 0.18);
  --accent: #ea6a55;
  --accent-contrast: #fff;
  --code-bg: #26282c;
  --code-ink: #c9ccd1;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
  --card-shadow-hover: 0 16px 34px rgba(0, 0, 0, 0.4);

  --font-ui: Poppins, "Helvetica Neue", system-ui, sans-serif;
  --font-prose: Newsreader, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  --measure: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-card: 14px;
  --radius-card-lg: 18px;
  --radius-code: 12px;
  --header-height: 68px;

  /* Semantic colours for data series, evidence tiers, and states. */
  --accent-blue: #93c5fd;
  --accent-cyan: #67d5e9;
  --accent-green: #6ee7b7;
  --accent-orange: #fbbf69;
  --accent-purple: #c4b5fd;
  --tint-blue: color-mix(in srgb, var(--accent-blue) 14%, var(--surface));
  --tint-cyan: color-mix(in srgb, var(--accent-cyan) 14%, var(--surface));
  --tint-green: color-mix(in srgb, var(--accent-green) 14%, var(--surface));
  --tint-orange: color-mix(in srgb, var(--accent-orange) 14%, var(--surface));
  --tint-purple: color-mix(in srgb, var(--accent-purple) 14%, var(--surface));
  --tint-red: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --orange-border: color-mix(in srgb, var(--accent-orange) 45%, var(--surface));
}

html {
  scroll-padding-top: calc(var(--header-height) + 5.625rem);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--page-bg);
  color: var(--body);
  font-family: var(--font-ui);
  overflow-wrap: anywhere;
}

:is(h1, h2, h3, h4, h5, h6) {
  color: var(--ink);
  font-family: var(--font-ui);
}

p,
li,
blockquote {
  font-family: var(--font-prose);
}

code,
kbd,
pre,
samp,
th,
.num,
.calc,
.hero-stat,
.bar-heading strong,
.study-headline,
.study-value,
.decomp-segment {
  font-family: var(--font-mono);
}

code,
pre {
  background: var(--code-bg);
  color: var(--code-ink);
}

pre {
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-code);
}

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

:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero {
  background: var(--surface);
  border-color: var(--card-border);
}

.sheet,
.card,
.model-card,
.study-card,
.hero .thesis {
  border-color: var(--card-border);
}

.sheet,
.card,
.model-card,
.study-card,
.hero .thesis,
.hero .thesis-box {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}

.sheet {
  border-radius: var(--radius-card-lg);
}

.sheet .grid {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.study-card:target {
  box-shadow: 0 0 0 1px var(--accent-cyan);
}

.grid > .card {
  min-width: 0;
}

.tablewrap {
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
}

.c-header {
  position: sticky;
  top: 0;
  z-index: 110;
  height: var(--header-height);
  box-sizing: border-box;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.c-header__inner {
  max-width: var(--wrap);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.c-logo {
  display: flex;
  align-items: center;
  justify-self: start;
  flex-shrink: 0;
}

.c-logo img {
  display: block;
  width: 42px;
  height: 30px;
  filter: brightness(0) invert(0.96);
}

.c-header__nav {
  position: static;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.c-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
}

.c-nav li {
  margin: 0;
  font-family: var(--font-ui);
}

.c-nav .c-nav__link {
  display: block;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--sub);
  font: 500 13.5px/28px var(--font-ui);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.c-nav .c-nav__link:hover {
  background: var(--nav-hover-accent);
  color: var(--accent);
}

.c-nav .c-nav__link[aria-current="page"] {
  background: var(--nav-hover);
  color: var(--ink);
}

.skip-link:focus {
  z-index: 120;
}

.cje-byline,
.cje-wp-note {
  max-width: var(--measure);
  margin: 10px 0 0;
  color: var(--sub);
}

.cje-byline {
  font: 400 0.8rem/1.6 var(--font-mono);
}

.cje-wp-note {
  font-size: 1rem;
  line-height: 1.5;
}

.c-footer {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  background: var(--footer-bg);
  font-family: var(--font-ui);
  text-align: start;
}

.c-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.c-footer__brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.c-footer__brand .c-logo,
.c-footer__meta a {
  border-bottom: 0;
}

.c-footer__brand .c-logo img {
  width: 36px;
  height: 26px;
}

.c-footer__spine,
.c-footer__copy,
.c-footer__meta {
  color: var(--sub);
  font: 400 12px/1.5 var(--font-mono);
}

.c-footer__spine {
  letter-spacing: 0.06em;
}

.c-footer__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 var(--gutter) 32px;
}

.c-footer__meta a {
  color: var(--sub);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

@media (width < 720px) {
  :root {
    --header-height: 0px;
  }

  .c-header {
    position: static;
    height: auto;
    padding-block: 10px 4px;
  }

  .c-header__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 4px;
  }

  .c-header__nav {
    width: 100%;
  }

  .c-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
  }

  .c-nav .c-nav__link {
    padding: 6px 10px;
    min-height: 40px;
  }

  body > nav {
    overflow-x: auto;
  }

  body > nav .container,
  body > nav .nav-left {
    width: max-content;
    max-width: none;
    flex-wrap: nowrap;
  }
}
