/* --- Reset & Base --- */

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

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1c1c1c;
  background: #f7f5f2;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* --- Typography --- */

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  font-variation-settings: "WONK" 0, "SOFT" 0;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: #002147;
}

p {
  margin-bottom: 1rem;
}

a {
  font-family: "Fraunces", Georgia, serif;
  color: #800020;
  text-decoration-color: #c4a0a0;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

a:hover {
  text-decoration-color: #800020;
}

/* --- Nav --- */

nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

nav a {
  font-variation-settings: "WONK" 1, "SOFT" 50;
}

nav a:first-child {
  font-weight: 600;
  font-size: 1.05rem;
  margin-right: auto;
  color: #002147;
}

/* --- Sections --- */

section {
  margin-bottom: 2.5rem;
}

/* --- Lists --- */

ul {
  list-style: none;
}

li {
  margin-bottom: 0.5rem;
}

li time {
  color: #999;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* --- CV --- */

.cv-list li {
  margin-bottom: 1.25rem;
}

.cv-list strong {
  color: #002147;
}

.cv-list p {
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #444;
}

.cv-body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: #1c1c1c;
}

.cv-date {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.1rem;
}

/* --- Publications --- */

.pub-list li {
  margin-bottom: 1.25rem;
}

.pub-title {
  font-weight: 600;
  color: #002147;
  margin-bottom: 0.1rem;
}

.pub-authors {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.1rem;
}

.pub-journal {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0;
}

/* --- Shuffle text --- */

.shuffle {
  color: #800020;
  border-bottom: 1px dashed #c4a0a0;
  cursor: pointer;
  position: relative;
}

.shuffle::after {
  content: "|";
  font-weight: 300;
  color: #800020;
  animation: blink 0.8s step-end infinite;
  margin-left: -1px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Footer --- */

footer {
  margin-top: 4rem;
  font-size: 0.8rem;
  color: #999;
}
