/* siniaev.dev home and CV, "control room": same tokens, type and section labels as the field notes. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-400-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-ext-400-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-500-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-ext-500-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-600-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-ext-600-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-700-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-ext-700-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-600-italic.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; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-ext-600-italic.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; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-400-italic.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; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-ext-400-italic.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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-500-normal.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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-ext-500-normal.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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-700-normal.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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-ext-700-normal.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; }
:root {
  color-scheme: dark;
  --bg: #0a0b0f;
  --panel: #12141c;
  --ink: #f4f5f7;
  --ink-2: #c9cdd4;
  --muted: #9aa0ab;
  --rule: #262a35;
  --sans: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --inset: 20px;
  --col: 680px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; margin: 0; }
p, li { text-wrap: pretty; }

.page { max-width: 1120px; margin: 0 auto; padding: 0 40px 80px; }
.strip { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--rule); max-width: var(--col); margin: 0 auto;
         font: 12px/1.4 var(--mono); color: var(--muted); }
/* The top bar stays on screen; its ground runs edge to edge. */
.strip { position: sticky; top: 0; z-index: 10; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
html { scroll-padding-top: 64px; }
.strip a { text-decoration: none; }
.strip a[href="/"] { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; }  /* the way home */ .strip a:hover { color: var(--ink); }

.hello { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0 24px;  /* same column as the lists below */ padding: 64px 0 0; align-items: start; max-width: var(--col); margin: 0 auto; }
.hello.solo { grid-template-columns: minmax(0, var(--col)); }
.hello.solo h1 + .intro { margin-top: 16px; }
.portrait { width: 128px; height: 128px; object-fit: cover; display: block; border-radius: 2px; }
h1 { font-size: 56px; line-height: 1.05; letter-spacing: -.02em; max-width: 17ch; }
.role { font: 500 12.5px/1.5 var(--mono); color: var(--muted); margin: 16px 0 16px; }
.intro { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 36em; }

/* Sections: a numbered label with a heavy rule, then the reading column. */
section { padding: 64px 0 0; max-width: var(--col); margin: 0 auto; }
.hello + section { padding-top: 40px; }
.num { font: 500 12.5px/1.4 var(--mono); color: var(--muted); padding-bottom: 8px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.num b { color: var(--ink); font-weight: 700; margin-right: 4px; }
h2.num { letter-spacing: 0; max-width: none; text-wrap: nowrap; }  /* real headings for crawlers, styled as labels */
h2 { font-size: 30px; line-height: 1.18; letter-spacing: -.01em; margin-bottom: 16px; }
section p { margin: 0 0 16px; color: var(--ink-2); }

/* Chips: the one place colour appears, each project's accent on dark. */
.chip { justify-self: start; display: inline-block; font: 700 13px/1 var(--mono); color: var(--c, var(--ink)); border: 1px solid var(--c, var(--ink));
        padding: 8px 12px; border-radius: 2px; text-decoration: none; white-space: nowrap; }
button.chip { background: none; cursor: pointer; }
a.chip:hover, button.chip:hover { background: var(--c, var(--ink)); color: var(--bg); }
.chip.soon { border-style: dashed; }


ul.principles { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
ul.principles li { color: var(--ink-2); line-height: 1.5; padding-left: 4px; }
ul.principles li::marker { color: var(--muted); }
ul.principles b { color: var(--ink); font-weight: 600; }

ul.rows { list-style: none; padding: 0; margin: 0; }
ul.rows li:first-child { padding-top: 0; }
ul.rows li { display: grid; grid-template-columns: 128px 1fr; gap: 4px 24px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule); }
ul.rows .chip { margin-top: 9px; }  /* chip sits on the first text line */
ul.rows p { margin: 0 0 4px; }
.meta { font: 500 12.5px/1.5 var(--mono); color: var(--muted); }
.meta a { color: var(--ink-2); }
.meta a[href^="http"]::after, dl.contact a[href^="http"]::after, ol.jobs a[href^="http"]::after { content: "\00a0↗"; }  /* only links that leave the site */

ol.jobs { list-style: none; padding: 0; margin: 0 0 24px; }
ol.jobs li:first-child { padding-top: 0; }
ol.jobs li { display: grid; grid-template-columns: 128px 1fr; gap: 0 24px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
section .more { margin: 0; font: 500 12.5px/1.5 var(--mono); }
section .more a[href^="http"]::after { content: "\00a0↗"; }
ol.jobs .yrs { font: 500 12px/1.7 var(--mono); color: var(--muted); white-space: nowrap; }
#experience ol.jobs .yrs { letter-spacing: -.02em; }  /* dates and tenure fit the 128px column on one line */

dl.contact { display: grid; grid-template-columns: 128px 1fr; gap: 8px 24px; margin: 0; align-items: center; }
dl.contact dt, dl.contact dd { min-height: 32px; display: flex; align-items: center; }  /* button and revealed link share one height */
dl.contact dt { font: 500 13px/1.7 var(--mono); color: var(--muted); } dl.contact dd { margin: 0; }

footer { max-width: var(--col); margin-left: auto; margin-right: auto; border-top: 1px solid var(--rule); margin-top: 64px; padding-top: 16px; font: 12.5px/1.5 var(--mono); color: var(--muted); }

/* CV page */
.cv h3 { font-size: 18px; line-height: 1.35; }
.cv .job { padding: 0 0 24px; }
.cv .job + .job { padding-top: 24px; border-top: 1px solid var(--rule); }
.cv .job .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.cv .job .sub { color: var(--muted); font-size: 15px; margin: 4px 0 8px; }
.cv ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.cv li { margin: 4px 0; } .cv li::marker { color: var(--muted); }

nav.jump { max-width: var(--col); margin: 0 auto; padding-top: 32px; font: 500 12.5px/2 var(--mono); color: var(--muted); }
nav.jump a { color: var(--ink-2); text-decoration-color: var(--rule); }
nav.jump span { color: var(--muted); }
nav.jump + section { padding-top: 32px; }
.books-page section { padding-top: 40px; }
.books-page h2.num { margin-bottom: 12px; }

/* More from siniaev.dev, before the footer on CV and books. */
.more-notes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.more-notes li { color: var(--ink-2); }
.more-notes a { font-weight: 600; color: var(--ink); margin-right: 4px; }

/* Books: one annotated list per topic; the note gets the full reading width. */
ul.shelf { list-style: none; padding: 0; margin: 0; }
ul.shelf li { display: grid; grid-template-columns: 32px 1fr; gap: 0 16px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule); }
ul.shelf li:first-child { padding-top: 0; }
ul.shelf img, ul.shelf .nocover { width: 32px; height: 48px; object-fit: cover; display: block; border: 1px solid var(--rule); border-radius: 2px; }
ul.shelf img.square, .covers img.square { object-fit: contain; background: var(--panel); }  /* square course covers shown whole */
ul.shelf .nocover { box-sizing: border-box; padding: 4px; background: var(--panel); color: var(--ink-2); font: 700 6px/1.2 var(--sans); overflow: hidden; }
ul.shelf h3 { display: inline; font-size: 16px; line-height: 1.35; margin: 0; }
ul.shelf .by { display: inline; margin: 0 0 0 8px; font: 500 12px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
ul.shelf .why { margin: 2px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.star { color: #f5c542; font-weight: 400; font-family: var(--mono); font-variant-emoji: text; }
.covers { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; overflow: hidden; }  /* one row; narrow screens show fewer */
.covers li { flex: none; }
.covers img, .covers .nocover { width: 48px; height: 72px; object-fit: cover; display: block; border: 1px solid var(--rule); border-radius: 2px; }
.covers .nocover { box-sizing: border-box; padding: 4px; background: var(--panel); color: var(--ink-2); font: 700 7px/1.2 var(--sans); overflow: hidden; }
.intro a, section p a { text-decoration-color: var(--muted); }

@media (max-width: 720px) {
  :root { --inset: 16px; }
  .page { padding: 0 24px 64px; }
  .hello { grid-template-columns: 1fr; padding: 40px 0 0; }
  .hello + section { padding-top: 32px; }
  .portrait { width: 112px; height: 112px; margin-bottom: 24px; }
  h1 { font-size: 36px; }
  .intro { font-size: 18px; }
  h2 { font-size: 26px; }
  section { padding-top: 48px; }
  ul.rows li, ol.jobs li, dl.contact { grid-template-columns: 1fr; }
  ul.shelf .by { display: block; margin: 2px 0 0; }
  ul.shelf .au { display: none; }  /* phones: title, years, note; the author is one tap away */
  ul.rows .chip { margin-top: 0; }
  dl.contact dt { min-height: 0; }
  dl.contact dd { margin-bottom: 8px; }
}
