* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --parchment-light: #faf8f3;
    --parchment: #f5f1e8;
    --earth-warm: #d4c5a9;
    --sage-medium: #8b9d83;
    --sage-deep: #5d7052;
    --ink-dark: #3a3a3a;
    --gold-accent: #c9a961;
    --shadow-warm: rgba(139, 157, 131, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, var(--parchment-light) 0%, var(--parchment) 100%);
    color: var(--ink-dark);
    line-height: 1.7;
    min-height: 100vh;
}

/* Fixed Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 243, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 157, 131, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sage-deep);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-name:hover {
    color: var(--gold-accent);
}

.breadcrumb {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb li a {
    color: var(--sage-medium);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.breadcrumb li a:hover {
    background: rgba(139, 157, 131, 0.15);
    color: var(--sage-deep);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--sage-deep);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--sage-medium);
    font-weight: 500;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-description {
    background: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(139, 157, 131, 0.2);
    font-size: 1.15rem;
    line-height: 1.8;
    box-shadow: 0 4px 16px var(--shadow-warm);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Illuminated Manuscript SVG */
.illuminated-letter {
    width: 380px;
    height: 380px;
    filter: drop-shadow(0 8px 24px var(--shadow-warm));
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

@keyframes flourish-grow {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.08) rotate(3deg);
    }
}

@keyframes leaf-sway {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(3px) rotate(5deg);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.9;
    }
}

/* Content Section */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--sage-deep);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
}

/* Story Cards - Bento Layout */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.story-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 157, 131, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(201, 169, 97, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.story-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-warm), 0 8px 16px rgba(139, 157, 131, 0.1);
    border-color: var(--gold-accent);
}

.story-card:hover::before {
    opacity: 1;
}

.story-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sage-medium), var(--sage-deep));
    border-radius: 50% 40% 50% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.5s ease;
    animation: morph-shape 6s ease-in-out infinite;
}

@keyframes morph-shape {

    0%,
    100% {
        border-radius: 50% 40% 50% 40%;
    }

    25% {
        border-radius: 40% 50% 40% 50%;
    }

    50% {
        border-radius: 45% 45% 50% 45%;
    }

    75% {
        border-radius: 50% 45% 45% 50%;
    }
}

.story-card:hover .story-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(139, 157, 131, 0.3);
}

.story-card h3 {
    font-size: 1.6rem;
    color: var(--sage-deep);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.story-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink-dark);
}

/* Featured Image Section */
.featured-image {
    background: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    border-radius: 24px;
    border: 2px solid rgba(139, 157, 131, 0.25);
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 12px 32px var(--shadow-warm);
}

.featured-image h3 {
    font-size: 1.8rem;
    color: var(--sage-deep);
    margin-bottom: 2rem;
    font-weight: 600;
}

.featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(139, 157, 131, 0.2);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.featured-image img:hover {
    opacity: 1;
    transform: scale(1.02);
}

.signature {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--sage-deep);
    font-style: italic;
}

/* Language Selector */
.language-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    list-style: none;
}

.language-selector li {
    background: var(--sage-medium);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.language-selector li.active {
    background: var(--sage-deep);
    box-shadow: 0 4px 12px rgba(93, 112, 82, 0.3);
}

.language-selector a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-selector li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 157, 131, 0.3);
}

/* Footer */
footer {
    background: rgba(250, 248, 243, 0.9);
    border-top: 1px solid rgba(139, 157, 131, 0.2);
    padding: 2rem;
    text-align: center;
    color: var(--sage-medium);
    font-size: 0.95rem;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .illuminated-letter {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        gap: 1rem;
    }

    .breadcrumb {
        gap: 0.5rem;
    }

    .breadcrumb li a {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 3rem 1.5rem 2rem;
        margin-top: 120px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.05rem;
        padding: 1.5rem;
    }

    .illuminated-letter {
        width: 280px;
        height: 280px;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .story-card {
        padding: 2rem;
    }

    .story-card h3 {
        font-size: 1.4rem;
    }

    .featured-image {
        padding: 2rem 1.5rem;
    }
}
