/* Sanctuary of Innocence - Candle Light Theme */

:root {
    --candle-light: #fffcf0;
    --dust-gold: #c5a86d;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --soft-white: #ffffff;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--candle-light);
    color: var(--slate-700);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.serif {
    font-family: 'Libre Baskerville', Georgia, serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    line-height: 1.3;
}

a {
    color: var(--slate-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dust-gold);
}

/* Layout */
.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--slate-100);
    backdrop-filter: blur(8px);
    background: rgba(255, 252, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

.site-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-tagline {
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--slate-400);
    font-weight: 500;
}

/* Candle Icon Animation */
.candle-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--slate-400);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 6rem;
    max-width: 48rem;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--slate-700);
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.manifesto-box {
    border-left: 2px solid var(--dust-gold);
    padding-left: 2rem;
    text-align: left;
    margin: 0 auto 4rem;
    max-width: 42rem;
}

.manifesto-text {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--slate-500);
    line-height: 1.8;
}

/* Search */
.search-container {
    max-width: 28rem;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    background: var(--soft-white);
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 9999px;
    padding: 1rem 2rem;
    font-size: 1rem;
    color: var(--slate-600);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--slate-400);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Children Grid */
.children-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .children-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .children-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Child Card */
.child-card {
    background: var(--soft-white);
    border: 1px solid rgba(197, 168, 109, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.child-card:hover {
    transform: translateY(-5px);
    border-color: var(--dust-gold);
    box-shadow: 0 30px 60px -12px rgba(197, 168, 109, 0.15);
}

.child-card-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--slate-100);
}

.child-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(0.9) brightness(1.1);
    transition: filter 0.8s ease;
}

.child-card:hover .child-card-image {
    filter: grayscale(0%) contrast(1) brightness(1);
}

.child-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.child-card:hover .child-card-overlay {
    opacity: 1;
}

.child-card-hover-info {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    color: white;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}

.child-card:hover .child-card-hover-info {
    opacity: 1;
    transform: translateY(0);
}

.child-card-location {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.child-card-hover-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
}

.child-card-content {
    padding: 2rem;
}

.child-card-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: var(--slate-700);
    margin: 0 0 0.25rem;
}

.child-card-meta {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--slate-400);
    margin-bottom: 1rem;
}

.child-card-dream {
    font-size: 0.875rem;
    color: var(--slate-500);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.child-card-link {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--slate-300);
    font-style: italic;
    transition: color 0.3s ease;
}

.child-card:hover .child-card-link {
    color: var(--slate-600);
}

/* Child Profile Page */
.profile-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: var(--slate-400);
    margin-bottom: 3rem;
    transition: color 0.3s ease;
}

.profile-back:hover {
    color: var(--slate-700);
}

.profile-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .profile-header {
        grid-template-columns: 1fr 1fr;
    }
}

.profile-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-weight: 700;
    color: var(--slate-400);
    margin-bottom: 1rem;
}

.profile-name {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--slate-700);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.profile-meta {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.25rem;
    color: var(--slate-500);
    font-style: italic;
    margin-bottom: 2rem;
}

.profile-dream-box {
    background: var(--soft-white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-100);
    font-style: italic;
    color: var(--slate-600);
}

.profile-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 8px solid var(--soft-white);
}

/* Profile Bio */
.profile-bio {
    max-width: 42rem;
    margin: 0 auto 5rem;
}

.profile-bio-text {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--slate-600);
    line-height: 2;
}

.profile-bio-text img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.profile-bio-text img.float-left,
.profile-bio-text img.float-right {
    shape-outside: margin-box;
}

.profile-bio-text::first-letter {
    font-size: 4rem;
    color: var(--slate-300);
    float: left;
    margin-right: 0.75rem;
    margin-top: 0.5rem;
    line-height: 0.8;
}

/* Gallery */
.gallery {
    margin-bottom: 5rem;
}

.gallery-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.875rem;
    text-align: center;
    color: var(--slate-700);
    font-style: italic;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-img {
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
    cursor: zoom-in;
    transition: all 0.5s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.gallery-img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Profile Footer */
.profile-footer {
    text-align: center;
    padding: 5rem 0;
    border-top: 1px solid var(--slate-100);
}

.profile-remember {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.875rem;
    color: var(--slate-400);
    font-style: italic;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--slate-700);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--slate-600);
    color: white;
}

/* Footer */
.site-footer {
    margin-top: 5rem;
    padding: 6rem 0;
    background: var(--soft-white);
    border-top: 1px solid var(--slate-100);
}

.footer-quote {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    color: var(--slate-600);
    font-style: italic;
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.footer-divider {
    height: 1px;
    width: 5rem;
    background: var(--slate-200, #e2e8f0);
    margin: 0 auto 3rem;
}

.footer-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--slate-400);
    font-weight: 500;
    text-align: center;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animations */
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities */
.text-center { text-align: center; }
.hidden { display: none; }

/* Float utilities */
.float-left { float: left; }
.float-right { float: right; }
.clear-both { clear: both; }

/* Width utilities */
.w-full { width: 100%; }
.w1\/2 { width: 50%; }
.w1\/3 { width: 33.333%; }
.w2\/3 { width: 66.666%; }
.w1\/4 { width: 25%; }
.w3\/4 { width: 75%; }

/* Margin utilities (1 unit = 0.25rem) */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-6 { margin-left: 1.5rem; }
.ml-8 { margin-left: 2rem; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mr-6 { margin-right: 1.5rem; }
.mr-8 { margin-right: 2rem; }

/* Padding utilities */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

/* Border radius */
.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Font imports - add to your HTML head */
/*
<link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
*/
