:root {
  --bg: #f3f4f1;
  --fg: #1a1f1c;
  --muted: #5c6560;
  --rule: #d5dbd6;
  --accent: #1f6b4a;
  --code-bg: #e7ece8;
  --notice: #e4f0e8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --fg: #e7eee9;
    --muted: #9aaba1;
    --rule: #2a332e;
    --accent: #8dceae;
    --code-bg: #1c2420;
    --notice: #1a2a22;
  }
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  line-height: 1.6;
}
.wrap { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--rule);
}
header.site .name {
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: .04em;
}
header.site nav a { margin-left: .9rem; font-size: .9rem; }
header.site nav a:first-child { margin-left: 0; }
a { color: var(--accent); text-underline-offset: .15em; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 .4rem; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 .5rem; }
.meta { color: var(--muted); font-size: .85rem; margin: 0 0 1.6rem; }
.lead { font-size: 1.12rem; }
figure.lade { margin: 2rem 0 0; }
figure.lade svg { width: 100%; max-width: 24rem; height: auto; display: block; color: var(--fg); }
figure.lade figcaption { max-width: 24rem; margin-top: .7rem; color: var(--muted); font-size: .92rem; }
ul.posts { list-style: none; padding: 0; margin: 1.5rem 0 0; }
ul.posts li {
  display: flex;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
}
ul.posts time {
  color: var(--muted);
  font-size: .85rem;
  min-width: 8.5rem;
  padding-top: .15rem;
  font-variant-numeric: tabular-nums;
}
code, pre { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: .78rem; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 3px; word-break: break-all; }
pre {
  background: var(--code-bg);
  padding: .9rem 1rem;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
pre code { background: none; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0 1.5rem; }
th, td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-weight: normal; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.record { border-left: 3px solid var(--accent); padding-left: 1rem; margin: 2.2rem 0; }
footer.site {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .8rem;
}
.notice {
  background: var(--notice);
  padding: .7rem .85rem;
  border-radius: 4px;
  font-size: .92rem;
}
#kommentare { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.comment-form { margin-top: 1.2rem; }
.comment-form .field { margin-bottom: .9rem; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: .25rem; }
.comment-form .hint { color: var(--muted); font-size: .8rem; }
.comment-form input, .comment-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  font: inherit;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .5rem .7rem;
}
.comment-form textarea { resize: vertical; min-height: 9rem; }
.comment-form input:focus, .comment-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.comment-form button {
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: 4px;
  padding: .5rem 1.1rem;
}
.comment-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 40rem) {
  ul.posts li { flex-direction: column; gap: .1rem; }
  header.site nav a { margin-left: .7rem; }
}
