:root {
  --paper: #f2f5f7;
  --panel: #ffffff;
  --ink: #13293d;
  --muted: #5a6e80;
  --line: #d5dfe7;
  --go: #00add8;
  --go-deep: #007d9c;
  --go-soft: #d9f2f9;
  --block: #ce3262;
  --block-soft: #f9dfe7;
  --value: #fddd00;
  --ok: #00a29c;
  --ok-soft: #d4f0ee;
  --accent: var(--go);
  --accent-deep: var(--go-deep);
  --accent-soft: var(--go-soft);
  --font: "Golos Text", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-s: 6px;
  --r-m: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(16px, 0.6vw + 13px, 19px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
a { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* JetBrains Mono would turn <= into ≤ etc.; turn ligatures off wherever the mono font can appear */
pre, code, kbd, samp, .val, .gchip, .mchip, .pchip, .opt, .sel-code {
  font-variant-ligatures: none;
  font-feature-settings: "calt" 0, "liga" 0;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--accent-soft);
  padding: 0.08em 0.35em;
  border-radius: 4px;
}
pre.code {
  margin: 0;
  font-family: var(--mono);
  background: var(--ink);
  color: #e3ecf3;
  border-radius: var(--r-m);
  padding: 14px 18px;
  overflow-x: auto;
  font-size: clamp(12px, 0.45vw + 10px, 15px);
  line-height: 1.6;
}
pre.code code { background: none; padding: 0; font-size: inherit; color: inherit; }
.code .k { color: #5dc9e2; }
.code .s { color: #9ee6c9; }
.code .c { color: #8aa0b4; font-style: normal; } /* the mono font has no italic: Cyrillic would fall back to a serif */
.code .n { color: #f7a8c0; }
.code .op { color: var(--value); font-weight: 700; }

.btn {
  font: inherit;
  font-size: 0.86em;
  font-weight: 600;
  border: 1.5px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45em 1em;
  min-height: 40px;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:hover:not(:disabled) { background: var(--accent-soft); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn code, .deck .btn code { background: none; padding: 0; color: inherit; font-size: 0.95em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Home page */
.home { max-width: 860px; margin: 0 auto; padding: clamp(32px, 8vw, 96px) clamp(18px, 5vw, 40px) 64px; }
.home-head h1 { font-size: clamp(2.2rem, 5vw + 0.5rem, 4rem); max-width: 14ch; }
.home-head .lead { margin-top: 18px; color: var(--muted); font-size: 1.1em; max-width: 52ch; }
.talks { list-style: none; margin: clamp(36px, 7vw, 72px) 0 0; padding: 0; border-top: 2px solid var(--ink); }
.talks li { border-bottom: 1px solid var(--line); }
.talk {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 32px);
  align-items: center;
  padding: 24px 4px;
  color: inherit;
  text-decoration: none;
}
.talk:hover h2 { color: var(--go-deep); }
.talk h2 { font-size: clamp(1.35rem, 1.5vw + 0.9rem, 1.9rem); }
.talk p { margin-top: 8px; color: var(--muted); max-width: 56ch; }
.talk .talk-meta { font-size: 0.85em; margin-top: 10px; color: var(--ink); }
.talk-art { width: 112px; aspect-ratio: 1; border-radius: var(--r-m); background: var(--ink); display: grid; place-items: center; }
.talk-art svg { width: 76%; }
.home-section { margin-top: clamp(48px, 8vw, 88px); }
.home-section > h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.5rem); }
.home-section > p { margin-top: 8px; color: var(--muted); max-width: 60ch; }
.home-section .talks { margin-top: 20px; }
.talk-step { font-family: var(--mono); font-weight: 700; color: var(--muted); margin-right: 0.4em; }
.home-foot { margin-top: 48px; font-size: 0.88em; color: var(--muted); }
@media (max-width: 520px) {
  .talk { grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
  .talk-art { width: 72px; }
}
