/* =============================================================
   SHARED STYLES  —  every page uses this one file.
   Edit the .html files for content; edit here only for design.
   ============================================================= */

:root{
  /* Palette: cool grey paper, black ink, slate-blue accent */
  --paper:      #F2F4F7;
  --surface:    #FBFCFD;   /* the photo mat / raised paper */
  --ink:        #000000;
  --muted:      #000000;
  --faint:      #767E8A;
  --line:       #DCE0E6;   /* hairlines */
  --rule:       #B6BCC6;   /* the heavier masthead double-rule */
  --accent:     #2F4C6B;   /* deep slate blue - links, active nav */
  --accent-ink: #233C57;
  --accent-wash:#E4EAF2;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --serif:   'Newsreader', Georgia, 'Times New Roman', serif;
}

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

html{ font-optical-sizing: auto; }

body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  font-feature-settings: "onum" 1, "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

/* ---------- MASTHEAD / NAV (signature double rule) ---------- */
.nav{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 32px 0 16px;
  border-bottom: 3px double var(--rule);
}
.nav-home{
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-home:hover{ color: var(--accent); }

.nav-links{ display: flex; gap: 26px; }
.nav-links a{
  font-family: var(--serif);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color .18s;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a[aria-current="page"]{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}
.nav-links a:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- HOME HERO: mounted plate (left) + bio (right) ---------- */
.hero{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  padding: 84px 0 56px;
}
.hero-photo{ display: flex; justify-content: center; }

.plate{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 350px;
}
.plate-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 24px 54px -30px rgba(30,36,30,.5);
}
.plate-frame img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  border-radius: 1px;
}
.plate-fallback{
  position: absolute; inset: 11px;
  display: none;
  align-items: center; justify-content: center;
  text-align: center;
  font-size: .85rem; line-height: 1.5; color: var(--accent);
  padding: 14px;
}
.plate-caption{
  font-family: var(--serif);
  font-style: italic;
  font-size: .82rem;
  color: var(--faint);
  text-align: center;
}

.name{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.position{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.16rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.bio{
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 26px;
}
.email-link{
  display: inline-block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color .18s, border-color .18s;
}
.email-link:hover{ color: var(--accent); border-color: var(--accent); }

/* ---------- INTERIOR PAGE HEADINGS ---------- */
.page-head{ padding: 76px 0 0; }
.page-kicker{
  font-family: var(--serif);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--faint);
  margin-bottom: 16px;
}
.page-title{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 2.8rem);
  letter-spacing: -0.02em;
}
.page-body{ padding-top: 30px; }
.lede{
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 8px;
}

/* ---------- RESEARCH: overview + themes ---------- */
.themes-list{ list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.themes-list li{
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.themes-list strong{
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.04rem;
  color: var(--ink);
}
.themes-list span{ color: var(--muted); font-size: .98rem; }

.theme{ padding: 44px 0; border-top: 1px solid var(--line); }
.theme:first-of-type{ border-top: none; padding-top: 22px; }
.theme-title{
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.62rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.theme-desc{
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.04rem;
  line-height: 1.72;
  margin-bottom: 26px;
}
.sub-label{
  font-family: var(--serif);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 26px 0 14px;
}

/* ---------- Shared reference / entry blocks ---------- */
.entry{ margin-bottom: 17px; }
.entry-title{ font-size: 1.02rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.entry-title a{
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease, color .18s;
}
.entry-title a:hover{ color: var(--accent); background-size: 100% 1px; }
.entry-meta{ font-size: .94rem; color: var(--muted); }
.entry-meta em{ font-style: italic; }

/* ---------- TEACHING: course list ---------- */
.course{ padding: 26px 0; border-top: 1px solid var(--line); }
.course:last-child{ border-bottom: 1px solid var(--line); }
.course-code{
  font-family: var(--serif);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.course-title{
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.34rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.course-desc{ color: var(--muted); max-width: 62ch; font-size: 1.04rem; line-height: 1.72; }

/* ---------- CV ---------- */
.cv-download{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .11em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 22px; border-radius: 3px;
  text-decoration: none;
  margin-bottom: 44px;
  transition: background .2s, color .2s;
}
.cv-download:hover{ background: var(--accent); color: #fff; }
.cv-download svg{ width: 15px; height: 15px; }

.group-label{
  font-family: var(--serif);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--faint);
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Footer (echoes the masthead rule) ---------- */
.footer{
  margin-top: 88px;
  padding-top: 22px;
  border-top: 3px double var(--rule);
  font-size: .82rem;
  color: var(--faint);
}

/* ---------- Entrance animation ---------- */
.reveal{ animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px){
  .site{ padding: 0 22px 72px; }
  .nav{ padding: 24px 0 14px; gap: 12px; }
  .nav-links{ gap: 18px; flex-wrap: wrap; }
  .hero{ grid-template-columns: 1fr; gap: 30px; padding: 44px 0 40px; }
  .hero-photo{ justify-content: flex-start; }
  .plate{ align-items: flex-start; margin: 0; max-width: 220px; }
  .plate-caption{ text-align: left; }
  .themes-list li{ grid-template-columns: 1fr; gap: 4px; }
}

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