:root {
    --bg: #f6efe4;
    --card: #fffdf8;
    --ink: #1c1915;
    --muted: #5e584f;
    --line: #e4d5c4;
    --forest: #1e4a38;
    --forest-dark: #16382b;
    --clay: #9a4e32;
    --nav-h: 64px;
    --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23a56a45' fill-opacity='0.22'%3E%3Cellipse cx='70' cy='88' rx='20' ry='16'/%3E%3Cellipse cx='44' cy='58' rx='9' ry='13' transform='rotate(-18 44 58)'/%3E%3Cellipse cx='60' cy='46' rx='8' ry='12'/%3E%3Cellipse cx='80' cy='46' rx='8' ry='12'/%3E%3Cellipse cx='96' cy='58' rx='9' ry='13' transform='rotate(18 96 58)'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: Inter, sans-serif;
    color: var(--ink);
    line-height: 1.55;
    font-size: 17px;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse at 8% 0%, rgba(196, 132, 78, 0.22), transparent 42%),
        radial-gradient(ellipse at 100% 12%, rgba(30, 74, 56, 0.07), transparent 36%),
        var(--paw),
        var(--paw);
    background-repeat: no-repeat, no-repeat, repeat, repeat;
    background-size: auto, auto, 340px 340px, 210px 210px;
    background-position: 0 0, 0 0, 0 0, 120px 70px;
    animation: hw-paws 42s linear infinite;
}

body::before {
    content: "";
    position: fixed;
    z-index: 0;
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    right: -90px;
    top: 70px;
    background: var(--paw) center / contain no-repeat;
    opacity: 0.28;
    pointer-events: none;
}

main,
.hw-footer { position: relative; z-index: 1; }

@keyframes hw-paws {
    to { background-position: 0 0, 0 0, 340px 180px, -40px 250px; }
}

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    z-index: 50;
}

.skip-link:focus { left: 12px; top: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); }

.btn-ghost {
    background: transparent;
    color: var(--forest);
    border-color: var(--forest);
}

.hw-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 28px;
    background: rgba(246, 239, 228, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.hw-logo {
    font-family: Fraunces, serif;
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.hw-logo span { color: var(--clay); }

.hw-nav { display: flex; gap: 18px; font-size: 0.92rem; font-weight: 600; }
.hw-nav a { text-decoration: none; color: var(--muted); }
.hw-nav a:hover { color: var(--ink); }

.hw-bar-cta {
    margin-left: auto;
    text-decoration: none;
    background: var(--forest);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 999px;
    padding: 8px 14px;
}

main { max-width: 1080px; margin: 0 auto; padding: 28px 24px 40px; }

.hw-kicker {
    color: var(--clay);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

h1, h2, h3 { font-family: Fraunces, serif; font-weight: 560; letter-spacing: -0.03em; }

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; margin-bottom: 0.8rem; }

.hw-lead { color: var(--muted); max-width: 40rem; font-size: 1.05rem; }

.hw-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    align-items: end;
    padding: 36px 0 20px;
}

.hw-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.4rem; }

.hw-goal {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 22px 18px;
}

.hw-goal-num {
    font-family: Fraunces, serif;
    font-size: 3.2rem;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 0.6rem;
}

.hw-goal p { color: var(--muted); font-size: 0.95rem; }

.hw-goal-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}

.hw-goal-meta span:first-child { color: var(--ink); font-weight: 600; }
.hw-goal-meta span:last-child { color: var(--muted); }

.hw-section { padding: 56px 0 10px; scroll-margin-top: calc(var(--nav-h) + 12px); }

.hw-cards, .hw-year {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 1.4rem;
    list-style: none;
}

.hw-cards article, .hw-year li, .hw-aside, .hw-checkout, .hw-faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.hw-cards article, .hw-year li { padding: 1.25rem 1.15rem 1.3rem; }

.hw-cards span {
    display: block;
    font-family: Fraunces, serif;
    color: var(--clay);
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
}

.hw-cards h3, .hw-aside h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.hw-cards p, .hw-year span, .hw-aside li, .hw-faq p { color: var(--muted); }

.hw-year { grid-template-columns: repeat(4, 1fr); }

.hw-year strong { display: block; margin-bottom: 0.45rem; font-size: 1rem; }
.hw-year span { display: block; font-size: 0.95rem; }

.hw-tiers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 1.3rem 0 1rem;
}

.hw-tier {
    text-align: left;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 14px 12px;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.hw-tier strong { display: block; font-family: Fraunces, serif; font-size: 1.45rem; font-weight: 560; }
.hw-tier span { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 0.35rem; }

.hw-tier.is-selected {
    border-color: var(--forest);
    background: #f3f7f4;
    box-shadow: inset 0 0 0 1px var(--forest);
}

.hw-custom { margin-bottom: 1rem; }
.hw-custom label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }

.hw-custom div {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}

.hw-custom input {
    flex: 1;
    min-height: 46px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    font: inherit;
    background: var(--card);
}

.hw-checkout { padding: 1.2rem 1.2rem 1.1rem; }

.hw-btc {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0.8rem 0 1rem;
    background: var(--bg);
    border-radius: 12px;
    padding: 8px 8px 8px 12px;
}

.hw-btc code { flex: 1; font-size: 0.82rem; word-break: break-all; }

.hw-checkout-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hw-note { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; }

.hw-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: start;
}

.hw-split p + p { margin-top: 0.8rem; color: var(--muted); }
.hw-aside { padding: 1.2rem; }
.hw-aside ul { margin: 0.4rem 0 1rem 1.1rem; }
.hw-aside li + li { margin-top: 0.45rem; }

.hw-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 1.3rem;
}

.hw-board[hidden],
.hw-empty[hidden] { display: none; }

.hw-board > div {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.15rem 1.1rem 0.6rem;
}

.hw-board h3 { font-size: 1.35rem; }
.hw-board-note { color: var(--muted); font-size: 0.86rem; margin: 0.15rem 0 0.7rem; }

.hw-board ol { list-style: none; }

.hw-donor {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
}

.hw-rank {
    font-family: Fraunces, serif;
    color: var(--clay);
    font-size: 1.05rem;
}

.hw-donor.is-top .hw-rank { color: var(--forest); }

.hw-donor strong { display: block; font-size: 0.98rem; }
.hw-donor span { display: block; color: var(--muted); font-size: 0.8rem; }

.hw-amount {
    font-family: Fraunces, serif;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.hw-empty {
    margin-top: 1.1rem;
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 1.3rem 1.2rem;
    color: var(--muted);
}

.hw-faq { display: flex; flex-direction: column; gap: 8px; margin-top: 1rem; }

.hw-faq details { padding: 0.2rem 1rem; }
.hw-faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.85rem 0;
}
.hw-faq p { padding-bottom: 0.9rem; }

.hw-footer {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 2rem 24px 96px;
    color: var(--muted);
    font-size: 0.92rem;
}

.hw-footer a { text-decoration: none; font-weight: 600; color: var(--ink); }
.hw-footer p { width: 100%; text-align: center; }

.hw-mobile { display: none; }

@media (max-width: 900px) {
    .hw-nav { display: none; }
    .hw-hero, .hw-cards, .hw-year, .hw-split, .hw-tiers, .hw-board { grid-template-columns: 1fr; }
    .hw-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        min-height: 48px;
        background: var(--forest);
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        border-radius: 999px;
        z-index: 30;
    }
}
