:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #eceff3;
  --text: #11181c;
  --muted: #5b6872;
  --faint: #8794a1;
  --border: #e1e7ed;
  --accent: #0a6ed1;
  --accent-soft: #e8f1fb;
  --hl-blue: #0a6ed1;
  --hl-red: #c62f2f;
  --mark: #fff2a8;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 4px 16px rgba(16, 24, 40, .08);
  --radius: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --c-key: #a626a4;
  --c-str: #2a7a3b;
  --c-num: #b4601a;
  --c-com: #8794a1;
  --c-tit: #0a6ed1;
  --c-var: #c62f2f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1419;
    --surface: #161c22;
    --surface-2: #1c242c;
    --text: #e6edf3;
    --muted: #96a0ab;
    --faint: #76808c;
    --border: #252e38;
    --accent: #5aa9f5;
    --accent-soft: #15283d;
    --hl-blue: #5aa9f5;
    --hl-red: #ff7b72;
    --mark: #4a3f0f;
    --shadow: none;
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, .4);

    --c-key: #d2a8ff;
    --c-str: #7ee787;
    --c-num: #ffab70;
    --c-com: #76808c;
    --c-tit: #79c0ff;
    --c-var: #ff7b72;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1419;
  --surface: #161c22;
  --surface-2: #1c242c;
  --text: #e6edf3;
  --muted: #96a0ab;
  --faint: #76808c;
  --border: #252e38;
  --accent: #5aa9f5;
  --accent-soft: #15283d;
  --hl-blue: #5aa9f5;
  --hl-red: #ff7b72;
  --mark: #4a3f0f;
  --shadow: none;
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, .4);

  --c-key: #d2a8ff;
  --c-str: #7ee787;
  --c-num: #ffab70;
  --c-com: #76808c;
  --c-tit: #79c0ff;
  --c-var: #ff7b72;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.bar {
  max-width: 1180px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 14px; min-height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 650; letter-spacing: -.01em; font-size: 15.5px;
  margin-right: auto; white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.brand-suffix { color: var(--muted); font-weight: 500; }

#nav { display: flex; align-items: center; gap: 2px; }
#nav a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 7px 10px; border-radius: 7px; white-space: nowrap;
}
#nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
#nav a.active { color: var(--accent); background: var(--accent-soft); }

.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; flex: none;
  background: none; border: 1px solid transparent; border-radius: 8px;
  color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun,
:root[data-theme="dark"] .theme-btn circle.sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

.menu-btn { display: none; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 17px; height: 1.8px; background: currentColor; border-radius: 2px; }

@media (max-width: 900px) {
  .menu-btn { display: flex; }
  #nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 16px 14px; display: none; box-shadow: var(--shadow-lg);
  }
  #nav.open { display: flex; }
  #nav a { padding: 10px 12px; font-size: 16px; }
}

/* ---------- layout ---------- */
main { padding: 0 16px 76px; }
.inner { max-width: 760px; margin: 0 auto; }
.inner.wide { max-width: 1080px; }
.inner.narrow { max-width: 620px; }

.page-head { padding: 52px 0 28px; }
.page-head h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 17px; margin: 0; max-width: 62ch; }
.crumb { margin: 0 0 10px; font-size: 14px; }
.crumb a { color: var(--muted); }
.topics { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; }

/* ---------- home ---------- */
.hero { display: flex; gap: 30px; align-items: flex-start; padding: 60px 0 40px; }
.portrait {
  width: 124px; height: 124px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--border); box-shadow: var(--shadow); flex: none;
}
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(28px, 4.6vw, 38px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 18px; }
.nowrap { white-space: nowrap; }
.hero-bio p { margin: 0 0 14px; }

@media (max-width: 620px) {
  .hero { flex-direction: column; gap: 20px; padding-top: 40px; }
  .portrait { width: 92px; height: 92px; }
}

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 14.5px; font-weight: 550;
}
.btn:hover { background: var(--surface); text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 7px; }
.btn svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- home panels ---------- */
.col2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding-top: 42px; }
@media (max-width: 760px) { .col2 { grid-template-columns: 1fr; gap: 36px; } }

.band { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 38px; }

