:root {
      --bg: #c7ccc0;
      --paper: #f4f5f0;
      --text: #20241f;
      --muted: #60695d;
      --line: rgba(32, 36, 31, 0.16);
      --accent: #465342;
      --signal: #8f1d2c;
      --signal-soft: rgba(143,29,44,0.18);
      --max: 1040px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
      line-height: 1.72;
    }

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

    .page {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
      padding: 32px 0 44px;
      position: relative;
    }

    

    .top {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 32px;
      align-items: end;
      padding: 14px 0 16px;
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 20;
      background: var(--bg);
      backdrop-filter: none;
    }

    .name {
      margin: 0;
      font-family: inherit;
      font-size: clamp(2.35rem, 4vw, 3.6rem);
      line-height: 1.03;
      font-weight: 400;
      letter-spacing: -0.04em;
    }

    .position {
      margin: 10px 0 0;
      color: var(--muted);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 0.96rem;
      line-height: 1.55;
    }

    nav {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: flex-end;
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 0.88rem;
    }

    nav a {
      color: var(--muted);
      text-decoration: none;
      position: relative;
      padding-bottom: 2px;
    }

    nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -2px;
      width: 100%;
      height: 1px;
      background: rgba(32,36,31,0.3);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.25s ease;
    }

    nav a:hover::after {
      transform: scaleX(1);
    }

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

    nav a:hover::after {
      background: var(--signal);
    }

    .intro {
      padding: 48px 0 42px;
      border-bottom: 1px solid rgba(32, 36, 31, 0.06);
      position: relative;
      overflow: hidden;
    }

    .intro-flow {
      position: absolute;
      right: -155px;
      top: -120px;
      width: 760px;
      height: 420px;
      opacity: 0.36;
      pointer-events: none;
    }

    .intro-flow path {
      fill: none;
      stroke: rgba(70,83,66,0.42);
      stroke-width: 0.7;
      stroke-linecap: round;
      stroke-linejoin: round;
      vector-effect: non-scaling-stroke;
    }

    .intro-flow .soft {
      stroke: rgba(70,83,66,0.22);
      stroke-width: 0.55;
    }

    .intro-flow .accent {
      stroke: rgba(143,29,44,0.18);
      stroke-width: 0.55;
    }

    

    

    .intro-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      align-items: center;
      color: var(--muted);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 0.92rem;
      line-height: 1.7;
      position: relative;
      z-index: 1;
    }

    .intro-meta strong {
      color: var(--text);
      font-weight: 550;
    }

    .intro-meta span {
      white-space: nowrap;
    }

    

    section {
      display: grid;
      grid-template-columns: 80px 1fr;
      gap: 18px;
      padding: 38px 0;
      position: relative;
    }

    section::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 1px;
      background: rgba(32, 36, 31, 0.10);
      pointer-events: none;
    }

    h2 {
      margin: 0;
      max-width: 78px;
      position: relative;
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 0.74rem;
      letter-spacing: 0.11em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 600;
    }

    h2::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -7px;
      width: 18px;
      height: 1px;
      background: rgba(143,29,44,0.48);
    }

    .content { max-width: 920px; }

    .content > p:first-child { margin-top: 0; }

    .cv-list,
    .course-list,
    .publication-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .cv-list li,
    .course-list li,
    .publication {
      padding: 10px 0 10px 10px;
      border-bottom: 1px solid rgba(32, 36, 31, 0.10);
      position: relative;
    }

    .publication::before {
      content: "";
      position: absolute;
      left: 0;
      top: 12px;
      color: rgba(70,83,66,0.55);
      font-size: 1rem;
    }

    .cv-list li:first-child,
    .course-list li:first-child,
    .publication:first-child { padding-top: 0; }

    .cv-list li:last-child,
    .course-list li:last-child,
    .publication:last-child { border-bottom: 0; }

    .group-heading {
      margin: 0 0 12px;
      color: var(--accent);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 600;
    }

    .label {
      transition: color 0.2s ease;
      display: block;
      margin-bottom: 5px;
      color: var(--muted);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 0.78rem;
      letter-spacing: 0.08em;
    }

    .title {
      display: block;
      font-size: 1.04rem;
      line-height: 1.46;
    }

    .publication .title {
      font-size: 1rem;
    }

    .publication:hover .title,
    .course-list li:hover .title,
    .cv-list li:hover .title,
    .publication:hover .label,
    .course-list li:hover .label,
    .cv-list li:hover .label {
      color: var(--signal);
    }

    .meta {
      margin-top: 4px;
      color: var(--muted);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 0.86rem;
      line-height: 1.55;
    }


    .compact-block {
      margin-bottom: 12px;
    }

    .compact-heading {
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      font-size: 0.76rem;
    }

    
    .compact-row {
      padding: 3px 0;
      border-bottom: 1px solid rgba(32,36,31,0.08);
      font-size: 0.96rem;
      line-height: 1.4;
    }

    .compact-row:last-child {
      border-bottom: 0;
    }
    


    .supervision-row {
      padding: 3px 0;
      border-bottom: 1px solid rgba(32, 36, 31, 0.08);
      font-size: 0.96rem;
      line-height: 1.42;
    }

    .supervision-row:last-child {
      border-bottom: 0;
    }


    .activity-list {
      margin-bottom: 16px;
    }

    .activity-row {
      display: grid;
      grid-template-columns: 82px 1fr;
      gap: 12px;
      padding: 2px 0;
      border-bottom: 1px solid rgba(32,36,31,0.08);
      line-height: 1.35;
      font-size: 0.94rem;
    }

    .activity-year {
      color: var(--muted);
      font-size: 0.82rem;
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      white-space: nowrap;
    }

    .activity-text {
      min-width: 0;
    }

    .activity-row span:first-child {
      color: var(--muted);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 0.84rem;
      white-space: nowrap;
    }

    .activity-row span:last-child {
      color: var(--text);
    }

    .activity-row:last-child {
      border-bottom: 0;
    }

    footer {
      position: relative;
      margin-top: 24px;
      padding-top: 28px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 0.84rem;
    }

    

    @media (max-width: 760px) {
      .page { padding-top: 32px; }

      .top,
      section {
        grid-template-columns: 1fr;
      }

      nav {
        justify-content: flex-start;
      }

      .intro-meta {
        flex-direction: row;
        align-items: center;
        gap: 4px 9px;
        line-height: 1.55;
        max-width: 100%;
      }

      .intro-meta span {
        white-space: nowrap;
      }

      .intro {
        gap: 32px;
        padding: 34px 0;
      }

      section {
        gap: 14px;
        padding: 26px 0;
      }

      .activity-row {
        grid-template-columns: 70px 1fr;
        gap: 8px;
      }

    .activity-year {
      color: var(--muted);
      font-size: 0.82rem;
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      white-space: nowrap;
    }

    .activity-text {
      min-width: 0;
    }
    }
	
	#cv,
#research,
#teaching,
#contact {
  scroll-margin-top: 90px;
}
