    :root {
      --brick: #8B3A3A;
      --bg: #fcfaf9;
      --text: #2b2b2b;
      --muted: #777;
      --divider: #e0d6d6;
      --tag-bg: #f2eded;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg);
      color: var(--text);
      font-size: 15px;
      line-height: 1.75;
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 60px;
      background: rgba(252, 250, 249, 0.92);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--divider);
    }

    .nav-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 18px;
      font-weight: 400;
      letter-spacing: 0.03em;
      color: var(--text);
      text-decoration: none;
    }

    .nav-links {
      display: flex;
      gap: 32px;
      list-style: none;
    }

    .nav-links a {
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s;
    }

    .nav-links a:hover { color: var(--brick); }

    /* ── PHOTO BANNER ──
       Full-width image strip used as a section header.
       The ::after layer is a dark gradient overlay so the white text
       stays readable regardless of photo brightness.

       TO SWAP A PHOTO: find the class below (e.g. .banner-research)
       and change the background-image URL to your new filename.
    ── */
    .photo-banner {
      width: 100%;
      height: 200px;
      background-size: cover;
      background-position: center;
      position: relative;
      display: flex;
      align-items: flex-end;
    }
    /* Default overlay for section banners */
    .photo-banner::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(20, 10, 10, 0.10) 0%,
        rgba(20, 10, 10, 0.28) 100%
      );
    }

    /* ── No overlay on the hobbies banner ──
       We override ::after to be fully transparent so the photo
       shows clean without any darkening gradient.
    ── */
    .banner-hobbies::after {
      background: rgba(20, 10, 10, 0.18);
    }

    .banner-label {
      position: relative;
      z-index: 1;
      padding: 32px 60px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 52px;
      font-weight: 400;
      letter-spacing: 0.02em;
      color: #fff;
      /* soft shadow lifts the white off the photo behind it */
      text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    }

    /* ── PER-SECTION PHOTOS ──
       When you upload new images, change the URL here — nowhere else.
    ── */
    /* The hero is a decorative crop. The three labelled banners below set
       aspect-ratio to match their image file exactly, so the whole photo is
       always visible - nothing gets cut off, at any window width. If you
       swap one of these photos, update its ratio to the new pixel size. */
    .banner-hero     { background-image: url('/images/leafs.jpg'); height: 300px; }
    .banner-research { background-image: url('/images/boat_slice.jpg'); height: auto; aspect-ratio: 2000 / 423; }
    .banner-teaching { background-image: url('/images/wonder.jpg'); height: auto; aspect-ratio: 2000 / 423; }
    /* Home page only: a thin strip version of the research banner.
       /research/ keeps the full-height one above. */
    .banner-slim { height: 140px; aspect-ratio: auto; }
    /* in the thin strip, drop the heading to the bottom edge so it clears the boat */
    .banner-slim .banner-label { padding-top: 0; padding-bottom: 12px; }

    /* ── HOBBIES BANNER ── */
    .banner-hobbies {
      background-image: url('/images/turtle_slice.jpg');
      height: auto;
      aspect-ratio: 2000 / 470;
      background-position: center;
    }

    /* ── HERO CONTENT ── */
    .hero-content {
      max-width: 860px;
      margin: 0 auto;
      padding: 48px 40px 52px;
      display: flex;
      gap: 48px;
      align-items: flex-start;
    }

    /* The profile photo.
       If the image file doesn't exist, a grey circle shows as fallback.
       Make sure 'picture_phd.jpg' is uploaded to the root of your repo. */
    .hero-photo {
      flex-shrink: 0;
      width: 240px;
      height: auto;           /* full photo, uncropped 2:3 portrait */
      border-radius: 4px;
      border: 3px solid var(--divider);
      background-color: var(--divider); /* fallback colour if image missing */
    }

    .hero-text h1 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 42px;
      font-weight: 300;
      line-height: 1.15;
      margin-bottom: 14px;
    }

    .hero-text p { color: var(--muted); margin-bottom: 6px; }
    .hero-text p strong { color: var(--text); }

    .hero-links {
      display: flex;
      gap: 16px;
      margin-top: 18px;
      flex-wrap: wrap;
    }

    .hero-links a {
      font-size: 12.5px;
      font-weight: 500;
      color: var(--brick);
      text-decoration: none;
      border-bottom: 1px solid var(--brick);
      padding-bottom: 1px;
      transition: opacity 0.2s;
    }

    .hero-links a:hover { opacity: 0.6; }

    /* ── INTEREST CHIPS ── */
    .interests-row {
      max-width: 860px;
      margin: 0 auto;
      padding: 0 40px 52px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .chip {
      font-size: 12.5px;
      padding: 4px 13px;
      border: 1px solid var(--divider);
      border-radius: 2px;
      color: var(--text);
    }

    /* ── SECTION BODY ── */
    .section-body {
      max-width: 860px;
      margin: 0 auto;
      padding: 52px 40px 60px;
    }

    /* ── SUBSECTION DIVIDER ──
       Dark grey label line used to split Working Papers / Work in Progress / Publications.
       The ::after pseudo-element draws the line that stretches to the right of the label.
    ── */
    .subsection-label {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 44px 0 28px;
    }

    .subsection-label:first-child { margin-top: 0; }

    .subsection-label span {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      white-space: nowrap;
      color: #444;
    }

    .subsection-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: #444;
    }

    /* ── PAPER ENTRY ── */
    .paper {
      margin-bottom: 36px;
      padding-bottom: 36px;
      border-bottom: 1px solid var(--divider);
    }

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

    .paper-status {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 5px;
    }

    .paper-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 21px;
      font-weight: 400;
      line-height: 1.35;
      margin-bottom: 5px;
    }

    /* A paper with a link: the title itself is the link */
    .paper-title a {
      color: inherit;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-decoration-color: var(--brick);
      text-underline-offset: 5px;
      transition: color 0.2s;
    }
    .paper-title a:hover { color: var(--brick); }

    .paper-coauthors {
      font-size: 13.5px;
      color: var(--muted);
      font-style: italic;
      margin-bottom: 10px;
    }

    .paper-venue {
      font-size: 13px;
      margin-bottom: 12px;
    }

    .paper-links { display: flex; gap: 8px; flex-wrap: wrap; }

    .tag {
      font-size: 11.5px;
      font-weight: 500;
      letter-spacing: 0.04em;
      padding: 3px 10px;
      border-radius: 2px;
      background: var(--tag-bg);
      color: var(--brick);
      text-decoration: none;
      transition: background 0.2s;
    }

    .tag:hover { background: #e8dcdc; }

    /* ── TEACHING TABLE ── */
    .teaching-label {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 20px;
    }

    .teaching-table {
      width: 100%;
      border-collapse: collapse;
    }

    .teaching-table tr {
      border-bottom: 1px solid var(--divider);
    }

    .teaching-table tr:last-child {
      border-bottom: none;
    }

    .teaching-table td {
      padding: 9px 0;
      font-size: 14px;
      vertical-align: baseline;
    }

    .teaching-table td:first-child {
      font-family: 'Cormorant Garamond', serif;
      font-size: 18px;
      font-weight: 400;
    }

    .teaching-table td:last-child {
      text-align: right;
      color: var(--muted);
      font-size: 12px;
      white-space: nowrap;
      padding-left: 20px;
    }

    /* Language each course was taught in */
    .teaching-table td.teaching-lang {
      text-align: right;
      white-space: nowrap;
      padding-left: 20px;
    }

    .lang-tag {
      font-size: 11.5px;
      font-weight: 500;
      letter-spacing: 0.04em;
      padding: 3px 10px;
      border-radius: 2px;
      background: var(--tag-bg);
      color: var(--brick);
    }

    .teaching-intro {
      color: var(--muted);
      margin-bottom: 20px;
    }

    /* ── FOOTER ── */
    footer {
      max-width: 860px;
      margin: 0 auto;
      padding: 36px 40px 20px;
      font-size: 12px;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      border-top: 1px solid var(--divider);
    }

    /* ── MOBILE ── */
    @media (max-width: 620px) {
      /* Fixed 57px height matches the margin-top offset on the first banner.
         Everything shrinks so all four links fit without the page
         overflowing sideways on a phone. */
      nav { padding: 0 14px; height: 57px; }
      .nav-name { font-size: 14px; white-space: nowrap; }
      .nav-links { gap: 12px; }
      .nav-links a { font-size: 10px; letter-spacing: 0.05em; white-space: nowrap; }
      .banner-label { font-size: 30px; padding: 18px; }
      .banner-hero { height: 300px; }
      .banner-research, .banner-teaching, .banner-hobbies { height: auto; }
      .banner-slim { height: 110px; }
      .banner-slim .banner-label { padding: 0 18px 10px; }
      .hero-content { flex-direction: column; gap: 20px; padding: 28px 20px 36px; }
      .interests-row, .section-body { padding-left: 20px; padding-right: 20px; }
      footer { flex-direction: column; gap: 6px; padding: 28px 20px 16px; }
      .teaching-table td:first-child { font-size: 15px; }
    }