.sec-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); font-weight: 650; margin: 0 0 16px;
}
.sec-head a { color: var(--muted); }
.sec-head a:hover { color: var(--accent); text-decoration: none; }
.sec-count {
  font-size: 11px; letter-spacing: 0; padding: 1px 7px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.more { margin: 16px 0 0; font-size: 14.5px; }

/* ---------- cards ---------- */
.cards { display: flex; flex-direction: column; }
.card { padding: 14px 0; border-bottom: 1px solid var(--border); }
.card:first-child { padding-top: 0; }
.cards.list .card { padding: 20px 0; }
.card h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.012em; margin: 0 0 5px; font-weight: 600; }
.cards.list .card h3 { font-size: 19.5px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card-meta { color: var(--muted); font-size: 13px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-ex { color: var(--muted); font-size: 14.8px; margin: 8px 0 0; line-height: 1.6; }

.tag {
  display: inline-block; font-size: 11.5px; font-weight: 550; letter-spacing: .02em;
  padding: 2px 8px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
a.tag:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- talks ---------- */
.talks {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
/* Image-led cards: the talk's imagery fills the whole card and the text sits on
   a scrim over it, so these stay light-on-dark in both site themes. */
.talk {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 20px; background: #10151c; color: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.talk:hover { border-color: var(--muted); }
.talk > *:not(.talk-bg) { position: relative; z-index: 1; }

/* Faded imagery behind the card. Talk thumbnails usually carry their own title
   text, so this fades out well above the card heading to avoid two sets of words
   overlapping. */
.talk-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.talk-bg picture, .talk-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.talk-bg.grad::before {
  content: ""; position: absolute; inset: 0;
  --g1: hsl(214 70% 56%); --g2: hsl(240 68% 44%);
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.talk-bg.grad span {
  position: absolute; top: -4px; right: 14px;
  font-size: 56px; font-weight: 800; letter-spacing: -.045em; line-height: 1;
  color: #fff; opacity: .34;
}

/* contrast scrim — keeps the imagery readable the whole way down the card */
.talk-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, .3) 0%, rgba(8, 12, 18, .72) 48%, rgba(8, 12, 18, .88) 100%);
  transition: opacity .18s;
}
.talk:hover .talk-bg::after { opacity: .86; }

.talk .btn {
  color: #fff; background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(2px);
}
.talk .btn:hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .5); }

.talk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 10px; }
.talk-year {
  font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 680;
  letter-spacing: .04em; color: #fff;
  background: rgba(255, 255, 255, .2); padding: 2px 9px; border-radius: 20px;
}
.talk-note {
  font-size: 11px; font-weight: 620; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .26); padding: 2px 8px; border-radius: 20px;
}

.talk h3 {
  font-size: 17.5px; line-height: 1.36; letter-spacing: -.015em;
  margin: 0 0 8px; font-weight: 620;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}
