/* Notion-like Design System */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
    color: #37352f;
    background-color: #ffffff;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-content {
    max-width: 708px;
    margin: 0 auto;
    padding: 96px 40px 96px;
    box-sizing: border-box;
    width: 100%;
}

h1 {
    font-weight: 700;
    font-size: 40px;
    margin-top: 1em;
    margin-bottom: 0.25em;
    line-height: 1.2;
}

h2 {
    font-weight: 600;
    font-size: 30px;
    margin-top: 1.4em;
    margin-bottom: 1px;
}

h3 {
    font-weight: 600;
    font-size: 24px;
    margin-top: 1em;
    margin-bottom: 1px;
}

p {
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 16px;
    color: #37352f;
}

ul {
    padding-left: 24px;
    margin-top: 4px;
    margin-bottom: 4px;
}

li {
    margin-bottom: 4px;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(55, 53, 47, 0.4);
}

a:hover {
    text-decoration-color: #37352f;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    background-color: #f1f1f0;
    border-radius: 6px;
    padding: 2px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    z-index: 100;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    color: #37352f !important;
    border-radius: 4px;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.lang-btn:hover:not(.active) {
    background-color: #e8e8e8;
}

.lang-btn.active {
    background-color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    pointer-events: none;
}

/* Page icon for index */
.page-icon {
    font-size: 78px;
    margin-bottom: 24px;
    display: block;
}

/* Page links for index */
.notion-page-link {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    margin: 4px 0;
    border-radius: 4px;
    text-decoration: none !important;
    color: #37352f !important;
    transition: background-color 0.1s ease;
}

.notion-page-link:hover {
    background-color: rgba(55, 53, 47, 0.08);
}

.notion-page-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 18px;
}

/* Responsive Media Queries */
@media (max-width: 600px) {
    .page-content {
        padding: 80px 24px 48px;
    }
    
    h1 {
        font-size: 32px;
        margin-top: 0.8em;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    p, li {
        font-size: 15px;
    }
    
    .page-icon {
        font-size: 60px;
        margin-bottom: 16px;
    }

    .lang-switcher {
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 400px) {
    .page-content {
        padding: 72px 16px 36px;
    }
}
