/* Blog peribadi ringkas — tiada framework, tiada font luar, tiada JS */

:root {
  --max-width: 680px;
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #6b6b6b;
  --accent: #2454b0;
  --border: #e6e6e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e8e8;
    --bg: #14161a;
    --muted: #9a9a9a;
    --accent: #7aa2f7;
    --border: #2a2d33;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
}

.site-header nav a {
  margin-left: 1.25rem;
  color: var(--muted);
}

.site-header nav a:first-child { margin-left: 0; }

main.container { min-height: 60vh; padding-top: 0.5rem; padding-bottom: 3rem; }

.intro { color: var(--muted); margin-bottom: 2rem; }

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

.post-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.post-item .post-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
}

.post-date {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.post-summary { color: var(--muted); margin: 0.4rem 0 0; }

.post .post-title { margin-bottom: 0.25rem; }

.post-content { margin-top: 1.5rem; }
.post-content h2, .post-content h3 { margin-top: 2rem; }
.post-content img { max-width: 100%; height: auto; }
.post-content pre {
  background: var(--border);
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
}
.post-content code {
  background: var(--border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
}
.post-content pre code { background: none; padding: 0; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin-left: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.post-tags { margin-top: 1.5rem; }
.tag {
  display: inline-block;
  background: var(--border);
  color: var(--muted);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-right: 0.4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
