/* Base layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
    color: #222;
}

/* Header / Nav */
.site-header {
    background: #111827;
    color: #fff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.35);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 600;
}

    .site-title a {
        color: #e5e7eb;
        text-decoration: none;
    }

.site-nav {
    display: flex;
    gap: 1rem;
}

    .site-nav a {
        color: #cbd5f5;
        text-decoration: none;
        font-size: 0.95rem;
        padding-bottom: 0.2rem;
        border-bottom: 2px solid transparent;
    }

        .site-nav a:hover {
            color: #ffffff;
            border-bottom-color: #3b82f6;
        }

/* Main content */
.page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.page-title {
    margin-bottom: 0.5rem;
}

.page-lead {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

/* Card style containers */
.card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    margin-bottom: 1.5rem;
}

/* Forms */
form {
    display: grid;
    gap: 1rem;
    max-width: 420px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
}

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
    }

button,
input[type="submit"] {
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: #3b82f6;
    color: #ffffff;
    align-self: flex-start;
}

    button:hover,
    input[type="submit"]:hover {
        background: #2563eb;
    }

/* Lists */
ul {
    padding-left: 1.25rem;
}

    ul li {
        margin-bottom: 0.25rem;
    }

/* Result text */
.result {
    margin-top: 1rem;
    font-weight: 600;
    color: #065f46;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #9ca3af;
    padding: 1rem;
    font-size: 0.8rem;
}

.site-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.validation {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-top: 0.1rem;
    display: block;
}

.site-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.card a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.card a:hover {
    border-bottom-color: rgba(59, 130, 246, 0.6);
}
