/* tcassidey.github.io
   Hand-written stylesheet. No frameworks, no build step.
   One column, serif type, classic underlined links. */

html {
  font-size: 112.5%; /* 18px base */
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 42em;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

p { margin: 0 0 1rem; }

a { color: #00308f; }
a:visited { color: #551a8b; }
a:hover, a:focus { color: #a00; }

hr {
  border: 0;
  border-top: 1px solid #bbb;
  margin: 1rem 0;
}

/* ---------- masthead ---------- */

.masthead { text-align: center; }

.masthead h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: normal;
  letter-spacing: 0.01em;
}

.masthead .title {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  font-style: italic;
  color: #444;
}

nav {
  text-align: center;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

nav a { margin: 0 0.45em; }

nav a[aria-current="page"] {
  color: #111;
  text-decoration: none;
  font-weight: bold;
}

/* ---------- headings ---------- */

h2 {
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #ccc;
  font-size: 1.05rem;
  font-weight: normal;
  font-variant: small-caps;
  letter-spacing: 0.07em;
}

h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1rem;
  font-style: italic;
  font-weight: normal;
}

/* ---------- home ---------- */

.headshot {
  float: right;
  width: 130px;
  height: 130px;
  margin: 0.3rem 0 1rem 1.5rem;
  border-radius: 50%;
}

.centered { text-align: center; margin: 1.5rem 0; }
.centered img { max-width: 100%; height: auto; }

.contact {
  line-height: 2;
  word-spacing: 0.1em;
}

/* ---------- publications ---------- */

.pubs {
  margin: 0;
  padding-left: 1.8em;
}

.pubs > li { margin-bottom: 1.5rem; }

.pubs .venue { font-size: 0.95rem; }

.pubs .refs {
  font-size: 0.85rem;
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

.pubs .note {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #444;
}

/* ---------- in the news ---------- */

.news { list-style: none; margin: 0; padding: 0; }

.news li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.news img {
  flex: 0 0 auto;
  width: 110px;
  height: auto;
  border: 1px solid #ddd;
}

.news .outlet { display: block; }
.news .headline { display: block; font-size: 0.95rem; color: #333; }

.news .archived {
  display: block;
  font-size: 0.8rem;
  font-style: italic;
  color: #777;
}

/* ---------- cv ---------- */

.cv-embed {
  width: 100%;
  height: 46rem;
  margin-top: 1.5rem;
  border: 1px solid #bbb;
}

/* ---------- footer ---------- */

footer {
  margin-top: 3rem;
  padding-top: 0.8rem;
  border-top: 1px solid #bbb;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}

/* ---------- small screens ---------- */

@media (max-width: 40em) {
  html { font-size: 106.25%; }
  body { padding: 1.75rem 1.1rem 3rem; }
  .headshot { float: none; display: block; margin: 0 auto 1.25rem; }
  nav a { display: inline-block; margin: 0.15em 0.4em; }
  .news li { flex-direction: column; gap: 0.5rem; }
  .cv-embed { height: 32rem; }
}

/* ---------- print ---------- */

@media print {
  html { font-size: 100%; }
  body { max-width: none; padding: 0; color: #000; }
  nav, footer, .cv-embed { display: none; }
  a { color: #000; text-decoration: none; }
  .pubs .refs a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  h2 { page-break-after: avoid; }
  .pubs > li { page-break-inside: avoid; }
}
