:root {
    --bg-white: #ffffff;
    --text-dark: #222222;
    --text-muted: #555555;
    --accent-blue: #00265c;
    --border-gray: #e0e0e0;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

/* Global reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px; /* horizontal padding to avoid touching edges */
    gap: 12px;
}

/* Header and top link */
.returntop {
    width: 20vw;
    min-width: 185px;
    text-align: center;
}

header, footer {
    text-align: center;
    width: fit-content;
    max-width: 1100px;
    padding: 0 12px;
}

h1 {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

h2 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

hr {
    margin: 10px auto;
    border: none;
    height: 2px;
    background: var(--accent-blue);
    width: 45vw;
    min-width: 530px;
}

p {
    text-align: center;
    width: 45vw;
}
a {
    display: inline-block;
    text-decoration: none;
    color: var(--bg-white);
    background-color: var(--accent-blue);
    padding: 12px 25px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

a:hover {
    background-color: #003a8c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 420px) {
    body {
        padding: 16px 10px;
    }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 0.95rem; }
}

a:focus, button:focus {
    outline: 3px solid rgba(0, 38, 92, 0.2);
    outline-offset: 2px;
}
