@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Playfair+Display:wght@600;700&display=swap");

:root {
    --outer: #bc8d64;
    --paper: #fff8ee;
    --paper-soft: #fffdf7;
    --cream: #fbefd9;
    --warm: #e99537;
    --warm-dark: #b96a24;
    --cocoa: #4f3a2d;
    --muted: #7f7165;
    --sage: #8fae80;
    --sage-soft: #edf3df;
    --blue-soft: #dfeaf6;
    --line: rgba(126, 91, 61, 0.18);
    --shadow: 0 22px 46px rgba(92, 61, 39, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 232, 196, 0.24), transparent 26%),
        var(--outer);
    color: var(--cocoa);
    font-family: "Nunito", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.site-header,
main,
.footer {
    width: min(1180px, calc(100% - 64px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 72px;
    margin-top: 28px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    background: rgba(255, 248, 238, 0.94);
    box-shadow: 0 16px 34px rgba(73, 44, 23, 0.13);
    padding: 10px 14px;
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--cocoa);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.brand__mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(233, 149, 55, 0.32);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 40%, #fff7d7, transparent 48%),
        var(--sage-soft);
    color: var(--warm);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.58);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.site-nav a {
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 9px 10px;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: var(--cream);
    color: var(--warm-dark);
    outline: none;
}

.header-cta,
.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 999px;
    background: var(--warm);
    color: #fffaf3;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 0 18px;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream);
    color: var(--warm-dark);
}

main {
    overflow: hidden;
    margin-top: 0;
    background:
        linear-gradient(180deg, var(--paper), var(--paper-soft) 58%, #fff7ec);
    box-shadow: var(--shadow);
}

.hero,
.intro-panel,
.impact-band,
.story-video,
.photo-strip,
.section {
    width: min(1040px, calc(100% - 64px));
    margin-right: auto;
    margin-left: auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
    gap: 46px;
    align-items: center;
    min-height: 610px;
    padding: 54px 0 44px;
}

.hero__copy,
.hero__visual,
.donate-copy,
.donation-card,
.contact-form {
    min-width: 0;
}

.eyebrow {
    color: var(--cocoa);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h1,
h2 {
    font-weight: 900;
    line-height: 1.02;
}

h1 {
    max-width: 520px;
    margin-top: 14px;
    color: var(--cocoa);
    font-size: clamp(42px, 6vw, 70px);
}

h1 span,
h2 span,
.intro-panel h2,
.story-video h2 {
    color: var(--warm);
}

.hero p:not(.eyebrow),
.intro-panel p:not(.eyebrow),
.donate-copy p,
.contact p,
.story-video p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 16px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 12px 20px;
    text-transform: uppercase;
}

.button--primary {
    border-color: rgba(185, 106, 36, 0.18);
    background: var(--warm);
    color: #fffaf3;
    box-shadow: 0 14px 24px rgba(185, 106, 36, 0.18);
}

.button--secondary {
    border-color: rgba(79, 58, 45, 0.22);
    background: #fffaf3;
    color: var(--cocoa);
}

.hero__visual {
    overflow: hidden;
    border-radius: 8px;
    background: var(--cream);
    box-shadow: 0 22px 44px rgba(82, 55, 36, 0.16);
}

.hero__visual img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.intro-panel {
    display: grid;
    justify-items: center;
    padding: 40px 0 48px;
    text-align: center;
}

.intro-panel h2,
.story-video h2 {
    max-width: 780px;
    margin-top: 12px;
    font-size: clamp(28px, 3.6vw, 42px);
}

.intro-panel p {
    max-width: 760px;
}

.mini-button {
    margin-top: 24px;
}

.impact-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(126, 91, 61, 0.16);
    border-radius: 8px;
    background: rgba(126, 91, 61, 0.16);
}

.impact-band div {
    display: grid;
    justify-items: center;
    gap: 6px;
    background: rgba(255, 252, 244, 0.86);
    padding: 22px;
    text-align: center;
}

