:root {
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --heading: Fraunces, Georgia, serif;
  --content-width: 720px;
  --bg: #161410;
  --text: #e8e6e1;
  --muted: #a8a49d;
  --link: #c4a077;
  --rule: #3a352c;
  color-scheme: dark;
}

body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  font-family: var(--mono);
  font-size: 1.1rem;
  background: var(--bg);
  color: var(--text);
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

header {
  margin-bottom: 3rem;
}

.logo {
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.1rem;
  text-transform: lowercase;
  font-weight: 400;
  text-decoration: none;
}

h1 {
  font-size: 1.7rem;
  margin: 0.25rem 0 2rem;
}

h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.3;
}

/* Only the article title uses the serif font */
.article-title {
  font-family: var(--heading);
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

article h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

article h3 {
  font-size: 1.15rem;
}

p,
li {
  line-height: 1.6;
}

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

.post-list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.post-list time {
  flex-shrink: 0;
  margin: 0;
  font-size: 1rem;
}

.post-list a {
  font-size: 1rem;
  line-height: 1.5;
}

time {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

article img {
  display: block;
  max-width: 100%;
}

pre {
  overflow-x: auto;
}

pre,
code,
kbd,
samp {
  font-family: var(--mono);
}

.rabbit {
  font-size: min(1rem, 2.4vw);
}

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

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 5px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

/* Spoilers: click to reveal */
details {
  margin: 0.35rem 0 0.75rem;
}

summary {
  width: fit-content;
  color: var(--link);
  cursor: pointer;
}

/* Trailing dashes on section headings; non-breaking so they wrap together */
article h2::after,
article h3::after {
  content: " -\00a0-\00a0-";
}

article h2,
article h3 {
  color: var(--link);
}
