/* Shared by the blog posts (load after site.css). Page-specific rules stay inline. */
header{ margin-bottom: 22px; }
.site{
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.site a{ color: inherit; }
.site .brand{
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1{
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.subhead{
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 46em;
}
.meta{
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.meta .sep{ padding: 0 8px; color: rgba(107,114,128,.75); }
.meta .authors{ color: var(--text); font-weight: 500; }
.meta .venue{
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border: 1px solid var(--link);
  border-radius: 999px;
  color: var(--link);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
}

article{ font-size: 17px; }
@media (min-width: 740px){
  article{ font-size: 18px; }
}

h2{
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 44px 0 10px;
  line-height: 1.25;
}
h3{
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 22px 0 8px;
  line-height: 1.35;
}
p{ margin: 14px 0; }

hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 34px 0;
}

/* Figures */
figure{
  margin: 18px 0 24px;
}
.figure-box{
  overflow: hidden;
}
figcaption{
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.media{
  width: 100%;
  height: auto;
  display: block;
}

/* Make figures a bit narrower on desktop, full-width on mobile. */
@media (min-width: 740px){
  .figure-box .media{
    width: 80%;
    margin: 0 auto;
  }
  .figure-box.narrow .media{
    width: 60%;
  }
  .figure-box.full .media{
    width: 100%;
  }
}

/* Tables */
table{
  width: 90%;
  border-collapse: collapse;
  margin: 14px auto 22px;
  font-size: 14px;
}
th, td{
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th{ color: var(--muted); font-weight: 650; }
.num{ text-align: right; white-space: nowrap; }
.note-row{
  color: var(--muted);
  font-size: 13px;
}

/* Inline code */
pre, code{ font-family: var(--mono); }
code{
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: .08em .35em;
  border-radius: 8px;
  font-size: .92em;
}

/* Anchor offsets */
:target{ scroll-margin-top: 18px; }

@media print{
  .figure-box{ background: #fff; }
}
