@font-face {
    font-family: "Inter";
    src: url('/fonts/Inter-Variable.woff2') format('woff2');
}

@font-face {
    font-family: "Space Grotesk";
    src: url('/fonts/SpaceGrotesk-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Space Grotesk";
    src: url('/fonts/SpaceGrotesk-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Space Grotesk";
    src: url('/fonts/SpaceGrotesk-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Space Grotesk";
    src: url('/fonts/SpaceGrotesk-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Space Mono";
    src: url('/fonts/SpaceMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

:root {
    --font-family: "Inter", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'Space Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    --heading-font: 'Space Grotesk', 'Inter', -apple-system,
        system-ui,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    --title-mark-font: "Bitcount";
    --title-font: "Space Grotesk";
    --title-desc-font: "Space Mono";

    /* Codium Purple Brand Colors */
    --brand-100: #f3e8ff;
    --brand-300: #d8b4fe;
    --brand-400: #5d4c70;
    --brand-600: #9333ea;
    --brand-700: #7c3aed;
}

/* Light theme */
:root {
    --color-text: #0f172a;
    --color-text-light: #64748b;
    --color-text-muted: #94a3b8;
    --color-background: #ffffff;
    --color-border: #e2e8f0;
    --color-accent: var(--brand-600);
    --color-brand-accent: var(--brand-400);
}

/* Dark theme */
[data-theme="dark"] {
    --color-text: #f8fafc;
    --color-text-light: #cbd5e1;
    --color-text-muted: #94a3b8;
    --color-background: #1e1e2e;
    --color-border: #4c4c7a;
    --color-accent: #d8b4fe;
    --color-brand-accent: var(--brand-100);
}

/* Dark mode link colors for better readability */
[data-theme="dark"] a {
    color: var(--brand-100);
}

[data-theme="dark"] a:visited {
    color: var(--color-accent);
    /* Lightest purple for visited links */
}

[data-theme="dark"] a:hover {
    color: var(--brand-100);
    /* Same light purple on hover for consistency */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-background);
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0rem;
}

.header {
    text-align: center;
    padding: 3rem 0 2rem 0;
    position: relative;
}

/* ===== HEADER SOCIAL ICONS ===== */
/* Social icons are now integrated into the nav bar - no separate header-top section needed */

.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 0;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 4px;
}

.theme-toggle:hover {
    color: var(--color-accent);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.theme-toggle::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -24px;
    right: 0;
    background: var(--color-text);
    color: var(--color-background);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.theme-toggle:hover::after {
    opacity: 1;
    visibility: visible;
}

.hero-logo {
    display: inline-block;
}

.logo-circle-inline {
    width: 1.2em;
    height: 1.2em;
    border: 0.08em solid currentColor;
    border-radius: 10%;
    vertical-align: baseline;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-right: 0.05em;
}

.hero-title {
    font-family: var(--title-font);
    font-size: xxx-large;
    color: var(--color-accent);
    display: inline-block;
    vertical-align: baseline;
    margin: 0;
}


.hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-term {
    font-weight: 500;
    font-style: bold;
}

.hero-phonetic {
    font-weight: 500;
}

.hero-phonetic-emphasis {
    font-weight: 800;
}


.hero-definition {
    font-style: italic;
}

.hero-description {
    font-family: var(--title-desc-font);
    font-size: small;
    font-weight: 500;
    color: var(--color-brand-accent);
    line-height: 1;
}

.hero-description-first {
    padding-inline-start: 0em;
    padding-inline-end: 0em;
    text-align: left;
    margin-bottom: 0;
}

.hero-description-rest {
    display: grid;
    margin-left: 5em;
    text-align: center;
}

[data-theme="dark"] .hero-description {
    font-weight: 300;
}

.header-nav {
    margin-top: 1rem;
}

.header-menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    order: 1;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    order: 2;
}

.social-link {
    color: var(--color-text-light);
    padding: 4px;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 4px;
}

.social-link:hover {
    color: var(--color-accent);
    transform: translateY(-1px);
}

.social-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Tooltip styling for social links */
.social-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-background);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    border-radius: 3px;
}

.social-link:hover::after {
    opacity: 1;
    visibility: visible;
}

.header-nav .nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.header-nav .nav-link:hover {
    color: var(--color-accent);
}

.header-nav .nav-border {
    margin-top: 0.5rem;
    color: var(--color-border);
}

.posts {
    display: block;
}

.post-summary {
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--color-background);
}

.post-summary p {
    margin-bottom: -1rem;
}

.post-title a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
}

.post-title a:hover {
    color: var(--color-accent);
}

.post-date {
    color: var(--color-text-light);
    font-size: 0.875rem;
    display: block;
    margin: 0.5rem 0;
}

.read-more {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-align: right;
}

.read-more a {
    text-decoration: none;
    font-weight: 400;
}

