/* Anton Reinicke — personal site
   Proportions measured from nikiforovanina.github.io (1024px viewport):
     columns  48px gutter; 290px photo column | 90px gap | 577px text column
     photo    290 x 387 (3:4), square corners
     body     18.4px, light weight, #1a1a1a
     name     40px / 700, sits BELOW the photo
     headings 25.6px / 500, in the text column (no left rail, no dividers)
     links    same colour as the text, underlined — no blue anywhere
   No header bar, no nav, no JavaScript. */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300;
             src: url("assets/fonts/roboto-300.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400;
             src: url("assets/fonts/roboto-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500;
             src: url("assets/fonts/roboto-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700;
             src: url("assets/fonts/roboto-700.woff2") format("woff2"); font-display: swap; }

:root {
  --ink:   #1a1a1a;
  --link:  #8a1c1c;   /* dark red: marks what is clickable */
  --muted: #6a6a6a;
  --rule:  #d8d8d8;
  --bg:    #ffffff;

  --sans: "Roboto", Helvetica, Arial, sans-serif;
  --page: 1053px;   /* 48 + 957 + 48 */
  --pad:  48px;
  --col:  290px;    /* photo column */
  --gap:  90px;
}

* { box-sizing: border-box; }

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

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

/* dark red marks anything clickable */
a { color: var(--link); text-decoration: underline;
    text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff;
        padding: 10px 16px; z-index: 60; }
.skip:focus { left: 16px; top: 16px; }

.layout {
  max-width: var(--page);
  margin: 0 auto;
  padding: 60px var(--pad) 72px;
  display: grid;
  grid-template-columns: var(--col) 1fr;
  column-gap: var(--gap);
  align-items: start;
}

/* ---------------- left column ---------------- */

.portrait { margin: 0 0 26px; width: 100%; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  display: block;
}

.identity h1 {
  font-size: 40px; font-weight: 700; letter-spacing: -0.3px;
  line-height: 1.15; margin: 0 0 10px;
}
.identity .aff { margin: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.identity .meta { margin: 0; font-size: 16px; line-height: 1.9; }
.identity .meta a { display: block; }

.profiles { margin: 18px 0 0; display: flex; align-items: center; gap: 15px; }
.profiles a { display: inline-flex; color: var(--ink); text-decoration: none; line-height: 0; }
.profiles a:visited { color: var(--ink); }
.profiles a:hover { opacity: 0.6; }
.profiles svg { width: 19px; height: 19px; display: block; fill: currentColor; }

/* ---------------- right column ---------------- */

.body { min-width: 0; }
.body .intro p { font-size: 18.4px; }

h2 {
  font-size: 25.6px; font-weight: 500; line-height: 1.2;
  margin: 38px 0 18px;
}

.paper { margin-bottom: 30px; }
.paper:last-child { margin-bottom: 0; }
.paper .title { margin: 0 0 3px; font-size: 17px; font-weight: 500;
                color: var(--ink); line-height: 1.45; letter-spacing: -0.1px; }
.paper .co    { margin: 0; font-size: 17px; font-weight: 300; color: var(--muted); }

/* a row of links under a paper: PDF | Slides | Abstract */
.paper .links { margin: 3px 0 0; font-size: 16px; }
.paper .links a + a::before { content: " | "; color: var(--muted); text-decoration: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  :root { --pad: 32px; --col: 240px; --gap: 48px; }
  body { font-size: 17px; }
  .identity h1 { font-size: 34px; }
}

@media (max-width: 680px) {
  :root { --pad: 20px; }
  .layout { grid-template-columns: 1fr; padding-top: 36px; }
  .portrait { max-width: 260px; }
  .identity { margin-bottom: 34px; }
  h2 { margin-top: 30px; }
}

@media print {
  .skip, .profiles { display: none !important; }
  body { font-size: 11pt; }
  .layout { display: block; }
  a { text-decoration: none; }
}
