:root{
  --bg: #34373b;
  --text: #e8e4dc;
  --body: #c4beb5;
  --muted: #b4afa6;
  --dim: #a8a29a;
  --rule: rgba(232,228,220,.10);
  --rule-soft: rgba(232,228,220,.07);
  --accent: #ff7d5c;
  --mark-bg: rgba(232,228,220,.06);

  --measure: 39rem;
  --page-pad: 1.2rem;
  --radius: 14px;
  --code-bg: rgba(232,228,220,.06);

  --font-sans: ui-sans-serif, -apple-system, system-ui, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --lh: 1.68;

  --brand-ls: .22em;

}

@font-face{
  font-family: "Outfit Mark";
  src: url("/fonts/outfit-nomass.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after{ box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  line-height: var(--lh);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a{
  color: var(--accent);
  text-decoration: none;
  transition: color 400ms ease, border-color 400ms ease;
}
a:hover{ color: var(--text); }

::selection{ background: rgba(232,228,220,.14); }

hr{
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.2rem 0;
}

.container{
  max-width: calc(var(--measure) + var(--page-pad) * 2);
  padding: 2.2rem var(--page-pad) 5rem;
  margin: 0 auto;
}

.site-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
}

.brand{
  display: inline-flex;
  align-items: baseline;
}

.brand a{
  color: var(--muted);
  font-family: "Outfit Mark", var(--font-sans);
  font-weight: 100;
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: var(--brand-ls);
  white-space: nowrap;
}
.brand a:hover{ color: var(--text); }

.brand .o{ position: relative; display: inline-block; line-height: 1; }
.brand .o::after{
  content: "";
  position: absolute;
  left: calc((100% - var(--brand-ls)) / 2);
  top: .64em;
  width: .74em;
  height: .034em;
  min-height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}
.nav{
  display: flex;
  align-items: center;
}

.nav a, .archive .label{
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--muted);
}
.nav a{
  margin-left: 1.3rem;
  font-weight: 400;
}
.nav a[href="/feed"]{ color: var(--accent); display: inline-flex; align-items: center; }
.nav a[href="/feed"]:hover{ color: var(--text); }
.nav a:hover{ color: var(--text); }
.container:has(.page-colophon) .nav a[href="/colophon/"],
.container:has(.page-blogroll) .nav a[href="/blogroll/"],
.container:has(.page-home) .brand a{ color: var(--text); }

.rss-icon{
  width: 15px; height: 15px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

@view-transition{ navigation: auto; }

@media (prefers-reduced-motion: no-preference){
  .site-header{ view-transition-name: site-header; }

  ::view-transition-old(root){ animation: slide-out 220ms cubic-bezier(.4,0,.2,1) both; }
  ::view-transition-new(root){ animation: slide-in 220ms cubic-bezier(.4,0,.2,1) both; }

  :root:has(.page)::view-transition-old(root){
    animation: rise-out 200ms cubic-bezier(.4,0,.2,1) both;
  }
  :root:has(.page)::view-transition-new(root){
    animation: rise-in 260ms cubic-bezier(.2,0,0,1) both;
  }
}
@keyframes slide-out{ to{ opacity: 0; transform: translateX(-4vw); } }
@keyframes slide-in{ from{ opacity: 0; transform: translateX(4vw); } }
@keyframes rise-out{ to{ opacity: 0; } }
@keyframes rise-in{ from{ opacity: 0; transform: translateY(1.2rem); } }

.eyebrow, .post-nav a, .archive .dt-published{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow{ margin: 0; color: var(--muted); }
.eyebrow a{ color: var(--muted); border-bottom: 1px solid transparent; }
.eyebrow a:hover{ color: var(--text); border-bottom-color: var(--rule); }

.post-nav{
  display: flex;
  margin-top: 4.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-soft);
}
.post-nav a{
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--muted);
}
.post-nav a:hover{ color: var(--text); }
.post-nav .next{ margin-left: auto; }
.post-nav .prev .chev-x{ transform: rotate(180deg); }
.chev-x{
  flex: 0 0 auto;
  width: .55rem; height: .95rem;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

main{ padding-top: 6vh; }

article > header{ margin: 0 0 2.6rem 0; }

h1, .archive .lead .p-name{
  line-height: 1.16;
  letter-spacing: -.028em;
  font-weight: 300;
  text-wrap: pretty;
}
h1{
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  margin: 0 0 .9rem 0;
  color: var(--text);
}

h2, h3{
  line-height: 1.22;
  letter-spacing: -.012em;
  margin: 2.6rem 0 .8rem 0;
  color: var(--text);
  font-weight: 400;
}
h2{ font-size: 1.5rem; }
h3{ font-size: 1.2rem; }

p{ margin: 0 0 1.35rem 0; font-size: 1.06rem; }
ul, ol{ margin: 0 0 1.35rem 1.4rem; padding: 0; }
li{ margin: .5rem 0; }


blockquote{
  margin: 1.8rem 0;
  padding: .2rem 0 .2rem 1.4rem;
  border-left: 1px solid var(--rule);
  color: var(--text);
  font-style: italic;
}
blockquote p{ margin: .6rem 0; }

.warning{
  margin: 1.8rem 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.warning p{ margin: 0; }

.callout{
  margin: 1.8rem 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--code-bg);
}
.callout p{ margin: 0 0 0.8rem 0; }
.callout p:last-child{ margin: 0; }
.callout pre{ margin: 0.8rem 0; }

.footnotes{
  margin: 3.4rem 0 0 1.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-soft);
  color: var(--muted);
  font-size: .95rem;
}
.footnotes li, sup[id]{ scroll-margin-top: 1.5rem; }
.footnotes a[aria-label]{
  font-variant-emoji: text;
  color: var(--muted);
  padding-left: .35em;
}

