/*
Theme Name: Allison Preston Studio
Theme URI: https://allisonpreston.com
Author: Preston Digital Group
Description: 세련되고 미니멀한 디자인으로 스마트 인증과 디지털 혁신을 다루는 전문 블로그 테마입니다. 타이포그래피 중심의 우아한 레이아웃과 반응형 디자인을 제공합니다.
Version: 1.8.3
License: GNU General Public License v2 or later
Text Domain: allison-preston-theme
*/

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ap-cream: #f5f5f0;
    --ap-white: #ffffff;
    --ap-charcoal: #2a2a2a;
    --ap-gray: #6b6b6b;
    --ap-light-gray: #e8e8e3;
    --ap-accent: #4a4a4a;
    --ap-border: #d4d4ce;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--ap-cream);
    color: var(--ap-charcoal);
    line-height: 1.7;
    font-size: 17px;
}

/* 타이포그래피 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* 컨테이너 */
.ap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.ap-narrow-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 헤더 */
.ap-header {
    background: var(--ap-white);
    border-bottom: 1px solid var(--ap-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.ap-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
}

.ap-site-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

.ap-site-title a {
    color: var(--ap-charcoal);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.ap-site-title a:hover {
    opacity: 0.6;
}

.ap-main-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.ap-nav-item {
    color: var(--ap-gray);
    text-decoration: none;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
    position: relative;
}

.ap-nav-item:hover {
    color: var(--ap-charcoal);
}

.ap-nav-item::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ap-charcoal);
    transition: width 0.3s ease;
}

.ap-nav-item:hover::after {
    width: 100%;
}

/* 모바일 메뉴 */
.ap-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ap-charcoal);
    cursor: pointer;
}

/* 히어로 섹션 */
.ap-hero {
    padding: 120px 0 100px;
    text-align: center;
    background: var(--ap-white);
}

.ap-hero-title {
    font-size: 72px;
    font-weight: 300;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ap-hero-subtitle {
    font-size: 20px;
    color: var(--ap-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.ap-hero-tagline {
    font-size: 18px;
    font-style: italic;
    color: var(--ap-accent);
    margin-top: 32px;
}

/* 이미지 갤러리 그리드 */
.ap-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 60px 0;
}

.ap-grid-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--ap-light-gray);
    transition: transform 0.3s ease;
}

.ap-grid-image:hover {
    transform: scale(1.02);
}

/* 회사 소개 섹션 */
.ap-about-section {
    padding: 100px 0;
    background: var(--ap-white);
}

.ap-about-header {
    text-align: center;
    margin-bottom: 60px;
}

.ap-about-label {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 16px;
}

.ap-about-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 32px;
}

.ap-about-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.8;
    color: var(--ap-gray);
}

/* 게시글 섹션 */
.ap-posts-section {
    padding: 100px 0;
}

.ap-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.ap-section-label {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 16px;
}

.ap-section-title {
    font-size: 54px;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.ap-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.ap-post-item {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
}

.ap-post-item:hover {
    opacity: 0.7;
}

.ap-post-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    background: var(--ap-light-gray);
    margin-bottom: 24px;
}

.ap-post-category {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 12px;
    display: block;
}

.ap-post-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.3;
}

.ap-post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ap-gray);
    margin-bottom: 16px;
}

.ap-post-meta {
    font-size: 14px;
    color: var(--ap-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 단일 게시글 */
.ap-single {
    padding: 60px 0 100px;
}

.ap-single-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.ap-single-category {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 20px;
}

.ap-single-title {
    font-size: 56px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 28px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ap-single-meta {
    font-size: 15px;
    color: var(--ap-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ap-single-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 60px;
    display: block;
}

.ap-single-content {
    max-width: 680px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.8;
}

.ap-single-content p {
    margin-bottom: 28px;
}

.ap-single-content h2 {
    font-size: 38px;
    font-weight: 400;
    margin: 60px 0 28px;
}

.ap-single-content h3 {
    font-size: 28px;
    font-weight: 400;
    margin: 48px 0 24px;
}

.ap-single-content a {
    color: var(--ap-charcoal);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ap-single-content img {
    max-width: 100%;
    height: auto;
    margin: 48px 0;
}

/* 특징 카드 */
.ap-features {
    background: var(--ap-white);
    padding: 100px 0;
}

.ap-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.ap-feature-card {
    text-align: center;
}

.ap-feature-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: block;
}

.ap-feature-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 16px;
}

.ap-feature-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ap-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 푸터 */
.ap-footer {
    background: var(--ap-charcoal);
    color: var(--ap-light-gray);
    padding: 80px 0 40px;
}

.ap-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.ap-footer-brand h3 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: var(--ap-white);
}

.ap-footer-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ap-light-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ap-footer-title {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--ap-white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ap-footer-links {
    list-style: none;
}

.ap-footer-links li {
    margin-bottom: 12px;
}

.ap-footer-links a {
    color: var(--ap-light-gray);
    text-decoration: none;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: color 0.3s ease;
}

.ap-footer-links a:hover {
    color: var(--ap-white);
}

.ap-footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 반응형 */
@media (max-width: 968px) {
    .ap-posts-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .ap-features-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .ap-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ap-main-nav {
        display: none;
        position: fixed;
        top: 77px;
        left: 0;
        right: 0;
        background: var(--ap-white);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        border-bottom: 1px solid var(--ap-border);
    }
    
    .ap-main-nav.active {
        display: flex;
    }
    
    .ap-menu-toggle {
        display: block;
    }
    
    .ap-hero-title {
        font-size: 48px;
    }
    
    .ap-section-title {
        font-size: 40px;
    }
    
    .ap-single-title {
        font-size: 40px;
    }
    
    .ap-footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .ap-image-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .ap-container,
    .ap-narrow-container {
        padding: 0 20px;
    }
    
    .ap-hero-title {
        font-size: 36px;
    }
    
    .ap-about-title {
        font-size: 32px;
    }
}
