:root {
    --text: #333;
    --bg: #fff;
    --accent: #0066cc;
    --muted: #666;
    --border: #e5e5e5;
    --code-bg: #f5f5f5;
    --box-bg: #f8f9fa;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5em 1.5em 4em;
}

header {
    margin-bottom: 2.5em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.2em;
}

header h1 {
    font-size: 1.7em;
    margin: 0 0 0.4em;
    font-weight: 700;
    letter-spacing: -0.3px;
}

header h1 a {
    color: var(--text);
    text-decoration: none;
}

header h1 a:hover { color: var(--accent); }

.tagline {
    color: var(--muted);
    font-size: 0.95em;
    margin: 0 0 0.8em;
}

nav { font-size: 0.95em; }

nav a {
    color: var(--muted);
    text-decoration: none;
    margin-right: 1.2em;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

h1 { font-size: 1.75em; }
h2 { font-size: 1.4em; }
h3 { font-size: 1.2em; }
h4 { font-size: 1.05em; }

p { margin: 0.9em 0; }

ul, ol {
    padding-left: 1.5em;
    margin: 0.9em 0;
}

li { margin: 0.35em 0; }

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.2em auto;
}

code {
    background: var(--code-bg);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
}

pre {
    background: var(--code-bg);
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.85em;
    line-height: 1.5;
}

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

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

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

.post-list li {
    margin-bottom: 1.2em;
    padding-bottom: 1.2em;
    border-bottom: 1px solid var(--border);
}

.post-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-list a {
    font-size: 1.1em;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
}

.post-list a:hover { color: var(--accent); text-decoration: underline; }

.post-list .desc {
    color: var(--muted);
    font-size: 0.9em;
    margin: 0.25em 0 0;
}

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

.category-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 1em;
    color: var(--text);
}

.category-title:first-child { margin-top: 0; }

.empty-note {
    color: var(--muted);
    font-style: italic;
}

.back {
    display: inline-block;
    margin-top: 3em;
    font-size: 0.9em;
    color: var(--muted);
    text-decoration: none;
}

.back:hover { color: var(--accent); }

/* Preserve old Bootstrap-like classes used in article content */
.lead { font-size: 1.1em; color: #555; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--accent); }
.bg-light {
    background: var(--box-bg);
    padding: 1em;
    border-radius: 6px;
    margin: 1em 0;
}
.small { font-size: 0.85em; }
.rounded, .rounded-lg { border-radius: 6px; }
.mb-1 { margin-bottom: 0.25em; }
.mb-4 { margin-bottom: 1.5em; }
.my-3 { margin: 1em 0; }
.my-4 { margin: 1.5em 0; }
.p-2 { padding: 0.5em; }
.p-3 { padding: 1em; }
.text-white { color: #fff; }
.bg-dark { background: #222; }

/* Image containers from old inline styles */
[style*="display: flex"] img,
[style*="justify-content: center"] img {
    margin: 1em auto;
}

/* About page specific */
.aptitude-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5em;
    text-align: center;
    margin: 1.5em 0;
}

.aptitude-grid i { font-size: 3em; }

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
    margin: 1.5em 0;
}

.certs-grid img {
    max-width: 120px;
    margin: 0 auto;
    border-radius: 8px;
}
