:root {
  --ink: #111111;
  --paper: #F6F3EC;
  --card: #FFFFFF;
  --accent: #FF5FAE;
  --accent-soft: #FFE3F1;
  --blue: #2F54EB;
  --muted: #55524B;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 4px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); padding: 8px 12px; border: var(--line); z-index: 10; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* header */
.top { border-bottom: var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--accent); text-underline-offset: 5px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.primary { background: var(--accent); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; background: var(--ink); color: var(--accent); padding: 6px 10px; margin-bottom: 18px; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: .95; letter-spacing: -.045em; margin: 0 0 14px; font-weight: 800; }
h1 .mark { background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); padding: 0 4px; }
.aka { color: var(--muted); font-size: 16px; margin: 0 0 22px; }
.role { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 18px; }
.bio p { margin: 0 0 14px; max-width: 620px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 600; background: var(--card); }

.photo { position: relative; }
.photo figure { margin: 0; border: var(--line); box-shadow: 10px 10px 0 var(--ink); background: var(--accent); }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sticker {
  position: absolute; background: var(--card); border: var(--line); box-shadow: var(--shadow-sm);
  padding: 10px 14px; font-weight: 800; line-height: 1.1; font-size: 15px;
}
.sticker b { display: block; font-size: 28px; letter-spacing: -.03em; }
.sticker.a { left: -28px; bottom: 36px; }
.sticker.b { right: -18px; top: 24px; background: var(--accent); }


/* sections */
section.block { padding: 72px 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.04em; line-height: 1; margin: 0; font-weight: 800; }
h2 .num { font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: 0; vertical-align: top; margin-right: 10px; background: var(--accent); border: 2px solid var(--ink); padding: 2px 6px; }
.lead { color: var(--muted); max-width: 520px; margin: 0; }

.card { background: var(--card); border: var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 24px; }
h3 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.2; }

/* topics */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.topics .card h3 { display: inline; background: linear-gradient(transparent 60%, var(--accent) 60%); }
.topics .card p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }

