/* Weerstation Kaulille - shared styles: design tokens, page base, header, navigation, layout, footer */

:root {
    --bg: #eef4fb;
    --card: #ffffff;
    --ink: #12304f;
    --muted: #6d86a3;
    --line: #dbe6f3;
    --blue: #2a6fdb;
    --blue-dark: #1b4fa0;
    --blue-soft: #e6f0ff;
    --cold: #2a6fdb;
    --warm: #e0584f;
    --sun: #f5a623;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(18,48,79,.06), 0 6px 18px rgba(18,48,79,.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

header {
    /* colours are set by js/headertheme.js from the height of the sun; the values below are the daytime fallback */
    background: linear-gradient(135deg, var(--hdr-a, #16458f), var(--hdr-b, #2160c4) 55%, var(--hdr-c, #2a6fdb));
    color: #fff;
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 22px;
}

.brand {
    margin: 0;
    line-height: 0;
}

.brand img {
    height: 46px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .95rem;
    opacity: .85;
    transition: background .15s, opacity .15s;
}

nav a:hover {
    background: rgba(255,255,255,.16);
    opacity: 1;
}

nav a.active {
    background: #fff;
    color: var(--blue-dark);
    opacity: 1;
    font-weight: 600;
}

/* card base (the NOAA and "over mij" pages; the weather tiles extend it in actueel.css) */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

main {
    padding: 20px 0 40px;
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
    padding-bottom: 30px;
}
