:root {
    --color-bg:          #fcf1e5;
    --color-surface:     #ffffff;
    --color-surface-2:   rgba(255, 255, 255, .55);
    --color-text:        #1c1a17;
    --color-text-muted:  #6b5e54;
    --color-orange:      #dc6a30;
    --color-orange-dark: #c05c28;
    --color-blue:        #3b5ba3;
    --color-blue-dark:   #2f5087;
    --color-blue-soft:   rgba(59, 91, 163, .14);

    --photo-scrim:
        linear-gradient(to right, rgba(18, 11, 3, .42), rgba(18, 11, 3, .08) 46%, transparent 68%);
    --photo-warm:
        linear-gradient(125deg, rgba(237, 160, 112, .28) 0%, rgba(228, 133, 80, .35) 52%, rgba(220, 108, 54, .42) 100%);
    --photo-overlay: var(--photo-scrim), var(--photo-warm);

    --radius-sm: .5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    --border-hairline: 1px solid rgba(110, 85, 60, .28);

    --font-body: 'Red Hat Display', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --container-max: 1180px;
    --gutter: clamp(1rem, 3vw, 1.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.page-white { background: var(--color-surface); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
h2 { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.625rem); }
h3 { font-size: 1.25rem; margin-top: 2rem; }
p  { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: .35rem; }

a {
    color: var(--color-blue);
    text-decoration-color: rgba(59, 91, 163, .35);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--color-blue-dark); text-decoration-color: currentColor; }

::selection { background: var(--color-orange); color: #fff; }

:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
}
.grid > .col-12 { grid-column: span 12; }
.grid > .col-8  { grid-column: span 12; }
.grid > .col-5  { grid-column: span 12; }
.grid > .col-4  { grid-column: span 12; }
.grid > .col-6  { grid-column: span 12; }

@media (min-width: 768px) {
    .grid > .col-6  { grid-column: span 6; }
}
@media (min-width: 992px) {
    .grid > .col-8  { grid-column: span 8; }
    .grid > .col-5  { grid-column: span 5; }
    .grid > .col-4  { grid-column: span 4; }
}

.prose {
    max-width: 70ch;
    margin-inline: auto;
}

.btn {
    display: inline-block;
    padding: .65rem 1.15rem;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .08s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 3px; }

.btn-primary {
    background: var(--color-orange);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-orange-dark);
    color: #fff;
}

.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--color-orange);
    color: #fff;
    padding: .9rem 1.5rem;
    font-size: 1.1rem;
}
.btn-donate:hover {
    background: var(--color-orange-dark);
    color: #fff;
    transform: none;
}
.btn-donate svg { transition: transform .18s ease; }
.btn-donate:hover svg { transform: translateX(4px); }

.btn-outline {
    background: transparent;
    color: var(--color-blue);
    box-shadow: inset 0 0 0 1px var(--color-blue);
}
.btn-outline:hover { background: var(--color-blue); color: #fff; }

.read-more {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    color: var(--color-blue);
    text-decoration: none;
}
.read-more::after {
    content: "\2192";
    transition: transform .18s ease;
}
.read-more:hover {
    color: var(--color-blue-dark);
    text-decoration: none;
}
.read-more:hover::after { transform: translateX(4px); }
.read-more:focus-visible::after { transform: translateX(4px); }

.alert {
    padding: .85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-danger {
    background: #fde7e9;
    border-color: #f5c2c7;
    color: #842029;
}
.alert-success {
    background: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}
.alert a {
    color: inherit;
    text-decoration-color: currentColor;
    font-weight: 600;
}

.notice-block {
    padding: 1rem 1.25rem;
    background: rgba(220, 106, 48, .22);
    border-left: 4px solid var(--color-orange);
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}
.notice-block p { margin: 0; }

.site-footer {
    background: linear-gradient(180deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: rgba(255, 255, 255, .85);
    padding: 3rem 0 1.5rem;
}
.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}
.site-footer p { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.site-footer a:hover { color: var(--color-orange); }

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    text-decoration: none;
}
.footer-social svg { flex-shrink: 0; }

.footer-columns {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .footer-columns { grid-template-columns: repeat(3, 1fr); }
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
}
.footer-bottom img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .85;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

input.error, select.error {
    background-color: #fde7e9;
    border-color: #d57071;
}

.js-reveal .reveal {
    opacity: 0;
    translate: 0 16px;
    transition: opacity .6s ease, translate .6s ease, transform .2s ease;
    transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s;
}
.js-reveal .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
