/* CSS Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

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

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
    margin: 0 0 1rem 0;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
button, a[role="button"] {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #007bff;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

button:hover, a[role="button"]:hover {
    background: #f5f5f5;
    text-decoration: none;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 400px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    nav > div {
        width: 100%;
        justify-content: space-between;
    }

    nav a[role="button"] {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .container {
        max-width: 100%;
    }

    nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav > div {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    nav a[role="button"] {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}
