:root {
    --bg: #0b0b0c;
    --bg-elev: #121214;
    --text: #e8e8ec;
    --muted: #a3a6af;
    --link: #8ab4ff;
    --card: #15161a;
    --border: #2a2b31;
    --ring: rgba(139, 92, 246, 0.55);
    --maxw: 780px;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .32);
    --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    box-sizing: border-box;
    font-family: inherit;
}

html,
body {
    height: 100%;
}

html {
    font-family: var(--font);
}

body {
    margin: 0;
    margin-bottom: 50px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: clamp(32px, 6vw, 44px);
    line-height: 1.15;
    margin: 0 0 10px;
}

h2 {
    font-size: 22px;
    margin: 0 0 12px;
}

h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    margin: 10px 0 18px;
}

.one-liner {
    font-weight: 500;
}

.section {
    margin: 46px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.muted {
    color: var(--muted);
    text-decoration: none;
}

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

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
}

.brand-link {
    text-decoration: none;
}

.brand {
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--text);
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 6px 12px;
}

.nav {
    margin-left: auto;
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav a {
    color: var(--muted);
    font-weight: 500;
}

.nav a.active,
.nav a:hover {
    color: var(--text);
}

/* Conor-style intro */
.intro-flex {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 32px;
}

.profile-pic img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3a3a3f;
}

.intro-text h1 {
    margin-bottom: 8px;
}

.socials {
    margin-top: 10px;
    display: flex;
    gap: 16px;
    font-size: 15px;
}

.socials a {
    color: var(--muted);
    font-weight: 500;
}

.socials a:hover {
    color: var(--text);
}

/* Posts list */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.post-list a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
}

.post-title {
    color: var(--text);
    font-weight: 600;
}

.post-meta {
    color: var(--muted);
    font-size: 14px;
}

.post-list a:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Single post */
.post {
    margin-top: 28px;
}

.post-body :is(p, li) {
    color: var(--text);
}

.post-body img {
    max-width: 100%;
    border-radius: 12px;
}

.post-body pre,
.post-body code {
    background: #0f0f12;
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 6px;
}

.post-body pre {
    padding: 12px;
    overflow: auto;
}

/* Timeline (Experience) */
.timeline {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.tl-item {
    border: 1px solid var(--border);
    background: var(--card);
    padding: 16px 18px;
    border-radius: var(--radius);
}

.tl-item header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    justify-content: space-between;
}

.tl-meta {
    color: var(--muted);
    font-size: 14px;
}

.arrow {
    color: var(--link);
    font-weight: 600;
}

/* Footer */
.site-footer {
    position: absolute;
    bottom: 0%;
    width:100%;
    border-top: 1px solid var(--border);
    margin-top: 56px;
}

.site-footer .wrap {
    padding: 20px;
}

/* Responsive */
@media (max-width: 720px) {
    .intro-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-pic img {
        width: 120px;
        height: 120px;
    }
}

/* Add at bottom */
.social-email {
    margin-top: 12px;
    text-align: center;
}

.social-email a {
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
}

.social-email a:hover {
    color: var(--text);
}
/* make nested role list clean */
.subroles { margin: 6px 0 0 18px; list-style: disc; }
.subroles li { margin: 2px 0; }

/* ensure footer never overlays and always starts on a new line */
.site-footer { position: relative; clear: both; z-index: 0; }
