:root {
    --primary: #111827; /* main text */
    --accent: #0a66c2; /* link accent */
    --text: #0f172a;
    --muted: #6b7280;
    --bg: #ffffff;
    --page-bg: #fbfbfb;
    --border: #e6e9ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
    nav ul {
        display: flex;
        justify-content: center;
        list-style: none;
        gap: 1rem;
        max-width: 640px;
        margin: 0 auto;
    }

.hero-content h1{font-size:2.25rem;margin-bottom:0.5rem}
.lead{color:rgba(31,41,55,0.85);margin-bottom:1rem}
.hero-cta{margin:1rem 0}
.btn-outline{background:transparent;border:2px solid rgba(255,255,255,0.18);color:white}

.tag{display:inline-inline;display:inline-block;padding:0.18rem 0.5rem;border-radius:999px;margin:0.15rem;font-size:0.86rem;border:1px solid var(--border);color:var(--muted);background:transparent}
.tag:hover{color:var(--accent);border-color:rgba(10,102,194,0.15)}
.tag .tag-count{color:var(--muted);font-weight:500;margin-left:0.35rem;font-size:0.85rem}

.featured{position:relative}
.featured-card{background:linear-gradient(180deg,rgba(255,255,255,0.98),white);border-radius:8px;padding:1rem;border:1px solid var(--border)}
.featured-meta{color:var(--secondary);font-size:0.9rem;margin-bottom:0.5rem}
.featured-card h3{margin:0.2rem 0 0.6rem}
.featured-card .excerpt{color:#334155}

/* Post grid styles */
.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-top:1rem}
.post-card{background:var(--light);padding:1rem;border-radius:8px;border:1px solid var(--border);transition:transform 0.18s,box-shadow 0.18s}
.post-card:hover{transform:translateY(-6px);box-shadow:0 8px 20px rgba(16,24,40,0.06)}
.post-meta{color:var(--secondary);font-size:0.9rem;margin-bottom:0.5rem}

/* Post/article styles */
article.post header { margin-bottom: 1.25rem; }
article.post header h1 { font-size: 2.25rem; line-height:1.08; margin-bottom:0.25rem; }
article.post .post-meta { color: var(--muted); font-weight:600; font-size:0.92rem; margin-bottom:1rem }
.post-content .lead { font-size:1.15rem; color:var(--text); max-width:72ch; line-height:1.75; margin-bottom:1rem }
.post-content blockquote { border-left: 4px solid rgba(10,102,194,0.12); padding-left:1rem; margin:1.25rem 0; color:var(--text); font-style:italic; background: rgba(10,102,194,0.02); border-radius:6px; padding:1rem; }
.post-content pre { background: #0f172a; color: #fff; padding:1rem; border-radius:8px; overflow:auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace; }
.post-content code { background: rgba(16,24,40,0.04); padding:0.12rem 0.28rem; border-radius:4px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace; }
.pull-quote { font-size:1.25rem; font-weight:700; color:var(--primary); margin:1.25rem 0; padding-left:0.5rem; border-left:3px solid rgba(10,102,194,0.14); }
.post-content img { max-width:100%; border-radius:8px; display:block; margin:1rem 0 }

/* backlink and post navigation */
.post-backlink { margin: 0.6rem 0; font-size:0.92rem; }
.post-backlink a { color: var(--muted); text-decoration: none; font-weight:600 }
.post-backlink a:hover { color: var(--accent); text-decoration: underline }
.post-footer { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.post-nav { display:flex; gap:1rem; align-items:center }
.post-nav a { color: var(--muted); text-decoration:none; font-weight:600 }
.post-nav a:hover{ color: var(--accent) }
.post-excerpt{color:#475569;font-size:0.95rem}
.btn-sm{padding:0.4rem 0.8rem;font-size:0.9rem}

/* Small utilities */
.dot{color:var(--border);margin:0 0.35rem}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--page-bg);
}
/* font smoothing and default weight for a cleaner, lighter look */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

/* Header styles */
header {
    background: transparent;
    padding: 1rem 0;
}

.site-header { padding: 0.6rem 0; }
.site-header .site-title { font-size: 1rem; margin: 0; font-weight: 700; letter-spacing: -0.01em }
.site-header .site-title a { color: var(--text); text-decoration: none }
.site-header .subtitle { margin-top: 0.08rem; color: var(--muted); font-size: 0.92rem; font-weight: 300 }

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

/* Navigation */
nav {
    padding: 0.75rem 0;
}

/* Skip link (a11y) */
.skip-link:focus {
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 9999;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

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

/* Main content */
main.container {
    max-width: 1040px;
    margin: 2.25rem auto;
    padding: 0 1.5rem 3rem 1.5rem;
    background: var(--bg);
    border-radius: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Homepage hero */
.hero {
    background: transparent;
    padding: 0.5rem 0 1rem 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.principal-hero {
    background: linear-gradient(135deg, rgba(17,24,39,0.06), rgba(10,102,194,0.05));
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.hero h1{ font-size:2rem; line-height:1.2; font-weight:700; margin-bottom:0.35rem }
.hero .subtitle{ font-size:0.98rem; color:var(--muted); margin-bottom:0.25rem }
.hero-tags .tag{margin-right:0.4rem}
.hero .lead{ font-size:1.05rem; line-height:1.7; color:var(--text); max-width: 72ch; }
.hero-cta { display:flex; flex-wrap:wrap; gap:0.5rem; margin-top:0.6rem; }
.hero-cta .btn-outline { border:1px solid rgba(10,102,194,0.12); color: var(--accent); }
.hero-cta .btn-outline:hover { background: var(--accent); color:#fff; }

.proof-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.proof-pill {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.pill-icon { font-size: 1.1rem; }

/* About page specific */
.about-bio{font-size:1rem;line-height:1.7;color:var(--text);max-width:50ch}
.about-connect a{color:var(--muted);text-decoration:none;font-weight:600}
.about-connect a:hover{color:var(--accent);text-decoration:underline}

.btn{
    display: inline-block;
    padding: 0.45rem 0.9rem;
    margin: 0.25rem 0.5rem 0 0;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.post-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.post-list li{
    padding: 0.45rem 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.post-list a{ color: var(--text); font-weight: 600; text-decoration: none; font-size:1rem }
.post-list a:hover{ color: var(--accent); text-decoration: none; }

.post-list .meta{font-size:0.82rem;color:var(--muted);margin-left:0.5rem}

.hero-tags .tag{margin-right:0.5rem}
.tag {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    margin: 0.12rem;
    font-size: 0.84rem;
    border: 1px solid rgba(16,24,40,0.06);
    color: var(--muted);
    background: transparent;
    transition: all .12s ease;
}
.tag:hover {
    color: var(--accent);
    border-color: rgba(10,102,194,0.18);
    transform: translateY(-1px);
}
.tag .tag-count {
    color: var(--muted);
    font-weight: 500;
    margin-left: 0.28rem;
    font-size: 0.82rem;
}

.skill-tag {
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: var(--border);
}

/* Achievement cards */
.achievement-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.systems {
    margin-top: 2rem;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.system-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 8px 20px rgba(16,24,40,0.04);
}

.system-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.system-card p { color: #334155; }
.system-card ul { margin: 0.75rem 0 0 1rem; color: #475569; }
.system-card li { margin-bottom: 0.35rem; }
.system-kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--muted); font-weight: 700; margin-bottom: 0.3rem; }

.what-build { margin-top: 1.5rem; }
.what-build-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:0.65rem; margin-top:0.6rem; }
.what-build-card { background:white; border:1px solid var(--border); border-radius:10px; padding:0.85rem 1rem; font-weight:700; color:var(--text); box-shadow:0 6px 16px rgba(16,24,40,0.05); }

.case-studies { margin-top: 2rem; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.9rem; margin-top: 0.8rem; }
.case-card { background: #0a66c2; color: white; border-radius: 12px; padding: 1rem 1.1rem; box-shadow: 0 10px 24px rgba(10,102,194,0.18); }
.case-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.case-card p { color: rgba(255,255,255,0.92); margin-bottom: 0.4rem; }
.case-card .meta { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.cta-inline { margin-top: 0.75rem; color: var(--text); }
.cta-inline a { color: var(--accent); font-weight: 700; }

.cta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #0f172a;
    color: white;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin-top: 2rem;
}

.cta-bar .subtitle { color: rgba(255,255,255,0.8); font-size: 0.98rem; margin: 0; }
.cta-bar .btn { background: #fff; color: #0f172a; }
.cta-bar .btn-outline { border:1px solid rgba(255,255,255,0.45); color: #fff; }
.cta-bar .btn-outline:hover { background: #fff; color: #0f172a; }
.cta-actions { display:flex; gap:0.5rem; flex-wrap:wrap; }

/* Typography */
h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.05rem;
    color: var(--text);
    margin: 1.25rem 0 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--text);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
}

/* Contact section */
.contact-info {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Timeline */
.timeline {
    margin: 2rem 0;
}

.timeline-item {
    border-left: 2px solid var(--primary);
    padding-left: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 0;
}

.timeline-date {
    color: var(--secondary);
    font-weight: 500;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cert-item {
    background: var(--light);
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--border);
}

.site-footer{
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    padding: 1.25rem 0 2.5rem 0;
    text-align: center;
    color: var(--muted);
}
.site-footer a{ color: var(--muted); text-decoration: none }
.site-footer a:hover{ color: var(--accent) }

.post-comments { margin-top: 2rem; }
.post-comments h2 { font-size: 1.15rem; margin-bottom: 0.6rem; }

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 3rem 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .proof-bar {
        grid-template-columns: 1fr;
    }

    .cta-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        width: 100%;
    }
}

/* Header links should be white */
header a { color: var(--text); }

/* About page refinements */
.about-hero {
    margin-bottom: 1.25rem;
}
.about-hero h1 { font-size: 2rem; line-height: 1.05; margin-bottom: 0.45rem; font-weight: 700; }
.about-bio { font-size: 1.06rem; line-height: 1.75; color: var(--text); max-width: 64ch; margin-bottom: 1rem; }
.about-connect { margin-top: 0.5rem; }
.btn--ghost {
    display:inline-block;
    padding: 0.42rem 0.85rem;
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(10,102,194,0.12);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background .12s ease, color .12s ease, transform .12s ease;
}
.btn--ghost:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.skill-list { display:flex; gap:0.5rem; flex-wrap:wrap; margin-top:0.6rem; }
.skill-list li { list-style:none; background: var(--bg); padding: 0.45rem 0.8rem; border-radius: 999px; color: var(--muted); border: 1px solid var(--border); font-weight:600; font-size:0.92rem }

/* Small section spacing tweaks */
section { margin-top: 1.25rem; }
