:root {
    color-scheme: light;
    --background: #fffaf0;
    --surface: #ffffff;
    --surface-soft: #f1f4e8;
    --text: #243127;
    --muted: #59645b;
    --primary: #2f643f;
    --primary-dark: #20482d;
    --accent: #b94f2c;
    --border: #cbd4c7;
    --focus: #164e9b;
    --shadow: 0 12px 32px rgb(36 49 39 / 10%);
    --radius: 1rem;
    --content-width: 72rem;
    font-family: ui-rounded, "Avenir Next", Avenir, system-ui, sans-serif;
}



/* PAGE DEFINITION */
html {
    height: 100%;
    background:
        radial-gradient(circle at bottom right, rgb(224 177 94 / 18%), transparent 28rem),
        var(--background);
}

body {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}



/* HEADER & FOOTER */
header,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
    padding-block: 1.25rem;
}

header nav,
footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--primary-dark);
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
}

footer {
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.ai-disclosure { display: grid; gap: 1rem; grid-template-columns: 48px auto; align-items: stretch; }
.ai-disclosure p { margin-block: 0; max-width: 330px }
.ai-rating-visual { position: relative; width: 48px; min-height: 0; }
.ai-rating-badge { position: absolute; top: 0; left: 0; }



/* CONTENT DEFINTION */
main {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
}

.content-page {
    padding-block: clamp(2rem, 7vw, 5rem);
    padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

.intro { padding: clamp(2rem, 7vw, 5rem) 0 2rem; }

.eyebrow {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.25rem, 8vw, 4.5rem);
    line-height: 1.05;
    margin: .25em 0;
}

h2 { line-height: 1.2; }

.content-page,
.content-block {
    background: rgb(255 255 255 / 88%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.content-block { padding: clamp(1rem, 4vw, 2rem); }



/* CONTENT */
a { color: var(--primary-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .16em; }

:focus-visible {
    outline: .2rem solid var(--focus);
    outline-offset: .2rem;
}



/* CONTROLS */
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .7rem 1.1rem;
    border: 2px solid var(--primary);
    border-radius: .65rem;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
button:disabled { opacity: .6; cursor: wait; }



/* MEDIA QUERIES */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --background: #0f1612;
        --surface: #171f1a;
        --surface-soft: #1f2a23;
        --text: #e6efe9;
        --muted: #a6b4ab;
        --primary: #78c28f;
        --primary-dark: #5aa373;
        --accent: #e07b59;
        --border: #334238;
        --focus: #5aa0ff;
        --shadow: 0 12px 32px rgb(0 0 0 / 45%);
    }
}

@media (min-width: 44rem) {
    .intro h1 { font-size: clamp(2.5rem, 4.8vw, 3.5rem); white-space: nowrap; }
}

@media (max-width: 38rem) {
    header, footer { align-items: flex-start; flex-direction: column; }
}
