:root {
  color-scheme: light;
  --ink: #171717;
  --soft-ink: #5f5f5f;
  --line: #d9d9d9;
  --link: lab(53.85% -22.83 -19.81);
  /* Change this value to choose a different colour for all titles. */
  --title: hsl(323, 52%, 28%);
  --paper: hwb(0 100% 0%);
  --canvas: #fff;
  --sans: Optima, Candara, Calibri, sans-serif;
  --mono: 'SF Mono', Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eeeaf0;
  --soft-ink: #aaa5ad;
  --line: #55515a;
  --link: #79c7d0;
  --title: hsl(323, 55%, 73%);
  --paper: #141316;
  --canvas: #18171b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #eeeaf0;
    --soft-ink: #aaa5ad;
    --line: #55515a;
    --link: #79c7d0;
    --title: hsl(323, 55%, 73%);
    --paper: #141316;
    --canvas: #18171b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x:hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body, body * { transition: color .34s ease, background-color .38s ease, border-color .34s ease; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.site-header, main, footer { width: min(1080px, calc(100% - 48px)); margin: auto; }
.site-header { position: sticky; top: 0; z-index: 100; isolation: isolate; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px max(36px, calc((100% - 1080px) / 2 + 12px)); background: var(--paper); }
.site-header::after { content: ''; position: absolute; z-index: -1; bottom: 0; left: 50%; width: min(1080px, calc(100% - 32px)); height: 2px; background: var(--title); transform: translateX(-50%); transition:background-color .38s ease; }
.site-name { color: var(--ink); font-weight: 650; text-decoration: none; }
.header-actions { display:flex; align-items:center; gap:18px; min-width:0; }
nav { display: flex; gap: 19px; font-family: var(--mono); font-size: 12px; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--link); }
.theme-toggle { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--ink); font-family:var(--mono); font-size:11px; line-height:1.2; cursor:pointer; }
.theme-toggle::before { content:''; width:9px; height:9px; flex:0 0 auto; border-radius:50%; background:transparent; box-shadow:inset -3px -2px 0 0 var(--title); transform:rotate(-28deg) scale(1.08); transition:background-color .38s ease, box-shadow .38s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
:root[data-theme="dark"] .theme-toggle::before { background:var(--title); box-shadow:inset 0 0 0 0 var(--paper); transform:rotate(0deg) scale(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle::before { background:var(--title); box-shadow:inset 0 0 0 0 var(--paper); transform:rotate(0deg) scale(1); }
}
.theme-toggle:hover { border-color:var(--title); color:var(--title); }
.theme-toggle:focus-visible { outline:2px solid var(--link); outline-offset:3px; }
.introduction { position:relative; display: block; padding: 62px 0 58px; }
.introduction > div:first-child { margin-left: 12px; }
.role { margin: 0 0 20px; color: var(--soft-ink); font-family: var(--mono); font-size: 12px; }
h1, h2 { color: var(--title); font-weight: 650; letter-spacing: -.04em; }
h1 { margin: 0 0 22px; font-size: clamp(38px, 6vw, 60px); line-height: 1; }
.bio { max-width: 660px; margin: 0; font-size: inherit; line-height: inherit; }
.intro-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; font-size: inherit; }
.portrait-placeholder { aspect-ratio: 4 / 5; display: grid; place-items: center; border: 1px solid var(--line); color: var(--soft-ink); font-family: var(--mono); font-size: 11px; line-height: 1.5; text-align: center; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.right-rail{position:absolute;right:0;top:62px;width:340px;min-width:0}.right-rail .portrait-placeholder{width:100%}
section:not(.introduction) { position:relative; width: 700px; max-width: 100%; padding: 60px 0 58px; border-top: 1px solid var(--line); }
.divider-knot { position:absolute; z-index:2; left:50%; top:0; width:76px; height:76px; padding:5px; border:1px solid var(--line); border-radius:50%; background:var(--paper); transform:translate(-50%,-50%); }
.divider-knot canvas { display:block; width:100%; height:100%; border-radius:50%; background:var(--paper); touch-action:none; cursor:grab; }
.divider-label { position:absolute; top:50%; left:clamp(82px, calc(50vw - 105px), 250px); transform:translateY(-50%); padding:1px 4px; white-space:nowrap; color:var(--line); background:var(--paper); font-family:var(--mono); font-size:10px; font-weight:500; line-height:1.2; letter-spacing:.01em; }
.knot-gallery { width:100% !important; padding-top:0 !important; border-top:0 !important; }
.gallery-divider { position:relative; width:700px; max-width:100%; height:60px; border-top:1px solid var(--line); }
.gallery-divider-knot { left:min(350px, 50%); }
.knot-gallery > p { max-width:700px; }
.knot-gallery-grid { display:grid; grid-template-columns:1fr 1fr; gap:26px; margin:22px 12px 0; }
.knot-gallery figure { margin:0; }
.knot-gallery-grid canvas { display:block; width:100%; aspect-ratio:4/3; border:1px solid var(--line); background:var(--canvas); touch-action:none; cursor:grab; }
.knot-gallery-grid canvas:active,.divider-knot canvas:active{cursor:grabbing}
.knot-gallery figcaption { margin-top:8px; color:var(--soft-ink); font-family:var(--mono); font-size:11px; }
h2 { margin: 0 0 14px 12px; font-size: 21px; }
h3 { margin: 25px 12px 8px; color: var(--title); font-size: 16px; font-weight: 650; }
section p { margin: 0; }
section:not(.introduction) > p { margin-left: 12px; margin-right: 12px; }
.link-list { margin: 12px 12px 0; padding-left: 22px; }
.link-list li { padding: 3px 0; }
.link-list span { color: inherit; }
.committee-list p { margin: 3px 0 8px; color: inherit; font-size: 14px; }
footer { display: flex; justify-content: flex-end; padding: 26px 0 38px; border-top: 1px solid var(--line); color: var(--soft-ink); font-family: var(--mono); font-size: 11px; }
footer a { color: var(--soft-ink); }

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 32px, 1080px); }
  .site-header { width: 100%; padding: 15px 22px; }
  .site-header::after { width: calc(100% - 32px); }
  nav { gap: 12px; font-size: 10px; }
  .theme-toggle { font-size:10px; }
  .introduction { padding:46px 0 38px; }
  .right-rail { position:static; width:min(290px, 85vw); margin-top:34px; }
  .introduction > div:first-child { margin-left: 6px; }
  h2 { margin-left: 6px; }
}

@media (max-width: 1120px) {
  .site-header { align-items: flex-start; gap: 14px; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
  .introduction { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 38px; }
  .right-rail { position: static; width: 100%; margin: 0; }
  .bio { max-width: none; }
}

@media (max-width: 700px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px 18px 16px; }
  .site-header::after { width: calc(100% - 32px); }
  .header-actions { width:100%; justify-content:space-between; gap:12px; }
  nav { justify-content: flex-start; font-size: 11px; }
  .introduction { display: block; padding: 38px 0 58px; }
  .right-rail { width: min(420px, 100%); margin: 30px auto 0; }
  .knot-gallery-grid { grid-template-columns:1fr; }
  .divider-knot { width:66px; height:66px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  body, body *, .site-header::after, .theme-toggle::before { transition:none !important; }
}