.talk h3 a { color: #fff; }
.talk h3 a:hover { color: #fff; text-decoration: underline; }
.talk-venue { color: rgba(255, 255, 255, .8); font-size: 14.3px; margin: 0 0 4px; }
.talk-venue b { color: #fff; font-weight: 600; }
.talk-role { color: rgba(255, 255, 255, .64); font-size: 13.6px; margin: 0 0 4px; line-height: 1.5; }
.talk-links { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 0; padding-top: 14px; }

/* ---------- publications (same card treatment as talks) ---------- */
.pub h3 a { color: #fff; }
.pub h3 a:hover { color: #fff; text-decoration: underline; }
.pub-a { color: rgba(255, 255, 255, .78); font-size: 14.2px; margin: 0 0 4px; line-height: 1.5; }
.pub-a b { color: #fff; font-weight: 650; }
.pub .talk-venue { font-style: italic; font-size: 13.8px; }
.pub-bib {
  margin: 12px 0 0; overflow-x: auto; white-space: pre;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); padding: 13px 15px; color: rgba(255, 255, 255, .92);
  font-family: var(--mono); font-size: 12.2px; line-height: 1.6;
}

/* ---------- archive rows ---------- */
.searchbox { margin: 8px 0 26px; position: relative; }
.searchbox input {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 9px;
}
.searchbox input::placeholder { color: var(--faint); }
.searchbox input:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.qcount { color: var(--muted); font-size: 13px; margin: 9px 2px 0; min-height: 1em; }

.year {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  font-weight: 650; margin: 30px 0 6px; padding-bottom: 7px; border-bottom: 1px solid var(--border);
}
.year:first-child { margin-top: 0; }
.row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px; margin: 0 -10px; border-radius: 8px; color: var(--text);
}
.row:hover { background: var(--surface); text-decoration: none; }
.row-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; flex: none; width: 56px; }
.row-title { flex: 1; line-height: 1.45; font-size: 16px; }
.row:hover .row-title { color: var(--accent); }
.row-tag { color: var(--faint); font-size: 11.5px; flex: none; }
@media (max-width: 560px) {
  .row { flex-wrap: wrap; gap: 4px 12px; }
  .row-title { flex: 1 0 100%; order: 3; }
}

/* ---------- search page ---------- */
.result { padding: 18px 0; border-bottom: 1px solid var(--border); display: block; color: var(--text); }
.result:hover { text-decoration: none; }
.result h3 { font-size: 18px; margin: 0 0 5px; font-weight: 620; line-height: 1.35; }
.result:hover h3 { color: var(--accent); }
.result p { color: var(--muted); font-size: 14.6px; margin: 6px 0 0; line-height: 1.6; }
.result .card-meta { margin-top: 2px; }
.result mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.empty { color: var(--muted); padding: 30px 0; }
kbd {
  font-family: var(--mono); font-size: 11.5px; padding: 2px 6px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}

/* ---------- post ---------- */
.post-head { padding: 52px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.post-kind { margin: 0 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kind {
  font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 20px;
}
.kind:hover { text-decoration: none; filter: brightness(.96); }
.post-head h1 { font-size: clamp(27px, 4.6vw, 37px); line-height: 1.18; letter-spacing: -.028em; margin: 0 0 14px; }
.post-meta { color: var(--muted); font-size: 13.5px; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.dot { color: var(--border); }

.talk-facts {
  margin: 0 0 26px; padding: 16px 18px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
.talk-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14.5px; }
.talk-facts dt { color: var(--muted); font-weight: 550; }
.talk-facts dd { margin: 0; }

/* series callout */
.series-box {
  margin: 0 0 30px; padding: 17px 19px; border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface);
}
.series-box h2 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
  margin: 0 0 9px; font-weight: 680;
}
.series-box h2 a { color: var(--muted); }
.series-box ol { margin: 0; padding-left: 22px; font-size: 14.6px; }
.series-box li { margin: 0 0 5px; }
.series-box li.here { font-weight: 620; color: var(--text); }
.series-box li.here::marker { color: var(--accent); }

.series-card {
  display: block; padding: 20px 22px; border: 1px solid var(--border);
  border-radius: var(--radius); margin: 0 0 16px; color: var(--text); background: var(--bg);
}
.series-card:hover { text-decoration: none; border-color: var(--accent); background: var(--surface); }
.series-card h3 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.015em; font-weight: 620; }
.series-card:hover h3 { color: var(--accent); }
.series-card p { margin: 0; color: var(--muted); font-size: 14.8px; line-height: 1.6; }
.series-card .n { font-size: 12.5px; color: var(--faint); margin-top: 9px; display: block; }

/* ---------- prose ---------- */
.prose { font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-size: 23px; letter-spacing: -.02em; line-height: 1.3; margin: 46px 0 14px; }
.prose h3 { font-size: 20px; letter-spacing: -.015em; margin: 36px 0 12px; }
.prose h4 { font-size: 17.5px; margin: 32px 0 10px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 0 0 9px; }
.prose li > ul, .prose li > ol { margin: 9px 0 4px; }
.prose strong { font-weight: 650; }

.anchor {
  color: var(--faint); opacity: 0; margin-left: 9px; font-weight: 400;
  text-decoration: none; font-size: .78em;
}
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor { opacity: 1; }
.anchor:hover { color: var(--accent); text-decoration: none; }

.prose blockquote {
  margin: 24px 0; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent); color: var(--muted);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.codeblock { position: relative; margin: 0 0 22px; }
.codeblock pre {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 17px; margin: 0; overflow-x: auto;
  font-family: var(--mono); font-size: 13.4px; line-height: 1.62;
  color: var(--text); white-space: pre; tab-size: 4;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px; opacity: 0;
  padding: 4px 9px; font-size: 11.5px; font-weight: 600; font-family: var(--sans);
  color: var(--muted); background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: opacity .12s;
}
.codeblock:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--text); border-color: var(--muted); }
.copy-btn.done { color: var(--accent); border-color: var(--accent); opacity: 1; }

.prose code {
  font-family: var(--mono); font-size: .89em;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: .1em .38em; border-radius: 5px;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.prose figure { margin: 28px 0; }
.prose figcaption { color: var(--muted); font-size: 13.5px; text-align: center; margin-top: 10px; }
.prose img { display: block; margin: 0 auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }

.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  margin: 28px 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hl-blue { color: var(--hl-blue); }
.hl-red { color: var(--hl-red); }

.ta-justify { text-align: justify; }
.ta-left { text-align: left; }
.ta-right { text-align: right; }
.ta-center { text-align: center; }

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 11px; text-align: left; }
.prose th { background: var(--surface); font-weight: 650; }

/* ---------- syntax ---------- */
.hljs-keyword, .hljs-built_in, .hljs-type, .hljs-literal, .hljs-selector-tag { color: var(--c-key); }
.hljs-string, .hljs-attr, .hljs-attribute, .hljs-symbol, .hljs-regexp { color: var(--c-str); }
.hljs-number, .hljs-meta { color: var(--c-num); }
.hljs-comment, .hljs-quote { color: var(--c-com); font-style: italic; }
.hljs-title, .hljs-section, .hljs-name, .hljs-function { color: var(--c-tit); }
.hljs-variable, .hljs-template-variable, .hljs-params, .hljs-bullet { color: var(--c-var); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 650; }

/* ---------- prev / next ---------- */
.prevnext {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--border);
}
.pn {
  display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 15px; line-height: 1.4; font-weight: 550;
}
.pn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; background: var(--surface); }
.pn span {
  display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 650; margin-bottom: 5px;
}
.pn.next { text-align: right; }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } .pn.next { text-align: left; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 26px 16px; background: var(--surface); }
.site-footer .inner {
  max-width: 1080px; display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
}
.f-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; font-size: 14px; }
.f-copy { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .toc, .toc-m, .prevnext, .copy-btn, .series-box, .skip { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .post-layout { display: block; }
  main { padding: 0; }
  .prose a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #555; word-break: break-all; }
  .codeblock pre { border: 1px solid #bbb; background: #f7f7f7; white-space: pre-wrap; }
  .video { display: none; }
  h1, h2, h3, h4 { break-after: avoid; }
  .prose img, .codeblock { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* generated: per-talk gradient hues */
.grad-cloud-2021-vm-placement::before { --g1: hsl(228 70% 56%); --g2: hsl(254 68% 44%); }
.grad-cloud-summit-2020-faas2f::before { --g1: hsl(200 70% 56%); --g2: hsl(226 68% 44%); }
.grad-cscwd-2011-recommender::before { --g1: hsl(243 70% 56%); --g2: hsl(269 68% 44%); }
.grad-icecce-2021-perf::before { --g1: hsl(241 70% 56%); --g2: hsl(267 68% 44%); }
.grad-isncc-2022-testbed::before { --g1: hsl(223 70% 56%); --g2: hsl(249 68% 44%); }
.grad-msc-thesis-2011::before { --g1: hsl(246 70% 56%); --g2: hsl(272 68% 44%); }
.grad-my-talk-at-canheit-2018::before { --g1: hsl(235 70% 56%); --g2: hsl(261 68% 44%); }
.grad-my-talk-at-openinfra-days-north-america::before { --g1: hsl(219 70% 56%); --g2: hsl(245 68% 44%); }
.grad-open-infrastructure-summit-berlin-2020::before { --g1: hsl(219 70% 56%); --g2: hsl(245 68% 44%); }
.grad-openstack-summit-shanghai-2019::before { --g1: hsl(209 70% 56%); --g2: hsl(235 68% 44%); }
.grad-paper-accepted-in-atc-usenix::before { --g1: hsl(212 70% 56%); --g2: hsl(238 68% 44%); }
.grad-phd-thesis-2022::before { --g1: hsl(233 70% 56%); --g2: hsl(259 68% 44%); }
.grad-smartcloud-2019-usage::before { --g1: hsl(201 70% 56%); --g2: hsl(227 68% 44%); }
.grad-unfaasener-atc23::before { --g1: hsl(225 70% 56%); --g2: hsl(251 68% 44%); }
.grad-wosc7-sla-chains::before { --g1: hsl(229 70% 56%); --g2: hsl(255 68% 44%); }
