:root {
  --background-color: #fff;
  --text-color: #000;
  --accent-color: #000;
  --accent-hover: #6b6b6b;
  --blockquote-color: #6b6b6b;
  --code-background: #f5f5f5;
  --code-text-color: #111;
  --border-color: #e5e5e5;
  --heading-font: 'EB Garamond', Garamond, Georgia, serif;
  --mono-font: 'Geist Mono', ui-monospace, Menlo, monospace;
}
html.dark {
  --background-color: #000;
  --text-color: #fff;
  --accent-color: #fff;
  --accent-hover: #8a8a8a;
  --blockquote-color: #8a8a8a;
  --code-background: #111;
  --code-text-color: #eee;
  --border-color: #222;
}
body, body * {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
body {
  font-family: 'EB Garamond', Garamond, Georgia, serif;
  margin: auto;
  padding: 20px;
  max-width: 640px;
  text-align: left;
  background-color: var(--background-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.55;
  color: var(--text-color);
  font-size: 122%;
}
/* header */
header {
  padding-top: 2.5rem;
  margin-bottom: 2.5rem;
}
header a {
  color: var(--text-color);
  text-decoration: none;
}
#header-name {
  font-family: var(--mono-font);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.caret {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--text-color);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.header-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-top: 0.6rem;
  font-family: var(--mono-font);
  font-size: 14px;
}
.header-links a {
  color: var(--blockquote-color);
}
.header-links a:hover {
  color: var(--text-color);
}
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--blockquote-color);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--text-color);
}
/* type */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  font-family: var(--heading-font);
  font-weight: 400;
}
strong, b {
  font-weight: 600;
}
h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 1.3rem 0;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 1.3rem 0;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 1.1rem 0;
}
a {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--blockquote-color);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
  color: var(--accent-hover);
  text-decoration-color: transparent;
}
.title {
  text-decoration: none;
}
textarea {
  width: 100%;
  font-size: 16px;
}
input {
  font-size: 16px;
}
table {
  width: 100%;
}
code {
  font-family: var(--mono-font);
  font-size: 0.78em;
  padding: 2px 5px;
  background-color: var(--code-background);
}
pre code {
  color: var(--code-text-color);
  display: block;
  padding: 20px;
  white-space: pre-wrap;
  font-size: 14px;
  overflow-x: auto;
}
div.highlight pre {
  background-color: initial;
  color: initial;
}
div.highlight code {
  background-color: unset;
  color: unset;
}
blockquote {
  border-left: 1px solid var(--blockquote-color);
  color: var(--blockquote-color);
  padding-left: 20px;
  font-style: italic;
}
footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  font-family: var(--mono-font);
  font-size: 13px;
  color: var(--blockquote-color);
}
footer a {
  color: var(--blockquote-color);
  text-decoration: none;
}
footer a:hover {
  color: var(--text-color);
}
.helptext {
  color: #777;
  font-size: small;
}
.errorlist {
  color: #eba613;
  font-size: small;
}
/* blog posts */
ul.blog-posts {
  list-style-type: none;
  padding: unset;
}
ul.blog-posts li {
  display: flex;
  align-items: baseline;
  padding: 0.4rem 0;
}
ul.blog-posts li span {
  flex: 0 0 130px;
  color: var(--blockquote-color);
  font-size: 90%;
}
.footnote-definition {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  padding-left: 1em;
}
main img {
  max-width: 100%;
  height: auto;
}
html {
  overflow-x: hidden;
}
.scrapbook {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.scrapbook img {
  --r: -2deg;
  position: relative;
  height: 250px;
  width: auto;
  max-width: none;
  margin: -10px;
  object-fit: cover;
  transform: rotate(var(--r));
  transition: transform 0.2s ease;
}
.scrapbook img:nth-child(2n)  { --r: 3deg;  height: 210px; z-index: 2; }
.scrapbook img:nth-child(3n)  { --r: -5deg; height: 320px; z-index: 1; }
.scrapbook img:nth-child(4n)  { --r: 6deg;  height: 180px; z-index: 3; }
.scrapbook img:nth-child(5n)  { --r: -3deg; height: 340px; z-index: 4; }
.scrapbook img:nth-child(7n)  { --r: 4deg;  height: 270px; z-index: 5; }
.scrapbook img:hover {
  z-index: 10;
  transform: rotate(0) scale(1.08);
}
@media (max-width: 480px) {
  .scrapbook img { height: 140px; margin: -6px; }
  .scrapbook img:nth-child(2n) { height: 120px; }
  .scrapbook img:nth-child(3n) { height: 180px; }
  .scrapbook img:nth-child(5n) { height: 160px; }
}
/* homepage */
#dots {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
.home p {
  margin: 0 0 1rem;
}
.home ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
}
.home li {
  margin: 0.3rem 0;
}
.home .eyebrow {
  margin-top: 2rem;
}
/* eyebrow sections */
.page-links {
  color: var(--blockquote-color);
  margin-bottom: 2rem;
}
.eyebrow-section {
  margin: 2.25rem 0;
}
.eyebrow {
  font-family: var(--mono-font);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--blockquote-color);
  margin: 0 0 0.75rem;
}
.eyebrow-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.quiet-note {
  margin-top: 2.5rem;
  font-size: 80%;
  font-style: italic;
  color: var(--blockquote-color);
  opacity: 0.6;
}
/* now playing */
.np {
  margin: 2rem 0 1.5rem;
}
.np .eyebrow {
  display: flex;
  align-items: baseline;
}
.np-caret {
  width: 0.45em;
  height: 0.9em;
  margin-left: 6px;
  vertical-align: -0.1em;
}
.np-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-color);
  text-decoration: none;
}
.np-art {
  margin: 0;
  padding: 0;
  background: none;
  font-family: var(--mono-font);
  font-size: 10px;
  line-height: 10px;
  letter-spacing: 0;
  color: var(--text-color);
  user-select: none;
  flex: none;
}
.np-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.np-title {
  font-size: 1.15rem;
  line-height: 1.25;
}
.np-card:hover .np-title {
  color: var(--accent-hover);
}
.np-sub {
  font-family: var(--mono-font);
  font-size: 13px;
  color: var(--blockquote-color);
}
.np-eq {
  margin-top: 0.4rem;
  font-family: var(--mono-font);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--blockquote-color);
}
@media (max-width: 480px) {
  .np-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}
