@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-color: #fafbfd;
  --text-color: #0f172a;
  --text-muted: #64748b;
  --accent-color: #0284c7;
  --accent-hover: #0369a1;
  --border-color: #e2e8f0;
  --card-bg: #f1f5f9;
  --code-bg: #e2e8f0;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0b0f19;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --accent-hover: #7dd3fc;
    --border-color: #1e293b;
    --card-bg: #111827;
    --code-bg: #1e293b;
  }
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.8;
}

/* Strip Navigation */
.strip {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-sans);
  color: var(--text-muted);
}
.strip a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}
.strip a:hover {
  text-decoration: underline;
}

/* Header & Masthead */
.masthead, main, .colophon {
  max-width: 42rem;
}

.masthead {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
}

.avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 16px;
  margin-bottom: 1.2rem;
}

.blog-title {
  font-family: var(--font-sans);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.tagline {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.9rem; line-height: 1.3; }
h2 { font-size: 1.35rem; margin-top: 2.2rem; }
h3 { font-size: 1.15rem; }

a {
  color: var(--accent-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}

/* Front Page About */
.about {
  background: var(--card-bg);
  padding: 1.5rem 1.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 2.8rem;
  font-size: 1rem;
  line-height: 1.75;
}
.about p:first-child { margin-top: 0; }
.about p:last-child { margin-bottom: 0; }

/* Post List */
.posts h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-color);
}

.post-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}
.post-link:hover {
  text-decoration: underline;
}

time {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Formatting Elements */
blockquote {
  margin: 1.8rem 0;
  padding: 0.5rem 0 0.5rem 1.2rem;
  border-left: 3px solid var(--accent-color);
  font-style: italic;
  color: var(--text-muted);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 1rem 1.2rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

pre code {
  padding: 0;
  background: transparent;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 2.5rem 0;
}

.receipt, .colophon {
  font-family: var(--font-sans);
  color: var(--text-muted);
}
.colophon {
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}
