:root {
  /* Archive-scale layout values. Adjust these before changing individual sections. */
  --bg: #e3d8c3;
  --text: #211d18;
  --muted: #5f584d;
  --quiet: #8b8172;
  --line: rgba(33, 29, 24, 0.18);
  --signal: rgba(174, 34, 28, 0.88);
  --max-width: 980px;
  --page-pad: clamp(1.25rem, 5vw, 4rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 14px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--muted);
}

.skip-link {
  background: var(--text);
  color: var(--bg);
  left: 1rem;
  padding: 0.6rem 0.8rem;
  position: absolute;
  top: 1rem;
  transform: translateY(-150%);
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Injected by signal-line.js. */
.signal-mark {
  left: 0;
  opacity: 0.82;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: clamp(7.4rem, 16vw, 12rem);
  z-index: 0;
}

.signal-mark svg {
  display: block;
  height: clamp(5rem, 11vw, 9rem);
  overflow: visible;
  width: 100%;
}

.signal-mark path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.thread-main {
  animation: signal-drift 20s ease-in-out infinite;
  opacity: 0.5;
  stroke: var(--signal);
  stroke-dasharray: 430 18 72 24 130 18;
  stroke-dashoffset: 0;
  stroke-width: 1.45;
}

.thread-shadow {
  animation: thread-shadow-drift 20s ease-in-out infinite;
  opacity: 0.16;
  stroke: var(--text);
  stroke-dasharray: 180 34;
  stroke-dashoffset: 36;
  stroke-width: 0.8;
}

.thread-points {
  animation: thread-points-drift 20s ease-in-out infinite;
  fill: var(--signal);
  opacity: 0.28;
}

.thread-points circle {
  animation: thread-point-pulse 5.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.thread-points circle:nth-child(2) {
  animation-delay: 1.4s;
}

.thread-points circle:nth-child(3) {
  animation-delay: 2.8s;
}

/* Top navigation: intentionally plain, like an archive header. */
.site-header {
  align-items: baseline;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: clamp(2rem, 5vw, 3.25rem) var(--page-pad) 0;
  text-transform: uppercase;
}

.mark,
.site-nav,
h2,
.work-index > li > span,
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 4vw, 2.8rem);
}

.masthead,
.archive-section,
.site-footer {
  margin: 0 auto;
  max-width: var(--max-width);
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* Masthead: not a hero, just the opening record. */
.masthead {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3.4rem, 7vw, 5rem);
  padding-top: clamp(4.2rem, 8vw, 6rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.3vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 0.9rem;
}

.kicker {
  color: var(--text);
  margin-bottom: 1rem;
}

.masthead p:last-child {
  color: var(--muted);
  max-width: 34rem;
}

.archive-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  grid-template-columns: minmax(7rem, 0.34fr) minmax(0, 1fr);
  padding-bottom: clamp(2.6rem, 5vw, 3.8rem);
  padding-top: clamp(1.3rem, 3vw, 2rem);
}

h2 {
  color: var(--text);
  font-weight: 400;
  margin-bottom: 0;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 0.35rem;
}

p {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.work-index,
.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-index {
  border-top: 1px solid var(--line);
}

.work-index li {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  padding: 0.95rem 0;
}

.work-index > li > span {
  color: var(--quiet);
}

.work-index p {
  margin-bottom: 0;
  max-width: 38rem;
}

.entry {
  max-width: 31rem;
}

.entry a {
  display: inline-block;
  margin-top: 0.3rem;
}

.featured-content {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 14rem);
}

.eb-specimen {
  justify-self: end;
  margin: 0;
  max-width: 12.5rem;
}

.eb-specimen canvas {
  border: 1px solid var(--line);
  border-radius: 50%;
  display: block;
  overflow: hidden;
  width: 100%;
}

.eb-specimen figcaption {
  color: var(--quiet);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-top: 0.7rem;
  white-space: nowrap;
  text-transform: uppercase;
}

.note-list {
  border-top: 1px solid var(--line);
}

.note-list li {
  border-bottom: 1px solid var(--line);
}

.note-list a {
  color: var(--quiet);
  display: block;
  padding: 0.72rem 0;
}

.note-list a:hover,
.note-list a:focus-visible {
  color: var(--muted);
}

.about p {
  max-width: 46rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--quiet);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  padding-top: 1.35rem;
}

.site-footer p {
  color: var(--quiet);
  font-size: 0.72rem;
  margin-bottom: 0;
}

:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 0.25rem;
}

@keyframes signal-drift {
  0% {
    d: path("M-20 92 C 120 96, 170 82, 260 88 S 410 116, 520 88 S 680 64, 790 94 S 970 122, 1220 78");
    opacity: 0.38;
    stroke-dashoffset: 0;
    transform: translate3d(-0.4rem, 0, 0);
  }

  38% {
    d: path("M-20 96 C 110 86, 180 108, 275 90 S 420 76, 530 98 S 686 118, 804 88 S 980 70, 1220 94");
    opacity: 0.56;
    stroke-dashoffset: -38;
    transform: translate3d(0.35rem, 0.25rem, 0);
  }

  64% {
    d: path("M-20 86 C 98 104, 178 78, 262 96 S 408 126, 522 92 S 668 70, 786 86 S 974 112, 1220 82");
    opacity: 0.44;
    stroke-dashoffset: -74;
    transform: translate3d(0.1rem, -0.2rem, 0);
  }

  100% {
    d: path("M-20 92 C 120 96, 170 82, 260 88 S 410 116, 520 88 S 680 64, 790 94 S 970 122, 1220 78");
    opacity: 0.38;
    stroke-dashoffset: -112;
    transform: translate3d(-0.4rem, 0, 0);
  }
}

@keyframes thread-shadow-drift {
  0% {
    d: path("M-20 100 C 120 104, 170 90, 260 96 S 410 124, 520 96 S 680 72, 790 102 S 970 130, 1220 86");
    stroke-dashoffset: 36;
    transform: translate3d(-0.2rem, 0.15rem, 0);
  }

  50% {
    d: path("M-20 104 C 108 94, 184 116, 278 98 S 424 84, 536 106 S 690 126, 810 96 S 984 78, 1220 102");
    stroke-dashoffset: -26;
    transform: translate3d(0.25rem, 0.35rem, 0);
  }

  100% {
    d: path("M-20 100 C 120 104, 170 90, 260 96 S 410 124, 520 96 S 680 72, 790 102 S 970 130, 1220 86");
    stroke-dashoffset: -88;
    transform: translate3d(-0.2rem, 0.15rem, 0);
  }
}

@keyframes thread-points-drift {
  0%,
  100% {
    transform: translate3d(-0.2rem, 0, 0);
  }

  50% {
    transform: translate3d(0.2rem, 0.18rem, 0);
  }
}

@keyframes thread-point-pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.75);
  }

  45% {
    opacity: 0.55;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-mark path,
  .thread-points,
  .thread-points circle {
    animation: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .archive-section {
    grid-template-columns: 1fr;
  }

  .featured-content {
    grid-template-columns: 1fr;
  }

  .eb-specimen {
    justify-self: start;
    max-width: 11rem;
  }

  .work-index li {
    gap: 1rem;
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 13px;
  }

  h1 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }
}
