:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --heading: #111111;
  --link: #111111;
  --rule: #e5e5e5;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121212;
  --text: #e6e6e6;
  --muted: #8f8f8f;
  --heading: #b3202a; /* mørkerød */
  --link: #e6e6e6;
  --rule: #2a2a2a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
}

header {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site { color: var(--muted); text-decoration: none; font-size: 17px; }

#theme {
  background: none;
  border: 1px solid var(--rule);
  color: var(--text);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }

h1, h2, h3, h4, h5 { color: var(--heading); line-height: 1.25; }
h1 { font-size: 28px; margin: 8px 0 20px; }

a { color: var(--link); text-underline-offset: 3px; }

.posts { list-style: none; padding: 0; margin: 0; }
.posts li { display: flex; gap: 24px; padding: 6px 0; }
.posts time { color: var(--muted); flex: 0 0 140px; white-space: nowrap; }

.date { color: var(--muted); margin-top: -12px; }
article img { max-width: 100%; height: auto; }
blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--rule); color: var(--muted); }
pre { overflow-x: auto; padding: 12px; border: 1px solid var(--rule); font-size: 15px; }
code { font-size: 0.85em; }
hr { border: 0; border-top: 1px solid var(--rule); }
.back { margin-top: 48px; }

@media (max-width: 520px) {
  body { font-size: 18px; }
  .posts li { flex-direction: column; gap: 0; padding: 8px 0; }
  .posts time { flex: none; font-size: 15px; }
}
