@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-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+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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-greek-400-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-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+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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-greek-500-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-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+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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-greek-600-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --bg: #191536;
  --panel: #221d45;
  --ink: #ece9f6;
  --muted: #aaa3c9;
  --amber: #f4a95b;
  --line: #332c63;
  --gutter: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--amber);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  margin: 0;
}

p {
  margin: 0 0 16px;
}

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

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  position: relative;
  z-index: 2;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.site-header.over-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.site-name {
  color: var(--ink);
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--amber);
}

.strip {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.strip > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 21, 54, 0.15) 0%, rgba(25, 21, 54, 0.25) 55%, var(--bg) 100%);
}

.strip-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 1;
}

.strip h1 {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.strip .role {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.home-cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 80px;
  padding-top: 48px;
}

.section-title {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bio {
  max-width: 36em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 20px 0 48px;
  font-size: 15px;
  font-weight: 500;
}

.about-text .links {
  margin: 28px 0 0;
}

.page-cv {
  min-height: 40vh;
}

.project-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.project-item h3 {
  font-size: 16.5px;
  font-weight: 500;
}

.project-item h3 a {
  color: var(--ink);
}

.project-item p {
  color: var(--muted);
  font-size: 15.5px;
}

.paper-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.paper-row:hover {
  text-decoration: none;
}

.paper-row img,
.paper-row .no-figure {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--panel);
}

.paper-row .name {
  display: block;
  font-weight: 500;
  line-height: 1.4;
}

.paper-row:hover .name {
  color: var(--amber);
}

.paper-row .full {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.page {
  padding-top: 40px;
}

.page-title {
  margin-bottom: 32px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page-title a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.page-title a:hover {
  color: var(--amber);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 80px;
  align-items: start;
}

.about-text {
  max-width: 38em;
  font-size: 17.5px;
  line-height: 1.65;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 3px;
}

.project-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.project-card:hover {
  text-decoration: none;
}

.project-card img {
  width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

.project-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 500;
}

.project-card:hover h2 {
  color: var(--amber);
}

.project-card p {
  max-width: 40em;
  color: var(--muted);
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}

.project-detail p {
  max-width: 38em;
  font-size: 18px;
  line-height: 1.65;
}

.project-detail img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

.paper-list .paper-row {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
}

.paper-list .paper-row img,
.paper-list .paper-row .no-figure {
  width: 120px;
  height: 120px;
}

.paper-list .paper-row .name {
  font-size: 18px;
}

.paper-list .paper-row .full {
  font-size: 15.5px;
}

.crumb {
  margin: 0 0 14px;
  font-size: 15px;
}

.paper-page-title {
  max-width: 30em;
  margin-bottom: 36px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.paper-page-title a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.paper-page-title a:hover {
  color: var(--amber);
}

.paper-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}

.abstract {
  max-width: 40em;
}

.abstract ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.abstract li {
  margin-bottom: 8px;
}

.abstract strong {
  font-weight: 600;
}

.figure {
  margin: 0;
  padding: 12px;
  background: #fff;
  border-radius: 4px;
}

.figure img {
  width: 100%;
}

.pager {
  display: flex;
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.pager a {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 50%;
  padding: 24px 0;
  color: var(--ink);
}

.pager a:hover {
  color: var(--amber);
  text-decoration: none;
}

.pager-next {
  justify-content: flex-end;
  margin-left: auto;
  text-align: right;
}

.pager svg {
  flex: none;
  width: 10px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  gap: 80px;
  padding-top: 32px;
  padding-bottom: 56px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 900px) {
  :root {
    --gutter: 22px;
  }

  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 6px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .site-nav {
    gap: 20px;
  }

  .strip {
    height: 260px;
  }

  .strip h1 {
    font-size: 36px;
  }

  .strip .role {
    font-size: 16px;
  }

  .home-cols,
  .about,
  .project-detail,
  .paper-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .home-cols {
    padding-top: 32px;
  }

  .page {
    padding-top: 16px;
  }

  .page-title {
    font-size: 32px;
  }

  .paper-page-title {
    font-size: 24px;
  }

  .about-photo {
    max-width: 360px;
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .project-card img {
    width: 100%;
    max-width: 360px;
  }

  .paper-list .paper-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
  }

  .paper-list .paper-row img,
  .paper-list .paper-row .no-figure {
    width: 88px;
    height: 88px;
  }

  .paper-list .paper-row .name {
    font-size: 16.5px;
  }

  .paper-list .paper-row .full {
    font-size: 14.5px;
  }

  .pager {
    margin-top: 48px;
  }

  .pager a {
    gap: 12px;
  }

  .site-footer {
    margin-top: 64px;
  }

  .site-footer .wrap {
    flex-direction: column;
    gap: 28px;
  }
}

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