: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: 13px;
  text-decoration: none;
  transition: color .3s ease;
}

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

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

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

.entry-kicker {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
}

.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: 1.15rem;
}

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

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

.entry-apparatus {
  margin-top: .5rem;
  color: var(--dim);
  font-size: 13px;
  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(20px, 1.8vw, 25px);
  vertical-align: -.18em;
  animation: mosesCaret 1.1s step-end infinite;
}

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

.post-head {
  margin-bottom: clamp(2.4rem, 6vh, 4rem);
}

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

.post-title {
  margin: .7rem 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 47px);
  font-weight: 500;
  line-height: 1.14;
  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(24px, 2.2vw, 30px);
}

.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(21px, 1.9vw, 26px);
  line-height: 1.76;
}

.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(14px, 1.2vw, 16px);
  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(13px, 1.15vw, 15px);
  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: 13px;
  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: 13px;
  letter-spacing: .03em;
}

.series-label {
  margin-top: 1.6rem;
  color: var(--tok);
  font-size: 11px;
  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: 15px;
}

.series-row {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  color: var(--ink);
  font-size: 14px;
  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 {
  color: var(--tok);
}

.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: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

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

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

[hidden] {
  display: none !important;
}

.clock {
  position: fixed;
  z-index: 20;
  right: clamp(14px, 3vw, 22px);
  bottom: clamp(14px, 3vh, 20px);
  display: flex;
  justify-content: flex-end;
}

.clock-rest {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  opacity: .42;
  transition: opacity .3s ease;
}

.clock-rest:hover,
.clock-rest:focus-visible {
  opacity: .85;
}

.clock-pill {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 9px 17px;
  border-radius: 999px;
  background: rgba(22, 22, 17, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 34px rgba(0, 0, 0, .22);
  color: #e9e6db;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
}

.clock-readout {
  min-width: 108px;
}

.clock-close {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  opacity: .5;
  transition: opacity .3s ease;
}

.clock-close:hover,
.clock-close:focus-visible {
  opacity: .85;
}

.clock-overlay {
  position: fixed;
  z-index: 19;
  inset: 0;
}

.clock-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  height: 3px;
  border-radius: 2px;
  background: rgba(238, 235, 225, .3);
  outline: none;
}

.clock-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #e9e6db;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(154, 177, 138, .4);
}

.clock-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: #e9e6db;
  cursor: pointer;
}

@media (max-width: 560px) {
  .clock-rest {
    opacity: .7;
  }
}

@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;
  }
}
