/* =============================================================
   JORDI COR - Personal Website Stylesheet
   Design System: "Santorini Jordi A (Open)"
   Pure custom CSS. No frameworks. No Tailwind. No Bootstrap.
   ============================================================= */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--jc-aegean);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ---------------------------------------------------------
   DESIGN TOKENS
   --------------------------------------------------------- */
:root {
    /* Brand Palette — Santorini Jordi A (Open) */
    --jc-aegean:        #1B5FA0;
    --jc-aegean-dark:   #0F2440;
    --jc-aegean-light:  #3B8BD4;
    --jc-cyan:          #2BB0D4;
    --jc-cyan-bright:   #00CFFF;
    --jc-white:         #FFFFFF;
    --jc-offwhite:      #F4F8FC;
    --jc-text:          #2A3850;
    --jc-text-body:     #4A6878;
    --jc-text-light:    #5A7488;
    --jc-text-muted:    #7A94A8;
    --jc-border:        #E4EDF4;
    --jc-border-light:  #DEE8F0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    /* Spacing */
    --section-pad-y: 5rem;
    --section-pad-x: 1.5rem;
    --container-max: 1100px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition: 0.3s var(--ease);

    /* Shadows */
    --shadow-sm: 0 2px 16px rgba(27, 95, 160, 0.06);
    --shadow-md: 0 8px 28px rgba(27, 95, 160, 0.1);

    /* Border radius */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-pill: 28px;
}

/* ---------------------------------------------------------
   RESET & BASE
   --------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--jc-text-body);
    background-color: var(--jc-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

/* ---------------------------------------------------------
   CUSTOM SCROLLBAR
   --------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--jc-offwhite);
}
::-webkit-scrollbar-thumb {
    background: var(--jc-aegean-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--jc-aegean);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--jc-aegean-light) var(--jc-offwhite);
}

/* ---------------------------------------------------------
   FOCUS STATES (Accessibility)
   --------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--jc-aegean);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--jc-text);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
}

/* ---------------------------------------------------------
   LAYOUT UTILITIES
   --------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--section-pad-x);
    padding-right: var(--section-pad-x);
}

.section {
    padding-top: var(--section-pad-y);
    padding-bottom: var(--section-pad-y);
}

.section-alt {
    background-color: var(--jc-offwhite);
}

/* ---------------------------------------------------------
   SCREEN READER ONLY
   --------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------
   SEPARATOR LINE
   --------------------------------------------------------- */
.sep {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--jc-aegean), var(--jc-cyan-bright));
    border: none;
    margin: 1.25rem 0 2rem;
    border-radius: 2px;
}

.sep-center {
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------
   SECTION HEADINGS
   --------------------------------------------------------- */
.section-heading {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.section-heading-center {
    text-align: center;
}

.section-intro {
    margin-bottom: 3rem;
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-align: center;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    padding: 0.875rem 2rem;
    transition: all var(--transition);
    position: relative;
    line-height: 1.4;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s var(--ease);
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: var(--jc-aegean);
    color: var(--jc-white);
}

.btn-primary:hover {
    background: var(--jc-aegean-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 95, 160, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--jc-aegean);
    border: 2px solid var(--jc-border);
}

.btn-secondary:hover {
    border-color: var(--jc-aegean);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------
   NAVBAR
   --------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(27, 95, 160, 0.08);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--jc-text);
    letter-spacing: -0.02em;
    transition: color var(--transition);
}

.nav-logo:hover {
    color: var(--jc-aegean);
}

.nav-links {
    display: none;
    gap: 2.25rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--jc-text-light);
    letter-spacing: 0.01em;
    transition: color var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: var(--jc-aegean);
}

.nav-link--active {
    color: var(--jc-aegean);
}

.nav-link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--jc-aegean), var(--jc-cyan-bright));
    border-radius: 1px;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--jc-text);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem var(--section-pad-x) 1.5rem;
    border-top: 1px solid var(--jc-border);
    box-shadow: 0 8px 24px rgba(27, 95, 160, 0.08);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--jc-text-body);
    border-bottom: 1px solid var(--jc-border-light);
    transition: color var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--jc-aegean);
}

/* ---------------------------------------------------------
   HERO (Open variant: white bg, large type, no photo overlay)
   --------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jc-white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    padding: 7rem var(--section-pad-x) 4rem;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--jc-text);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--jc-aegean);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--jc-cyan);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* ---------------------------------------------------------
   PROFILE PHOTO (Circular, hero-sized)
   --------------------------------------------------------- */