/* experience */
.jobs { display: grid; gap: 18px; }
.job { display: grid; grid-template-columns: 170px 1fr; gap: 24px; }
.job .when { font-family: "JetBrains Mono", monospace; font-size: 13px; padding-top: 4px; }
.job .now { display: inline-block; background: var(--accent); border: 2px solid var(--ink); padding: 1px 6px; margin-top: 6px; font-size: 11px; }
.job .org { font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.job p.desc { margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { background: var(--accent-soft); border: 1.5px solid var(--ink); padding: 1px 9px; font-size: 13px; font-weight: 600; border-radius: 3px; }

/* talks */
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.list { padding: 0; }
.list .title { padding: 16px 22px; border-bottom: var(--line); background: var(--ink); color: var(--paper); display: flex; justify-content: space-between; align-items: center; }
.list .title h3 { margin: 0; color: var(--paper); }
.list ul { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 2px solid var(--ink); }
.list a { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 22px; text-decoration: none; }
.list a:hover { background: var(--accent-soft); }
.list a strong { display: block; font-size: 16px; line-height: 1.3; }
.list a span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.arrow { font-weight: 800; font-size: 20px; }
.list.yellow .title { background: var(--accent); color: var(--ink); }
.list.yellow .title h3 { color: var(--ink); }

/* skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skills .card h3 { font-size: 18px; margin-bottom: 14px; }
.certs { margin-top: 26px; }
.certs table { width: 100%; border-collapse: collapse; font-size: 15px; }
.certs th, .certs td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.certs th { font-family: "JetBrains Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: var(--accent-soft); }
.certs tr:last-child td { border-bottom: 0; }

/* contact */
.contact { background: var(--accent); border-top: var(--line); border-bottom: var(--line); padding: 72px 0; }
.contact .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(38px, 6vw, 64px); }
.contact p { font-size: 19px; max-width: 520px; }
.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profiles a { background: var(--card); border: var(--line); box-shadow: var(--shadow-sm); padding: 12px 16px; font-weight: 700; text-decoration: none; display: flex; justify-content: space-between; }
.profiles a:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

footer { padding: 34px 0 40px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer p { margin: 0; color: var(--muted); }

@media (max-width: 920px) {
  .nav { display: none; }
  .hero .wrap, .two, .contact .wrap { grid-template-columns: 1fr; }
  .photo { max-width: 420px; margin: 10px auto 0; }
  .topics, .skills { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0; }
  .topics, .skills, .profiles { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .sticker.a { left: -6px; } .sticker.b { right: -6px; }
  .top .btn { display: none; }
  .certs td:nth-child(2), .certs th:nth-child(2) { display: none; }
  section.block { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* inner pages */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.page-hero { padding: 56px 0 40px; }
.page-hero .wrap { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: end; }
.page-hero h1 { font-size: clamp(42px, 6.5vw, 76px); }
.page-hero .lead { font-size: 19px; color: var(--ink); max-width: 640px; margin: 0 0 14px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--card); border: var(--line); box-shadow: var(--shadow-sm); padding: 12px 16px; font-weight: 600; }
.facts b { display: block; font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.year { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; margin-bottom: 26px; }
.year > h3 { font-size: 40px; letter-spacing: -.04em; margin: 0; position: sticky; top: 84px; }
.year .list { box-shadow: var(--shadow); }
.list a em { font-style: normal; font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; background: var(--accent); border: 1.5px solid var(--ink); padding: 0 5px; margin-left: 6px; vertical-align: 2px; }
.orgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.orgs a { text-decoration: none; display: block; }
.orgs a:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.orgs .card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 26px; }
.formats li { background: var(--card); border: 2px solid var(--ink); padding: 6px 14px; font-weight: 700; border-radius: 999px; }
@media (max-width: 920px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .orgs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .year { grid-template-columns: 1fr; gap: 10px; }
  .year > h3 { position: static; font-size: 32px; }
  .orgs { grid-template-columns: 1fr; }
}
.page-hero .wrap { align-items: center; grid-template-columns: 1.1fr 1fr; }
.page-hero .wrap + .wrap { display: block; margin-top: 36px; }
.page-hero .facts { grid-template-columns: repeat(3, 1fr); }
.photo.stage figure { box-shadow: 10px 10px 0 var(--ink); }
.photo.stage img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo.stage .sticker.b { top: -18px; right: -14px; }
@media (max-width: 600px) {
  .page-hero .facts { grid-template-columns: 1fr; }
  .photo.stage .sticker.b { right: -6px; }
}

/* language switcher */
.top .wrap { gap: 20px; }
.nav { margin-left: auto; }
.langs { display: flex; gap: 4px; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.langs a { text-decoration: none; border: 2px solid var(--ink); padding: 3px 7px; background: var(--card); font-weight: 500; }
.langs a[aria-current="true"] { background: var(--accent); }
.langs a:hover { background: var(--accent-soft); }
@media (max-width: 920px) { .langs { margin-left: auto; } }

/* article */
.wrap.narrow { max-width: 860px; }
.article-hero { padding: 52px 0 18px; }
.article-hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; }
.byline { display: flex; gap: 14px; align-items: center; margin-top: 22px; }
.byline img { width: 56px; height: 56px; border-radius: 50%; border: var(--line); object-fit: cover; }
.byline div { display: grid; gap: 2px; font-size: 15px; }
.byline a { text-decoration: none; }
.byline span { color: var(--muted); }
.byline .mono { font-size: 11px; }
.prose { font-size: 18px; }
.prose .lede { font-size: 21px; line-height: 1.5; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 40px 0 14px; }
.prose p { margin: 0 0 16px; }
.prose .note { background: var(--accent-soft); border-left: 4px solid var(--ink); padding: 12px 16px; font-size: 16px; }
.callout { margin: 30px 0; }
.callout h2 { margin-top: 0; }
.changes { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.changes td { padding: 10px 8px; border-top: 2px solid var(--ink); vertical-align: top; }
.changes td:first-child { white-space: nowrap; width: 70px; }
.changes span { color: var(--muted); }
.tips { padding-left: 22px; }
.tips li { margin-bottom: 10px; }
.toc { margin: 30px 0 10px; }
.toc p { margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; font-weight: 600; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.doc-section { padding-top: 34px; scroll-margin-top: 80px; }
.doc-section h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.03em; margin: 0 0 14px; }
.doc-section .note { background: var(--accent-soft); border-left: 4px solid var(--ink); padding: 12px 16px; font-size: 15.5px; margin: 0 0 16px; }
.list.docs a strong { font-size: 16px; }
.list.docs.compact ul { display: grid; grid-template-columns: 1fr 1fr; }
.list.docs.compact li + li { border-top: 0; }
.list.docs.compact li { border-bottom: 2px solid var(--ink); }
.list.docs.compact li:nth-child(odd) { border-right: 2px solid var(--ink); }
.list a em.st-moved { background: #DDE6FF; }
.list a em.st-workaround, .list a em.st-phasing { background: #FFE2B8; }
.list a em.st-new { background: var(--accent); }
.list a em.st-beta { background: #E9E4FF; }
.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; margin: 48px 0 60px; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; border: var(--line); object-fit: cover; }
.author-box h2 { margin: 2px 0 8px; font-size: 26px; }
.author-box h2 a { text-decoration: none; }
.author-box p { margin: 0 0 10px; font-size: 16px; }
@media (max-width: 600px) {
  .prose { font-size: 17px; }
  .toc ol { columns: 1; }
  .list.docs.compact ul { grid-template-columns: 1fr; }
  .list.docs.compact li:nth-child(odd) { border-right: 0; }
  .author-box { grid-template-columns: 1fr; }
}
footer .foot-link { flex-basis: 100%; margin: 0; }
footer .foot-link a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
