* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #212529;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */

header {
    background-color: #1b2838;
    border-bottom: 3px solid #d4882e;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
}

/* ---------------------------------------------------------------------------
   Navigation (language switcher)
   --------------------------------------------------------------------------- */

nav {
    display: flex;
    gap: 0.8rem;
}

nav a {
    text-decoration: none;
    color: #8a9bb0;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    transition: color 0.2s, background-color 0.2s;
}

nav a:hover {
    color: #ffffff;
    background-color: #2a3d54;
}

nav a.active {
    color: #d4882e;
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Main content
   --------------------------------------------------------------------------- */

main {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 2.5rem;
}

/* ---------------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------------- */

h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1b2838;
    margin-bottom: 1rem;
}


h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1b2838;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------------
   Lists
   --------------------------------------------------------------------------- */

ul {
    list-style: none;
    margin-bottom: 1rem;
}

ul li {
    margin-bottom: 0.6rem;
    color: #495057;
}

ul li strong {
    color: #1b2838;
}

/* ---------------------------------------------------------------------------
   Links
   --------------------------------------------------------------------------- */

a {
    text-decoration: none;
    color: #d4882e;
}

a:hover {
    text-decoration: underline;
    color: #b8722a;
}

/* ---------------------------------------------------------------------------
   Certifications
   --------------------------------------------------------------------------- */

.cert-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
   Languages note
   --------------------------------------------------------------------------- */

.languages-note {
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
}

/* ---------------------------------------------------------------------------
   Root index and 404 (centred layout)
   --------------------------------------------------------------------------- */

.page-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    padding: 2rem;
}

.container h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1b2838;
    margin-bottom: 1.5rem;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.languages a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid #1b2838;
    border-radius: 4px;
    color: #1b2838;
    background-color: #ffffff;
    transition: background-color 0.2s, color 0.2s;
}

.languages a:hover {
    background-color: #1b2838;
    color: #ffffff;
    text-decoration: none;
}

/* ---------------------------------------------------------------------------
   404 page
   --------------------------------------------------------------------------- */

.error-code {
    font-size: 3rem;
    font-weight: 600;
    color: #1b2838;
    margin-bottom: 1.5rem;
}

.messages {
    margin-bottom: 2rem;
}

.messages p {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 0.4rem;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

footer {
    text-align: center;
    padding: 2rem;
    color: #8a9bb0;
    font-size: 0.85rem;
}
