/*
 * NatCap Pastoral landing page.
 * Tokens mirror the NatCap dashboard (natcap-dashboard/docs/BRAND.md):
 * forest green from the icon set, earth accent, paper surfaces, Instrument Sans.
 * Everything is self-hosted. No CDNs, no third-party requests.
 */
:root {
    color-scheme: light;
    --forest-50: #f2f7f3;
    --forest-100: #e3ede6;
    --forest-200: #c2d7c9;
    --forest-300: #94b7a0;
    --forest-600: #3b634b;
    --forest-700: #2f4f3c;
    --forest-800: #243c2e;
    --forest-900: #1c3024;
    --forest-950: #15201a;
    --earth-100: #f5e9d0;
    --earth-300: #dcb466;
    --earth-500: #b8781f;
    --earth-600: #96611a;

    --surface: #fbfaf7;
    --surface-raised: #ffffff;
    --surface-sunken: #f3f1ea;
    --text-1: #1a1f1b;
    --text-2: #4b5450;
    --text-3: #6b746f;
    --border: #e4e2da;
    --brand: var(--forest-800);
    --brand-soft: var(--forest-100);
    --on-brand: #ffffff;
    --accent: var(--earth-600);
    --accent-soft: var(--earth-100);

    --radius-card: 1rem;
    --shadow-card: 0 1px 2px rgb(26 31 27 / 0.04), 0 8px 24px -12px rgb(26 31 27 / 0.12);
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --measure: 72rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --surface: #111814;
        --surface-raised: #182119;
        --surface-sunken: #0d120f;
        --text-1: #eef2ee;
        --text-2: #b7c1ba;
        --text-3: #8d9992;
        --border: #273329;
        --brand: var(--forest-300);
        --brand-soft: #1f2d24;
        --on-brand: var(--forest-950);
        --accent: var(--earth-300);
        --accent-soft: #2d2415;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--surface);
    color: var(--text-1);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface-raised); color: var(--text-1); padding: 0.5rem 1rem; border-radius: 0.5rem; z-index: 50; }
.skip:focus { left: 0.5rem; }

.eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.muted { color: var(--text-2); }

/* ---- Buttons (same shape as the dashboard's .btn) ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border-radius: 0.75rem; padding: 0.8rem 1.25rem;
    font: inherit; font-size: 0.9375rem; font-weight: 600; text-decoration: none;
    border: 1px solid transparent; cursor: pointer; transition: filter 0.15s, background 0.15s;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-light { background: #fff; color: var(--forest-900); }
.btn-light:hover { background: var(--forest-50); }
.btn-outline-light { border-color: rgb(255 255 255 / 0.45); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.1); }

/* ---- Header ---- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark svg { height: 2rem; width: auto; flex: none; }
.wordmark span span { font-weight: 400; opacity: 0.85; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9375rem; font-weight: 500; }
.site-nav a { text-decoration: none; opacity: 0.9; }
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.3em; }
.site-nav .btn { opacity: 1; padding: 0.55rem 1rem; text-decoration: none; }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }

/* ---- Hero ---- */
.hero {
    position: relative; color: #fff; isolation: isolate;
    min-height: min(92svh, 52rem); display: flex; align-items: flex-end;
    background: var(--forest-900);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgb(21 32 26 / 0.62) 0%, rgb(21 32 26 / 0.12) 30%, rgb(28 48 36 / 0.55) 62%, rgb(21 32 26 / 0.94) 100%);
}
.hero .wrap { padding-block: 8rem clamp(2.5rem, 7vw, 5rem); }
.hero .eyebrow { color: var(--earth-300); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); max-width: 14ch; margin-top: 1rem; }
.hero-lede { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: var(--forest-100); max-width: 38rem; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---- Sections ---- */
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 44rem; }
.section-head h2 { font-size: clamp(1.875rem, 4vw, 3rem); margin-top: 0.75rem; }
.section-head p { margin-top: 1.25rem; color: var(--text-2); font-size: 1.125rem; }

/* About: statement beside a portrait photo */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.15fr 0.85fr; } }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy .statement { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; color: var(--text-1); margin-top: 0.75rem; }
.about-copy p:not(.statement):not(.eyebrow) { color: var(--text-2); }
.about-photo { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 5; background: var(--surface-sunken); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* Approach: the six brand icons */
.approach { background: var(--surface-sunken); border-block: 1px solid var(--border); }
.pillars { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.pillar { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 1.75rem; }
.pillar svg { width: 2.75rem; height: 2.75rem; color: var(--brand); }
.pillar h3 { font-size: 1.1875rem; margin-top: 1.25rem; letter-spacing: -0.01em; }
.pillar p { margin-top: 0.5rem; color: var(--text-2); font-size: 0.9875rem; }

/* Photo band */
.band { padding: 0; }
.band-grid { display: grid; gap: 0.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .band-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.band-grid img { width: 100%; height: clamp(14rem, 34vw, 26rem); object-fit: cover; }

/* Reporting */
.report-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .report-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.report-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.report-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.25rem 0.75rem; }
.report-list .n { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); font-size: 0.875rem; padding-top: 0.2rem; }
.report-list h3 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.35; }
.report-list p { grid-column: 2; color: var(--text-2); font-size: 0.9875rem; }

/* Contact */
.contact { position: relative; isolation: isolate; color: #fff; background: var(--forest-900); }
.contact-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgb(28 48 36 / 0.95) 0%, rgb(36 60 46 / 0.88) 55%, rgb(47 79 60 / 0.8) 100%); }
.contact .eyebrow { color: var(--earth-300); }
.contact h2 { font-size: clamp(1.875rem, 4.5vw, 3.25rem); max-width: 18ch; margin-top: 0.75rem; }
.contact p.lede { color: var(--forest-200); font-size: 1.125rem; max-width: 36rem; margin-top: 1.25rem; }
.contact .hero-actions { margin-top: 2rem; }
.contact :focus-visible, .hero :focus-visible, .site-header :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { background: var(--forest-950); color: var(--forest-200); padding-block: 3rem; font-size: 0.875rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.site-footer .wordmark { color: #fff; font-size: 1.2rem; }
.site-footer .wordmark svg { height: 1.7rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { text-underline-offset: 0.3em; }
.fineprint { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.12); color: var(--forest-300); max-width: 60rem; }
.fineprint p + p { margin-top: 0.75rem; }
