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

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700&display=swap');

body {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    background: #000000;
    color: #fffef7;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 1.3125em;
}

/* 한글 폰트 적용 - 전체를 Noto Sans KR로 통일 */
body[data-lang="ko"],
body[data-lang="ko"] * {
    font-family: 'Noto Sans KR', Helvetica, Arial, sans-serif !important;
}

/* 제목용 한글 폰트 - 더 굵은 웨이트 */
body[data-lang="ko"] h1,
body[data-lang="ko"] h2,
body[data-lang="ko"] h3,
body[data-lang="ko"] h4,
body[data-lang="ko"] h5,
body[data-lang="ko"] h6,
body[data-lang="ko"] .retro-name,
body[data-lang="ko"] .content-title {
    font-family: 'Noto Sans KR', Helvetica, Arial, sans-serif !important;
    font-weight: 700 !important;
}

/* 특별한 요소들 - 적절한 웨이트 조정 */
body[data-lang="ko"] .retro-date {
    font-weight: 600 !important;
}

body[data-lang="ko"] .retro-meta {
    font-weight: 400 !important;
}

/* 영문 폰트 유지 */
body[data-lang="en"],
body[data-lang="en"] * {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif !important;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    width: 90%;
    background: #000000;
}

header {
    background: #000000;
    color: #fffef7;
    padding: 4rem 0 2rem 0;
    text-align: center;
    border-bottom: 3px solid #fede00;
    margin-bottom: 2rem;
}

h1 {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    color: #fffef7;
    line-height: 1.1;
    letter-spacing: 1px;
}

.subtitle {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-size: 1.2rem;
    color: #fede00;
    font-style: italic;
    letter-spacing: 0.5px;
}

nav {
    background: #000000;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
}

nav a {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    color: #fffef7;
    text-decoration: none;
    margin: 0 3rem 0 0;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
}

nav a:last-child {
    margin-right: 0;
}

nav a:hover,
nav a:focus {
    color: #fede00;
    text-decoration: underline;
}

nav a.active {
    color: #fede00;
    font-weight: 600;
}

.language-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: 1px solid #333333;
    color: #fffef7;
    padding: 0.5rem 1rem;
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-toggle:hover {
    border-color: #fede00;
    color: #fede00;
}

.content {
    max-width: 800px;
    width: 80%;
    margin: 0 auto;
    padding: 0 0 2rem 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

h2 {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    color: #fffef7;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 3rem 0 2rem 0;
    line-height: 1.2;
    text-align: center;
}

.retro-list {
    list-style: none;
    padding: 0;
}

.retro-item {
    padding: 2rem;
    margin: 2rem 0;
    background: #111111;
    border: 1px solid #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.retro-item:hover {
    background: #1a1a1a;
    border-color: #fede00;
    transform: translateY(-2px);
}

.retro-date {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-size: 0.9rem;
    color: #fede00;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.retro-name {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: #fffef7;
    line-height: 1.3;
}

.retro-meta {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-size: 1rem;
    color: #cccccc;
    font-style: italic;
}

.special {
    background: #1a1a1a;
    border: 2px solid #fede00;
    box-shadow: 0 0 0 1px rgba(254, 222, 0, 0.2);
}

.special:hover {
    background: #222222;
    border-color: #fede00;
}

.retro-detail {
    padding: 3rem;
    background: #111111;
    border: 1px solid #333333;
    margin: 2rem 0;
    color: #fffef7;
}

.retro-detail h1, .retro-detail h2, .retro-detail h3, .retro-detail h4, .retro-detail h5, .retro-detail h6 {
    color: #fffef7;
}

.retro-detail p, .retro-detail div, .retro-detail span, .retro-detail li {
    color: #fffef7;
}

.retro-detail strong {
    color: #fede00;
}

.back-link {
    display: inline-block;
    margin: 2rem 0;
    color: #fede00;
    text-decoration: none;
    cursor: pointer;
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #fffef7;
    text-decoration: underline;
}

.manual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.manual-item {
    padding: 2rem;
    background: #111111;
    border: 1px solid #333333;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.manual-item:hover {
    background: #1a1a1a;
    border-color: #fede00;
    transform: translateY(-2px);
}

.manual-item h3 {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    color: #fffef7;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.manual-item p {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.manual-card {
    padding: 2rem;
    background: #111111;
    border: 1px solid #333333;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.manual-card:hover {
    background: #1a1a1a;
    border-color: #fede00;
    transform: translateY(-2px);
}

.manual-card strong {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    color: #fffef7;
    font-size: 1.2rem;
    font-weight: 600;
}

.download-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: #fede00;
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #e6ca00;
    transform: translateY(-1px);
}

footer {
    background: #000000;
    color: #cccccc;
    text-align: center;
    padding: 3rem 0;
    font-size: 0.9rem;
    margin-top: 4rem;
    border-top: 1px solid #333333;
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
}

.intro-box {
    background: #111111;
    border-left: 4px solid #fede00;
    padding: 3rem;
    margin: 3rem 0;
    border-radius: 0;
}

.intro-box h2 {
    margin-top: 0;
    color: #fffef7;
}

.intro-box p {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    color: #cccccc;
    font-size: 1.2rem;
    line-height: 1.6;
}

.popos-note {
    background: #1a1a1a;
    border-left: 4px solid #fede00;
    color: #cccccc;
    margin: 2rem 0;
    padding: 2rem;
    font-style: italic;
    border-radius: 0;
}

.popos-note strong {
    color: #fede00;
    font-weight: bold;
}

.timeline-simple {
    padding: 3rem;
    background: #111111;
    border: 1px dashed #333333;
}

.timeline-item {
    margin: 2rem 0;
    padding-left: 2rem;
    color: #fffef7;
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
}

.counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000000;
    color: #fede00;
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    border: 1px solid #fede00;
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .container {
        width: 95%;
    }

    nav a {
        margin: 0 1rem 0 0;
        font-size: 1rem;
    }

    .content {
        width: 90%;
    }

    .manual-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .retro-item {
        padding: 1.5rem;
    }

    .counter {
        display: none;
    }
}

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

    nav a {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }

    nav {
        padding: 1rem 0;
    }

    .language-toggle {
        top: 1rem;
        right: 1rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}