/* fledgr.net (Story 6.9). System fonts only and no outside resources, so there is nothing third-party to load. */

/* Brand values mirror the app's asset catalog (App/Theme.swift, Story 6.6); Infra/tests/test_site_files.py
   checks that they match and that every text pair meets WCAG AA. Hex colors live only in these tokens. */
:root {
    --brand-primary: #355E3B;
    --on-brand-primary: #FFFFFF;
    --brand-secondary: #C8A27C;
    --on-brand-secondary: #3B2A1A;
    --background: #FFFFFF;
    --text: #1C1C1E;
    --muted: #5C5C61;
    --rule: #E2E2E2;
    --link: var(--brand-primary);
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand-primary: #477E4F;
        --background: #121212;
        --text: #EDEDED;
        --muted: #A3A3A8;
        --rule: #2E2E2E;
        /* Hunter green is under 4.5:1 on a dark page, so dark-mode links use oak (8:1). */
        --link: var(--brand-secondary);
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}

a {
    color: var(--link);
    text-underline-offset: 0.15em;
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.wrap {
    max-width: 42rem;
    margin: 0 auto;
    padding-inline: 16px;
}

/* Header: a brand band with the logo and the two pages. */

.site-header {
    background: var(--brand-primary);
    color: var(--on-brand-primary);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

.site-header a {
    color: var(--on-brand-primary);
    text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
    text-decoration: underline;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.brand img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 22%;
}

.site-header nav {
    display: flex;
    gap: 1.25rem;
    font-weight: 600;
}

/* Content */

main {
    padding-block: 2rem 3rem;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

h2 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 2.25rem 0 0.5rem;
}

h3 {
    font-size: 1.0625rem;
    margin: 1.5rem 0 0.25rem;
}

p,
ul {
    margin: 0 0 1rem;
}

li {
    margin-bottom: 0.35rem;
}

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

/* Home */

.hero {
    text-align: center;
    padding: 2rem 0 1rem;
}

.hero img {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 22%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-top: 1rem;
}

.lead {
    font-size: 1.25rem;
}

.badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--brand-secondary);
    color: var(--on-brand-secondary);
    font-weight: 700;
}

.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 0;
    list-style: none;
    font-weight: 600;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--rule);
    padding: 1.5rem 0 2.5rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.site-footer p {
    margin: 0 0 0.5rem;
}

.license {
    color: var(--muted);
    font-size: 0.875rem;
}
