/* ===========================================================================
   neroliaustin.com — style.css
   Minimal single-column layout, following julianterstegge.com:
   system sans-serif, slate links, small uppercase section labels, and one
   faint blue card per paper.
   =========================================================================== */

:root {
  --ink:    #1a1a1a;   /* body text, name, titles          */
  --link:   #2c3e50;   /* links                            */
  --link-h: #1a1a1a;   /* link hover                       */
  --muted:  #6f6f6f;   /* secondary text, section labels   */
  --rule:   #e7e7e7;   /* hairline rules, separators       */
  --card:   #e6edf5;   /* paper cards                      */
  --inset:  #d9e2ec;   /* left edge of an open abstract    */
  --maxw:   1000px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 2.2rem 1.25rem 4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
a:hover { color: var(--link-h); border-bottom-color: currentColor; }

.sep { color: var(--rule); margin: 0 .55rem; }

/* ---------- Navigation ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1rem;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.site-nav { display: flex; flex-wrap: wrap; gap: .4rem 2.1rem; font-size: 1.02rem; }
.site-nav a { color: var(--ink); border-bottom: none; padding-bottom: 2px; }
.site-nav a:hover { color: var(--ink); border-bottom: none; }
.site-nav a.active {
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
}

/* ---------- Profile ---------- */
.profile {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  margin-bottom: 3.4rem;
}
.profile img {
  width: 300px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}
.profile h1 {
  margin: .1rem 0 .15rem;
  font-size: 1.9rem;
  line-height: 1.15;
}
.profile .subtitle { margin: 0; font-weight: 600; }
.profile .affil { margin: .1rem 0 .9rem; color: var(--muted); }

.bio { margin: .6rem 0 0; }
.bio p { margin: 0; }
.bio .bio-block { margin-top: 1.5rem; }
.bio ul { margin: .35rem 0 .6rem; padding-left: 1.35rem; }
.bio li { margin: .12rem 0; }

.quicklinks {
  margin: 1.5rem 0 0;
  font-size: .97rem;
  line-height: 1.9;
}
.quicklinks a { white-space: nowrap; }

/* ---------- Section labels ---------- */
section { margin-top: 2.6rem; }
h2 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .9rem;
}

/* ---------- Paper cards ---------- */
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list > li {
  margin-bottom: 1.1rem;
  padding: 1rem 1.2rem;
  background: var(--card);
  border-radius: 8px;
}
.pub-title { font-weight: 600; }
.pub-formerly { color: var(--muted); font-size: .9rem; font-style: italic; }
.pub-meta { color: var(--muted); font-size: .96rem; }
.pub-meta em { font-style: italic; }

/* Links inside the muted lines stay muted; a dotted underline marks them */
.pub-formerly a,
.pub-meta a {
  color: inherit;
  border-bottom: 1px dotted #bcbcbc;
}
.pub-formerly a:hover,
.pub-meta a:hover { color: var(--link-h); border-bottom-color: currentColor; }

.pub-links { font-size: .92rem; margin-top: .15rem; }
.pub-links a { white-space: nowrap; }
.pub-links .sep { margin: 0 .5rem; }
.pub-note { color: var(--muted); }

/* Abstract toggle, styled to match the links beside it */
.abstract-toggle {
  font: inherit;
  color: var(--link);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  vertical-align: baseline;
  white-space: nowrap;
}
.abstract-toggle:hover { color: var(--link-h); border-bottom-color: currentColor; }

.abstract {
  display: none;
  margin-top: .6rem;
  padding: .65rem .85rem;
  background: #ffffff;
  border-left: 3px solid var(--inset);
  border-radius: 0 4px 4px 0;
  font-size: .95rem;
  line-height: 1.62;
}
.abstract.open { display: block; }
.abstract p { margin: 0; }

/* ---------- Teaching (courses listed inside a card) ---------- */
.course-list {
  list-style: none;
  margin: .2rem 0 0;
  padding: 0;
  font-size: .96rem;
}
.course-list li { margin: .1rem 0; }
.course-meta {
  color: var(--muted);
  font-size: .92rem;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .88rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem;
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; padding-top: 1.6rem; }
  .pub-list > li { padding: .85rem .95rem; }
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .profile img { width: 200px; }
  /* Centred text would leave the bullets stranded at the left edge */
  .bio { text-align: left; }
  .site-header { justify-content: center; }
}
