/* matchoomnews.com — Tailor's Workshop for News */

:root {
    --linen-white: #faf7f2;
    --cream: #f5f0e8;
    --paper-warm: #f8f4ec;
    --warm-charcoal: #2c2a28;
    --parchment-border: #d8d0c4;
    --soft-gray: #7a7570;
    --chalk-blue: #4a7a9a;
    --sage-green: #5a8a6a;
    --warm-amber: #b08a40;
    --terracotta: #c07050;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--linen-white);
    color: var(--warm-charcoal);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ====================== FITTING ROOM (Hero) ====================== */
.fitting-room {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    padding: 60px 20px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.domain-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--warm-charcoal);
    margin-bottom: 8px;
}

.tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-style: italic;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: var(--soft-gray);
    margin-bottom: 40px;
}

/* Measuring tape */
.measuring-tape {
    width: 0;
    height: 12px;
    background: var(--chalk-blue);
    margin: 0 auto 40px;
    border-radius: 2px;
    overflow: hidden;
    animation: tape-extend 1.2s ease-out forwards;
    position: relative;
}

@keyframes tape-extend {
    0% { width: 0; }
    100% { width: 80%; }
}

.tape-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 8px;
    min-width: 100%;
}

.tape-mark {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.5rem;
    color: white;
    position: relative;
}

.tape-mark::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 1px;
    height: 4px;
    background: white;
    opacity: 0.6;
}

/* Swatches */
.sample-swatches {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.swatch {
    width: 100px;
    height: 80px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    transition: transform 0.3s ease;
    border: 2px dashed var(--parchment-border);
}

.swatch:hover {
    transform: translateY(-4px);
}

.swatch-1 { background: rgba(74, 122, 154, 0.1); border-color: var(--chalk-blue); }
.swatch-2 { background: rgba(90, 138, 106, 0.1); border-color: var(--sage-green); }
.swatch-3 { background: rgba(122, 117, 112, 0.1); border-color: var(--soft-gray); }

.swatch-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--soft-gray);
}

/* ====================== HOW IT WORKS ====================== */
.how-section {
    padding: 80px 20px;
    background: var(--linen-white);
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    color: var(--warm-charcoal);
    text-align: center;
    margin-bottom: 8px;
}

.thread-line {
    width: 40px;
    height: 2px;
    background: var(--chalk-blue);
    margin: 0 auto 40px;
    border-radius: 1px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--paper-warm);
    border: 1px solid var(--parchment-border);
    border-radius: 6px;
    padding: 30px 24px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pin decoration */
.step-pin,
.card-pin {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--chalk-blue);
    border: 2px solid var(--linen-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.step-number {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--chalk-blue);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.step-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--warm-charcoal);
    margin-bottom: 8px;
}

.step-desc {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--soft-gray);
    line-height: 1.7;
}

/* ====================== NEWS CARD GRID ====================== */
.news-section {
    padding: 80px 20px;
    background: var(--cream);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--soft-gray);
    background: transparent;
    border: 1px solid var(--parchment-border);
    border-radius: 20px;
    padding: 6px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--chalk-blue);
    color: var(--chalk-blue);
}

.filter-btn.active {
    background: var(--chalk-blue);
    border-color: var(--chalk-blue);
    color: white;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    background: var(--linen-white);
    border: 1px solid var(--parchment-border);
    border-radius: 6px;
    padding: 28px 22px 20px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.news-card.hidden {
    display: none;
}

.card-category {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--chalk-blue);
    display: block;
    margin-bottom: 8px;
}

.card-headline {
    font-family: 'Newsreader', serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--warm-charcoal);
    line-height: 1.4;
    margin-bottom: 10px;
}

.card-preview {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--soft-gray);
    line-height: 1.65;
    margin-bottom: 12px;
}

.card-meta {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.7rem;
    color: var(--parchment-border);
}

/* ====================== FOOTER ====================== */
.site-footer {
    background: var(--warm-charcoal);
}

.footer-stitch {
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--parchment-border) 0px,
        var(--parchment-border) 8px,
        transparent 8px,
        transparent 14px
    );
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 40px 20px;
}

.footer-brand {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--cream);
}

.footer-kr {
    font-size: 0.85rem;
    color: var(--soft-gray);
}

.footer-tag {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--soft-gray);
    letter-spacing: 0.05em;
    margin-top: 8px;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 600px) {
    .sample-swatches {
        gap: 10px;
    }

    .swatch {
        width: 80px;
        height: 65px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        gap: 6px;
    }

    .filter-btn {
        padding: 4px 14px;
        font-size: 0.75rem;
    }
}