.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid var(--jc-border);
    box-shadow: var(--shadow-md);
    margin: 0 auto 1.5rem;
}

/* ---------------------------------------------------------
   CONTACT SECTION
   --------------------------------------------------------- */
.contact-email {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jc-aegean);
    cursor: pointer;
    transition: color var(--transition);
}

.contact-email:hover {
    color: var(--jc-aegean-light);
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.social-row a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--jc-aegean);
    transition: color var(--transition);
}

.social-row a:hover {
    color: var(--jc-cyan);
}

/* ---------------------------------------------------------
   NOW SECTION - Social links with context labels
   --------------------------------------------------------- */
.now-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.now-list li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--jc-border-light);
    font-size: 0.95rem;
}

.now-list li:last-child {
    border-bottom: none;
}

.now-list a {
    font-weight: 600;
    color: var(--jc-aegean);
}

.now-list a:hover {
    color: var(--jc-aegean-light);
}

.now-label {
    color: var(--jc-text-muted);
}

/* ---------------------------------------------------------
   STATS BAR (Open: on white, thin top-border separator)
   --------------------------------------------------------- */
.stats {
    border-top: 2px solid var(--jc-border);
    padding: 2.5rem 0;
}

.stats-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--jc-aegean);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--jc-text-muted);
    font-weight: 500;
}

/* ---------------------------------------------------------
   CARDS
   --------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--jc-white);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--jc-border-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--jc-aegean);
    background: #F0F6FB;
    border: 1px solid #C8D8E8;
    border-radius: 24px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jc-text);
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--jc-text-body);
    margin-bottom: 1rem;
}

.card-text:last-child {
    margin-bottom: 0;
}

.card-stat {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jc-aegean);
}

/* ---------------------------------------------------------
   CHIPS
   --------------------------------------------------------- */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.chip {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--jc-aegean);
    background: #F0F6FB;
    border: 1px solid #C8D8E8;
    border-radius: 24px;
    padding: 0.375rem 1rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.chip--cyan {
    color: #1898B8;
    background: rgba(0, 207, 255, 0.08);
    border-color: rgba(0, 207, 255, 0.2);
}

/* ---------------------------------------------------------
   PHOTO GRID
   --------------------------------------------------------- */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.photo-grid img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.photo-grid img:hover {
    transform: scale(1.02);
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.footer {
    background: var(--jc-aegean-dark);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
}

.footer-top-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--jc-aegean), transparent);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #5BB8E0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--jc-white);
}

.footer-links svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 0.35rem;
}

.footer-email {
    font-size: 0.875rem;
    color: #5BB8E0;
    transition: color var(--transition);
    cursor: pointer;
}

