@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/cormorant-garamond-latin-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --ink: #22211e;
  --muted: #595950;
  --rule: #c3c2b9;
  --accent: #654a3d;
  --display: 'Cormorant Garamond', Baskerville, Georgia, serif;
  --reading: 'Iowan Old Style', Baskerville, Georgia, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.5 var(--sans); }
h1,h2,h3,p,ul { margin: 0; }
a { color: inherit; text-decoration-color: #9d9b91; text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: #201c19; background: #e6dacb; }
.skip { position: absolute; top: .55rem; left: .65rem; z-index: 2; padding: .45rem .8rem; background: var(--paper); transform: translateY(-165%); }
.skip:focus { transform: none; }
.sheet { width: min(64rem, calc(100% - clamp(2.5rem,12vw,10rem))); margin-inline: auto; padding-block: clamp(2.75rem,8vh,6rem) 2rem; }
.identity { display: grid; grid-template-columns: minmax(0,.74fr) minmax(0,1.26fr); align-items: center; gap: clamp(2.5rem,7.4vw,7rem); padding-bottom: clamp(2.5rem,5vw,4.6rem); }
.portrait { overflow: hidden; background: #e3e1dc; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4/4.75; object-fit: cover; object-position: center 44%; }
.intro h1 { margin-left: -.045em; font: 500 clamp(4.8rem,8.2vw,8.5rem)/.83 var(--display); letter-spacing: -.055em; }
.intro h1 span { display: block; }
.intro p { max-width: 35ch; margin-top: clamp(1.4rem,2.4vw,2.2rem); font: 400 clamp(1.12rem,1.8vw,1.55rem)/1.35 var(--reading); text-wrap: pretty; }
.intro p + p { margin-top: .55em; }
.profiles { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: .7rem; }
.profiles a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; font-size: .94rem; }
.profiles a:last-child { min-width: 32px; }
.profiles a { --resting-line: #a5a399; }
.index { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,7vw,6rem); border-top: 1px solid #8b8981; padding-block: 1.5rem .85rem; }
.index h2 { margin-bottom: .55rem; font: 400 .95rem/1.5 var(--sans); color: var(--muted); }
.index h2 i { font: italic 1.12em var(--reading); }
.projects { list-style: none; padding: 0; }
.projects a,.issue { font: 500 clamp(1.65rem,2.6vw,2.4rem)/1.09 var(--display); letter-spacing: -.024em; text-decoration: none; }
.projects a { display: inline-flex; align-items: center; min-height: 44px; }
.issue { display: inline-block; max-width: 21ch; padding-block: .3rem; text-wrap: pretty; }
/* Keep the link's hit area still while its lettering and hairline respond. */
.link-label {
  padding-bottom: .07em;
  background-image: linear-gradient(currentColor,currentColor),linear-gradient(var(--resting-line, transparent),var(--resting-line, transparent));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: var(--line-width, 0%) 1px, 100% 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:is(.profiles a,.projects a,.issue):focus-visible {
  --line-width: 100%;
  --nudge: 4px;
  color: var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  :is(.profiles a,.projects a,.issue):hover {
    --line-width: 100%;
    --nudge: 4px;
    color: var(--accent);
  }
}
@media (forced-colors: active) {
  .link-label { text-decoration: underline; }
}
time { display: block; margin-top: .48rem; color: var(--muted); font-size: .83rem; }
.demos > summary { display: list-item; width: fit-content; padding-block: .75rem; min-height: 44px; color: var(--muted); font-size: .88rem; cursor: pointer; }
.demos > summary:hover { color: var(--ink); }
.demo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.6rem,4vw,3rem); border-top: 1px solid var(--rule); padding-block: 1.4rem 1rem; }
.demo-grid h3 { font: 500 2rem/1.2 var(--display); }
.example { margin: .2rem 0 1rem; color: var(--muted); }
.equity-preview {
  --track-ink: #354d66;
  --thumb-size: 18px;
  --equity-progress: 16.6667%;
  --plot-inset: clamp(1.7rem,3vw,2.9rem);
  padding: clamp(1.2rem,2.2vw,2.2rem) var(--plot-inset) 1.05rem;
  background: #eeefea;
  color: var(--ink);
  min-width: 0;
}
.equity-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .75rem; }
.equity-result strong { font: 400 clamp(2.45rem,4.9vw,4.65rem)/1 var(--reading); letter-spacing: -.022em; font-variant-numeric: lining-nums tabular-nums; }
.equity-result .equity-shortfall { color: #8a352b; }
.equity-result span { font-size: 1rem; }
.equity-label { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-top: .8rem; font-size: .94rem; }
#equity-pct { font-variant-numeric: tabular-nums; }
.instrument-track { position: relative; padding-top: 3.9rem; }
.house-travel { position: absolute; left: calc(var(--thumb-size)/2); right: calc(var(--thumb-size)/2); bottom: 1.7rem; height: 3.7rem; pointer-events: none; }
.house-travel img { position: absolute; left: var(--equity-progress); transform: translateX(-50%); width: auto; height: 100%; filter: saturate(.65); pointer-events: auto; touch-action: none; cursor: ew-resize; user-select: none; }
#equity-drop { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 38px; margin: 0; background: transparent; cursor: ew-resize; }
#equity-drop::-webkit-slider-runnable-track { height: 2px; background: #88978e; }
#equity-drop::-moz-range-track { height: 2px; background: #88978e; }
#equity-drop::-webkit-slider-thumb { -webkit-appearance: none; width: var(--thumb-size); height: var(--thumb-size); border-radius: 50%; background: var(--track-ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--track-ink); margin-top: -8px; }
#equity-drop::-moz-range-thumb { box-sizing: border-box; width: var(--thumb-size); height: var(--thumb-size); border-radius: 50%; background: var(--track-ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--track-ink); }
.equity-scale { position: relative; display: flex; justify-content: space-between; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.equity-scale span:nth-child(2) { position: absolute; left: calc(33.333% + 3px); transform: translateX(-50%); }
.equity-scale span:nth-child(2)::before { content: ''; position: absolute; left: 50%; top: -.4rem; height: .35rem; border-left: 1px solid #748278; }
.equity-fine { font-size: .84rem; color: var(--muted); padding-top: 1rem; }



@media (prefers-reduced-motion: no-preference) {
  :is(.profiles a,.projects a,.issue) { transition: color .2s ease; }
  .link-label { transition: background-size .3s cubic-bezier(.2,.7,.25,1), transform .27s cubic-bezier(.2,.7,.25,1); }
  .projects .link-label { transform: translateX(var(--nudge, 0)); }
  .portrait img { animation: arrive .72s cubic-bezier(.2,.7,.25,1) both; }
  .intro h1 span { animation: settle .56s cubic-bezier(.15,.68,.22,1) both; }
  .intro h1 span + span { animation-delay: 60ms; }
  @keyframes arrive { from { transform: scale(1.025); } to { transform: scale(1); } }
  @keyframes settle { from { opacity: .8; transform: translateY(.08em); } to { opacity: 1; transform: none; } }
}
@media (max-width: 670px) {
  .sheet { width: calc(100% - 2.5rem); padding-block: clamp(1.8rem,5vw,2.8rem) 1.4rem; }
  .identity { grid-template-columns: minmax(0,.7fr) minmax(0,1fr); gap: 1.4rem; padding-bottom: 2.25rem; }
  .intro h1 { font-size: clamp(3.2rem,9vw,4.4rem); }
  .intro p { margin-top: 1rem; }
  .profiles { margin-top: .35rem; gap: 0 1rem; }
  .index { gap: 1.5rem; }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 475px) {
  .identity { grid-template-columns: minmax(0,.65fr) minmax(0,1.1fr); align-items: end; gap: 1.1rem 1.15rem; padding-bottom: 1.65rem; }
  .intro { display: contents; }
  .intro h1 { align-self: center; font-size: clamp(2.95rem,12vw,4.1rem); }
  .intro p,.profiles { grid-column: 1 / -1; margin: 0; }
  .intro p { max-width: 34ch; font-size: 1.22rem; }
  .intro p + p { margin-top: -.35rem; }
  .profiles { margin-top: -.65rem; gap: 0 1.45rem; }
  .index { grid-template-columns: 1fr; gap: 1.35rem; padding-block: 1.15rem .4rem; }
  .index h2 { margin-bottom: .35rem; }
  .projects a,.issue { font-size: 1.8rem; }
}
