/* ============================================
   Minimal academic site — inspired by benji.org
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f9f8f6;
  color: #111;
  margin: 0;
  padding: 0;
}

body,
td,
th,
tr,
p,
a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #111;
}

strong {
  font-weight: 600;
}

/* ============================================
   LINKS — underlined, same color as text
   ============================================ */
a {
  color: #111;
  text-decoration: underline;
  text-decoration-color: #999;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

a:focus,
a:hover {
  text-decoration-color: #111;
}

/* ============================================
   NAME
   ============================================ */
.name {
  padding-top: 20px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

/* ============================================
   HEADINGS
   ============================================ */
h2 {
  margin: 0;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 18px;
  color: #111;
  letter-spacing: -0.01em;
}

/* ============================================
   PAPER TITLE
   ============================================ */
.papertitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

/* ============================================
   PAPER THUMBNAILS
   ============================================ */
.one {
  width: 160px;
  height: 160px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f5f5;
}

.one img {
  border-radius: 4px;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
}

/* ============================================
   PAPER ROW
   ============================================ */
tr {
  transition: background-color 0.2s ease;
}

/* ============================================
   HIGHLIGHT
   ============================================ */
span.highlight {
  background-color: #ffffd0;
}

/* ============================================
   CONTACT LINKS
   ============================================ */
.contact-links a {
  font-size: 14px;
}

/* ============================================
   BACKGROUND SECTION
   ============================================ */
.background-section {
  background: #fafafa;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #eee;
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-text {
  color: #999;
  font-size: 12px;
}

.footer-text a {
  color: #999;
}

.footer-text a:hover {
  color: #111;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background-color: #111;
  color: #fff;
}