/* Shared styles used by every page: base reset, page shell, header, nav, footer */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Color and design tokens */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --bg-body: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --header-bg: rgba(169, 169, 169, 0.85);
    --header-text: #ffffff;
    --header-hover: #2f4f4f; /* darkslategray */
    --footer-bg: darkgray;
    --footer-text: #ffffff;
    --button-bg: #00539c;
    --button-hover: #003a6d;
    --button-text: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.06);
    --tag-bg: #f1f5f9;
    --tag-text: #475569;
    --focus-ring: #0284c7;
}

/* Automatic Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0f172a;
        --text-primary: #f8fafc;
        --text-secondary: #94a3b8;
        --header-bg: rgba(30, 41, 59, 0.85);
        --header-text: #f8fafc;
        --header-hover: #334155;
        --footer-bg: #1e293b;
        --footer-text: #94a3b8;
        --button-bg: #0284c7;
        --button-hover: #0369a1;
        --button-text: #ffffff;
        --card-bg: #1e293b;
        --card-border: #334155;
        --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
        --card-shadow-hover: 0 14px 28px -4px rgba(0, 0, 0, 0.5);
        --tag-bg: #334155;
        --tag-text: #cbd5e1;
        --focus-ring: #38bdf8;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Sticky Header with Frosted Glass */
.landing-header {
    position: sticky;
    top: 12px;
    z-index: 1000;
    margin: 12px auto;
    width: calc(100% - 24px);
    max-width: 960px;
    font-weight: 600;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-header ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.landing-header a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--header-text);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.landing-header a:hover {
    background-color: var(--header-hover);
}

/* Accessible focus outline */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.landing-footer {
    margin-top: 40px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    justify-content: center;
    font-size: 0.95rem;
}

.landing-footer p {
    margin: 0;
}

/* Rounded call-to-action buttons used for content links */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 8px;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.button:hover {
    background-color: var(--button-hover);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

/* Responsive navigation for smaller screens */
@media (max-width: 640px) {
    .landing-header {
        top: 8px;
        margin: 8px;
        width: calc(100% - 16px);
        padding: 0.75rem 1rem;
    }

    .landing-header ul {
        gap: 0.75rem;
        justify-content: center;
    }

    .landing-header a {
        padding: 6px 12px;
        font-size: 0.95rem;
    }
}
