:root {
  color-scheme: light;
  --paper: #f1f3ea;
  --ink: #1c211b;
  --muted: #596151;
  --line: #cbd1c1;
  --acid: #3c6510;
  --violet: #7142b5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  background: var(--paper);
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #090b0b;
    --ink: #e5e9df;
    --muted: #929c8c;
    --line: #2a322c;
    --acid: #c2ff65;
    --violet: #c39aff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #090b0b;
  --ink: #e5e9df;
  --muted: #929c8c;
  --line: #2a322c;
  --acid: #c2ff65;
  --violet: #c39aff;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vh, 4rem) clamp(1.25rem, 5vw, 3rem) 6rem;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--acid); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--acid); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 5px; }
header {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 1rem;
}
.controls, nav { display: flex; align-items: center; gap: .25rem; }
nav, button, time { font: inherit; font-size: .68rem; color: var(--muted); }
nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  text-decoration: none;
  letter-spacing: .08em;
}
nav a[aria-current="page"] { color: var(--acid); }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  cursor: pointer;
  font-size: 1.1rem;
}
button:hover { color: var(--violet); }
button[hidden] { display: none; }
main:empty { display: none; }
main { margin-top: clamp(3.5rem, 10vh, 6rem); }
h1, h2 {
  font-size: clamp(1.65rem, 5vw, 2.65rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.065em;
  margin: 0 0 1.25rem;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1, h2 { color: var(--acid); }
time { display: block; letter-spacing: .12em; font-size: .65rem; }
.post-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.post-meta::before {
  content: "";
  flex: 0 0 3px;
  height: 1rem;
  background: linear-gradient(var(--acid), var(--violet));
}
/* Arrow links: → opens a post from a listing, ← returns from a post page's header to its homepage.
   Both share one glyph family and size; each arrow's tip sits on the column edge it points toward,
   and line-height 1 keeps the large glyph inside the same target box as the other controls. */
.permalink, .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
}
.permalink { margin-left: auto; margin-right: -.7rem; }
.back { margin-right: auto; margin-left: -.7rem; }
.permalink:hover, .back:hover { color: var(--violet); }
.prose { font-size: clamp(1rem, 2.7vw, 1.22rem); line-height: 1.85; margin-top: 2rem; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.35em; white-space: pre-line; }

.posts { list-style: none; margin: 0; padding: 0; }
.posts li { margin-bottom: 3rem; }
.posts li + li { padding-top: 2.5rem; border-top: 1px solid var(--line); }
.posts li:not(:has(.prose)) h2 { color: var(--muted); font-size: 1rem; line-height: 1.5; letter-spacing: -.035em; }
@media (max-width: 380px) {
  body { padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
