:root {
  --paper: #faf9f5;
  --ink: #171717;
  --muted: #6b6b6b;
  --rule: #bdbdbd;
  --link: #0000ee;
  --visited: #551a8b;
  --content-width: 640px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:visited {
  color: var(--visited);
}

a:hover,
a:focus-visible {
  color: #777;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.site-shell {
  width: min(calc(100% - 40px), 860px);
  margin: 22px 24px 80px clamp(16px, 11vw, 180px);
}

.site-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 34px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.site-name {
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  font-weight: normal;
}

.site-name a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration-style: dotted;
}

main,
.site-footer {
  max-width: var(--content-width);
}

h1,
h2,
h3 {
  font-weight: normal;
  line-height: 1.15;
}

h1 {
  max-width: 580px;
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 34px);
}

h2 {
  margin: 30px 0 12px;
  font-size: 20px;
}

h3 {
  margin: 26px 0 8px;
  font-size: 17px;
}

p {
  max-width: 68ch;
  margin: 0 0 16px;
}

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

.lede {
  font-size: 17px;
}

.small,
.post-meta,
.caption,
.site-footer,
.back-link,
.eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.muted,
.post-meta,
.caption,
.site-footer,
.eyebrow {
  color: var(--muted);
}

.eyebrow {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ascii-art {
  max-width: 100%;
  margin: 24px 0 28px;
  overflow-x: auto;
  color: #262626;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(7px, 1.35vw, 12px);
  line-height: 1.05;
  white-space: pre;
}

.ascii-art.compact {
  margin: 12px 0 20px;
  font-size: clamp(7px, 1.1vw, 10px);
}

.intro-note {
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 2px solid var(--ink);
}

.post-list {
  margin: 0;
}

.post-item {
  padding: 12px 0 15px;
  border-top: 1px dotted var(--rule);
}

.post-item:last-child {
  border-bottom: 1px dotted var(--rule);
}

.post-item h3 {
  margin: 4px 0 4px;
  font-size: 19px;
}

.post-item h3 a {
  color: var(--ink);
}

.post-item h3 a:hover,
.post-item h3 a:focus-visible {
  color: var(--link);
}

.post-excerpt {
  margin: 0;
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px dotted var(--rule);
}

.archive-list li:last-child {
  border-bottom: 1px dotted var(--rule);
}

.article-header {
  margin-bottom: 28px;
}

.article-header h1 {
  margin-top: 8px;
}

.article-body {
  max-width: 620px;
}

.article-body p {
  max-width: 68ch;
}

.article-body blockquote {
  margin: 24px 0;
  padding-left: 16px;
  border-left: 2px solid var(--ink);
  font-style: italic;
}

.article-body figure {
  margin: 26px 0;
}

.found-image {
  max-width: 520px;
}

.found-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}

.found-image.tall {
  max-width: 390px;
}

.image-note {
  margin: 28px 0;
  padding: 10px 0;
  border-top: 1px dotted var(--rule);
  border-bottom: 1px dotted var(--rule);
}

.image-note .found-image {
  margin: 0 0 10px;
}

.home-images {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  margin: 22px 0 30px;
}

.home-images .found-image {
  flex: 1 1 190px;
  max-width: 280px;
  margin: 0;
}

.home-images .found-image.tall {
  max-width: 230px;
}

.article-body figure pre {
  margin: 0 0 6px;
}

.caption {
  display: block;
  max-width: 65ch;
}

details {
  margin: 22px 0;
}

summary {
  width: fit-content;
  cursor: pointer;
  color: var(--link);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

details p {
  margin: 10px 0 0 14px;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.site-footer {
  margin-top: 54px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.site-footer p {
  margin-bottom: 8px;
}

@media (max-width: 700px) {
  .site-shell {
    width: auto;
    margin: 18px 18px 56px;
  }

  .site-header {
    margin-bottom: 28px;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .ascii-art {
    font-size: 8px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .ascii-art.compact {
    font-size: 7px;
  }
}

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