/* Rock The Vote NZ theme
   Palette:
   Navy:   rgb(4,35,107)
   Red:    rgb(245,5,7)
   Ice:    rgb(247,248,249)
*/

:root {
    --brand-navy: rgb(4,35,107);
    --brand-red: rgb(245,5,7);
    --brand-ice: rgb(247,248,249);
    --brand-red-dark: rgb(210,0,5);
    --brand-navy-80: rgba(4,35,107,.80);
    --brand-navy-20: rgba(4,35,107,.20);
    --brand-navy-10: rgba(4,35,107,.10);
    --text: #111;
    --muted: #5b6a85;
    --border: var(--brand-navy-20);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
    color: var(--text);
    background: var(--brand-ice)
}

a {
    color: var(--brand-red);
    text-decoration: none
}

    a:hover {
        text-decoration: underline
    }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px
}

/* Header and navigation */
.site-header {
    background: var(--brand-navy);
    border-bottom: 3px solid var(--brand-red);
    color: #fff
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff
}

    .brand:hover {
        text-decoration: none
    }

.brand-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-red)
}

.brand-text .site-name {
    display: block;
    font-weight: 700;
    color: #fff
}

.brand-text .site-tagline {
    display: block;
    font-size: .9rem;
    color: #e6ecff
}

.site-nav {
    display: flex;
    gap: 14px
}

    .site-nav a {
        padding: 8px 10px;
        border-radius: 8px;
        color: #fff
    }

        .site-nav a:hover {
            background: rgba(255,255,255,.12)
        }

.nav-toggle {
    display: none;
    border: 1px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    padding: 8px 10px
}

/* Main content */
.main-content {
    padding: 24px 0
}

/* Hero */
.hero {
    padding: 24px 0 8px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center
}

.hero h1 {
    color: var(--brand-navy);
    margin: 0 0 8px
}

.hero p {
    color: #2b3553
}

.hero-photo img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12)
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--brand-red);
    color: #fff;
    font-weight: 700;
    border: 1px solid var(--brand-red);
    transition: background .15s ease,border-color .15s ease
}

    .btn:hover {
        background: var(--brand-red-dark);
        border-color: var(--brand-red-dark)
    }

    .btn.outline {
        background: transparent;
        color: var(--brand-red)
    }

        .btn.outline:hover {
            background: var(--brand-red);
            color: #fff
        }

/* Cards and sections */
.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: #fff
}

    .card h3 {
        color: var(--brand-navy)
    }

.muted {
    color: var(--muted)
}

/* Posts */
.post h2 {
    color: var(--brand-navy)
}

/* Forms */
.form {
    display: grid;
    gap: 12px;
    max-width: 640px
}

    .form label {
        font-weight: 600;
        color: var(--brand-navy)
    }

    .form input, .form textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid var(--brand-navy-20);
        border-radius: 10px;
        background: #fff
    }

        .form input:focus, .form textarea:focus {
            outline: none;
            border-color: var(--brand-navy);
            box-shadow: 0 0 0 3px var(--brand-navy-10)
        }

.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px
}

.notice {
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px
}

    .notice.success {
        background: #eaf1ff;
        border: 1px solid var(--brand-navy-20);
        color: var(--brand-navy)
    }

/* Footer */
.site-footer {
    background: var(--brand-navy);
    color: #fff;
    margin-top: 32px
}

.footer-inner {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.site-footer a {
    color: #fff
}

    .site-footer a:hover {
        text-decoration: underline
    }

/* Responsive */
@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .cards {
        grid-template-columns: 1fr
    }

    .site-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--brand-navy);
        position: absolute;
        right: 16px;
        top: 68px;
        padding: 8px;
        border: 1px solid rgba(255,255,255,.2);
        border-radius: 8px
    }

    .nav-toggle {
        display: block
    }
}
