:root {
  --bg: #0a0b0a;
  --fg: #c9c5b4;
  --muted: #9a9486;
  --accent: #d4a017;
  --border: #2a2c28;
  --link: #e0b84a;

  color-scheme: light dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #1c1b17;
    --muted: #5a5850;
    --accent: #8a5a00;
    --border: #d8d4cb;
    --link: #7a4f00;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.55;
}

.page {
  max-width: 62rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 64rem) {
  .page {
    grid-template-columns: minmax(0, 1fr) 24rem;
  }
}

.text {
  max-width: 46rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.likes {
  margin: 0 0 2.5rem;
  color: var(--fg);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
}

h2::before {
  content: "# ";
  color: var(--muted);
}

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

.list li {
  margin: 0 0 0.4rem;
}

.list a,
.links a {
  color: var(--link);
  text-decoration: none;
}

.list a:hover,
.links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.list .when {
  color: var(--muted);
  font-size: 0.8125em;
}

.list .when::before {
  content: "\00b7";
  margin: 0 0.5rem;
  color: var(--muted);
}

.empty {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-style: italic;
}

.links {
  margin: 2.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.links a {
  color: var(--fg);
}

.art {
  justify-self: end;
  margin: 0;
}

.art pre {
  display: none;
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-variant-ligatures: none;
  line-height: 1.1;
  white-space: pre;
}

.art pre:first-child {
  display: block;
}

.art pre:only-child {
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}
