:root {
  --color-text: #1c1c1c;
  --color-bg: #fdfdfd;
  --color-text-muted: #666;
  --color-border: #ddd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f2f2f2;
    --color-bg: #1c1c1c;
    --color-text-muted: #999;
    --color-border: #444;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 1rem;
}

@media screen and (min-width: 800px) {
  html {
    font-size: 1.125rem;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  margin-bottom: 3rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  color: inherit;
  margin-right: 1rem;
  font-size: 0.95rem;
}

nav a.active {
  text-decoration: none;
}

a {
  color: inherit;
}

a:hover {
  opacity: 0.7;
}

main {
  min-height: 60vh;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

main > time,
article time {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

article time {
  margin-right: 0.5rem;
  margin-bottom: 0;
}

.year-group {
  margin-bottom: 2.5rem;
}

.year-group h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

article {
  margin-bottom: 0.75rem;
}

article h2 {
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
  display: inline;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.content {
  margin-top: 2rem;
}

.content img {
  max-width: 100%;
  height: auto;
}

.content p {
  margin-bottom: 1.25rem;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-border);
  color: var(--color-text-muted);
}

blockquote p {
  margin-bottom: 0.75rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

emoji {
  display: inline-block;
  text-decoration: none !important;
  padding: 0 0.15em;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Code styling - layout only, colors in syntax.css */
code, pre {
  font-family: "SF Mono", Monaco, Menlo, Consolas, monospace;
}

pre {
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

code {
  padding: 0.15em 0.3em;
  font-size: 80%;
}

pre code {
  font-size: 100%;
  display: block;
  padding: 1em;
}
