body {
  max-width: 84ch;
  margin: 1.5rem 2rem 5rem;
  font-family: "Nimbus Sans", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.site-name {
  margin: 0;
  color: #666;
  font: 0.8rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  /* font-weight: bold; */
}

.site-name a,
.site-name a:visited { color: inherit; }

h1 {
  max-width: 30ch;
  margin: 1rem 0 0;
  font: 500 clamp(1.85rem, 3.2vw, 2.3rem)/1.2 "Nimbus Sans", Helvetica, Arial, sans-serif;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.intro {
  max-width: 52ch;
  margin: 0.8rem 0 0;
  color: #444;
  font-size: 1rem;
}

h2 {
  margin: 0;
  font: bold 0.95rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.listing-head, .listing, footer { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

hr { margin: 1.7rem 0 0; border: 0; border-top: 1px dashed #aaa; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 2.75rem 0 0.2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #d0d0d0;
}

.entry-count {
  color: #666;
  font: 0.75rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.listing {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.listing-head,
.listing li {
  display: grid;
  grid-template-columns: 11ch 23ch minmax(0, 1fr);
  gap: 0.75rem 1rem;
}

.listing-head {
  padding: 0.25rem 0 0.4rem;
  border-bottom: 1px solid #d9d9d9;
  color: #777;
  font-size: 0.875rem;
}

.listing-head span { font-size: 0.72rem; }

.listing li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9e9e9;
}

.mode { color: #666; white-space: nowrap; }
.name { color: #333; font-weight: bold; overflow-wrap: anywhere; }
.note { color: #555; font: 0.9rem/1.45 "Nimbus Sans", Helvetica, Arial, sans-serif; }

.thoughts { list-style: none; padding: 0; margin: 0; }
.thoughts li { padding: 0.75rem 0; border-bottom: 1px solid #e9e9e9; }
.thoughts time { color: #666; font: 0.75rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.thoughts p { margin: 0.25rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }

a,
a:visited { color: #31538e; }

.listing a.name,
.listing a.name:visited {
  color: #333;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.listing a.name:hover,
.listing a.name:focus-visible { color: #31538e; }

img { max-width: 100%; height: auto; }
pre { overflow-x: auto; }

.footnotes {
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid #d9d9d9;
  color: #555;
  font-size: 0.875rem;
}

.footnotes ol { padding-left: 1.5rem; }
.footnotes p { margin: 0.5rem 0; }
.footnotes li:target { color: #222; }

@media (max-width: 45rem) {
  .listing-head { display: none; }
  .listing li { grid-template-columns: 11ch minmax(0, 1fr); gap: 0.1rem 0.75rem; }
  .note { grid-column: 2; }
}

a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
footer { margin-top: 4rem; }

.button,
.button:visited {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #f7f7f5;
  color: #333;
  font: 0.875rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { border-color: #333; background: #eeeee9; }
.button:focus-visible { outline: 2px solid #31538e; outline-offset: 2px; }

.contact-form { max-width: 52ch; margin-top: 2rem; }

.contact-form label {
  display: block;
  margin: 1.25rem 0 0.35rem;
  color: #555;
  font: 0.8rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.contact-form input,
.contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fafaf8;
  color: #333;
  font: 1rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid #31538e;
  outline-offset: 2px;
}

.contact-form textarea { min-height: 12rem; resize: vertical; }
.contact-form .cf-turnstile { margin-top: 1.25rem; }
.contact-form button { margin-top: 1rem; }

@media (max-width: 32rem) {
  body { margin: 1rem; }
}
