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

:root {
    --bg-color: #EDE9DD;
    --text-color: #111;
    --link-color: #5B4AE5;
    --secondary-text: #666;
    --border-color: #d9d5c9;
    --accent-color: #5B4AE5;
    --transition-base: 0.2s ease;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --link-color: #7b7fef;
    --secondary-text: #999;
    --border-color: #333;
    --accent-color: #7b7fef;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 20px;
}

h1 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--link-color) !important;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size var(--transition-base);
    padding-bottom: 2px;
}

a:hover {
    color: var(--link-color) !important;
    background-size: 100% 1px;
}

ul {
    list-style: none;
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
    transition: transform var(--transition-base);
}

/* Hover animation for list items */
ul li:hover {
    transform: translateX(4px);
}

.intro {
    margin-bottom: 30px;
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
}

.popular-pieces {
    margin-bottom: 30px;
}

.popular-pieces h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.popular-pieces ul {
    padding-left: 20px;
    list-style: decimal;
}

.popular-pieces li {
    margin-bottom: 8px;
    font-size: 16px;
}

.products {
    margin: 40px 0;
}

.products h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.products-intro {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--secondary-text);
}

.products-list {
    list-style: disc;
    padding-left: 20px;
}

.products-list li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
}

.links {
    text-align: left;
    margin: 30px 0;
    font-size: 16px;
}

.contact {
    text-align: left;
    margin-top: 30px;
    font-size: 16px;
}

.blog-list {
    margin-top: 30px;
}

.blog-item {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    transition: transform var(--transition-base);
}

.blog-item:hover {
    transform: translateX(4px);
}

.blog-date {
    color: var(--secondary-text);
    font-size: 14px;
    margin-left: 15px;
    flex-shrink: 0;
}

.blog-title {
    flex-grow: 1;
}

.memos-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.memos-section h3 {
    margin-bottom: 20px;
}

.memo-item {
    margin-bottom: 15px;
    transition: transform var(--transition-base);
}

.memo-item:hover {
    transform: translateX(4px);
}

.memo-description {
    color: var(--secondary-text);
    font-size: 14px;
    margin-left: 20px;
    margin-top: 5px;
}

/* New theme switcher button style */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    transition: all var(--transition-base);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switcher:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.theme-switcher:active {
    transform: scale(0.95);
}

.article-header {
    margin-bottom: 40px;
}

.article-date {
    color: var(--secondary-text);
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.article-content {
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul {
    list-style: disc;
    margin-left: 30px;
    margin-bottom: 20px;
}

.article-content blockquote {
    border-left: 3px solid #ddd;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.acknowledgments {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.nav-link {
    text-align: center;
    margin: 40px 0;
    font-size: 14px;
}

/* Mobile Styles - Tablets */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    h1 {
        font-size: 26px;
    }
}

/* Mobile Styles - Phones */
@media (max-width: 600px) {
    .container {
        padding: 30px 15px;
    }
    
    h1 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    h2 {
        font-size: 15px;
        margin-top: 25px;
    }
    
    p, li, .intro {
        font-size: 15px;
    }
    
    .blog-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-date {
        margin-left: 0;
        margin-top: 5px;
    }
    
    /* Theme switcher improvements */
    .theme-switcher {
        width: 44px;
        height: 44px;
        padding: 10px;
        font-size: 18px;
        top: 15px;
        right: 15px;
    }
    
    /* Better link spacing for touch */
    .links p a, .contact p a {
        padding: 5px;
        display: inline-block;
    }
    
    /* Products list mobile optimization */
    .products-list {
        padding-left: 15px;
    }
    
    .products-list li {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    
    /* Navigation link spacing */
    .nav-link {
        font-size: 16px !important;
    }
}

/* Mobile Styles - Small Phones */
@media (max-width: 375px) {
    .container {
        padding: 25px 12px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    p, li {
        font-size: 14px;
    }
    
    /* Prevent overflow for long text */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Even smaller theme button adjustments */
    .theme-switcher {
        font-size: 16px;
    }
}