:root {
    --sky: #2fa7cf;
    --purple: #6E5A8E;
    --charcoal: #2D2C2C;
    --white: #FFFFFF;
    --sky-soft: rgba(113, 200, 229, 0.15);
    --purple-soft: rgba(110, 90, 142, 0.12);
    --gradient-hero: linear-gradient(135deg, #2D2C2C 0%, #3d3550 45%, #2D2C2C 100%);
    --shadow-card: 0 20px 50px rgba(45, 44, 44, 0.12);
    --radius: 1rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: var(--charcoal);
    background: var(--white);
    overflow-x: hidden;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 20%, var(--sky-soft), transparent 40%),
        radial-gradient(circle at 85% 10%, var(--purple-soft), transparent 35%),
        radial-gradient(circle at 50% 90%, rgba(113, 200, 229, 0.08), transparent 50%),
        var(--white);
}

/* Navigation */
.site-nav {
    background: rgba(45, 44, 44, 0.92);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    transition: transform 0.35s ease, box-shadow 0.3s;
}

.site-nav.nav-hidden {
    transform: translateY(-100%);
}

.site-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
}

.brand-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky), var(--purple));
    color: var(--white);
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.brand-monogram.sm {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
}

img.brand-monogram {
    display: block;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
    padding: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.1rem;
    font-weight: bold;
}

.site-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem;
    transition: all 0.25s;
}

.site-nav .nav-link:hover {
    color: var(--white) !important;
    background: rgba(113, 200, 229, 0.2);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Hero */
.hero-section {
    background: var(--gradient-hero);
    color: var(--white);
    position: relative;
    padding-top: 80px;
}

.hero-eyebrow,
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--sky);
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-eyebrow.light {
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: bold;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-title span {
    color: var(--sky);
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 540px;
}

.hero-visual {
    position: relative;
}

.hero-image-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid rgba(113, 200, 229, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    background: var(--purple);
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 44, 44, 0.5), transparent 50%);
    pointer-events: none;
}

.hero-quote {
    margin: 1.5rem 0 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--sky);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.hero-quote p {
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-quote cite {
    font-size: 0.85rem;
    color: var(--sky);
    font-style: normal;
}

.wave-divider {
    line-height: 0;
    margin-bottom: -1px;
}

.wave-divider svg {
    width: 100%;
    height: 60px;
}

.wave-divider path {
    fill: var(--white);
}

/* Sections */
.section-pad {
    padding: 5rem 0;
}

.section-alt {
    background: linear-gradient(180deg, #f8fbfd 0%, var(--white) 100%);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: bold;
    color: var(--purple);
    margin-bottom: 1rem;
}

.section-title.light {
    color: var(--white);
}

.section-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
}

/* About */
.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about-img.main {
    grid-column: span 2;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 120px;
    background: linear-gradient(135deg, var(--sky-soft), var(--purple-soft));
}

.about-values {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.about-values li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.about-values li span {
    display: inline-block;
    min-width: 130px;
    font-weight: bold;
    color: var(--purple);
}

/* Post cards */
.post-card {
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(110, 90, 142, 0.18);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.post-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.06);
}

.post-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 44, 44, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.post-card:hover .post-card-overlay {
    opacity: 1;
}

.post-card-body {
    padding: 1.5rem;
}

.post-card-body time {
    font-size: 0.8rem;
    color: var(--sky);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-body h3 {
    font-size: 1.2rem;
    color: var(--purple);
    margin: 0.5rem 0;
    font-weight: bold;
}

.post-card-body p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--sky);
}

/* Older posts */
.older-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.older-posts-list li {
    border-bottom: 1px solid #e8e8e8;
}

.older-posts-list a {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.25s;
}

.older-posts-list a:hover {
    padding-left: 0.5rem;
}

.older-date {
    flex-shrink: 0;
    width: 160px;
    font-size: 0.85rem;
    color: var(--sky);
}

.older-title {
    color: var(--purple);
    font-weight: bold;
}

