:root {
  color-scheme: dark;
  --bg: #111;
  --fg: #e8e6e3;
  --muted: #9a958c;
  --line: #2a2826;
  --link: #d7c4a3;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.5 ui-sans-serif, system-ui, sans-serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1 {
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--fg); }

header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

input[type="search"] {
  width: 12rem;
  background: transparent;
  color: var(--fg);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.35rem 0;
  font: inherit;
}

input[type="search"]:focus {
  outline: none;
  border-bottom-color: var(--muted);
}

ul { list-style: none; margin: 0; padding: 0; }

#posts li,
.tags li { border-top: 1px solid var(--line); }

#posts a {
  color: var(--fg);
  text-decoration: none;
}

#posts a:hover { color: var(--link); }

#posts li { padding: 1rem 0; }
#posts time,
.back,
time { color: var(--muted); font-size: 0.85rem; }

#posts p { margin: 0.35rem 0 0; color: var(--muted); }

.tags {
  display: flex;
  gap: 0.75rem;
  margin: 0.75rem 0 1.5rem;
}

.tags li { border: 0; }

.content p { margin: 0 0 1rem; }
.content h2 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }

article h1 { margin-bottom: 0.35rem; }
.back { margin: 0 0 1.5rem; }
