:root {
  color-scheme: dark;
  --bg: #10100f;
  --text: #e8e1d6;
  --muted: #aaa094;
  --soft: #746b61;
  --line: #2b2926;
  --link: #9db7d1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.68 ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #233447;
  color: var(--text);
}

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

a:hover { color: #c7d7e8; }

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

header,
main,
footer {
  width: min(700px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.site-title {
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover { color: var(--text); }

main { padding: 48px 0 42px; }

.intro { margin-bottom: 54px; }

.date-line,
.empty-state,
footer,
.topic-list {
  color: var(--muted);
}

.date-line {
  margin: 0 0 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
}

h1,
h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.014em;
}

h1 {
  max-width: 660px;
  font-size: clamp(2.25rem, 7vw, 4.45rem);
  line-height: 1;
}

.intro p:last-child {
  max-width: 620px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 1.24rem;
}

.empty-state {
  margin: 0;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.topic-list li::before {
  content: "#";
  color: var(--soft);
}

footer {
  padding: 22px 0 38px;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  header { display: block; }
  nav { justify-content: flex-start; margin-top: 0.7rem; }
  main { padding-top: 38px; }
  h1 { font-size: clamp(2.2rem, 13vw, 3.55rem); }
}
