:root {
  --bg: #f8f6f0;
  --ink: #33302a;
  --dim: #8c8678;
  --tok: #9a8f76;
  --caret: #5b6b4f;
  --rule: #e0d9c7;
  --code-bg: #edebe5;
  --code-ink: #33302a;
  --code-rule: #d5cdbb;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "IBM Plex Serif", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

a {
  color: inherit;
}

@keyframes mosesCaret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes auroraDrift {
  0% {
    transform: translateX(-5%) scaleY(1);
    opacity: .75;
  }
  50% {
    transform: translateX(6%) scaleY(1.16);
    opacity: 1;
  }
  100% {
    transform: translateX(-5%) scaleY(1);
    opacity: .75;
  }
}

@keyframes auroraDrift2 {
  0% {
    transform: translateX(4%) scaleY(1.1);
  }
  50% {
    transform: translateX(-6%) scaleY(.92);
  }
  100% {
    transform: translateX(4%) scaleY(1.1);
  }
}

.moses-root {
  position: fixed;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  color: var(--ink);
  transition: background-color .14s linear, color .14s linear;
}

.aurora {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  height: 108vh;
  overflow: hidden;
  contain: paint;
  opacity: var(--aurora-op, 0);
  pointer-events: none;
  transition: opacity 1.4s ease;
}

.aurora-band {
  position: absolute;
  left: -25%;
  right: -25%;
}

.aurora-band-a {
  top: -20%;
  height: 95%;
  background:
    radial-gradient(50% 60% at 42% 0%, rgba(96, 196, 150, .42), transparent 68%),
    radial-gradient(42% 56% at 72% 4%, rgba(86, 156, 205, .34), transparent 70%);
  filter: blur(34px);
  animation: auroraDrift 26s ease-in-out infinite;
}

.aurora-band-b {
  top: -16%;
  height: 88%;
  background:
    radial-gradient(40% 58% at 28% 2%, rgba(150, 104, 206, .34), transparent 70%),
    radial-gradient(34% 50% at 58% 8%, rgba(104, 190, 176, .3), transparent 72%);
  filter: blur(42px);
  animation: auroraDrift2 34s ease-in-out infinite;
}

.aurora-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64%;
  background: linear-gradient(180deg, rgba(110, 210, 168, .08), transparent 60%);
  mix-blend-mode: screen;
}

.feed-shell {
  position: relative;
  z-index: 1;
  max-width: 730px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px) 22vh;
}

.feed-head {
  padding: 11vh 0 6vh;
}

.site-name {
  color: var(--tok);
  font-size: 12px;
}

.site-tagline {
  margin-top: .5rem;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.7;
}

.feed-entry {
  padding: clamp(26px, 4.5vh, 46px) 0;
}

.entry-kicker {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.4;
}

.entry-kicker a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.entry-number {
  color: var(--tok);
}

.entry-title {
  color: var(--ink);
  font-weight: 500;
}

.entry-arrow {
  margin-left: .55ch;
  color: var(--tok);
  opacity: 0;
  transition: opacity .3s ease;
}

.entry-kicker a:hover .entry-arrow,
.entry-kicker a:focus-visible .entry-arrow {
  opacity: 1;
}

.entry-body {
  margin-top: .85rem;
}

.entry-body p,
.post-body p {
  margin: 0 0 1em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(16.5px, 1.35vw, 19.5px);
  line-height: 1.74;
  text-wrap: pretty;
}

.post-body p {
  margin-bottom: 1.1em;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.78;
}

.entry-apparatus {
  margin-top: .5rem;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .01em;
  opacity: 0;
  transition: opacity .4s ease;
}

.feed-entry:hover .entry-apparatus,
.feed-entry:focus-within .entry-apparatus {
  opacity: 1;
}

.feed-caret {
  display: inline-block;
  width: .58em;
  height: 1.05em;
  margin-top: 1.5vh;
  background: var(--caret);
  font-size: clamp(16px, 1.35vw, 19px);
  vertical-align: -.18em;
  animation: mosesCaret 1.1s step-end infinite;
}

.post-topbar {
  position: sticky;
  z-index: 18;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 40px);
  font-size: 12px;
  letter-spacing: .02em;
}

.post-topbar a {
  color: var(--dim);
  text-decoration: none;
  transition: color .3s ease;
}

.post-topbar a:hover,
.post-topbar a:focus-visible {
  color: var(--ink);
}

.post-topbar span {
  color: var(--tok);
}

.post-shell {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(20px, 7vh, 72px) clamp(20px, 5vw, 40px) 24vh;
}

.post-address {
  color: var(--tok);
  font-size: 13px;
  letter-spacing: .04em;
}

