:root {
  color-scheme: light;
  --paper: #faf9f5;
  --paper-deep: #f0eee8;
  --ink: #28333b;
  --ink-soft: #5e686f;
  --line: rgba(54, 67, 76, 0.16);
  --blue: #657e8f;
  --blue-bright: #718c9f;
  --max-width: 940px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.text-link, .paper-links a { transition: color 180ms ease; }
.text-link:hover, .paper-links a:hover { color: var(--blue-bright); }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  align-items: center;
  gap: clamp(3rem, 7vw, 5rem);
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 620px;
  margin: 0 auto;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0; color: var(--blue); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 0.75rem; }
.eyebrow::before { width: 28px; height: 1px; background: currentColor; content: ""; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 780px; margin: 0; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.role { margin: .7rem 0 1.8rem; color: var(--blue); font-size: 1.02rem; font-style: italic; }
.bio-copy { max-width: 610px; color: var(--ink-soft); font-size: 1rem; line-height: 1.72; }
.bio-copy p { margin: 0 0 1rem; }
.bio-copy a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2rem; }
.bio-copy a:hover { color: var(--blue-bright); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.25rem; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.85rem; font-weight: 700; transition: transform 180ms var(--ease), background-color 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-secondary:hover { background: var(--ink); color: var(--paper); }
.portrait-wrap { position: relative; z-index: 1; width: 100%; max-width: 300px; justify-self: end; }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 854 / 1280; border-radius: 3px; background: var(--paper-deep); box-shadow: 0 14px 38px rgba(49,59,66,.1); }
.portrait-frame::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.25); border-radius: inherit; box-shadow: inset 0 -80px 80px rgba(12,34,53,.12); content: ""; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; filter: saturate(.76) contrast(1.02); }
.profile-links { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.profile-links a { display: flex; align-items: center; gap: .3rem; min-height: 28px; transition: color 180ms ease; }
.profile-links a:hover { color: var(--blue-bright); }

.section { width: min(calc(100% - 48px),var(--max-width)); margin: 0 auto; padding: clamp(4.5rem,8vw,6.5rem) 0; }
.papers { position: relative; border-top: 0; }
.probability-background {
  position: absolute;
  inset: -86px 0 auto;
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  pointer-events: none;
}
.probability-pigment {
  mask-image: radial-gradient(ellipse at 50% 45%, #000 28%, transparent 73%);
}
.probability-mass { fill: url(#probability-ink); }
.probability-wash { fill: url(#probability-wash); }
.probability-thread { fill: none; stroke: url(#probability-edge); stroke-width: 1; }
.probability-hit { fill: transparent; pointer-events: all; cursor: default; touch-action: pan-y; }
.probability-hit:focus-visible { outline: none; stroke: var(--blue); stroke-opacity: .3; stroke-width: 1; stroke-dasharray: 2 5; }
.section-content h2 { max-width: 790px; margin: 0; font-size: clamp(2rem,3.5vw,2.8rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.text-link { flex: 0 0 auto; padding-bottom: .2rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .875rem; font-weight: 500; }
.paper-list { border-top: 1px solid var(--line); }
.paper { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.paper-details { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.5rem; margin-top: .65rem; }
.paper-meta, .paper-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .8125rem; font-weight: 500; }
.paper-meta { color: var(--blue); }
.paper-meta time { color: var(--ink-soft); font-weight: 500; }
.paper h3 { max-width: 800px; margin: 0; font-size: clamp(1.15rem,1.8vw,1.38rem); font-weight: 600; line-height: 1.35; letter-spacing: -.018em; }
.paper p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .9375rem; }
.paper-links { gap: 1rem; color: var(--ink-soft); font-size: .875rem; }
.paper-links a { display: inline-flex; align-items: center; gap: .3rem; min-height: 28px; }
.site-footer { display: flex; justify-content: space-between; gap: 1.5rem; width: min(calc(100% - 48px),var(--max-width)); margin: 0 auto; padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .8125rem; }
.site-footer p { margin: 0; }
.not-found { display: grid; place-content: center; min-height: 100vh; width: min(calc(100% - 48px),760px); margin: auto; }
.not-found h1 { margin-bottom: 2.5rem; }
.not-found .button { justify-self: start; }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0,1fr) minmax(220px,.55fr); gap: 2.5rem; }
}

@media (max-width: 680px) {
  .hero, .section, .site-footer { width: min(calc(100% - 32px),var(--max-width)); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 3.5rem 0; column-gap: 0; row-gap: 0; }
  .hero-copy { display: contents; }
  h1 { grid-row: 1; font-size: clamp(3rem,15vw,4.2rem); }
  .role { grid-row: 2; margin: .5rem 0 .8rem; }
  .portrait-wrap { grid-row: 3; width: min(72%,280px); margin: .5rem auto 1.5rem; justify-self: center; }
  .bio-copy { grid-row: 4; }
  .section { padding: 4.5rem 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
