@import url(https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Zilla+Slab:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap);

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

body {
  font-family: 'Inconsolata', monospace;
  font-size: 14px;
  font-weight: 400;
  color: #696969;
  line-height: 1.6;
  background-color: #faf8f5;
  padding: 0;
}

.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
header {
  width: 100%;
  float: none;
  position: static;
  margin-bottom: 30px;
}

header h1 {
  font-family: 'Zilla Slab', serif;
  font-size: 32px;
  font-weight: 600;
  color: #222;
  margin: 0 0 4px;
}

header h1 a {
  color: #222;
  text-decoration: none;
}

header h1 a:hover {
  color: #663399;
}

.shortbio {
  color: #696969;
  font-size: 14px;
  margin: 0 0 16px;
}

/* Navigation */
nav {
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 0;
  margin-bottom: 30px;
}

nav a {
  color: #663399;
  text-decoration: none;
  margin-right: 20px;
  font-size: 14px;
  font-weight: 500;
}

nav a:hover {
  color: #222;
}

nav a.active {
  color: #222;
  font-weight: 700;
}

/* Main content */
main {
  width: 100%;
  float: none;
}

section {
  width: 100%;
  float: none;
  padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inconsolata', monospace;
  color: #222;
  margin: 0 0 16px;
  line-height: 1.2;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; color: #393939; }
h3 { font-size: 16px; color: #494949; }

p, ul, ol, table, pre, dl {
  margin: 0 0 16px;
}

a {
  color: #663399;
  text-decoration: underline dotted #E6E6FA;
}

a:hover {
  color: #222;
  text-decoration: underline;
}

strong {
  color: #222;
  font-weight: 700;
}

em {
  font-style: italic;
}

hr {
  border: 0;
  background: #e5e5e5;
  height: 1px;
  margin: 24px 0;
}

/* Home row — photo + bio side by side */
.home-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.home-photo {
  flex-shrink: 0;
}

.home-photo img {
  width: 220px;
  border-radius: 4px;
}

.bio {
  flex: 1;
}

@media screen and (max-width: 600px) {
  .home-row {
    flex-direction: column;
    gap: 16px;
  }

  .home-photo img {
    width: 180px;
  }
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0 0 20px;
}

th, td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid #e5e5e5;
}

th {
  color: #444;
  font-weight: 700;
}

/* Publication entries (from academimal) */
.pub-entry {
  margin-bottom: 20px;
}

/* Footer */
footer {
  width: 100%;
  float: none;
  position: static;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  font-size: 12px;
  color: #999;
}


/* Responsive */
@media screen and (max-width: 600px) {
  .wrapper {
    padding: 20px 15px;
  }

  header h1 {
    font-size: 24px;
  }

  nav a {
    margin-right: 12px;
    font-size: 13px;
  }

  .home-photo img {
    max-width: 200px;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 4px 6px;
  }
}

@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
    color: #444;
  }
}
