/* =========================================================
   Personal academic site — simple centered layout
   (numbered nav list, centered name block, plain icon links)
   ========================================================= */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 200;
  src: url('https://fonts.googleapis.com/css?family=Roboto+Slab') format('woff2');
}

/* @import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap'); */
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

:root {
  --ink: #1a1a1a;
  --muted: #302e2e;
  --link: #c28514;
  --hairline: #dddddd;
}

* { box-sizing: border-box; }

a:link {
  color: #9b308d;
  background-color: transparent;
  text-decoration: underline;
}

a:visited {
  color: #9b308d;
  background-color: transparent;
  text-decoration: none;
}

body {
  margin: 0px;
  background: #f0f0f0;
  color: var(--ink);
  /* font-family: Georgia, "Times New Roman", serif; */
  /* font-family: 'Roboto', sans-serif; */
  font-family: 'Lucida sans', Geneva, Verdana, sans-serif;
  font-family: monospace;
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--link); }
a:hover { text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  text-align: center;
}

/* numbered nav list, top of page, small sans-serif */
nav.numbered ol {
  list-style: none;
  background: #715d5e;
  border-radius: 5px;
  counter-reset: navcount;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0px 10px 20px;
  padding: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

nav.numbered li {
  counter-increment: navcount;
}

/* nav.numbered li::before {
  content: counter(navcount) ". ";
  color: var(--muted);
} */

nav.numbered a {
  /* color: var(--ink); */
  color : #f4f0f0;
  text-decoration: none;
}
nav.numbered a:hover { color: var(--link); }
nav.numbered li.active a {
  color: #f4f0f0;
  text-decoration: wavy underline;
  font-style:italic;
  text-underline-position: under;
}

.name {
  font-size: 25px;
  font-weight: bolder;
  margin: 0 0 4px;
}

.role {
  font-size: 17px;
  margin: 0 0 2px;
  color: var(--ink);
  text-align: left;
}

.affiliation {
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 20px;
}

.subrole {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 30px;
  text-align: left;
}

/* colored rectangular block housing the rest of the page content */
.panel {
  background: #ddbf97;
  border-radius: 6px;
  padding: 3px 30px 24px;
  margin-top: 6px;
}

/* three icon tiles under the name, like the reference site */
.tiles {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin: 30px 0 10px;
}

.tile {
  text-decoration: none;
  color: #616060;
  width: 130px;
}

.tile .icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: #616060;
}
.tile .icon svg { width: 44px; height: 44px; }

.tile span.label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--ink);
}

.tile:hover .icon { border-color: var(--link); }
.tile:hover span.label { color: var(--link); }

/* content pages (teaching / software / publications / about) */
.page-content {
  text-align: left;
  margin-top: 10px;
}

.page-content h1 {
  font-size: 26px;
  font-weight: normal;
  text-align: center;
  margin: 0 0 30px;
}

.entry {
  padding: 16px 0;
  font-weight: normal;
  border-bottom: 1px dashed var(--muted);
}
.entry:last-child { border-bottom: none; }

.entry .tag {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: normal;
  color: var(--muted);
}

.entry h3 { margin: 2px 0 4px; font-size: 18px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; }
.entry p { margin: 0; color: var(--muted); font-size: 15px; font-family: Arial, Helvetica, sans-serif; }

footer.stamp {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 60px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.box {
  white-space: pre; /* preserve the white spaces */
  font-size: 60px; /* use a big font-size */
  text-fit: shrink; /*allow the font-size to shrink when the box is small */
  font-weight: bold;
}