:root {
    --c1: #B03832;
    --c2: #FF6352;
    --c3: #FFA724;
    --gray: #888888;
    --c5: #17AFB5;
    --c6: #134E6F;
    --c7: #072448;
    --lavender: #E3D7FF;

    --bg: #f2f4fb;
    --bg-alt: #ffffff;
    --bg-alt-soft: #f8f5ff;

    --accent: var(--c5);
    --accent-soft: rgba(23, 175, 181, 0.18);
    --accent-strong: var(--c6);
    --accent-warm: var(--c2);
    --accent-gold: var(--c3);

    --header-bg: var(--c7);
    --text: #1b2230;
    --muted: #656f85;
    --border: #d5d9e6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 167, 36, 0.15), transparent 55%),
        radial-gradient(circle at bottom right, rgba(23, 175, 181, 0.12), transparent 55%),
        linear-gradient(180deg, #f9f6ff 0%, #f2f6ff 45%, #edf6f4 100%);
    color: var(--text);
    line-height: 1.6;
}

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

a:hover {
    text-decoration: underline;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #ffffff, #f0f3ff);
    border-bottom: 1px solid rgba(7, 36, 72, 0.12);
    box-shadow: 0 8px 20px rgba(7, 36, 72, 0.12);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    color: var(--c7);
    letter-spacing: 0.03em;
}

nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.86rem;
}

.tab-link {
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #35415a;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.tab-link span.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
}

.tab-link:hover {
    border-color: rgba(7, 36, 72, 0.16);
    background: rgba(7, 36, 72, 0.04);
    text-decoration: none;
}

.tab-link.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.tab-link.active span.dot {
    background: var(--lavender);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem 1rem;
}

.tab-panel {
    display: none;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 60%),
        radial-gradient(circle at bottom right, rgba(255, 167, 36, 0.12), transparent 60%),
        var(--bg-alt);
    padding: 1.6rem 1.5rem 1.9rem 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(7, 36, 72, 0.13);
    margin-top: 1rem;
}

.tab-panel.active {
    display: block;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 600;
}

h1 {
    font-size: 1.9rem;
    margin-bottom: 0.3rem;
    color: var(--c7);
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
    color: var(--c6);
}

h3 {
    font-size: 1.06rem;
    margin-bottom: 0.3rem;
    color: var(--c7);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.5fr);
    gap: 1.5rem;
    align-items: center;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.hero-meta {
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-highlight {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255, 99, 82, 0.12), rgba(255, 167, 36, 0.16));
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--c1);
    border: 1px solid rgba(255, 167, 36, 0.4);
}

.hero-right {
    font-size: 0.9rem;
    color: var(--muted);
    border-left: 1px solid var(--border);
    padding-left: 1rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.pill-link {
    border-radius: 999px;
    border: 1px solid rgba(7, 36, 72, 0.15);
    padding: 0.22rem 0.65rem;
    font-size: 0.78rem;
    background: #f7f8ff;
    color: #24314b;
}

.pill-link:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    color: white;
    border-color: transparent;
}

.label {
    display: inline-block;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    border: 1px solid rgba(23, 175, 181, 0.35);
    color: #234055;
    margin-left: 0.25rem;
    background: rgba(23, 175, 181, 0.09);
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
    gap: 1.3rem;
}

.footer-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .hero, .two-col, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-right {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 0.9rem;
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Blog and small utility styles --- */
.small {
    font-size: 0.85rem;
}

.subtle {
    color: var(--muted);
}

.blog-list {
    display: grid;
    gap: 1rem;
}

.post-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1rem 0.9rem 1rem;
    box-shadow: 0 6px 16px rgba(7, 36, 72, 0.08);
}

.post-card h3 {
    margin-bottom: 0.2rem;
}

.post-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.post-meta .date {
    color: var(--muted);
}

details > summary {
    cursor: pointer;
    color: var(--accent-strong);
}

details > summary:hover {
    text-decoration: underline;
}

/* Timeline styles */
.timeline {
    margin-top: 0.8rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
}

.timeline-item {
    position: relative;
    margin: 0 0 0.9rem 0;
    padding-left: 0; /* text starts after .timeline padding-left */
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-1rem - 5px); /* center dot on the left border */
    top: 0.55rem;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    border: 1px solid rgba(7, 36, 72, 0.15);
}

.timeline-date {
    font-weight: 600;
    color: var(--c6);
    font-size: 0.9rem;
}

.timeline-content {
    color: var(--muted);
    font-size: 0.93rem;
    margin-top: 0.15rem;
}
