:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --accent: #1a1a1a;
  --bg: #fdfcfa;
  --border-color: #d4a52e;
  --border-width: 18px;
  --max-width: 1000px;
  --serif: "Roboto Condensed", sans-serif;
  --sans: "Roboto Condensed", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.bg-ripple {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("/img/ripple-bg.svg");
  background-size: cover;
  background-position: center;
}

.page-border {
  position: fixed;
  inset: 0;
  border: var(--border-width) solid var(--border-color);
  pointer-events: none;
  z-index: 1000;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--accent); }

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
  position: relative;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-family: var(--sans);
}

.site-name {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 1.95rem;
  border-bottom: none;
}
.site-name:hover { border-bottom: none; opacity: 0.7; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
}
.nav-links a {
  border-bottom: none;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0.5rem 0 1.25rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.pub-year {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  font-weight: normal;
}

.bio-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.bio { flex: 1; }
.bio p { margin: 0 0 1rem; }

.portrait {
  display: block;
  width: 170px;
  height: 170px;
  max-width: 170px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .bio-wrapper {
    flex-direction: column-reverse;
    align-items: center;
  }
  .portrait { width: 130px; height: 130px; }
}

.pub-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.pub-entry {
  margin-bottom: 1.35rem;
}

.pub-title {
  font-size: 1.02rem;
}

span.pub-title {
  border-bottom: none;
}

.pub-authors {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.pub-meta {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.pub-doi {
  border-bottom: none;
  color: var(--muted);
}
.pub-doi:hover { color: var(--text); }

.more-link {
  font-family: var(--sans);
  font-size: 0.92rem;
  border-bottom: none;
  color: var(--muted);
}
.more-link:hover { color: var(--text); }

.cv-download {
  font-family: var(--sans);
  font-size: 0.95rem;
}

.cv-content h2 {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: normal;
}

.cv-entry {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.cv-date {
  flex: 0 0 120px;
  min-width: 120px;
  color: var(--muted);
  font-size: 0.88rem;
  padding-top: 0.15em;
  line-height: 1.5;
}

.cv-body {
  flex: 1;
  min-width: 0;
}

.cv-org {
  font-weight: bold;
}

.cv-role {
  margin-top: 0.15rem;
}

.cv-desc {
  font-style: italic;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  .cv-entry {
    flex-direction: column;
    gap: 0;
  }
  .cv-date {
    font-size: 0.82rem;
    min-width: unset;
    margin-bottom: 0.15rem;
  }
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.social-links a {
  border-bottom: none;
  color: var(--muted);
  display: inline-flex;
}
.social-links a:hover { color: var(--text); }

@media (max-width: 500px) {
  body { font-size: 17px; }
  h1 { font-size: 1.6rem; }
}
