:root {
  --bg: #eef3f8;        /* very washed-out blue */
  --text: #1f2a36;
  --muted: #5a6878;
  --accent: #3d5a80;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Libertinus Serif", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Libertinus Serif", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

a { color: var(--accent); }

.page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* The profile fills the first screen minus a strip at the bottom,
   so it sits centred on landing while the Papers heading peeks in below. */
.profile {
  min-height: calc(100vh - 6rem);
  min-height: calc(100svh - 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.links a {
  color: var(--muted);
  text-decoration: none;
}

.links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bio {
  margin-top: 2rem;
}

.bio p {
  margin: 0 0 1em;
}

.bio a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.papers {
  margin-top: 0;
}

.papers h2 {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.papers ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.paper {
  margin-bottom: 1.5rem;
}

.paper-title {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.paper-title:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paper-authors,
.paper-venue,
.paper details {
  font-size: 0.9rem;
  color: var(--muted);
}

.paper-authors .me {
  color: var(--text);
}

.paper-venue {
  font-style: italic;
}

.paper summary {
  cursor: pointer;
  width: fit-content;
}

.paper summary:hover {
  color: var(--accent);
}

.paper details p {
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

/* Full-width strip flush with the bottom of the page. Only shown on devices
   with a hovering, precise pointer (a mouse or trackpad), not touch screens. */
.playground {
  display: none;
  margin-top: 1rem;
}

@media (hover: hover) and (pointer: fine) {
  .playground { display: block; }
}

#dominoes {
  display: block;
  width: 100%;
  height: 220px;
}
