    @font-face {
      font-family: "Instrument Serif";
      src: url("fonts/instrument-serif-latin.woff2") format("woff2");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: "Inter";
      src: url("fonts/inter-latin.woff2") format("woff2");
      font-weight: 400 700;
      font-style: normal;
      font-display: swap;
    }
    :root {
      --sidebar-width: 20%;
      --page-padding: clamp(1rem, 3vw, 3rem);
      --grid-gap: clamp(1.25rem, 2.5vw, 2.5rem);
      --font-heading: "Instrument Serif", Georgia, serif;
      --font-body: "Inter", Arial, Helvetica, sans-serif;
      font-family: var(--font-body);
    }

    * { box-sizing: border-box; }
    h1, h2, h3, h4, h5, h6, .site-name, .title {
      font-family: var(--font-heading);
    }
    p, .subtitle, figcaption, .image-caption {
      font-family: var(--font-body);
    }
    body {
      height: 100vh;
      height: 100dvh;
      margin: 0;
      overflow: hidden;
    }
    a { color: inherit; }
    a:focus-visible, button:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: 6px;
    }

    .sidebar {
      position: fixed;
      inset: 0 auto 0 0;
      display: grid;
      grid-template-columns: minmax(0, max-content);
      grid-template-rows: minmax(1rem, 1fr) auto minmax(max-content, 1fr);
      justify-content: center;
      width: var(--sidebar-width);
      padding: var(--page-padding);
      border-right: 1px solid var(--border-color);
      overflow-y: auto;
      overflow-wrap: anywhere;
      text-align: left;
    }
    .sidebar-content {
      grid-row: 2;
      max-width: 100%;
      transform: translateY(-1rem);
    }
    .site-name {
      margin: 0 0 2.5rem;
      font-size: 40pt;
      font-weight: 700;
      /* Instrument Serif has no bold face; strengthen the sidebar name. */
      -webkit-text-stroke: 0.4px currentColor;
      line-height: 0.95;
    }
    .sidebar nav {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      font-family: var(--font-heading);
      font-size: 18pt;
      line-height: 1.15;
    }
    .sidebar nav a { text-decoration: none; }
    .sidebar-footer {
      grid-row: 3;
      align-self: end;
      min-width: 0;
      font-family: var(--font-heading);
      font-size: 18pt;
      line-height: 1.15;
    }
    .sidebar-footer .theme-toggle { margin-bottom: 1.75rem; }
    .contact-heading {
      margin: 0 0 0.5rem;
      font-size: 18pt;
      font-weight: 400;
    }
    .sidebar .social-links {
      display: flex;
      flex-direction: row;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .social-links a {
      display: grid;
      place-items: center;
      width: 1.5rem;
      height: 1.75rem;
    }
    .social-icon {
      display: block;
      width: 1.125rem;
      height: 1.125rem;
      color: var(--social-icon-color);
      flex-shrink: 0;
    }

    .page-content {
      width: calc(100% - var(--sidebar-width));
      height: 100%;
      margin-left: var(--sidebar-width);
      padding: var(--page-padding);
      overflow-y: auto;
      overscroll-behavior-y: contain;
    }
    .site-name a { text-decoration: none; }
    @media (max-width: 1100px) {
      .site-name { font-size: clamp(1.25rem, 6vw, 40pt); }
    }
    @media (max-width: 600px) {
      .sidebar { padding: 1.25rem 0.5rem; }
      .site-name { font-size: clamp(1.25rem, 7vw, 40pt); }
      .sidebar .social-links { gap: 0.125rem; }
      .social-links a { width: 1rem; height: 1.5rem; }
      .social-icon { width: 0.875rem; height: 0.875rem; }
    }