code{
  font-family: var(--font-mono);
  font-size: .88em;
  padding: .12em .4em;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--text);
}

pre{
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--code-bg);
}
pre code{
  padding: 0;
  border: 0;
  background: transparent;
  font-size: .86rem;
}

img{
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.inline-icon{
  border-radius: 0;
  vertical-align: middle;
  margin: 0 .1rem;
}

figure{ margin: 2.6rem 0; }
figure img{
  display: block;
  width: auto;
  max-height: 76vh;
  margin-left: auto;
  margin-right: auto;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
figure blockquote{ margin: 0; }
figcaption{
  margin-top: .9rem;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--muted);
}
figure:has(blockquote) figcaption{ padding-left: calc(1.4rem + 1px); }
figure:has(img) figcaption{
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--dim);
}
.fig-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.05rem;
}
.fig-grid figure{ margin: 0; }

.archive{ list-style: none; margin: 0; padding: 0; }
.archive li{ margin: 0 -.6rem; padding: 0 .6rem; }
.archive .h-entry{
  display: flex;
  align-items: center;
  gap: .9rem;
  position: relative;
  padding: .62rem .6rem;
  border-radius: 3px;
}
.archive .p-name{ color: var(--muted); }
.archive .p-name::after{ content: ""; position: absolute; inset: 0; }
.archive .h-entry:hover .p-name{ color: var(--text); }
.archive .dt-published{
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.archive .label{ padding-bottom: .5rem; }
.archive .previously{
  margin-top: 2.6rem;
  border-bottom: 1px solid var(--rule-soft);
}
.archive .lead{
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.4rem;
  margin-bottom: .38rem;
}
.archive .lead .p-name{ font-size: clamp(1.75rem, 3vw, 2.25rem); }

.blogroll{ list-style: none; margin: 1.6rem 0 0 0; padding: 0; }
.card{ padding: 1.15rem 0.15rem; color: var(--body); }
.blogroll .card{ display: flex; gap: 1.1rem; align-items: flex-start; }
.card + .card{ border-top: 1px solid var(--rule-soft); }

.blogroll .mark{
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: var(--mark-bg);
  overflow: hidden;
}
.blogroll .mark .favicon{
  width: 48px; height: 48px;
  border: 0; border-radius: 10px;
  object-fit: contain;
}

.blogroll .body{ flex: 1 1 auto; min-width: 0; }
.blogroll .body h3{
  display: flex; align-items: center; gap: .5rem;
  margin: 0 0 .15rem 0;
  font-size: 1.1rem;
}
.blogroll .body h3 a.p-name{
  color: var(--muted);
  font-weight: 500;
}
.blogroll .body h3 a.p-name:hover{ color: var(--text); }
.blogroll .body .p-note{
  margin: 0; color: var(--dim); font-size: 1rem; line-height: 1.5;
}

.blogroll .feed{
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}
.blogroll .feed:hover{ color: var(--text); }

@media print{
  .post-nav{ display: none !important; }
  body{ background: #fff; color: #000; }
  .site-header, .nav{ display: none !important; }
  a{ color: #000; text-decoration: underline; }
}
