﻿:root {
    --page-bg: #dfeadf;
    --surface: #c8ddc8;
    --surface-soft: #e8f1e6;
    --surface-strong: #aac9ad;
    --text: #173f2b;
    --text-muted: #355f48;
    --accent: #2f6f4e;
    --accent-hover: #255b40;
    --border: #84ad8e;
    --focus: #9a6b1f;
    --shadow: rgba(23, 63, 43, 0.12);
    --radius: 1rem;
    --content-width: 72rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behaviour: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: "Atkinson Hyperlegible", "Trebuchet MS", Verdana, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--accent);
    text-underline-offset: 0.2em;
}

    a:hover {
        color: var(--accent-hover);
    }

    a:focus-visible,
    button:focus-visible {
        outline: 0.25rem solid var(--focus);
        outline-offset: 0.2rem;
    }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -5rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--surface-soft);
    color: var(--text);
    border: 0.15rem solid var(--focus);
    border-radius: 0.5rem;
}

    .skip-link:focus {
        top: 1rem;
    }

.site-header {
    background: var(--surface-strong);
    border-bottom: 0.15rem solid var(--border);
}

.header-inner,
.main-content,
.footer-inner {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
}

.header-inner {
    padding: 1.5rem 0;
}

.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
}

.site-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.site-tagline {
    max-width: 48rem;
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.site-nav {
    margin-top: 1.25rem;
}

    .site-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .site-nav a {
        display: inline-block;
        padding: 0.55rem 0.8rem;
        border-radius: 0.5rem;
        background: var(--surface-soft);
        color: var(--text);
        font-weight: 700;
        text-decoration: none;
    }

        .site-nav a:hover {
            background: #d8e7d6;
        }

.main-content {
    padding: 2rem 0 3rem;
}

.hero,
.section-card,
.cta-card {
    border: 0.1rem solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 0.35rem 1rem var(--shadow);
}

.hero {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--surface-soft);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: center;
}

    .hero h2 {
        margin-top: 0;
        font-size: clamp(1.6rem, 3vw, 2.4rem);
        line-height: 1.25;
    }

    .hero p {
        max-width: 52rem;
    }

.hero-image {
    width: 250px;
    height: auto;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

@media (max-width: 48rem) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-image {
        justify-self: center;
    }
}

.section-card,
.cta-card {
    padding: 1.5rem;   
}

    .section-card h2,
    .cta-card h2 {
        margin-top: 0;
        line-height: 1.3;
    }

.content-grid > section:nth-child(odd) {
    background: var(--surface);
}

.content-grid > section:nth-child(even) {
    background: var(--surface-soft);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.button {
    display: inline-block;
    min-width: 12rem;
    padding: 0.8rem 1rem;
    border: 0.15rem solid var(--accent);
    border-radius: 0.65rem;
    background: var(--accent);
    color: #eef5ec;
    font-weight: 700;
    text-align: centre;
    text-decoration: none;
}

    .button:hover {
        background: var(--accent-hover);
        color: #eef5ec;
    }

.button-secondary {
    background: transparent;
    color: var(--accent);
}

    .button-secondary:hover {
        background: #d5e5d3;
        color: var(--accent-hover);
    }

.notice {
    margin-top: 1rem;
    padding: 1rem;
    border-left: 0.35rem solid var(--accent);
    border-radius: 0.4rem;
    background: #d4e5d2;
}

.site-footer {
    background: var(--surface-strong);
    border-top: 0.15rem solid var(--border);
}

.footer-inner {
    padding: 1.5rem 0;
}

    .footer-inner p {
        margin: 0.35rem 0;
    }

@media (min-width: 50rem) {
    .content-grid.two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behaviour: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
