:root {
  --bg: #fcfbf8;
  --text: #2f3437;
  --muted: #6f777d;
  --heading: #1f2529;
  --link: #0b5fa5;
  --link-hover: #083d6b;
  --accent: #d9e7f3;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:focus,
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

body,
td,
th,
tr {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

body {
  margin: 0;
  background: var(--bg);
}

p {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  margin: 0;
  line-height: 1.75;
}

papertext,
author {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

a {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

strong {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--heading);
  font-weight: 600;
}

heading {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 22px;
  color: var(--heading);
}

papertitle {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

author {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

name {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

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

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

span.highlight {
  background-color: #fff4c8;
}

h2 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 18px;
  line-height: 1.1;
  color: var(--heading);
  letter-spacing: -0.04em;
}

h3 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 16px;
  color: var(--heading);
  font-weight: 600;
}

h4 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 16px;
  margin: 0;
  color: var(--heading);
  font-weight: 600;
}

ul {
  margin: 0;
  padding-left: 18px;
}

/* Image hover effects */
.hoverZoomLink {
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  border-radius: 12px;
}

.hoverZoomLink:hover {
  transform: scale(1.03);
}

.publication-media,
.publication-content {
  padding: 14px 10px;
  vertical-align: top;
}

.publication-media {
  width: 20%;
}

.publication-preview {
  width: 220px;
  max-width: 100%;
  display: block;
  border: 0;
  border-radius: 12px;
  background: #dfe6ee;
}

.publication-content {
  width: 80%;
}

.publication-content p:first-child {
  margin-bottom: 8px;
}

.publication-content p:last-child {
  margin-top: 12px;
}

td[width="65%"] p:first-child {
  margin-bottom: 26px;
}

table[width="900"] {
  margin-top: 28px;
  margin-bottom: 28px;
}

table[width="900"]:first-of-type {
  margin-top: 56px;
}

span strong {
  color: inherit;
}

.footer-updated {
  text-align: right;
}

.footer-credit {
  margin-top: 8px;
  text-align: center;
}

/* Responsive design for smaller screens */
@media (max-width: 900px) {
  table[width="900"] {
    width: 100% !important;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 0 18px;
  }

  td[width="65%"],
  td[width="30%"],
  td[width="20%"],
  td[width="80%"] {
    width: 100% !important;
  }

  td[width="30%"] {
    display: block;
    padding-left: 0 !important;
    padding-top: 16px;
  }

  .publication-media,
  .publication-content {
    display: block;
    width: 100% !important;
    padding: 8px 0;
  }

  .publication-preview {
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  .visitor-widget {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  name {
    font-size: 40px;
  }

  h2 {
    font-size: 24px;
  }
}
