:root {
    --neon-pink: #e8006e;
    --neon-blue: #2196b0;
    --text-body: #3a3a3a;
    --text-muted: #888;
    --border-color: #e2e2e2;
    --surface: #ffffff;
    --bg: #fafafa;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    background: var(--bg);
    color: var(--text-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: #111;
}

h1 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 1.2rem;
    letter-spacing: 0.01em;
}

p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 1.2rem;
}

/* Section heading with blue left border accent */
.section-head {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 24px;
    padding-left: 14px;
    border-left: 3px solid var(--neon-blue);
    line-height: 1.3;
}

.neon-pink { color: var(--neon-pink); }
.neon-blue { color: var(--neon-blue); }

/* Header */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-bar {
    display: flex;
    align-items: center;
    height: 56px;
    max-width: 1000px;
    margin: 0 auto;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    flex-shrink: 0;
    color: #111;
}

ul.main-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 0 28px;
    display: flex;
    align-items: center;
    flex: 1;
    font-size: 0.95rem;
}

ul.main-nav li {
    padding: 0 14px;
    border-left: 1px solid var(--border-color);
}

ul.main-nav li:first-child {
    border-left: none;
}

ul.main-nav li.login {
    margin-left: auto;
    border-left: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 0;
}

ul.main-nav li a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 150ms ease;
}

ul.main-nav li a:hover {
    color: var(--neon-pink);
}

ul.main-nav li a.active {
    color: var(--neon-pink);
    border-bottom: 2px solid var(--neon-pink);
    padding-bottom: 2px;
}

ul.main-nav li.login .profile-picture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ccc;
    display: inline-block;
    vertical-align: middle;
    object-fit: cover;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Main content */
main {
    flex: 1;
    display: block;
    padding: 48px 32px 72px;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 150ms ease;
}

a:hover {
    color: var(--neon-pink);
}

/* Profile picture */
.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ccc;
    display: inline-block;
    vertical-align: middle;
    object-fit: cover;
}

/* Home intro */
.intro-p {
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 40px;
}

/* Things grid */
.things-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 64px;
}

.thing-cell {
    background: var(--surface);
    padding: 20px 22px;
    transition: background 150ms ease;
    text-decoration: none;
}

.thing-cell:hover {
    background: #f5f5f5;
}

.thing-cell .title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    display: block;
    margin-bottom: 4px;
    transition: color 150ms ease;
}

.thing-cell:hover .title {
    color: var(--neon-pink);
}

.thing-cell .desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 400;
}

.thing-cell .cell-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    display: block;
    margin-bottom: 4px;
}

/* Featured posts */
.featured-posts {
    list-style: none;
    padding: 0;
    margin: 0 0 64px;
}

.featured-posts li {
    padding: 6px 0;
}

.featured-posts a {
    display: block;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-decoration: none;
}

.featured-posts .title {
    font-weight: 700;
    color: #111;
    margin-right: 4px;
    transition: color 150ms ease;
}

.featured-posts a:hover .title {
    color: var(--neon-pink);
}

/* Acroyoga */
.acro-section {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.acro-section-body {
    flex: 1;
}

.acro-img {
    width: 300px;
    max-width: 40%;
    flex-shrink: 0;
    border-radius: 4px;
}

/* Blog list */
ul.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.blog-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

ul.blog-list li:first-child {
    border-top: 1px solid var(--border-color);
}

ul.blog-list li a {
    text-decoration: none;
    display: block;
}

ul.blog-list .post-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-body);
    display: block;
    margin-bottom: 3px;
    transition: color 150ms ease;
}

ul.blog-list li a:hover .post-title {
    color: var(--neon-pink);
}

ul.blog-list .post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Menlo', 'Consolas', monospace;
    letter-spacing: 0.02em;
    display: block;
}

/* Blog post */
.post-back {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 28px;
    transition: color 150ms ease;
    text-decoration: none;
}

.post-back:hover {
    color: var(--neon-pink);
}

.post-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'Menlo', 'Consolas', monospace;
    margin: -12px 0 32px;
    letter-spacing: 0.02em;
}

.post-content {
    max-width: 720px;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin-top: 2rem;
}

.post-content p {
    margin-bottom: 1.2rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 32px 0;
    border-radius: 4px;
}

/* Inline code */
code {
    display: inline;
    background: rgba(33, 150, 176, 0.1);
    color: var(--neon-blue);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 0.875em;
}

/* Block code */
.codehilite {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin: 1.5rem 0;
    border-left: 3px solid var(--neon-blue);
    background: #1e2030;
}

.codehilite pre {
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
    line-height: 1.6;
}

.codehilite pre code {
    display: block;
    background: none;
    color: #cdd6f4;
    padding: 0;
    font-size: 0.875rem;
    border-radius: 0;
}

/* Code copy button */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 28px 32px;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    text-decoration: none;
    display: block;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

footer ul li {
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 150ms ease;
}

footer a:hover {
    color: var(--neon-pink);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--neon-pink);
    outline-offset: 2px;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 8px;
    background: var(--neon-pink);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1000;
    text-decoration: none;
    transition: top 0.1s;
}

.skip-link:focus {
    top: 8px;
}

/* Scroll fade-in motion */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 350ms ease-out, transform 350ms ease-out;
        transition-delay: calc(var(--delay, 0) * 1ms);
    }

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .section-head {
        border-left-width: 0;
        transition: border-left-width 250ms ease-out 200ms;
    }

    .section-head.visible {
        border-left-width: 3px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    header { padding: 0 20px; }

    .nav-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
    }

    .burger { display: flex; }

    ul.main-nav {
        flex: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, padding 0.25s ease;
        padding: 0;
        font-size: 1rem;
    }

    ul.main-nav.open {
        max-height: 400px;
        padding: 6px 0 4px;
    }

    ul.main-nav li {
        padding: 9px 0;
        border-left: none;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    ul.main-nav li:last-child { border-bottom: none; }

    ul.main-nav li.login {
        margin-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
        margin-top: 4px;
        border-bottom: none;
    }

    .profile-picture {
        width: 28px;
        height: 28px;
    }

    main { padding: 28px 20px 48px; }

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

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    footer ul {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    footer { padding: 24px 20px; }

    .acro-section { flex-direction: column; }

    .acro-img {
        max-width: 100%;
        width: 100%;
    }
}
