/* ─────────────────────────────────────────────
   style.css — Reset, base, syntax, content styles
   ───────────────────────────────────────────── */

/* ── Reset ──────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
p {
    line-height: 1.8;
}

/* ── Base ───────────────────────────────────── */
html,
body {
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
}

/* ── First-visit blur + loading bar ─────────── */
body {
    filter: blur(5px);
    transition: filter 0.5s ease;
}

html.loaded body {
    filter: blur(0px);
}

.first-load-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    z-index: 9999;
    background: var(--c-blue);
    animation: loadBar 0.9s ease forwards;
    pointer-events: none;
}

@keyframes loadBar {
    0% {
        width: 0%;
        opacity: 1;
    }
    50% {
        width: 65%;
        opacity: 1;
    }
    85% {
        width: 100%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

/* ── Line wrap + code area ──────────────────── */
.line-wrap {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.code-area {
    flex: 1;
    padding: 0 32px 0 46px;
    min-width: 0;
}

.accent-line {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--c-blue);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.code-area p {
    line-height: 1.8;
    min-height: 1.8em;
}

/* ── Syntax Colours ─────────────────────────── */
.kw {
    color: var(--c-keyword);
}
.fn {
    color: var(--c-fn);
}
.str {
    color: var(--c-string);
}
.prop {
    color: var(--c-prop);
}
.num {
    color: var(--c-num);
}
.cm {
    color: var(--c-comment);
    font-style: italic;
}

/* ── Name & Role (About) ────────────────────── */
.name-line {
    font-size: 33px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1 !important;
    margin: 4px 0;
}

.role-line {
    font-size: 14px;
    margin-bottom: 24px;
}
