/* bada.quest — hand-drawn zen aesthetic */

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

:root {
    --midnight: #0a0e1a;
    --deep-blue: #121832;
    --navy: #1c2545;
    --gold: #c9a84c;
    --mist: #8890a4;
    --sky: #7b8fbf;
    --pale-blue: #a8c8e8;
    --chalk: #e2e4ea;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--midnight);
    color: var(--chalk);
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--deep-blue) 0%, var(--midnight) 70%);
    z-index: 0;
}

#enso {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#enso.visible {
    opacity: 1;
}

#enso-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 3s cubic-bezier(0.4, 0, 0.2, 1);
}

#enso-path.drawn {
    stroke-dashoffset: 50;
}

.hero-title {
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: var(--chalk);
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease 2.5s, transform 1s ease 2.5s;
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    position: relative;
    z-index: 1;
    font-family: 'Caveat', cursive;
    color: var(--mist);
    font-size: 1.4rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 1s ease 3.2s;
}

.hero-subtitle.visible {
    opacity: 1;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease 4s forwards, bob 2s ease-in-out 4s infinite;
}

@keyframes fadeIn {
    to { opacity: 0.6; }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Sketchbook Section */
#sketchbook {
    position: relative;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--gold);
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.03em;
}

.sketch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.sketch-card {
    position: relative;
    padding: 2rem;
    transition: transform 0.4s ease;
}

.sketch-card:hover {
    transform: scale(1.03);
}

.card-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.sketch-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.sketch-card p {
    color: var(--mist);
    font-size: 1.1rem;
}

/* Constellation SVG overlay */
.constellation-svg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

/* Philosophy Section */
#philosophy {
    padding: 6rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.brush-divider {
    margin-bottom: 2rem;
    opacity: 0.7;
}

#philosophy h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

#philosophy p {
    color: var(--chalk);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Footer */
#footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--navy);
}

.footer-enso {
    opacity: 0.5;
    margin-bottom: 1rem;
}

.footer-text {
    font-family: 'Caveat', cursive;
    color: var(--mist);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .sketch-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #sketchbook {
        padding: 4rem 1.5rem;
    }
}
