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

body {
    font-family: Arial, Tahoma, Verdana, sans-serif;
    background: #f5f5f5;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

h1 a {
    color: #0066cc;
    text-decoration: none;
}

h1 a:hover {
    text-decoration: underline;
}

h1 + p {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

h1 + p a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px dashed #999;
}

h1 + p a:hover {
    color: #333;
    border-bottom-color: #333;
}

/* Desktop: Grid layout */
    body > div {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    body > div > div {
        background: white;
        border-radius: 6px;
        padding: 0.75rem 1rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        transition: transform 0.15s, box-shadow 0.15s;
    }
    
    body > div > div:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    
    /* First paragraph: emoji + primary link */
    body > div > div > p:first-child {
        margin-left: 0;
        margin-bottom: 0.5rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    body > div > div > p:first-child > a {
        color: white;
        background: #0066cc;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        padding: 0.35rem 0.75rem;
        border-radius: 4px;
        transition: background 0.2s;
        display: inline-block;
        margin-left: 0.5rem;
    }
    
    body > div > div > p:first-child > a:hover {
        background: #0052a3;
    }
    
    /* Subsequent paragraphs: alternative links */
    body > div > div > p:not(:first-child) {
        margin-left: 0;
        margin-bottom: 0;
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    body > div > div > p:not(:first-child) > a {
        color: #0066cc;
        text-decoration: none;
        margin-right: 0.5rem;
        transition: color 0.2s;
    }
    
    body > div > div > p:not(:first-child) > a:hover {
        color: #0052a3;
        text-decoration: underline;
    }
    
    /* Visual separator between alternative links */
    body > div > div > p:not(:first-child) > a:not(:last-child)::after {
        content: "·";
        color: #ccc;
        margin-left: 0.5rem;
    }


/* About page styling */
main {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

h2 {
    margin-bottom: 1rem;
    color: #333;
}

h3 {
    margin: 1.5rem 0 0.75rem;
    color: #333;
    font-size: 1.1rem;
}

main p {
    margin-bottom: 1rem;
}

code {
    background: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

main a {
    color: #0066cc;
    text-decoration: none;
}

main a:hover {
    text-decoration: underline;
}

/* Footer styling */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ddd;
    text-align: center;
    color: #666;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: #0066cc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer em {
    font-size: 0.9rem;
}

/* About page specific footer */
main footer {
    margin-top: 2rem;
    padding-top: 0;
    border-top: none;
    font-size: 0.9rem;
    font-style: italic;
}
