:root{
    --maxw: 58ch;
    --lh: 1.5;
    --space: 1.1rem;
    --accent: #e8e8e8;
    --hover: #f1f0f5;
    --ink: #171f3d;
    --paper: #fdfdfd;
  }

  html, body { height: 100%; background: var(--paper); color: var(--ink); }
  html { font-size: 16px; }
  body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: var(--lh);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* Page container */
  .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: calc(var(--space) * 2) var(--space) calc(var(--space) * 6);
  }

  /* Header */
  header {
    padding: clamp(1rem, 2vw, 3rem) 0 calc(var(--space) * 1);
    position: relative;
  }


  .name {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    line-height: 1.1;
    margin: 0 0 calc(var(--space) * 0.5) 0;
    letter-spacing: 0.2px;
  }

  .role {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 var(--space) 0;
  }

  /* Contact list — single-line, unobtrusive separators */
  .contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.4rem;
    font-size: 0.95rem;
    margin-left: -6px;
    padding-top: 0.625rem;
  }
  .contact a {
    color: inherit;
    text-decoration: none;
    border-radius: 4px;
    padding: 4px 8px;
  }
  .contact a:focus,
  .contact a:hover {
    background-color: var(--hover);
    transition: all 0.2s ease-in-out;
  }

  section { padding: calc(var(--space) * 2.5) 0; }
  section.mb8 { padding: calc(var(--space) * 2) 0 calc(var(--space) * 2.5);}

  section.image-section {
    padding: calc(var(--space) * 1) 0px calc(var(--space) * 2) 0px;
  }

  h2 {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Times, serif;
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: 600;
    margin: 0 0 calc(var(--space) * 1.25) 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  p { margin: 0 0 var(--space) 0; max-width: 65ch; }
  p.mb0 { margin-bottom: 0rem; }

  /* Lists */
  ul { list-style: none; padding: 0; margin: 0; }
  .bullets > li {
    position: relative;
    padding: 0 0 0.5rem 0.5rem;
    margin: 0 0 0 1.5rem;
    list-style-type: circle;
  }
  /*
  .bullets > li::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
  }
  */

  /* Experience blocks */
  .job { margin: 0 0 calc(var(--space) * 1.5) 0; }
  .job.last { margin-bottom: 0rem; }
  .job h3 {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    letter-spacing: 0.15px;
  }
  .meta {
    font-size: 0.95rem;
    margin: 0 0 calc(var(--space) * 0.25) 0;
  }
  .meta em { font-style: normal; }

  /* Definition style lists for compact items */
  .deflist { display: grid; gap: 0.4rem; }
  .deflist div { display: grid; grid-template-columns: 9.5rem 1fr; column-gap: 1rem; }
  .deflist strong { font-weight: 600; }

  /* Print-friendly (keeps it elegant on one page if possible) */
  @media print {
    @page { margin: 16mm; }
    .wrap { padding: 0; }
    header { padding: 0 0 10mm 0; }
    section { padding: 8mm 0; }
    footer { display: none; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 90%; }
  }

  /* Small screens */
  @media (max-width: 520px) {
    .deflist div { grid-template-columns: 7.5rem 1fr; }
  }

  /* Focus outlines for accessibility */
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  
  .profile-image-container {
    position: relative;
    width: 100%;
    height: clamp(16rem, 31vw, 22rem);
    border-radius: 8px;
    overflow: hidden;
    cursor: default;
  }
  
  .profile-image {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    transition: all 0.7s ease-out;
  }
  /*
  .profile-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    opacity: 0;
    transition: all 0.8s ease-in-out;
  }
  */
  .profile-image-container:hover .profile-image {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .profile-image-container:hover .profile-image-hover {
    opacity: 1;
    transform: scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }

  /* Footer styling */
  footer {
    margin-top: calc(var(--space) * 4);
    padding: calc(var(--space) * 1) 0;
    border-top: 1px solid var(--accent);
    text-align: center;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    gap: calc(var(--space) * 1.5);
    font-size: 0.875rem;
  }
  
  .footer-links a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    padding-top: calc(var(--space) * 0.25);
    transition: border-color 0.2s ease;
  }
  
  .footer-links a:hover {
    border-color: var(--accent);
  }