/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #2f2a4b;
    --primary-medium: #5f547d;
    --primary-light: #a27c9c;
    --accent-pink: #e5a4ab;
    --accent-peach: #f7c6b6;
    --content-bg: #faf8f9;
    --text-dark: #2f2a4b;
    --text-light: #ffffff;
    --border-color: #e0d4d8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--content-bg);
    /* Jazzy background pattern */
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(175, 124, 156, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(229, 164, 171, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(247, 198, 182, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(95, 84, 125, 0.02) 50%, transparent 100%);
    background-size: 400px 400px, 300px 300px, 500px 500px, 100% 100%;
    background-position: 0 0, 100px 100px, 200px 0, 0 0;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { background-position: 0 0, 100px 100px, 200px 0, 0 0; }
    50% { background-position: 50px 50px, 150px 50px, 250px 50px, 0 0; }
}

/* Typography - Google Font for Headers */
h1, h2, h3, .logo h1 {
    font-family: 'MonteCarlo', cursive;
    font-weight: 400;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.7rem;
    line-height: 1.4;
    color: #1f1a2e;
}

/* Content area typography */
.main-column, .info-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Updated Drop Cap Styles using ::first-letter */
.dropcap::first-letter {
    float: left;
    font-family: 'MonteCarlo', cursive;
    font-size: 4rem;
    line-height: 3rem;
    padding-right: 8px;
    padding-top: 4px;
	padding-bottom: 3px;
    color: var(--primary-medium);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: -6px;
}

.dropcap-small::first-letter {
    float: left;
    font-family: 'MonteCarlo', cursive;
    font-size: 2.5rem;
    line-height: 2rem;
    padding-right: 6px;
    padding-top: 2px;
	padding-bottom: 3px;	
    color: var(--primary-medium);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: -4px;
}

/* Image Float Classes */
.float-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(47, 42, 75, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(47, 42, 75, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-left:hover, .float-right:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 42, 75, 0.2);
}

/* Image size variants */
.img-small {
    max-width: 150px;
    height: auto;
}

.img-medium {
    max-width: 250px;
    height: auto;
}

.img-large {
    max-width: 350px;
    height: auto;
}

/* Clear floats utility */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Additional Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.margin-top-small { margin-top: 1rem; }
.margin-top-medium { margin-top: 2rem; }
.margin-top-large { margin-top: 3rem; }

.margin-bottom-small { margin-bottom: 1rem; }
.margin-bottom-medium { margin-bottom: 2rem; }
.margin-bottom-large { margin-bottom: 3rem; }

/* Accessibility Improvements */
.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;
}

/* Focus styles for better keyboard navigation */
.nav-link:focus,
.sidebar-links a:focus,
.info-section a:focus,
.footer-links a:focus {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
}