.footer-email:hover {
    color: var(--jc-white);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   ANIMATIONS
   --------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered animation base */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.animate-on-scroll.fade-in-up {
    transform: translateY(30px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-30px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------------------------------------------------------
   RESPONSIVE: 480px+
   --------------------------------------------------------- */
@media (min-width: 480px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }

    .stats-inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------------------------------------------------------
   RESPONSIVE: 640px+
   --------------------------------------------------------- */
@media (min-width: 640px) {
    .hero-name {
        font-size: 4rem;
    }

    .hero-tagline {
        font-size: 1.65rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }
}

/* ---------------------------------------------------------
   RESPONSIVE: 768px+
   --------------------------------------------------------- */
@media (min-width: 768px) {
    .hero-name {
        font-size: 4.5rem;
    }

    .hero-tagline {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .stats-inner {
        grid-template-columns: repeat(5, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
    }
}

/* ---------------------------------------------------------
   RESPONSIVE: 1024px+
   --------------------------------------------------------- */
@media (min-width: 1024px) {
    :root {
        --section-pad-y: 6rem;
    }

    .nav-links {
        display: flex;
    }

    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .hero-name {
        font-size: 5rem;
    }

    .hero-tagline {
        font-size: 1.85rem;
    }

    .section-heading {
        font-size: 2.25rem;
    }

    .card-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-links {
        order: 2;
    }

    .footer-copy {
        order: 1;
    }
}

/* ---------------------------------------------------------
   RESPONSIVE: 1280px+
   --------------------------------------------------------- */
@media (min-width: 1280px) {
    :root {
        --section-pad-y: 7rem;
    }

    .hero-name {
        font-size: 5.5rem;
    }
}

/* ---------------------------------------------------------
   PREFERS-REDUCED-MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------
   PRINT STYLES
   --------------------------------------------------------- */
@media print {
    .nav,
    .hamburger,
    .mobile-menu,
    .btn,
    .footer {
        display: none !important;
    }

    body {
        font-size: 11pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .section,
    .section-alt {
        padding: 1.5rem 0;
        background: #fff !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-name {
        color: #000;
        font-size: 24pt;
    }

    .hero-tagline {
        color: #333;
    }

    .hero-subtitle {
        color: #555;
    }

    img {
        max-width: 100% !important;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #555;
    }

    .nav-link[href]::after,
    .footer-links a[href]::after {
        content: none;
    }
}

/* ---------------------------------------------------------
   BLOG ARCHIVE PAGE
   --------------------------------------------------------- */
.blog-archive {
    padding-top: calc(72px + 3rem);
}

.blog-subtitle {
    font-size: 1.05rem;
    color: var(--jc-text-body);
    margin-bottom: 2.5rem;
    max-width: 720px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-entry {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--jc-border-light);
}

.blog-entry:first-child {
    padding-top: 0;
}

.blog-entry:last-child {
    border-bottom: none;
}

.blog-date {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--jc-text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.blog-entry-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.blog-entry-title a {
    color: var(--jc-text);
    transition: color var(--transition);
}

.blog-entry-title a:hover {
    color: var(--jc-aegean);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.blog-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jc-aegean);
    background: #F0F6FB;
    border: 1px solid #C8D8E8;
    border-radius: 24px;
    padding: 0.2rem 0.65rem;
}

/* ---------------------------------------------------------
   INDIVIDUAL POST PAGE
   --------------------------------------------------------- */
.post-page {
    padding-top: calc(72px + 2rem);
}

.post-container {
    max-width: 780px;
}

.archive-notice {
    background: var(--jc-offwhite);
    border-left: 3px solid var(--jc-aegean-light);
    padding: 0.875rem 1.25rem;
    font-size: 0.85rem;
    color: var(--jc-text-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.post-meta time {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--jc-text-muted);
}

.post-featured-image {
    margin: 0 0 2rem;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* Post content typography */
.post-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--jc-text-body);
}

.post-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--jc-text);
}

.post-content h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    color: var(--jc-text);
}

.post-content h4 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--jc-text);
}

.post-content p {
    margin-bottom: 1.35rem;
}

.post-content a {
    color: var(--jc-aegean);
    text-decoration: underline;
    text-decoration-color: rgba(27, 95, 160, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition), color var(--transition);
}

.post-content a:hover {
    color: var(--jc-aegean-light);
    text-decoration-color: var(--jc-aegean-light);
}

.post-content ul,
.post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.35rem;
    list-style: revert;
}

.post-content li {
    margin-bottom: 0.4rem;
    line-height: 1.75;
}

.post-content blockquote {
    border-left: 3px solid var(--jc-aegean-light);
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: var(--jc-offwhite);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content blockquote h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.post-content figure {
    margin: 1.5rem 0;
}

.post-content figcaption {
    font-size: 0.8rem;
    color: var(--jc-text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.post-content iframe {
    max-width: 100%;
}

/* Responsive video embed (16:9) */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Post bottom navigation */
.post-nav {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--jc-border-light);
}

.post-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--jc-aegean);
    transition: color var(--transition);
}

.post-nav a:hover {
    color: var(--jc-aegean-light);
}

/* ---------------------------------------------------------
   BLOG RESPONSIVE: 640px+
   --------------------------------------------------------- */
@media (min-width: 640px) {
    .post-header h1 {
        font-size: 2.25rem;
    }

    .blog-entry-title {
        font-size: 1.25rem;
    }
}

/* ---------------------------------------------------------
   BLOG RESPONSIVE: 768px+
   --------------------------------------------------------- */
@media (min-width: 768px) {
    .post-header h1 {
        font-size: 2.5rem;
    }
}

/* ---------------------------------------------------------
   BLOG PRINT STYLES
   --------------------------------------------------------- */
@media print {
    .archive-notice {
        border-left-color: #999;
        background: #f5f5f5;
    }

    .post-nav {
        display: none;
    }
}

/* ---------------------------------------------------------
   BACKDROP-FILTER FALLBACK
   --------------------------------------------------------- */
@supports not (backdrop-filter: blur(12px)) {
    .nav.scrolled {
        background: rgba(255, 255, 255, 0.99) !important;
    }

    .mobile-menu {
        background: rgba(255, 255, 255, 0.99) !important;
    }
}
