:root {
  --ink: #20211d;
  --ink-soft: rgba(32, 33, 29, 0.68);
  --ink-faint: rgba(32, 33, 29, 0.38);
  --line: rgba(32, 33, 29, 0.16);
  --paper: #f3f0e8;
  --signal: #9b4435;
  --display: "Iowan Old Style", Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(32, 33, 29, 0.035) 50%, transparent calc(50% + 0.5px)),
    var(--paper);
  font: 400 10px/1.65 var(--mono);
  text-rendering: optimizeLegibility;
}

.about-birds {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ascii-bird {
  position: absolute;
  left: 0;
  color: rgba(32, 33, 29, 0.32);
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.08em;
  white-space: pre;
  animation: bird-crossing 28s linear infinite;
}

.bird-one {
  top: 9%;
  animation-delay: -3s;
}

.bird-two {
  top: 31%;
  font-size: 11px;
  animation-delay: -18s;
  animation-duration: 33s;
}

.bird-three {
  top: 57%;
  font-size: 12px;
  animation-delay: -10s;
  animation-duration: 31s;
}

.bird-four {
  top: 83%;
  font-size: 10px;
  animation-delay: -27s;
  animation-duration: 38s;
}

@keyframes bird-crossing {
  from {
    transform: translate3d(-18vw, 0, 0);
  }

  45% {
    transform: translate3d(54vw, -8px, 0);
  }

  to {
    transform: translate3d(118vw, 3px, 0);
  }
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 4px;
}

.about-skip {
  position: fixed;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 6px 9px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

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

.about-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 0 clamp(20px, 4vw, 62px);
  border-bottom: 1px solid var(--ink);
}

.about-brand {
  width: fit-content;
  font: 400 1.8rem/1 var(--display);
  letter-spacing: -0.05em;
  text-decoration: none;
}

.about-nav nav {
  display: flex;
  gap: 24px;
}

.about-nav nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.about-nav nav a:hover,
.about-nav nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about-nav > span {
  justify-self: end;
  color: var(--signal);
}

.about-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px minmax(460px, 760px) 180px;
  gap: clamp(34px, 6vw, 92px);
  justify-content: center;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(62px, 9vh, 112px) 0 110px;
}

.about-margin,
.about-index {
  position: sticky;
  top: 38px;
  align-self: start;
  color: var(--ink-faint);
}

.about-margin > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.about-margin span,
.about-index > p,
.about-index > div p {
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-margin strong {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 400;
}

.about-letter > header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink);
}

.about-letter > header p {
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-letter h1 {
  margin-top: 14px;
  font: 400 clamp(3.4rem, 7vw, 6rem)/0.9 var(--display);
  letter-spacing: -0.06em;
}

.about-letter section {
  scroll-margin-top: 78px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.about-letter section p {
  color: var(--ink-soft);
  font: 400 clamp(1.05rem, 1.6vw, 1.24rem)/1.72 var(--display);
}

.about-letter section p + p {
  margin-top: 22px;
}

.about-letter h2 {
  margin-bottom: 22px;
  color: var(--signal);
  font: 400 0.9rem/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.about-ascii {
  width: calc(100% + 80px);
  margin-left: -40px;
  padding: 54px 0 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.about-ascii pre {
  color: rgba(32, 33, 29, 0.68);
  font: 400 clamp(6px, 0.72vw, 10px)/1.45 var(--mono);
  text-align: center;
  white-space: pre;
}

.sandbox-route {
  margin: 34px 0 36px;
  padding: 22px 0;
  overflow-x: auto;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: 400 clamp(8px, 1.15vw, 10px)/1.7 var(--mono);
  white-space: pre;
}

.about-letter > footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 46px;
  color: var(--signal);
  font: 400 1rem/1.5 var(--display);
}

.about-index ol {
  margin-top: 12px;
  list-style: none;
  border-top: 1px solid var(--line);
}

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

.about-index li a {
  display: grid;
  grid-template-columns: 28px 1fr;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, padding-left 160ms ease;
}

.about-index li a:hover,
.about-index li a:focus-visible {
  padding-left: 4px;
  color: var(--ink);
}

body:not(:has(.about-letter section:target)) .about-index a[href="#name"],
body:has(#name:target) .about-index a[href="#name"],
body:has(#sandbox:target) .about-index a[href="#sandbox"],
body:has(#work:target) .about-index a[href="#work"],
body:has(#movement:target) .about-index a[href="#movement"] {
  padding-left: 4px;
  color: var(--ink);
}

.about-index li a span {
  color: var(--signal);
  font-size: 8px;
}

.about-index > div {
  margin-top: 40px;
  padding-left: 12px;
  border-left: 1px solid var(--signal);
}

.about-index > div span {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.7;
}

.about-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 62px) 30px;
  color: var(--ink-faint);
  border-top: 1px solid var(--ink);
  font-size: 8px;
}

.about-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.about-footer span:last-child {
  justify-self: end;
}

@media (max-width: 900px) {
  .about-shell {
    grid-template-columns: minmax(0, 740px) 170px;
  }

  .about-margin {
    display: none;
  }
}

@media (max-width: 650px) {
  .about-nav {
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .about-nav nav {
    grid-row: 2;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
  }

  .about-nav > span {
    display: none;
  }

  .about-shell {
    display: block;
    width: calc(100% - 36px);
    padding: 54px 0 74px;
  }

  .about-index {
    position: static;
    margin-top: 60px;
  }

  .about-ascii {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .about-ascii pre {
    width: max-content;
    min-width: 100%;
    text-align: left;
  }

  .about-footer {
    grid-template-columns: 1fr auto;
    padding: 20px 18px 28px;
  }

  .about-footer span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ascii-bird {
    animation: none;
  }

  .bird-one {
    transform: translate3d(12vw, 0, 0);
  }

  .bird-two {
    transform: translate3d(68vw, 0, 0);
  }

  .bird-three {
    transform: translate3d(34vw, 0, 0);
  }

  .bird-four {
    transform: translate3d(78vw, 0, 0);
  }
}
