/* Inter latin-ext, vendored: the site loads nothing from third parties. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin, vendored: the site loads nothing from third parties. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* One stylesheet for the whole site. Colors and spacing follow the source
   site: navy page, translucent cards, Inter 800 headlines. */
:root {
  --navy: #091c45;
  --card: #102759b3;
  --card-border: #aac1ff66;
  --text: #d0dbe6;
  --muted: #a8b4ff;
  --label: #384d86;
  --footer: #0b0c29;
}

* { box-sizing: border-box; }

/* The source site blurs this artwork into a glow behind the page; a fixed,
   blurred layer does the same without backdrop-filter on the whole body. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -20vw;
  background: url(img/blurme.png) no-repeat 95% -25vh / 1100px;
  filter: blur(150px);
  opacity: .3;
  z-index: -1;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 27px;
}

h1, h2, h3, h4 { color: #fff; font-weight: 800; margin: 0 0 10px; }
h1 { font-size: 52px; line-height: 60px; }
h2 { font-size: 36px; line-height: 46px; }
h3 { font-size: 18px; line-height: 26px; }
h4 { font-size: 15px; line-height: 23px; }
p { margin: 0 0 16px; }
a { color: var(--muted); }
img { max-width: 100%; }

h1 em { background: linear-gradient(128deg, #0149ff, #f609f4); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }

.width { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.width.narrow { max-width: 800px; }
.measure { max-width: 60ch; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 99; background: #091c45f0; backdrop-filter: blur(3px); padding: 15px 20px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 20px; }
.nav-brand img { height: 34px; display: block; }
.nav-links { display: flex; gap: 30px; flex-wrap: wrap; }
/* Below 860px the links collapse behind the button; no script involved. */
.nav-button { display: none; width: 24px; height: 18px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.nav-button span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: #fff; }

/* Sections */
.hero { padding: 60px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center; }
.lead { font-size: 15px; line-height: 35px; max-width: 55ch; }
.section { padding: 40px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.two-col.top { margin-top: 60px; }
.two-col.even { align-items: stretch; margin-top: 30px; }
.with-sidebar { display: grid; grid-template-columns: 1fr .22fr; gap: 20px; align-items: start; }
.categories { background: #091c45cf; padding: 20px 20px 40px; position: sticky; top: 90px; }
.categories h3 { line-height: 44px; margin-bottom: 20px; }
.categories a { display: block; margin-bottom: 20px; line-height: 28px; text-decoration: none; }
.categories a:last-child { margin-bottom: 0; }
.categories a.active, .categories a:hover { color: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.grid-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.section-title { font-size: 36px; line-height: 46px; margin-bottom: 30px; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 6px 33px #001c4a0d;
  text-decoration: none;
  display: block;
  color: inherit;
}
a.card:hover { border-color: #aac1ffcc; }
.card.pad { padding: 30px; }
.card.row { display: flex; gap: 16px; align-items: center; }
/* Listing card: image on top, then the meta line, then the headline. */
.card.stack { display: flex; flex-direction: column; align-items: flex-start; height: 100%; margin: 0; padding: 20px 20px 10px; }
.card.stack img { width: 100%; border-radius: 2px; }
.card.stack h3 { margin-top: 10px; }
.date { color: #fff; font-size: 11px; line-height: 13px; margin-top: 20px; }
.card.row img { width: 120px; flex: none; border-radius: 3px; }
.card.logo { height: 100px; display: flex; align-items: center; justify-content: center; }
.card.logo img { max-height: 32px; }
.card-img { height: 190px; border-radius: 3px; background: #091d47 center/cover no-repeat; }
.card-body { padding: 20px 20px 10px; }
.card p:last-child { margin-bottom: 0; }
.icon { height: 32px; margin-bottom: 16px; }

.label { background: var(--label); color: #ffffffbd; border-radius: 5px; padding: 4px 12px; font-size: 12px; display: inline-flex; }
.publisher { color: var(--text); background: #08052c; border: 1px solid #4042da; border-radius: 3px; margin-top: 20px; padding: 3px 10px; font-size: 14px; }

/* Bulleted highlight boxes in the protocol section */
.rule { border-left: 2px solid #2ddffd; padding-left: 30px; margin-bottom: 70px; }
.rule:last-child { margin-bottom: 0; }

.button {
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .3s ease-out;
}
.button:hover { background: #ffffff1a; }

/* Post body */
.narrow h1 { font-size: 36px; line-height: 46px; }
.post-hero { border-radius: 10px; margin-bottom: 30px; }
.richtext { margin-top: 30px; }
.richtext h2 { font-size: 24px; line-height: 32px; margin-top: 40px; }
.richtext h3 { margin-top: 30px; }
/* Several figures are screenshots saved with a transparent background and
   near-black text, which the navy page swallows. Give them a white sheet. */
.richtext img { background: #fff; border-radius: 6px; }
.richtext iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }
/* Click-to-play stand-in for a YouTube embed: nothing leaves the page until
   the visitor asks for the video. */
.video { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--card-border); border-radius: 6px; background: var(--card) center/cover no-repeat; cursor: pointer; position: relative; }
.video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 22px 0 22px 38px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 2px 12px #00000080); }
.video:hover::after { border-left-color: var(--muted); }
.richtext table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.richtext th, .richtext td { border: 1px solid var(--card-border); padding: 8px; text-align: left; }
.richtext a { overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--footer); padding: 60px 0 40px; margin-top: 60px; }
.disclaimer { font-size: 12px; line-height: 29px; }
.social { display: inline-block; margin-top: 20px; }
.copyright { font-size: 10px; margin-top: 30px; }

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-button { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 20px; padding: 10px 0; }
  #nav-toggle:checked ~ .nav-links { display: flex; }

  h1 { font-size: 36px; line-height: 50px; }
  h2, .section-title { font-size: 28px; line-height: 38px; }
  .hero-grid, .two-col, .card-grid, .grid-3, .grid-logos, .with-sidebar { grid-template-columns: 1fr; }
  .card.row { flex-direction: column; align-items: flex-start; }
  .card.row img { width: 100%; }
}
