:root {
    --primary-color: #007AFF;
    --text-color: #1d1d1f;
    --secondary-text: #86868b;
    --background: #ffffff;
    --border-color: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f5f5f7;
        --secondary-text: #a1a1a6;
        --background: #1d1d1f;
        --border-color: #424245;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

.meta {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 5px;
}

/* Index page styles */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.app-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.app-card p {
    color: var(--secondary-text);
    margin-bottom: 15px;
}

.app-links {
    display: flex;
    gap: 15px;
}
