@charset "UTF-8";

/* 메인 화면 */
.page-main .site-gap {
    display: none;
}

.main-hero {
    background: var(--site-surface);
}
.main-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 36px;
    text-align: center;
}
/* 예전 메인 배너(899x120). 늘리면 흐려지므로 원래 크기까지만 보여 준다. 밝은 그림이라 블랙 테마에 맞게 조금 눌러 준다. */
.main-banner {
    filter: brightness(0.86) saturate(0.9);
    transition: filter 0.2s;
    width: 100%;
    max-width: 899px;
    height: auto;
    margin-bottom: 24px;
    border-radius: 14px;
}
.main-banner:hover { filter: none; }
.main-hero h1 {
    margin-bottom: 8px;
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}
.main-hero p {
    margin-bottom: 20px;
    color: var(--site-muted);
    font-size: 17px;
}
/* 사진꾸미기 체험하기(주문 단계 위, PC) */
.trial-box {
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin-bottom: 24px;
    padding: 18px 24px;
    border: 1px solid var(--site-line2);
    border-radius: 16px;
    background: var(--site-surface2);
    text-align: left;
}
.trial-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
}
.trial-box span {
    color: var(--site-muted);
    font-size: 16px;
}
.trial-box .btn {
    flex: none;
}
/* 상품 주문 방법: 어두운 블록에 강조색 하나만 쓴다. */
.step-list {
    --step-gap: 32px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--step-gap);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.step-list li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 18px;
    border: 1px solid var(--site-line2);
    border-radius: 16px;
    background: var(--site-surface2);
}
/* 단계 번호는 블록 위의 띠 */
.step-list small {
    order: -1;
    align-self: stretch;
    padding: 7px;
    border-bottom: 1px solid var(--site-line2);
    border-radius: 15px 15px 0 0;
    background: #2a2d33;
    color: var(--site-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.step-list .bi {
    color: var(--site-ink);
    font-size: 36px;
    line-height: 1.2;
}
.step-list strong {
    padding: 0 8px;
    font-size: 18px;
    line-height: 1.35;
    word-break: keep-all;
}
/* 단계 사이 화살표: 앞 칸과의 간격 가운데에 그린다(테두리 1px 포함). */
.step-list li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(var(--step-gap) / -2 - 1px);
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--site-muted);
    border-right: 2px solid var(--site-muted);
    transform: translate(-50%, -50%) rotate(45deg);
}
.main-section {
    margin-top: 44px;
}
.main-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.main-title h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 20px; /* 최근게시글·최근댓글 제목과 같은 크기 */
    font-weight: 700;
}
.main-title a {
    color: var(--site-muted);
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.style-grid figure {
    margin: 0;
}
.style-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 8px;
    border-radius: 14px;
    object-fit: cover;
}
.style-grid figcaption {
    color: var(--site-muted);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}
.recent-grid h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--site-ink);
    font-size: 20px;
    font-weight: 700;
}
.recent-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.recent-grid li a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--site-line);
    color: var(--site-ink);
}
.recent-grid li a:hover {
    background: rgba(255, 255, 255, 0.04);
}
.recent-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recent-grid time {
    flex: none;
    color: var(--site-muted);
}

@media (max-width: 991.98px) {
    .step-list {
        --step-gap: 18px;
    }
    .step-list li + li::before {
        width: 7px;
        height: 7px;
    }
    .step-list small {
        font-size: 12px;
    }
    .step-list .bi {
        font-size: 28px;
    }
    .step-list strong {
        padding: 0 4px;
        font-size: 13px;
    }
    .recent-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .main-hero .container {
        padding-top: 16px;
        padding-bottom: 24px;
    }
    /* 좁은 화면에서는 글자가 읽히도록 배너의 왼쪽(문구 부분)을 크게 보여 준다. */
    .main-banner {
        aspect-ratio: 420 / 120;
        margin-bottom: 18px;
        object-fit: cover;
        object-position: left center;
    }
    /* 좁은 화면에서는 단계를 한 줄씩, 번호 띠는 왼쪽에 */
    .step-list {
        --step-gap: 20px;
        grid-template-columns: minmax(0, 1fr);
    }
    .step-list li {
        flex-direction: row;
        gap: 12px;
        min-height: 54px;
        padding: 0 12px 0 0;
        text-align: left;
    }
    .step-list li + li::before {
        top: calc(var(--step-gap) / -2 - 1px);
        left: 50%;
        transform: translate(-50%, -50%) rotate(135deg);
    }
    .step-list small {
        display: flex;
        flex: none;
        align-self: stretch;
        align-items: center;
        justify-content: center;
        width: 70px;
        border-right: 1px solid var(--site-line2);
        border-bottom: 0;
        border-radius: 15px 0 0 15px;
    }
    .step-list .bi {
        font-size: 24px;
    }
    .step-list strong {
        padding: 0;
        font-size: 16px;
    }
    .style-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        font-size: 14px;
    }
}
