/* scriptswirl.com — wabi-sabi imperfect ceramic aesthetic */

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base / Paper Texture ── */
body {
    background-color: #FAF7F0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    background-blend-mode: soft-light;
    color: #7A6555;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    overflow-x: hidden;
}

/* ── Swirl Motif (site-wide signature) ── */
.swirl-motif {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(139, 94, 60, 0.1);
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    position: absolute;
    pointer-events: none;
}

/* ── Hero ── */
.hero {
    position: relative;
    text-align: center;
    padding: 8rem 2rem 5rem;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.swirl-hero-1 {
    top: 12%;
    left: 8%;
    width: 100px;
    height: 100px;
    animation: swirl-drift 18s ease-in-out infinite;
}

.swirl-hero-2 {
    bottom: 18%;
    right: 10%;
    width: 70px;
    height: 70px;
    animation: swirl-drift 22s ease-in-out infinite reverse;
}

.swirl-hero-3 {
    top: 55%;
    left: 60%;
    width: 50px;
    height: 50px;
    border-color: rgba(139, 94, 60, 0.06);
    animation: swirl-drift 26s ease-in-out infinite 3s;
}

@keyframes swirl-drift {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    25% { transform: rotate(50deg) translate(6px, -4px); }
    50% { transform: rotate(42deg) translate(-3px, 5px); }
    75% { transform: rotate(48deg) translate(4px, 2px); }
}

.headline {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    color: #5C3D2E;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #7A6555;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.cta-pill {
    display: inline-block;
    border: 1.5px solid #C4714E;
    color: #C4714E;
    background: transparent;
    border-radius: 100px;
    padding: 0.7rem 2rem;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.cta-pill:hover {
    background: #C4714E;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(196, 113, 78, 0.25);
}

/* ── Section Heading ── */
.section-heading {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #5C3D2E;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

/* ── Featured Works ── */
.featured-works {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.works-layout {
    display: flex;
    gap: 2.5rem;
}

.work-main {
    flex: 3;
    min-width: 280px;
    position: relative;
}

.work-main-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.work-title {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #5C3D2E;
}

.work-author {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8125rem;
    color: #7A6555;
    margin-bottom: 1.25rem;
}

.work-excerpt {
    font-family: 'Cormorant', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.3rem;
    color: #5C3D2E;
    line-height: 1.45;
}

.swirl-accent {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(212, 197, 169, 0.4);
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    margin-top: 1.5rem;
}

.work-sidebar {
    flex: 2;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.work-small {
    background: #F0E8D8;
    border: 1px dotted #D4C5A9;
    border-radius: 8px;
    padding: 1.15rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(92, 61, 46, 0.08);
}

.work-small-title {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #5C3D2E;
    margin-bottom: 0.3rem;
}

.work-small-line {
    font-size: 0.85rem;
    color: #7A6555;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ── Type Tag (pill) ── */
.type-tag {
    display: inline-block;
    background: rgba(74, 124, 106, 0.1);
    color: #4A7C6A;
    border-radius: 100px;
    padding: 2px 12px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* ── Workshops ── */
.workshops {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.workshop-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.workshop-card {
    background: #F0E8D8;
    border: 1px dotted #D4C5A9;
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1;
    min-width: 210px;
    max-width: 270px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workshop-card:nth-child(odd) {
    transform: rotate(-0.5deg);
}

.workshop-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.workshop-card:hover {
    box-shadow: 0 4px 16px rgba(92, 61, 46, 0.1);
}

.workshop-card:nth-child(odd):hover {
    transform: rotate(-0.5deg) translateY(-3px);
}

.workshop-card:nth-child(even):hover {
    transform: rotate(0.5deg) translateY(-3px);
}

.ws-title {
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #5C3D2E;
    margin-bottom: 0.5rem;
}

.ws-instructor {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #7A6555;
    margin-bottom: 0.25rem;
}

.ws-date {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: #D4C5A9;
    margin-bottom: 1rem;
}

.ws-join {
    display: inline-block;
    border: 1.5px solid #C4714E;
    color: #C4714E;
    border-radius: 100px;
    padding: 0.35rem 1.25rem;
    font-size: 0.8125rem;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.ws-join:hover {
    background: #C4714E;
    color: #FFFFFF;
}

/* ── Community Feed ── */
.community {
    max-width: 750px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feed-entry {
    border-bottom: 1px dotted #D4C5A9;
    padding-bottom: 1.75rem;
    position: relative;
    padding-left: 2.5rem;
}

.swirl-quote-accent {
    position: absolute;
    top: 0.25rem;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(212, 197, 169, 0.5);
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
}

.pull-quote {
    font-family: 'Cormorant', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.5rem;
    color: #5C3D2E;
    line-height: 1.3;
    margin-bottom: 0.85rem;
}

.feed-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.feed-author {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #4A7C6A;
}

.heart-count {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8125rem;
    color: #C4714E;
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
}

.heart-count:hover {
    transform: scale(1.1);
}

.heart-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.heart-icon.beat {
    animation: heart-beat 0.4s ease;
}

@keyframes heart-beat {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ── Footer ── */
.footer {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.swirl-footer {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto 1.25rem;
    display: block;
    border: 2px solid rgba(139, 94, 60, 0.15);
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
}

.footer-tagline {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #5C3D2E;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.75rem;
}

.flink {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #4A7C6A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.flink:hover {
    color: #5C3D2E;
}

.footer-copy {
    font-size: 0.75rem;
    color: #D4C5A9;
    margin-top: 0.5rem;
}

/* ── Fade-in Animation ── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .hero {
        padding: 5rem 1.5rem 3.5rem;
        min-height: 55vh;
    }

    .works-layout {
        flex-direction: column;
    }

    .work-main,
    .work-sidebar {
        min-width: 0;
    }

    .workshop-row {
        flex-direction: column;
        align-items: center;
    }

    .workshop-card {
        max-width: 100%;
    }

    .feed-entry {
        padding-left: 2rem;
    }

    .pull-quote {
        font-size: 1.25rem;
    }

    .featured-works,
    .workshops,
    .community,
    .footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 0.8rem;
    }

    .section-heading {
        font-size: 1.35rem;
    }

    .pull-quote {
        font-size: 1.15rem;
    }

    .swirl-hero-3 {
        display: none;
    }
}
