:root{
  --bg:#FFFFFF; --text:#000000; --muted:#555555; --rule:#D9D9D9; --accent:#0B3F8F;
  --img-lo:#000000; --img-hi:#FFFFFF; --glow:#1B62D6;
  color-scheme:light;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
:root[data-dp="dark"]{
  --bg:#082240; --text:#E9EFF5; --muted:#A3B6CA; --rule:#21436B; --accent:#A9CCF5;
  --img-lo:#082240; --img-hi:#EEF3F8; --glow:#FFFFFF;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-padding-top:env(safe-area-inset-top,0px);scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:"STIX Two Text","Times New Roman",Times,serif;
  font-size:1.1875rem;line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  transition:background-color .5s ease,color .5s ease;
}
a{color:var(--accent);text-decoration-thickness:.06em;text-underline-offset:.18em}
a:hover{text-decoration-thickness:.12em}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}

.page{max-width:74rem;margin:0 auto;padding:0 clamp(1.25rem,4vw,3rem)}

.site-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 2rem;padding-block:1.75rem}
.wordmark{display:inline-flex;align-items:center;gap:.55rem;font-size:1.6rem;font-weight:600;letter-spacing:-.01em;color:var(--text);text-decoration:none}
.wordmark::before{content:"";width:.5em;height:.5em;border-radius:50%;background:var(--accent)}
.site-nav{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 1.6rem;font-size:1.0625rem}
.site-nav a{color:var(--muted);text-decoration:none;padding-block:.6rem}
.site-nav a:hover{color:var(--text)}
.theme-toggle{
  display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;padding:0 .95rem;
  font:inherit;font-size:1rem;color:var(--muted);background:none;
  border:1px solid var(--rule);border-radius:999px;cursor:pointer;
}
.theme-toggle:hover{color:var(--text);border-color:var(--muted)}
.theme-toggle i{width:.8rem;height:.8rem;border-radius:50%;border:1.5px solid currentColor;background:linear-gradient(90deg,currentColor 50%,transparent 50%)}

.layout{display:grid;grid-template-columns:minmax(0,1fr);gap:2rem;padding-bottom:4rem}
.figure{order:-1;margin:0 auto;width:100%;max-width:27rem;perspective:60rem}
.figure canvas,.figure img{display:block;width:100%;height:auto;aspect-ratio:1;will-change:transform}
.figure img{mix-blend-mode:multiply}
:root[data-dp="dark"] .figure img{filter:invert(1);mix-blend-mode:screen}

@media (min-width:60rem){
  .layout{grid-template-columns:minmax(0,31rem) minmax(0,1fr);gap:clamp(2rem,5vw,5rem);align-items:start;padding-top:1.5rem}
  .figure{order:2;position:sticky;top:calc(env(safe-area-inset-top,0px) + 2rem);max-width:40rem;justify-self:center}
}

h1{font-size:clamp(2.3rem,1.5rem + 2.6vw,3.5rem);line-height:1.06;font-weight:500;letter-spacing:-.018em;margin:0 0 1.5rem;text-wrap:balance}
.lede{font-size:1.3125rem;line-height:1.5;margin:0 0 1rem;max-width:30em}
.byline{color:var(--muted);margin:0}

section{margin-top:4rem}
h2{font-size:1rem;font-weight:400;font-style:italic;color:var(--muted);margin:0 0 .5rem}

.essays{list-style:none;margin:0;padding:0;border-bottom:1px solid var(--rule)}
.essays a{
  display:grid;grid-template-columns:3.4rem minmax(0,1fr) auto;gap:1rem;align-items:baseline;
  padding:.95rem 0;border-top:1px solid var(--rule);color:var(--text);text-decoration:none;
}
.essays .yr,.essays .len{color:var(--muted);font-size:1rem;font-variant-numeric:tabular-nums}
.essays .ttl{font-size:1.3125rem;line-height:1.3;font-weight:500}
.essays a:hover .ttl{text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.18em}
.more{margin:1rem 0 0}

.about p{margin:0 0 1.1rem;max-width:32em}
.about h1{margin-bottom:2rem}
.back{margin-top:2.5rem}
[hidden]{display:none !important}
.site-nav a[aria-current="page"]{color:var(--text)}

.subscribe p{margin:0 0 1.25rem;max-width:30em}
.button{
  display:inline-flex;align-items:center;min-height:3rem;padding:0 1.4rem;
  background:var(--text);color:var(--bg);font-weight:600;text-decoration:none;border-radius:2px;
  transition:background-color .5s ease,color .5s ease;
}
.button:hover{background:var(--accent)}

.site-footer{margin-top:5rem;padding-block:1.5rem 2.5rem;border-top:1px solid var(--rule);color:var(--muted);font-size:1rem;display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between}
.site-footer a{color:var(--muted)}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}body,.button{transition:none}}

.essays .wait{grid-template-columns:minmax(0,1fr)}