.impact-band strong {
    color: var(--warm);
    font-family: Cambria, Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.impact-band span {
    max-width: 170px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.story-video {
    display: grid;
    justify-items: center;
    padding: 74px 0 36px;
    text-align: center;
}

.story-video__media {
    position: relative;
    width: min(720px, 100%);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 42px rgba(82, 55, 36, 0.16);
}

.story-video__media::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 244, 197, 0.5), transparent 34%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 52%);
    opacity: 0;
    pointer-events: none;
    content: "";
}

.story-video__media img,
.story-video__media video {
    display: block;
    width: 100%;
    height: clamp(260px, 38vw, 420px);
    object-fit: cover;
}

.story-video__fallback {
    display: none;
    cursor: pointer;
    transform-origin: 50% 54%;
}

.story-video__media.use-fallback video {
    display: none;
}

.story-video__media.use-fallback .story-video__fallback {
    display: block;
}

.story-video__media.use-fallback.is-playing .story-video__fallback {
    animation: storyFallbackMotion 4.2s ease-in-out forwards;
}

.story-video__media.use-fallback.is-playing::before {
    animation: storyLightSweep 4.2s ease-in-out forwards;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.84);
    border-radius: 50%;
    background: rgba(255, 248, 238, 0.28);
    color: #fffaf3;
    font-size: 17px;
    transform: translate(-50%, -50%);
    transition: opacity 180ms ease, background 180ms ease, transform 180ms ease;
    backdrop-filter: blur(8px);
}

.play-button:hover,
.play-button:focus-visible {
    background: rgba(233, 149, 55, 0.78);
    outline: none;
}

.story-video__media.is-playing .play-button {
    opacity: 0.24;
}

.story-video__media.is-playing:hover .play-button,
.story-video__media.is-playing .play-button:focus-visible {
    opacity: 1;
}

.story-video h2 {
    margin-top: 30px;
}

.story-video p {
    max-width: 680px;
}

@keyframes storyFallbackMotion {
    from {
        transform: scale(1) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.13) translate3d(14px, -8px, 0);
    }
}

@keyframes storyLightSweep {
    0% {
        opacity: 0;
        transform: translateX(-24px);
    }

    30% {
        opacity: 0.82;
    }

    100% {
        opacity: 0.18;
        transform: translateX(28px);
    }
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 8px;
    background: var(--cream);
}

.photo-strip img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.section {
    padding: 86px 0 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

h2 {
    margin-top: 12px;
    color: var(--warm);
    font-size: clamp(30px, 4vw, 46px);
}

h3 {
    color: var(--cocoa);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.22;
}

.rabbit-grid,
.mission-grid,
.volunteer-list,
.resource-grid {
    display: grid;
    gap: 16px;
}

.rabbit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rabbit-card {
    display: grid;
    gap: 11px;
    background: #fffdf8;
}

.rabbit-card__portrait {
    overflow: hidden;
    border-radius: 8px;
    background: var(--cream);
}

.rabbit-card__portrait img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.rabbit-card__status {
    width: fit-content;
    margin: 2px 16px 0;
    border-radius: 999px;
    background: var(--cream);
    color: var(--warm-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    text-transform: uppercase;
}

.rabbit-card h3,
.rabbit-card p,
.rabbit-card a {
    margin-right: 16px;
    margin-left: 16px;
}

.rabbit-card p {
    color: var(--muted);
    font-size: 14px;
}

.rabbit-card a {
    width: fit-content;
    margin-bottom: 18px;
    color: var(--warm-dark);
    font-size: 13px;
    font-weight: 900;
}

.mission-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mission-grid article,
.donation-card,
.contact-form {
    border: 1px solid rgba(126, 91, 61, 0.14);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: 0 14px 28px rgba(82, 55, 36, 0.08);
}

.mission-grid article {
    display: grid;
    justify-items: center;
    padding: 28px 22px;
    text-align: center;
}

.mission-grid i {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--warm);
    font-size: 19px;
}

.mission-grid h3 {
    margin-top: 18px;
}

.mission-grid p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.action-mosaic {
    padding-top: 94px;
}

.volunteer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.volunteer-list article {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--cream);
}