.post-title {
  margin: .7rem 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.006em;
  text-wrap: pretty;
}

.post-body {
  margin-top: clamp(1.4rem, 3.4vh, 2.3rem);
}

.entry-body a,
.post-body a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.entry-body a:hover,
.entry-body a:focus-visible,
.post-body a:hover,
.post-body a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--dim);
}

.post-body h2,
.post-body h3 {
  margin: 2.1em 0 .72em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.24;
  text-wrap: pretty;
}

.post-body h2 {
  font-size: clamp(22px, 2vw, 28px);
}

.post-body h3 {
  font-size: clamp(19px, 1.7vw, 23px);
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.78;
}

.post-body li + li {
  margin-top: .45em;
}

.post-body blockquote {
  margin: 1.6em 0;
  padding-left: 1.1em;
  border-left: 1px solid var(--rule);
  color: var(--ink);
  transition: border-color .6s ease;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body code {
  padding: .08em .28em;
  border: 1px solid var(--code-rule);
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: .83em;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: background-color .14s linear, border-color .6s ease, color .14s linear;
}

.post-body pre {
  margin: 1.45em 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--code-rule);
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.05vw, 14px);
  line-height: 1.65;
  white-space: pre;
  transition: background-color .14s linear, border-color .6s ease, color .14s linear;
}

.post-body pre code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: normal;
  word-break: normal;
}

.post-body table {
  display: block;
  width: 100%;
  margin: 1.5em 0;
  overflow-x: auto;
  border-collapse: collapse;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(11.5px, 1vw, 13px);
  line-height: 1.45;
}

.post-body th,
.post-body td {
  padding: .48rem .58rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.post-body th {
  color: var(--tok);
  font-weight: 500;
}

.post-body sup {
  font-family: var(--mono);
  font-size: .68em;
  line-height: 0;
}

.post-body small,
.post-body .text-small,
.post-body .footnotes,
.post-body .article-date,
.post-body .footnote-back {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}

.post-body .footnotes {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.post-body .info-box {
  padding: .85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 88%, var(--ink));
}

.source-line {
  margin-top: .55rem;
  color: var(--dim);
  font-size: 11.5px;
  letter-spacing: .03em;
}

.source-line a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.source-line a:hover,
.source-line a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--dim);
}

.post-meta {
  margin-top: clamp(2.6rem, 6vh, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  transition: border-color .6s ease;
}

.touched {
  color: var(--dim);
  font-size: 11.5px;
  letter-spacing: .03em;
}

.series-label {
  margin-top: 1.6rem;
  color: var(--tok);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.series-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.series-name {
  margin-bottom: .7rem;
  color: var(--ink);
  font-size: 13px;
}

.series-row {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.3;
}

.series-row + .series-row {
  margin-top: .35rem;
}

.series-row span:first-child {
  flex: none;
  width: 5.2em;
  color: var(--tok);
}

.series-empty,
.loose-leaf {
  color: var(--tok);
}

.loose-leaf {
  margin-top: 1.4rem;
  font-size: 11.5px;
}

.chron-nav {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: clamp(2.6rem, 6vh, 3.6rem);
}

.chron-nav a,
.chron-nav .disabled {
  min-width: 0;
  max-width: 48%;
  color: var(--ink);
  text-decoration: none;
}

.chron-nav a:last-child,
.chron-nav .disabled:last-child {
  text-align: right;
}

.chron-nav span span,
.chron-nav a span {
  display: block;
  margin-bottom: .4rem;
  color: var(--tok);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.chron-nav b {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
}

.chron-nav .disabled {
  opacity: .32;
}

.orbit-control {
  position: fixed;
  z-index: 20;
  right: clamp(14px, 3vw, 22px);
  bottom: clamp(12px, 3vh, 18px);
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--dim);
  opacity: .62;
  transition: opacity .35s ease;
}

.orbit-control:hover,
.orbit-control:focus-within {
  opacity: 1;
}

.orbit-label {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .04em;
  opacity: 0;
  white-space: nowrap;
  transition: opacity .3s ease;
}

.orbit-control:hover .orbit-label,
.orbit-control:focus-within .orbit-label {
  opacity: 1;
}

.orbit-dial {
  display: block;
  width: 46px;
  height: 46px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.orbit-dial:active {
  cursor: grabbing;
}

.orbit-dial:focus-visible {
  outline: 1px solid var(--dim);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .orbit-control {
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    bottom: auto;
    gap: 8px;
    opacity: .7;
    transform: scale(.88);
    transform-origin: top right;
  }

  .orbit-label {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-band,
  .feed-caret {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
