* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #faf9f6;
    color: #1a1a1a;
    line-height: 1.8;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.mag-header {
    text-align: center;
    padding: 4rem 0;
    border-bottom: 3px solid #1a1a1a;
    margin-bottom: 3rem;
}

.mag-header .issue {
    font-family: -apple-system, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #888;
    margin-bottom: 1rem;
}

.mag-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.mag-header .tagline {
    font-size: 1.25rem;
    font-style: italic;
    color: #666;
}

.mag-header .tagline::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.header-logo {
    height: 32px;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 36px;
    margin-bottom: 1rem;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #ddd;
}

.hero-slides {
    position: relative;
    overflow: hidden;
}

/* Hero article */
.hero-article {
    display: none;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    text-decoration: none;
    color: inherit;
    animation: slideIn 0.5s ease;
}

.hero-article.active {
    display: grid;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-nav:hover {
    background: #1a1a1a;
    color: #fff;
}

.hero-prev {
    left: -25px;
}

.hero-next {
    right: -25px;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: #1a1a1a;
    width: 30px;
    border-radius: 5px;
}

.hero-article:hover .hero-content h2 {
    color: #c41230;
}

.hero-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 4px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
}

.hero-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: #c41230;
    color: #fff;
    padding: 0.4rem 1rem;
    font-family: -apple-system, sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-badge.preparing {
    background: #888;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content .category {
    font-family: -apple-system, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c41230;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
    word-break: keep-all;
}

.hero-content .excerpt {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero-content .meta {
    font-family: -apple-system, sans-serif;
    font-size: 0.85rem;
    color: #888;
}

.hero-content .meta span {
    margin-right: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: -apple-system, sans-serif;
    font-size: 0.85rem;
    color: #1a1a1a;
    margin-top: 1.5rem;
    transition: gap 0.3s;
}

.hero-article:hover .read-more {
    gap: 0.75rem;
    color: #c41230;
}

/* Article grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.article-card {
    border-bottom: 1px solid #ddd;
    padding-bottom: 2rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s;
}

.article-card:hover h3 {
    color: #c41230;
}

.article-card .thumb {
    height: 200px;
    background: #e5e5e5;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-card .thumb i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.article-card .thumb .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #c41230;
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-family: -apple-system, sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.article-card .thumb .badge.preparing {
    background: #888;
}

.article-card .category {
    font-family: -apple-system, sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c41230;
    margin-bottom: 0.75rem;
}

.article-card .category.original {
    color: #00a67e;
}

.article-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.article-card .excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.article-card .meta {
    font-family: -apple-system, sans-serif;
    font-size: 0.8rem;
    color: #999;
}

.article-card.locked {
    opacity: 0.7;
}

.article-card.locked:hover {
    opacity: 1;
}

/* Quote section */
.quote-section {
    background: #1a1a1a;
    color: #fff;
    padding: 4rem;
    margin: 4rem -2rem;
    text-align: center;
    overflow: hidden;
}

.quote-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.quote-container:hover {
    transform: scale(1.02);
}

.quote-container:hover blockquote {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.quote-section blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-style: italic;
    margin: 0 auto 2rem;
    line-height: 1.4;
    position: relative;
}

.quote-section cite {
    font-family: -apple-system, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    display: block;
}

/* Glitch effect */
.quote-section.glitching blockquote,
.quote-section.glitching cite {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% {
        opacity: 1;
        transform: translate(0);
    }

    10% {
        opacity: 0.8;
        transform: translate(-2px, 1px);
        filter: hue-rotate(90deg);
    }

    20% {
        opacity: 0.6;
        transform: translate(2px, -1px);
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }

    30% {
        opacity: 0.4;
        transform: translate(-1px, 2px);
        filter: hue-rotate(180deg);
    }

    40% {
        opacity: 0.2;
        transform: translate(1px, -2px);
        text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
    }

    50% {
        opacity: 0;
        transform: translate(0);
    }

    60% {
        opacity: 0.2;
        transform: translate(2px, 1px);
        text-shadow: -2px 0 #00ffff, 2px 0 #ff00ff;
    }

    70% {
        opacity: 0.4;
        transform: translate(-2px, -1px);
        filter: hue-rotate(270deg);
    }

    80% {
        opacity: 0.6;
        transform: translate(1px, 2px);
        text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff;
    }

    90% {
        opacity: 0.8;
        transform: translate(-1px, -2px);
        filter: hue-rotate(360deg);
    }

    100% {
        opacity: 1;
        transform: translate(0);
        text-shadow: none;
        filter: none;
    }
}

.quote-section blockquote::before,
.quote-section blockquote::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
}

.quote-section.glitching blockquote::before {
    animation: glitchTop 0.3s ease-in-out;
    color: #ff00ff;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.quote-section.glitching blockquote::after {
    animation: glitchBottom 0.3s ease-in-out;
    color: #00ffff;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitchTop {

    0%,
    100% {
        opacity: 0;
        transform: translate(0);
    }

    20%,
    80% {
        opacity: 0.8;
        transform: translate(-3px, -2px);
    }

    40%,
    60% {
        opacity: 0.6;
        transform: translate(3px, 2px);
    }
}

@keyframes glitchBottom {

    0%,
    100% {
        opacity: 0;
        transform: translate(0);
    }

    20%,
    80% {
        opacity: 0.8;
        transform: translate(3px, 2px);
    }

    40%,
    60% {
        opacity: 0.6;
        transform: translate(-3px, -2px);
    }
}

/* Sidebar layout */
.sidebar-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.section-title {
    font-family: -apple-system, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1a1a1a;
}

.main-content .sidebar-item {
    cursor: pointer;
}

.main-content .sidebar-item:hover h5 {
    color: #c41230;
}

.sidebar-item.locked {
    opacity: 0.8;
}

.sidebar-item.locked:hover {
    opacity: 1;
}

.main-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.sidebar {
    border-left: 1px solid #ddd;
    padding-left: 2rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar h4 {
    font-family: -apple-system, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1a1a1a;
}

.sidebar-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.sidebar-item:hover h5 {
    color: #c41230;
}

.sidebar-item .num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ddd;
    line-height: 1;
    flex-shrink: 0;
}

.sidebar-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.sidebar-item p {
    font-size: 0.85rem;
    color: #888;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    font-family: -apple-system, sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.filter-btn:hover {
    border-color: #1a1a1a;
}

.filter-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.search-box i {
    color: #888;
}

.search-box input {
    border: none;
    outline: none;
    font-family: -apple-system, sans-serif;
    font-size: 0.9rem;
    width: 150px;
}

.article-card.hidden {
    display: none;
}

/* 더 보기 버튼 */
.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: -apple-system, sans-serif;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.show-more-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.show-more-btn i {
    transition: transform 0.3s;
}

.show-more-btn.expanded i {
    transform: rotate(180deg);
}

.article-grid.collapsed .article-card:nth-child(n+4) {
    display: none;
}

.article-grid.collapsed .article-card.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    border-top: 3px solid #1a1a1a;
    margin-top: 2rem;
}

footer .logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p {
    font-family: -apple-system, sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}


@media (max-width: 1024px) {
    .hero-article.active {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 300px;
    }

    .hero-nav {
        display: none;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .main-articles {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #ddd;
        padding-top: 2rem;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .mag-header h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .quote-section blockquote {
        font-size: 1.5rem;
    }
}