:root {
  --muted: #666666;
  --link: #5d7a3c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --muted: #999999;
    --link: #7a9c5c;
  }
}

html {
  background: #faf8f5;
  height: 100%;
}

body {
  background: #faf8f5;
  color: #000000;
  font-family: "Geist Sans", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px;
  margin: 0;
}

.container {
  max-width: 600px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
}

p {
  color: var(--muted);
  margin-bottom: 20px;
  text-align: left;
}

a {
  color: var(--link);
  text-decoration: underline;
}

nav {
  margin-bottom: 40px;
}

nav a + a {
  margin-left: 16px;
}

.meta {
  font-size: 13px;
  margin-top: -12px;
}

blockquote {
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 2px solid var(--link);
}

blockquote p {
  margin-bottom: 4px;
}

/* Writings layout: sidebar + article */
.layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  max-width: 900px;
}

.sidebar {
  width: 200px;
  flex: none;
  position: sticky;
  top: 40px;
}

.sidebar-title {
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
}

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

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a[aria-current="page"] {
  color: #000000;
  font-weight: 600;
  text-decoration: none;
}

.content {
  max-width: 600px;
  min-width: 0;
}

.content h1 {
  margin-top: 0;
}

@media (max-width: 720px) {
  body {
    padding: 24px;
  }
  .layout {
    flex-direction: column;
    gap: 24px;
  }
  .sidebar {
    position: static;
    width: auto;
  }
}
