@font-face {
  font-family: "Departure Mono";
  src: url("fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PixelMplus10";
  src: url("fonts/PixelMplus10-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0d12;
  --text: #ece2e7;
  --muted: #9a8d95;
  --rule: #2a2530;
  --link: #ff6cb5;
  --accent: #ff6cb5;
}

* { box-sizing: border-box; }

html, body {
  cursor: url("cursors/nso_cursor.png") 4 0, auto;
}

a, .project-name {
  cursor: url("cursors/nso_point.png") 5 0, pointer;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0,
    rgba(0, 0, 0, 0.10) 1px,
    transparent 1px,
    transparent 3px
  );
}

body {
  font-family: "Departure Mono", "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.75;
  letter-spacing: 0;
}

::selection {
  background: var(--accent);
  color: #17141b;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 28px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}

h1 {
  font-family: "DotGothic16", "PixelMplus10", sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 108, 181, 0.35);
}

header img {
  width: 110px;
  height: auto;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow:
    0 0 0 2px var(--rule),
    0 0 24px rgba(255, 108, 181, 0.35),
    0 0 48px rgba(255, 108, 181, 0.15);
  outline: 1px solid rgba(255, 108, 181, 0.35);
  outline-offset: 6px;
}

p { margin: 0 0 24px; }

.sec {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: "DotGothic16", "PixelMplus10", monospace;
  font-size: 16px;
  color: var(--accent);
}

.sec::after {
  content: "";
  flex: 1;
  height: 2px;
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0 2px,
    transparent 2px 6px
  );
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}

a:hover {
  text-decoration-thickness: 2px;
  color: #ffa3cf;
}

.papers {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.papers li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.paper-title {
  font-family: "DotGothic16", "PixelMplus10", monospace;
  font-weight: 400;
  font-size: 17px;
}

a.paper-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paper-authors {
  color: var(--text);
  font-size: 14px;
}

.paper-venue {
  color: var(--muted);
  font-size: 14px;
}

.paper-venue.accepted {
  color: var(--accent);
}

.projects {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 32px;
  row-gap: 14px;
}

.projects li {
  display: contents;
}

.project-name {
  font-family: "DotGothic16", "PixelMplus10", monospace;
  font-weight: 400;
  font-size: 17px;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-desc {
  min-width: 0;
  align-self: baseline;
}

.arrow {
  display: inline-block;
  font-weight: 400;
  margin-left: 2px;
  color: var(--muted);
  transition: transform 0.15s, color 0.15s;
}

a:hover .arrow {
  transform: translate(2px, -2px);
  color: #ffa3cf;
}

@media (prefers-reduced-motion: reduce) {
  a, .arrow { transition: none; }
  a:hover .arrow { transform: none; }
}

footer {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.row .label {
  color: var(--muted);
  flex: 0 0 auto;
}

.row .rule {
  flex: 1 1 auto;
  height: 2px;
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0 2px,
    transparent 2px 4px
  );
  transform: translateY(-3px);
}

.row a { flex: 0 0 auto; }

@media (max-width: 480px) {
  main { padding: 64px 22px 48px; }
  .projects {
    display: block;
  }
  .projects li {
    display: block;
    padding: 10px 0;
  }
  .project-name {
    display: block;
  }
  .project-desc {
    display: block;
  }
}