.read-time {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.read-time svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.post-excerpt {
    color: var(--color-text-light);
    margin-top: 1rem;
}

.post-excerpt p {
    margin-bottom: 0.5rem;
}

.post-excerpt p+p {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.post-excerpt p:last-child {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.post-meta {
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    overflow: hidden;
}

.post-tag {
    background: var(--brand-100);
    color: var(--brand-700);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    margin-right: 0.5rem;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-tag:hover {
    background: var(--color-accent);
    color: white;
}

[data-theme="dark"] .post-tag {
    background: rgba(192, 132, 252, 0.2);
    color: var(--brand-300);
}

/* Single Post Styles */
.post {
    margin-bottom: 2rem;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.post-header .post-title {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.5;
}

.post-content p:first {
    margin-top: 0rem;
    margin-bottom: 0rem;
}

.post-content p {
    margin-top: 0.8rem;
    margin-bottom: 0.7rem;
}

.scenario {
    font-style: italic;
    font-weight: 400;
    color: var(--color-text-light);
}


.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: var(--heading-font);
    color: var(--color-accent);
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.post-content h1 {
    font-size: 1.4rem;
}

.post-content h2 {
    font-size: 1.25rem;
}

.post-content h3 {
    font-size: 1.2rem;
}

.post-content h4 {
    font-size: 1.05rem;
}

.post-content h5 {
    font-size: 1.125rem;
}

.post-content h6 {
    font-size: 1rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-light);
    background: rgba(147, 51, 234, 0.05);
}

.post-content code {
    /*background: var(--brand-100);*/
    color: var(--brand-700);
    padding: 0.1em 0.2em;
    font-size: 0.875em;
    font-family: var(--font-mono);
}

[data-theme="dark"] .post-content code {
    /*background: rgba(192, 132, 252, 0.2);*/
    color: var(--brand-300);
}

.post-content pre {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--color-text);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.nav-prev,
.nav-next {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    max-width: 45%;
}

.nav-prev:hover,
.nav-next:hover {
    color: var(--brand-700);
}

.nav-next {
    text-align: right;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ===== ABOUT PAGE ENHANCEMENTS ===== */

/* About page specific header styling */
.about-header {
    text-align: center;
}

.about-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-style: italic;
    gap: 0.5rem;
}

/* Enhanced blockquotes for standout content */
.about-page .post-content>blockquote {
    position: relative;
    background: linear-gradient(135deg,
            rgba(147, 51, 234, 0.08) 0%,
            rgba(192, 132, 252, 0.05) 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    padding: 1.5rem 2rem 1.5rem 3rem;
    margin: 2rem 0;
    font-size: 1.125rem;
    font-style: italic;
    font-weight: 500;
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.about-page .post-content>blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    font-family: var(--title-font);
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
}

[data-theme="dark"] .about-page .post-content>blockquote {
    background: linear-gradient(135deg,
            rgba(192, 132, 252, 0.1) 0%,
            rgba(147, 51, 234, 0.05) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced section headers with accent lines */
.about-page .post-content h2 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-page .post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--brand-300));
    border-radius: 2px;
}


/* Styled lists with custom bullets */
.about-page .post-content ul:not(:last-of-type) {
    list-style: none;
    padding-left: 0;
}

.about-page .post-content ul:not(:last-of-type) li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.about-page .post-content ul:not(:last-of-type) li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
    line-height: inherit;
}

/* External links use default site styling - no special treatment */

/* Simplified contact section for Collabchek only */
.about-page .post-content ul:last-of-type {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    text-align: center;
}

.about-page .post-content ul:last-of-type li {
    display: inline-block;
}

.about-page .post-content ul:last-of-type li::before {
    display: none;
}

.about-page .post-content ul:last-of-type li a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(147, 51, 234, 0.08);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.about-page .post-content ul:last-of-type li a:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.about-page .post-content ul:last-of-type li a::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239333ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.72-1.71'%3E%3C/path%3E%3C/svg%3E");
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.2s ease;
}

.about-page .post-content ul:last-of-type li a:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.72-1.71'%3E%3C/path%3E%3C/svg%3E");
}

[data-theme="dark"] .about-page .post-content ul:last-of-type li a {
    background: rgba(192, 132, 252, 0.1);
    border-color: var(--color-border);
}

[data-theme="dark"] .about-page .post-content ul:last-of-type li a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c084fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.72-1.71'%3E%3C/path%3E%3C/svg%3E");
}

/* Stylized horizontal rule */
.about-page .post-content hr {
    margin: 0.1rem 0;
    opacity: 0.6;
    border-radius: 1px;
    border: none;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-accent),
            var(--brand-300),
            transparent);
}

.post-content hr {
    background: var(--brand-400);
    opacity: 0.6;
    margin-top: 0rem;
    margin-bottom: 0rem;
}

/* Stats section styling */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg,
            rgba(147, 51, 234, 0.05) 0%,
            rgba(192, 132, 252, 0.03) 100%);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--brand-300));
}

.stat-item {
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-family: var(--title-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(147, 51, 234, 0.1);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .about-stats {
    background: linear-gradient(135deg,
            rgba(192, 132, 252, 0.08) 0%,
            rgba(147, 51, 234, 0.03) 100%);
}

[data-theme="dark"] .stat-number {
    text-shadow: 0 2px 4px rgba(192, 132, 252, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 0 0.75rem;
    }

    .header {
        padding: 2rem 0 1.5rem 0;
    }

    .header-top {
        margin-bottom: 1.5rem;
    }

    .header-social {
        gap: 0.5rem;
    }

    .social-link {
        padding: 2px;
    }

    .social-link svg {
        width: 14px;
        height: 14px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 36px;
        margin-right: 0.75rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-prev,
    .nav-next {
        max-width: 100%;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}