/* =========================================================
   BASIC COLORS AND PAGE SETTINGS
   ========================================================= */

:root {
  --navy: #17324d;
  --blue: #24577a;
  --gold: #ae9142;
  --text: #282828;
  --muted: #666666;
  --background: #ffffff;
  --soft-background: #f5f6f7;
  --border: #d9dde1;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}


/* =========================================================
   MAIN CONTENT WIDTH
   ========================================================= */

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}


/* =========================================================
   TOP NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 70px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

nav a {
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:hover {
  color: var(--gold);
}


/* =========================================================
   HOMEPAGE INTRODUCTION
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  grid-template-areas:
    "profile name"
    "profile introduction";
  column-gap: 65px;
  row-gap: 0;
  align-items: start;
  padding-top: 75px;
  padding-bottom: 35px;
}

.profile-name {
  grid-area: name;
}

.profile-column {
  grid-area: profile;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.headshot {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 3px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.portrait-address {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.introduction {
  grid-area: introduction;
  max-width: 680px;
}

.introduction p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: normal;
}

h2 {
  margin-top: 0;
  margin-bottom: 35px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  font-size: 2rem;
  font-weight: normal;
}

h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.08rem;
}


/* =========================================================
   HOMEPAGE TEXT AND LINKS
   ========================================================= */

.lead {
  font-size: 1.15rem;
}

.job-market {
  margin-top: 22px;
  margin-bottom: 22px;
}

.main-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 28px 0;
}

.text-link {
  font-weight: bold;
}

.email-contact {
  color: var(--text);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
  padding: 70px 0;
  scroll-margin-top: 70px;
}

#research {
  padding-top: 45px;
}

.highlighted-section {
  background: var(--soft-background);
}


/* =========================================================
   RESEARCH CATEGORIES
   ========================================================= */

.research-category {
  margin-top: 55px;
}

.research-category:first-of-type {
  margin-top: 0;
}

.subsection-title {
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-weight: normal;
}


/* =========================================================
   RESEARCH PAPERS
   ========================================================= */

.paper {
  margin-bottom: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.paper:last-child {
  margin-bottom: 0;
}

.paper-title {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.coauthor-inline {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: normal;
}

.coauthor-inline a {
  font-weight: normal;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: bold;
}


/* =========================================================
   JOB MARKET PAPER
   ========================================================= */

.featured-paper {
  padding: 0;
  background: transparent;
  border: none;
}

.paper-status {
  display: inline;
  margin-left: 8px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: normal;
  white-space: nowrap;
}


/* =========================================================
   ABSTRACTS
   ========================================================= */

/* Always-visible abstract for the job market paper */

.jmp-abstract {
  margin-top: 18px;
}

.abstract-label {
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--blue);
  font-weight: bold;
}

.abstract-text {
  margin-top: 0;
  margin-bottom: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}


/* Drop-down abstracts for other papers */

details {
  margin-top: 18px;
}

summary {
  color: var(--blue);
  font-weight: bold;
  cursor: pointer;
}

summary:hover {
  color: var(--gold);
}

details p {
  margin-bottom: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}


/* =========================================================
   WORK IN PROGRESS
   ========================================================= */

.work-in-progress {
  margin-bottom: 22px;
  padding-bottom: 16px;
}

.work-in-progress .paper-title {
  margin-bottom: 0;
}


/* =========================================================
   TEACHING
   ========================================================= */

.teaching-institution {
  margin-bottom: 30px;
  font-size: 1.3rem;
  font-weight: normal;
}

.course-group {
  margin-top: 32px;
}

.course-level {
  margin-bottom: 15px;
  color: var(--navy);
  font-size: 1.05rem;
}

.teaching-list {
  margin-top: 0;
  padding-left: 22px;
}

.teaching-list li {
  margin-bottom: 18px;
}

.course-evaluation {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.syllabus-link {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.92rem;
  font-weight: bold;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 30px 0;
  color: #e8edf1;
  background: var(--navy);
}

footer a {
  color: white;
}

footer a:hover {
  color: #f0d98c;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-content p {
  margin: 0;
}


/* =========================================================
   MOBILE AND SMALL-SCREEN DESIGN
   ========================================================= */

@media (max-width: 720px) {

  body {
    font-size: 16px;
  }

  .navigation {
    justify-content: flex-start;
    min-height: auto;
    padding: 14px 0;
  }

  nav {
    gap: 16px;
  }

  /*
     Mobile order:
     1. Name
     2. Portrait and address
     3. Biography
  */

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "profile"
      "introduction";
    row-gap: 0;
    padding-top: 45px;
    padding-bottom: 30px;
  }

  .profile-name {
     margin-bottom: 25px;
     text-align: center;
   }

  .profile-column {
    width: 100%;
    max-width: 270px;
    margin: 0 auto 30px;
    text-align: center;
  }

  .headshot {
    max-width: 270px;
  }

  .portrait-address {
    text-align: center;
  }

  .introduction {
    width: 100%;
    max-width: none;
  }

  #research {
    padding-top: 40px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 50px 0;
    scroll-margin-top: 90px;
  }

  .research-category {
    margin-top: 42px;
  }

  .paper-status {
    white-space: normal;
  }

  .coauthor-inline {
    display: inline;
  }

  .footer-content {
    flex-direction: column;
  }
}
