* { box-sizing: border-box; }
html {
  background: #191726;
  color: #332737;
  font: 18px/1.5 'Source Sans 3', Arial, sans-serif;
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
a { color: inherit; text-underline-offset: .19em; }
:focus-visible { outline: 3px solid #a85921; outline-offset: 3px; }
main { max-width: 1280px; margin: auto; padding: 36px clamp(16px, 4vw, 54px) 16px; }
article {
  --edge: #ae9168;
  display: grid;
  grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  margin-bottom: 48px;
  background: #211d31;
  border: 1px solid var(--edge);
  box-shadow: 0 0 0 4px #272332, 0 0 0 5px #65526b, 0 14px 30px #110f19;
}
.rail { align-self: start; position: sticky; top: 0; padding: clamp(22px, 3vw, 44px); color: #f0dec1; }
.rail h2 { font: 400 clamp(30px, 3.2vw, 46px)/1.05 Georgia, serif; letter-spacing: -.038em; margin: 12px 0; }
.rail p { max-width: 29ch; margin: .8em 0; }
.rail a { color: #eed2ff; }
.engraving { display: block; width: calc(100% + 16px); margin: -8px -8px 15px; image-rendering: pixelated; }
.lassonde-mark { width: min(200px, 100%); padding: 8px; background: white; }
.track { height: 3px; background: #4d425a; margin: 30px 0 8px; }
.track i { display: block; height: 100%; background: #d8b57c; transform: scaleX(0); transform-origin: left; }
.chapters { min-width: 0; border-left: 1px solid var(--edge); background: #f4eada; }
.chapter { display: grid; align-content: center; justify-items: start; gap: 14px; position: relative; padding: clamp(22px, 4vw, 56px); }
.chapter + .chapter { border-top: 1px solid var(--edge); }
.chapter::after { content: "✦"; color: #8b7051; position: absolute; right: 14px; bottom: 8px; font-size: 14px; }
.chapter h3 { font: 600 clamp(23px, 2vw, 29px)/1.12 'Source Sans 3', Arial, sans-serif; letter-spacing: -.022em; }
.chapter h3.headline { font-size: clamp(30px, 3vw, 44px); line-height: 1.06; letter-spacing: -.033em; text-wrap: balance; }
.chapter p { max-width: 56ch; }
.chapter a { color: #503775; }
.chapter.figure { background: #e8decf; }
small { font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.4; }
#about .rail { position: relative; }
#about .chapter { background: #eee4d6; }
.portraits { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:6px; margin-top:14px; align-items:center; }
.portraits img { display:block; width:100%; border:2px solid #b79a75; }
.portraits > img:first-child { aspect-ratio:5/7; object-fit:cover; }
.portraits img:last-child { height:auto; }
.portraits .lavender-frame { position:relative; }
.lavender-frame::after { content:""; position:absolute; inset:2px; pointer-events:none; background:linear-gradient(to bottom, rgba(190,112,186,.49), rgba(144,70,149,.20)); mask-image:linear-gradient(55deg, black 22%, rgba(0,0,0,.85) 43%, transparent 72%); }
.hello { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.27; letter-spacing: -.021em; }
.about-quote { display: grid; grid-template-columns: clamp(60px, 8vw, 96px) 1fr; column-gap: 16px; max-width: 52ch; padding-top: 12px; border-top: 1px solid #b8a99b; color: #514351; }
.about-quote a { grid-row: span 2; align-self: start; }
.about-quote img { width: 100%; display: block; border: 3px double #8d7863; }
.about-quote blockquote { font: italic clamp(16px, 1.5vw, 20px)/1.45 Georgia, serif; }
.about-quote figcaption { margin-top: 6px; font-size: 14px; }
.work-links { display: flex; align-items: start; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; font-weight: 600; }
.work-links a { padding: 4px 0; }
.spin-lockup { width: min(100%, 290px); display: block; background: #f6f0e4; border-radius: 3px; padding: 10px; }
#spin-atlas .headline strong { color: #522b64; }
#parse { --edge: #aa899c; }
#parse .result { padding: 6px 0 6px 17px; border-left: 3px solid #835f78; font-size: 1.15rem; line-height: 1.38; }
.screen { width: 100%; }
.screen h4 { font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.screen img { display: block; width: 100%; height: auto; border: 3px double #8d7863; }
.zoom-link { display: block; cursor: zoom-in; }
.screen figcaption { font-size: .9rem; margin-top: 9px; line-height: 1.42; }
.build-note { width: 100%; padding: 12px 0 0; border-top: 1px solid #b6a78e; }
.build-note summary { cursor: pointer; font-weight: 600; }
.build-note p { margin-top: 8px; }
.jobs .chapter { background: #e4dfdf; gap: 8px; }
.jobs .chapter:nth-child(even) { background: #d3ced6; }
.employer { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #b8aeb7; padding-bottom: 14px; margin-bottom: 4px; }
.employer img { display: block; width: auto; max-width: 100%; height: 32px; }
.employer img.lassonde { width: min(220px, 100%); height: auto; }
.employer-rbc img { height: 60px; }
.employer-rbc span { max-width: 17ch; font-weight: 600; font-size: clamp(17px, 2vw, 24px); line-height: 1.1; }
.role { margin-top: 12px; display: grid; gap: 8px; }
.credentials { margin: 0; padding: 0; list-style: none; }
.credentials li + li { margin-top: .65em; }
.credentials small { display: block; margin-top: 2px; }
.publication-title { margin-top: 12px; }
.club-link, footer { color: #e7d5bf; }
.club-link { margin-bottom: 18px; }
footer { padding: 0 7vw 32px; display: flex; gap: 12px 24px; flex-wrap: wrap; font-size: .9rem; }
#image-viewer { width: min(1120px, 96vw); max-width: 96vw; max-height: 94dvh; overflow: hidden; padding: 0; border: 1px solid #ae9168; color: #f0dec1; background: #211d31; }
#image-viewer::backdrop { background: #120e21de; }
body:has(#image-viewer[open]) { overflow: hidden; }
.viewer-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 8px 14px; }
.viewer-heading h2 { font: 400 clamp(20px, 3vw, 30px)/1.15 Georgia, serif; }
.viewer-actions { display: flex; gap: 6px; }
.viewer-actions button { min-height: 42px; font: inherit; font-size: 16px; padding: 5px 12px; cursor: pointer; color: inherit; background: transparent; border: 1px solid #9581a2; }
.viewer-actions button[aria-pressed="true"] { color: #211d31; background: #f0dec1; }
.viewer-surface { max-height: calc(90dvh - 105px); overflow: auto; overscroll-behavior: contain; background: #f4eada; }
.viewer-surface img { display: block; margin-inline: auto; max-width: 100%; max-height: calc(90dvh - 105px); }
.viewer-surface.actual-size img { max-width: none; max-height: none; }
@media (max-width: 690px) {
  article { display: block; margin-bottom: 32px; }
  .rail { position: relative; padding: 16px 18px; border-bottom: 1px solid var(--edge); }
  #about .rail { min-height: 108px; padding-right: 156px; }
  .rail h2 { margin: 4px 0; }
  .rail p { max-width: 48ch; margin: 6px 0; font-size: 16px; }
  #about .rail { padding-right:18px; }
  .portraits { max-width:360px; }
  .engraving { float: right; width: 78px; margin: 0 0 0 8px; }
  .lassonde-mark { width: 130px; }
  .spin-lockup { width: 145px; padding: 4px; }
  .track { clear: both; margin: 8px 0 0; }
  .chapters { border: 0; }
  .viewer-heading { padding: 8px; }
}
#about .work-links { margin-top: 14px; }
@media (max-width: 690px) {
  #about .rail { padding-right: 18px; }
  #about .rail h2 { margin-right: 130px; }
  #about .work-links { padding-top: 16px; }
}
