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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #1a1a1a;
    padding-bottom: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #f5f5f5;
}

body.light h1,
body.theme-light h1 {
    color: #2f2319;
}

.subtitle {
    font-size: 1rem;
    color: #a0a0a0;
    margin: 0;
}

body.light .subtitle,
body.theme-light .subtitle {
    color: #6a584b;
}

.category {
    margin-bottom: 3rem;
}

.category h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #d0d0d0;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

body.light .category h2,
body.theme-light .category h2 {
    color: #4b3323;
    border-bottom-color: #bca489;
}

.tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    background: #252525;
    padding: 1.75rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    border: 1px solid #333;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    border-color: #444;
    background: #2a2a2a;
}

.tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex: 0 0 48px;
    color: var(--ember-accent-strong);
}

.tool-icon svg {
    width: 100%;
    height: 100%;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0;
    color: #f0f0f0;
    line-height: 1.2;
}

.tool-card p {
    font-size: 0.95rem;
    margin: 0;
    color: #b0b0b0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.25rem;
    }
    
    header {
        margin-bottom: 2.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .category {
        margin-bottom: 2.5rem;
    }
    
    .category h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .tools {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tool-card {
        padding: 1.5rem;
        gap: 0.85rem;
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
    }
    
    .tool-card h3 {
        font-size: 1.1rem;
    }
    
    .tool-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .category h2 {
        font-size: 1.1rem;
    }
    
    .tool-card {
        padding: 1.25rem;
    }
}
