    :root {
      --bg: #f6f3ee;
      --surface: #fffdf9;
      --ink: #1e2428;
      --muted: #667078;
      --line: #d7d0c5;
      --accent: #2f6f73;
      --accent-strong: #184f53;
      --mark: #b85c38;
      --shadow: 0 18px 50px rgba(30, 36, 40, 0.08);
      --radius: 8px;
      --max: 1100px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 16px;
      line-height: 1.65;
    }

    a {
      color: var(--accent-strong);
      text-decoration-color: rgba(47, 111, 115, 0.35);
      text-underline-offset: 3px;
    }

    a:hover {
      color: var(--mark);
      text-decoration-color: rgba(184, 92, 56, 0.45);
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      border-bottom: 1px solid rgba(215, 208, 197, 0.8);
      background: rgba(246, 243, 238, 0.92);
      backdrop-filter: blur(16px);
    }

    .nav {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      min-height: 68px;
    }

    .brand {
      color: var(--ink);
      font-weight: 750;
      font-size: 1.05rem;
      text-decoration: none;
      white-space: nowrap;
    }

    .nav-links {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 20px;
      margin: 0;
      padding: 0;
      list-style: none;
      font-size: 0.95rem;
    }

    .nav-links a {
      color: var(--muted);
      text-decoration: none;
    }

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

    .nav-links a.active {
      color: var(--accent-strong);
      font-weight: 700;
    }

    main {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    .page-layout {
      display: grid;
      grid-template-columns: 280px minmax(0, 1fr);
      gap: 48px;
      align-items: start;
    }

    .sidebar {
      position: sticky;
      top: 96px;
      padding: 48px 0;
    }

    .content-column {
      min-width: 0;
    }

    .about-section {
      padding-top: 72px;
    }

    h1,
    h2,
    h3 {
      line-height: 1.2;
      letter-spacing: 0;
    }

    h1 {
      max-width: 760px;
      margin: 0;
      font-size: clamp(2.35rem, 5vw, 4.4rem);
      font-weight: 800;
    }

    .about-body {
      display: grid;
      gap: 14px;
      max-width: 820px;
      color: #354047;
    }

    .about-body p {
      margin: 0;
    }

    .profile-card {
      display: grid;
      gap: 18px;
    }

    .profile-photo {
      position: relative;
      display: grid;
      place-items: center;
      width: 210px;
      aspect-ratio: 1;
      border-radius: 50%;
      overflow: hidden;
      background:
        linear-gradient(135deg, rgba(47, 111, 115, 0.18), rgba(184, 92, 56, 0.16)),
        #ebe5da;
      color: var(--accent-strong);
      font-size: 3.4rem;
      font-weight: 800;
      box-shadow: var(--shadow);
    }

    .profile-photo img {
      position: absolute;
      inset: 0;
      z-index: 1;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .profile-card h2 {
      margin: 0 0 8px;
      font-size: 1.25rem;
    }

    .profile-card p {
      margin: 0;
      color: var(--muted);
    }

    .contact-list {
      display: grid;
      gap: 8px;
      margin: 18px 0 0;
      padding: 0;
      list-style: none;
      font-size: 0.95rem;
    }

    .contact-list a {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
    }

    .contact-location {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .contact-list svg {
      width: 16px;
      height: 16px;
      flex: 0 0 16px;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    section {
      padding: 48px 0;
      border-top: 1px solid var(--line);
    }

    .section-header {
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 36px;
      align-items: start;
      margin-bottom: 26px;
    }

    .section-header h2 {
      margin: 0;
      font-size: 1.55rem;
    }

    .section-header p {
      margin: 0;
      color: var(--muted);
    }

    .news-list,
    .publication-list,
    .experience-list,
    .teaching-list {
      display: grid;
      gap: 18px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .news-item,
    .experience {
      display: grid;
      grid-template-columns: 145px minmax(0, 1fr);
      gap: 22px;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .publication {
      display: grid;
      grid-template-columns: 180px minmax(0, 1fr);
      gap: 22px;
      align-items: center;
      padding: 20px 0;
      border-bottom: 1px solid var(--line);
    }

    .publication:first-child {
      padding-top: 0;
    }

    .publication:last-child {
      border-bottom: 0;
    }

    .project-thumb {
      position: relative;
      display: grid;
      place-items: center;
      width: 100%;
      aspect-ratio: 4 / 3;
      border: 0;
      border-radius: 0;
      overflow: visible;
      background: transparent;
      padding: 0;
    }

    .project-thumb img {
      position: absolute;
      inset: 0;
      z-index: 1;
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      padding: 0;
    }

    .date,
    .venue,
    .role-meta {
      color: var(--muted);
      font-size: 0.93rem;
      font-weight: 650;
    }

    .news-item p,
    .publication p,
    .experience p {
      margin: 0;
    }

    .publication h3,
    .experience h4 {
      margin: 0 0 6px;
      font-size: 1.1rem;
    }

    .venue {
      display: block;
      margin-bottom: 6px;
    }

    .authors {
      color: #404b52;
      font-size: 0.96rem;
    }

    .project-note {
      color: var(--muted);
      font-size: 0.92rem;
    }

    .links {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 10px;
      font-size: 0.92rem;
      font-weight: 700;
    }

    .research-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .topic {
      min-height: 170px;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .topic h3 {
      margin: 0 0 10px;
      font-size: 1.05rem;
    }

    .topic p {
      margin: 0;
      color: var(--muted);
      font-size: 0.96rem;
    }

    .experience-stack {
      display: grid;
      gap: 34px;
    }

    .experience-subsection {
      padding: 0;
      border-top: 0;
    }

    .experience-subsection h3 {
      margin: 0 0 16px;
      font-size: 1.18rem;
    }

    /* Collapsible subsection: the heading doubles as the <summary> toggle.
       list-style/::-webkit-details-marker kill the browser's default triangle
       so the chevron below is the only affordance. */
    .collapsible > summary {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      list-style: none;
    }

    .collapsible > summary::-webkit-details-marker {
      display: none;
    }

    .collapsible > summary h3 {
      margin: 0;
    }

    .collapsible > summary::after {
      content: "";
      width: 7px;
      height: 7px;
      border-right: 2px solid var(--muted);
      border-bottom: 2px solid var(--muted);
      border-radius: 1px;
      transform: translateY(-2px) rotate(-45deg);
      transition: transform 0.18s ease, border-color 0.18s ease;
    }

    .collapsible[open] > summary::after {
      transform: translateY(-2px) rotate(45deg);
    }

    .collapsible > summary:hover::after {
      border-color: var(--accent-strong);
    }

    .collapsible > summary:hover h3 {
      color: var(--accent-strong);
    }

    .collapsible > summary:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 4px;
      border-radius: 3px;
    }

    /* Only pay for the gap when something is actually shown below the heading. */
    .collapsible[open] > summary {
      margin-bottom: 16px;
    }

    .teaching-item {
      display: grid;
      grid-template-columns: 190px minmax(0, 1fr);
      gap: 20px;
      padding: 16px 0;
      border-bottom: 1px solid var(--line);
    }

    .teaching-item:first-child {
      padding-top: 0;
    }

    .teaching-item:last-child {
      border-bottom: 0;
    }

    .teaching-item .role {
      color: var(--muted);
      font-size: 0.93rem;
      font-weight: 650;
    }

    .teaching-item p {
      margin: 0;
    }

    .teaching-item .course {
      font-weight: 650;
    }

    .teaching-item .meta {
      color: var(--muted);
      font-size: 0.93rem;
    }

    /* One row per role, every course that role covers stacked inside it. */
    .course-list {
      display: grid;
      gap: 14px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .service-section {
      margin-bottom: 22px;
    }

    .service-section:last-child {
      margin-bottom: 0;
    }

    .service-section h4 {
      margin: 0 0 12px;
      font-size: 1rem;
    }

    .service-category {
      display: grid;
      grid-template-columns: 190px minmax(0, 1fr);
      gap: 20px;
      align-items: start;
      margin-bottom: 10px;
    }

    .category-label {
      color: var(--muted);
      font-size: 0.93rem;
      font-weight: 650;
    }

    .service-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .service-badge {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 3px 10px;
      border: 1px solid rgba(47, 111, 115, 0.16);
      border-radius: 999px;
      background: rgba(47, 111, 115, 0.08);
      color: #405156;
      font-size: 0.88rem;
      font-weight: 650;
    }

    .page-hero {
      padding: 64px 0 10px;
      border-top: 0;
    }

    .page-hero h1 {
      margin: 0 0 10px;
      font-size: clamp(2rem, 4vw, 2.9rem);
      font-weight: 800;
    }

    .page-hero p {
      margin: 0;
      max-width: 640px;
      color: var(--muted);
    }

    .blog-section {
      border-top: 0;
      padding-top: 30px;
    }

    .blog-list {
      display: grid;
      gap: 18px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .blog-item {
      display: grid;
      grid-template-columns: 145px minmax(0, 1fr);
      gap: 22px;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .blog-item h3 {
      margin: 0 0 6px;
      font-size: 1.1rem;
    }

    .blog-item h3 a {
      text-decoration: none;
    }

    .blog-item p {
      margin: 0;
    }

    .blog-excerpt {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .blog-empty {
      margin: 0;
      color: var(--muted);
    }

    .post {
      max-width: 760px;
      padding: 56px 0 64px;
    }

    .post-back {
      margin: 0 0 26px;
      font-size: 0.92rem;
      font-weight: 700;
    }

    .post-back a {
      text-decoration: none;
    }

    .post-header h1 {
      margin: 0 0 8px;
      font-size: clamp(1.8rem, 3.6vw, 2.5rem);
      font-weight: 800;
    }

    .post-date {
      margin: 0 0 30px;
      color: var(--muted);
      font-size: 0.93rem;
      font-weight: 650;
    }

    .post-content {
      display: grid;
      gap: 14px;
      color: #354047;
    }

    .post-content p,
    .post-content ul,
    .post-content ol {
      margin: 0;
    }

    .post-content h2,
    .post-content h3 {
      margin: 14px 0 0;
    }

    .post-content img {
      max-width: 100%;
      border-radius: var(--radius);
    }

    .post-content pre {
      overflow-x: auto;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      font-size: 0.9rem;
      line-height: 1.55;
    }

    .post-content code {
      font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
      font-size: 0.92em;
    }

    .post-content blockquote {
      margin: 0;
      padding: 4px 18px;
      border-left: 3px solid var(--accent);
      color: var(--muted);
    }

    footer {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
      padding: 34px 0 48px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 0.92rem;
    }

    .footer-updated {
      color: var(--muted);
    }

    @media (max-width: 860px) {
      .nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px 0;
      }

      .nav-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 16px;
      }

      .page-layout,
      .section-header,
      .news-item,
      .publication,
      .experience,
      .teaching-item,
      .service-category,
      .blog-item {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: static;
        padding: 26px 0 0;
      }

      .profile-card {
        grid-template-columns: 84px minmax(0, 1fr);
        align-items: center;
        gap: 14px 18px;
      }

      .profile-photo {
        width: 84px;
        font-size: 1.55rem;
      }

      .profile-card h2 {
        margin-bottom: 4px;
        font-size: 1.12rem;
      }

      .profile-card p {
        font-size: 0.94rem;
        line-height: 1.45;
      }

      .contact-list {
        grid-column: 1 / -1;
        display: block;
        margin-top: -2px;
        font-size: 0.9rem;
      }

      .contact-link {
        display: none;
      }

      .about-section {
        padding-top: 44px;
      }

      .research-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 520px) {
      main,
      footer,
      .nav {
        width: min(var(--max), calc(100% - 28px));
      }

      .profile-card {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 12px;
      }

      .profile-photo {
        width: 66px;
        font-size: 1.15rem;
      }

      .contact-list {
        font-size: 0.86rem;
      }

      .news-item,
      .experience,
      .topic {
        padding: 16px;
      }

      .publication {
        padding: 18px 0;
      }
    }