.volunteer-list article::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 36%, rgba(39, 26, 18, 0.64));
    content: "";
}

.volunteer-list img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transition: transform 240ms ease;
}

.volunteer-list article:hover img {
    transform: scale(1.04);
}

.volunteer-list span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
    color: #fffaf3;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.donate-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    gap: 28px;
    align-items: start;
    margin-top: 90px;
    padding-top: 0;
}

.donate-copy {
    min-height: 420px;
    display: grid;
    align-content: center;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 248, 238, 0.88), rgba(255, 248, 238, 0.64)),
        url("../images/bunny-haven-hero-v3.png") center / cover no-repeat;
    padding: 42px;
}

.donation-card,
.contact-form {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.donation-card label,
.contact-form label {
    color: var(--cocoa);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.amount-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.amount-button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffaf3;
    color: var(--cocoa);
    font-weight: 900;
}

.amount-button.is-selected {
    border-color: rgba(185, 106, 36, 0.18);
    background: var(--warm);
    color: #fffaf3;
}

input,
select {
    width: 100%;
    border: 1px solid rgba(126, 91, 61, 0.22);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.94);
    color: var(--cocoa);
    padding: 13px 14px;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--warm);
    box-shadow: 0 0 0 4px rgba(233, 149, 55, 0.18);
}

.form-note {
    min-height: 20px;
    color: var(--warm-dark);
    font-size: 13px;
    font-weight: 800;
}

.resources {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 30px;
    align-items: start;
}

.resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-grid article {
    background: rgba(255, 253, 248, 0.86);
}

.resource-grid img {
    width: 100%;
    height: 128px;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

.resource-grid h3,
.resource-grid p {
    margin-right: 14px;
    margin-left: 14px;
}

.resource-grid h3 {
    margin-top: 14px;
    font-size: 16px;
}

.resource-grid p {
    margin-top: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 88px;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    background: var(--paper);
    color: var(--muted);
    font-size: 14px;
    padding: 28px 34px 36px;
}

.footer div {
    display: grid;
    gap: 3px;
}

.footer strong {
    color: var(--cocoa);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
}

.footer a {
    color: var(--warm-dark);
    font-weight: 900;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
    }

    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
        justify-self: end;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: min(280px, calc(100vw - 48px));
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fffaf3;
        box-shadow: var(--shadow);
        padding: 8px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        text-align: left;
    }

    .hero,
    .donate-section,
    .contact,
    .resources {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
        padding-top: 44px;
    }

    .mission-grid,
    .rabbit-grid,
    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-header,
    main,
    .footer {
        width: calc(100% - 24px);
    }

    .hero,
    .intro-panel,
    .impact-band,
    .story-video,
    .photo-strip,
    .section {
        width: calc(100% - 28px);
    }

    .site-header {
        top: 10px;
        margin-top: 12px;
    }

    .brand span:last-child {
        font-size: 19px;
    }

    .brand__mark {
        width: 44px;
        height: 44px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

    .hero__actions,
    .hero__actions .button {
        width: 100%;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__visual img {
        height: 310px;
    }

    .impact-band,
    .mission-grid,
    .rabbit-grid,
    .volunteer-list,
    .resource-grid,
    .amount-row,
    .photo-strip {
        grid-template-columns: 1fr;
    }

    .photo-strip img {
        height: 240px;
    }

    .donate-section {
        margin-top: 70px;
    }

    .donate-copy {
        min-height: 360px;
        padding: 28px;
    }

    .contact {
        padding-bottom: 62px;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 20px;
        padding-left: 20px;
    }
}