/* Newsletter */
.newsletter-section {
    padding-bottom: 6rem;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--purple) 0%, #554870 50%, var(--charcoal) 100%);
    color: var(--white);
    border-radius: calc(var(--radius) * 1.5);
    padding: 3rem;
    box-shadow: 0 30px 80px rgba(110, 90, 142, 0.35);
}

.btn-accent {
    background: var(--sky);
    color: var(--charcoal);
    font-weight: bold;
    border: none;
}

.btn-accent:hover {
    background: #5eb8d8;
    color: var(--charcoal);
}

.form-feedback {
    font-size: 0.9rem;
    min-height: 1.4em;
}

.form-feedback.success {
    color: #a8f0c8;
}

.form-feedback.error {
    color: #ffb3b3;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px dashed rgba(113, 200, 229, 0.5);
}

.empty-icon {
    font-size: 2.5rem;
    color: var(--sky);
    margin-bottom: 1rem;
}

/* Page header */
.page-header {
    padding-top: 100px;
    background: linear-gradient(180deg, #f0f8fb, var(--white));
}

/* Single post */
.single-post {
    padding-top: 70px;
}

.post-column {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

.post-hero {
    aspect-ratio: 16 / 10;
    width: 100%;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-card);
}

.post-header {
    padding: 2rem 0 0;
}

.post-header .back-link,
.back-link-bottom {
    color: var(--purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
}

.post-header .back-link {
    margin-bottom: 1.25rem;
}

.post-header .back-link:hover,
.back-link-bottom:hover {
    color: var(--charcoal);
}

.back-link-bottom {
    display: block;
    text-align: center;
    margin-top: 2rem;
}

.post-header time {
    display: block;
    font-size: 0.85rem;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.post-header h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: bold;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 0;
}

.post-excerpt {
    font-size: 1.1rem;
    color: #555;
    max-width: 650px;
    margin-top: 1rem;
    line-height: 1.6;
}

.post-content {
    padding: 2rem 0;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.85;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content h2,
.post-content h3 {
    color: var(--purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-card);
}

.post-content a {
    color: var(--sky);
}

.post-content blockquote {
    border-left: 4px solid var(--sky);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--sky-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.post-footer {
    margin-bottom: 4rem;
}

.newsletter-mini {
    background: linear-gradient(135deg, var(--sky-soft), var(--purple-soft));
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.newsletter-mini h3 {
    color: var(--purple);
    font-size: 1.25rem;
    font-weight: bold;
}

.newsletter-form-inline {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 1rem auto 0;
}

.newsletter-form-inline input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 2rem;
    font-family: Arial, sans-serif;
}

.newsletter-form-inline button {
    padding: 0.6rem 1.25rem;
    background: var(--purple);
    color: var(--white);
    border: none;
    border-radius: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.newsletter-form-inline button:hover {
    background: #5a4a75;
}

/* Buttons */
.btn-primary {
    background: var(--purple);
    border-color: var(--purple);
    font-weight: bold;
    border-radius: 2rem;
    padding: 0.6rem 1.5rem;
}

.btn-primary:hover {
    background: #5a4a75;
    border-color: #5a4a75;
}

.btn-outline-light {
    border-radius: 2rem;
    border-width: 2px;
}

.btn-outline-primary {
    color: var(--purple);
    border-color: var(--purple);
    border-radius: 2rem;
}

.btn-outline-primary:hover {
    background: var(--purple);
    border-color: var(--purple);
}

/* Footer */
.site-footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 3rem 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    color: var(--sky);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--white);
}

/* Pagination */
.blog-pagination .page-link {
    color: var(--purple);
    border-radius: 0.5rem;
    margin: 0 2px;
}

.blog-pagination .page-item.active .page-link {
    background: var(--purple);
    border-color: var(--purple);
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

@media (max-width: 767px) {
    .older-posts-list a {
        flex-direction: column;
        gap: 0.25rem;
    }

    .older-date {
        width: auto;
    }

    .newsletter-box {
        padding: 2rem 1.5rem;
    }

    .about-image-grid {
        grid-template-columns: 1fr;
    }

    .about-img.main {
        grid-column: auto;
    }
}
