:root{--paper:#faf9f7;scroll-padding-top:88px}
.page-header{position:sticky;top:0;z-index:12;background:rgba(250,249,247,.94);backdrop-filter:blur(18px);height:72px}
.menu a[aria-current]{background:#f1edea}
.mast{position:relative;display:flex;align-items:center;min-height:clamp(520px,75svh,840px);background:#451c2b url('assets/hero.jpg') center center/cover no-repeat;color:white;padding:5.5%;border-radius:32px}
.mast div{width:min(46%,620px)}.mast h1{font-family:Onest,Arial,sans-serif;font-size:clamp(58px,7.8vw,124px);line-height:.98;letter-spacing:-.075em;font-weight:730;margin:0 0 24px}
.mast p{font-size:clamp(17px,1.45vw,23px);line-height:1.4;max-width:33ch}
.mast a{display:inline-block;margin-top:27px;border-radius:80px;background:#fff;color:#32222a;padding:13px 30px;text-decoration:none;font-weight:650}
.project-section{padding:clamp(40px,5.2vw,82px) 2%}.project-section h2,.studio>h2{font-weight:700;font-size:clamp(34px,4.4vw,68px);line-height:1.06;letter-spacing:-.06em;margin:0 0 30px}
.project-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.project-cards article{padding:clamp(20px,2.5vw,38px);background:#f1e8e3;border-radius:24px}.project-cards article:nth-child(2){background:#e9eddf}.project-cards article:nth-child(3){background:#f3ecdb}.project-cards img{width:48px;height:48px;object-fit:contain;margin-bottom:22px}.project-cards h3,.donate-wrap h3{font-size:clamp(23px,2.05vw,32px);line-height:1.15;letter-spacing:-.045em;margin:0 0 10px}.project-cards p,.donate-wrap>div p{line-height:1.5;max-width:38ch}
.studio{padding:clamp(26px,4vw,64px);background:#f1efed}.studio>h2{text-align:center;margin-bottom:20px}.editor{max-width:820px;margin:auto}.card-caption{margin:0 0 12px}.editor-tools{display:block;border:0}.sticker-tools{display:flex;overflow-x:auto;gap:10px;padding:3px 2px 10px;scroll-snap-type:x proximity}.sticker-tools button{flex:0 0 clamp(65px,7.5vw,96px);height:72px;scroll-snap-align:start;background:#fffdfb;border:0;padding:10px}.actions{display:flex;align-items:center;gap:10px;margin-top:8px}.actions #save-card{margin-left:auto}.upload{position:relative;cursor:pointer;overflow:hidden}.upload input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.upload:focus-within{outline:3px solid #8054b0}.hint{max-width:none}
.campaign{background:#f4eee7;margin-block:24px}.donate-wrap{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,4vw,60px);align-items:center;border-top:1px solid #d8cfc4;padding-top:36px}.donation h2{scroll-margin-top:86px}
@media(max-width:720px){.page-header{height:62px;display:flex;gap:5px;justify-content:space-between;padding-block:5px}.partners{gap:4px}.partners img:first-child{width:43px}.partners img:last-child{width:39px}.menu{position:static}.menu a{padding:8px 7px;font-size:11px}.mast{min-height:590px;align-items:flex-start;padding:30px 24px;background-color:#451c2b;background-size:auto 58%;background-position:76% bottom}.mast div{width:100%}.mast h1{font-size:56px;margin-bottom:12px}.mast p{font-size:16px;max-width:31ch}.mast a{margin-top:14px;padding:10px 23px}.project-cards{grid-template-columns:1fr}.project-cards article{display:grid;grid-template-columns:42px 1fr;column-gap:14px}.project-cards img{width:40px;height:40px;grid-row:span 2;margin:0}.studio{padding:23px 14px}.studio>h2{text-align:left}.sticker-tools button{height:55px;flex-basis:62px}.donate-wrap{grid-template-columns:1fr}.donation{margin:0}.actions{gap:5px}.campaign,.project-section{padding-block:32px}}
@media(min-width:721px) and (max-width:940px){.page-header .menu{left:58%}}
@media(max-width:720px){.mast{background-color:#260512;background-image:linear-gradient(to bottom,#260512 0%,#260512 39%,transparent 56%),url('assets/hero.jpg');background-position:center,78% bottom;background-size:cover,auto 55%}}

/* Joint campaign palette and the postcard workshop */
:root{--forest:#103f35;--tangerine:#ff9952;--pine-ink:#103b33;--paper:#faf8f0}
.page-header{background:rgba(250,248,240,.95)}
.menu a[aria-current]{background:#e2eedc;color:var(--pine-ink)}
.mast{background-color:#083a31;background-image:url('assets/hero-cartoon.webp');background-position:65% center}
.mast .hero-copy{width:53%;position:relative;z-index:1}
.mast h1{font-size:clamp(58px,7.25vw,116px);letter-spacing:-.068em;font-weight:850;line-height:1}
.mast h1 em{font-style:normal;color:#ffae69}
.mast a,.donation .primary{background:var(--tangerine);color:#2e200f}
.mast a:hover,.donation .primary:hover{background:#ffb176}
.project-section h2,.studio h2,.nika-story-head h2{color:var(--pine-ink)}
.project-cards article:first-child{background:#ffe0bb}.project-cards article:nth-child(2){background:#cfe2c5}.project-cards article:nth-child(3){background:#ffe8b3}
.project-cards article{position:relative;overflow:hidden}.project-cards img{width:56px;height:56px}
.studio{background:#e6efdf}.studio>h2{margin:0 0 8px}.studio-intro{text-align:center;max-width:54ch;margin:0 auto 28px;font-size:18px;line-height:1.45;color:#3e5549}
.workbench{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);align-items:start;gap:clamp(20px,3vw,52px);max-width:1260px;margin:auto}
.editor{width:100%;min-width:0}.card-caption{color:var(--pine-ink)}.editor-tools{min-width:0}
.workbench .donation{margin-top:46px;background:#fffdf6;box-shadow:0 8px 32px #123e3610}
.donation h2{margin:0 0 12px}.bag-cost{line-height:1.45;margin:0 0 19px;color:#43594b}
.presets{grid-template-columns:repeat(2,1fr);gap:8px}
.presets label{padding:9px 12px;display:flex;justify-content:space-between;align-items:baseline;gap:5px;min-height:45px}
.presets label strong{font-size:clamp(18px,1.5vw,24px);color:var(--pine-ink)}
.presets label span{font-size:13px;color:#40554a}
.presets label:has(:checked){border-color:#216148;background:#dfefd7}
.bag-meter{margin:18px 0 5px;height:8px;border-radius:5px;overflow:hidden;background:#e1e8d9}
.bag-meter i{display:block;height:100%;width:var(--bag-fill,25%);background:#40825f;transition:width .32s ease}
.amount-summary{text-align:left;background:none;color:var(--forest);margin:0 0 10px}
.campaign{background:#104b3b;color:#fffaf1}.campaign .kicker{color:#ffd49e}.campaign .print{color:#292620}.campaign .text-link img{filter:invert(1)}.vk{margin-left:14px}
.nika-story:nth-child(3){background:#ffdbaf}
@media(prefers-reduced-motion:no-preference){
  .mast .hero-copy{animation:enter-hero .65s ease-out both}
  .arrived.project-cards article,.arrived.album .print,.arrived.nika-story-head{animation:studio-arrival .62s cubic-bezier(.17,.85,.34,1.12) both}
  .arrived.project-cards article:nth-child(2),.arrived.album .print:nth-child(2){animation-delay:.1s}
  .arrived.project-cards article:nth-child(3){animation-delay:.2s}
  .project-cards article:hover img{transform:rotate(-12deg) scale(1.1);transition:transform .22s}
  @keyframes studio-arrival{from{translate:0 24px;scale:.96;opacity:.45}to{translate:0 0;scale:1;opacity:1}}
  @keyframes enter-hero{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:translateX(0)}}
}
@media(max-width:800px){.workbench{grid-template-columns:1fr}.workbench .donation{margin:0}.studio-intro{text-align:left;font-size:16px}.workbench .editor{max-width:none}.workbench{gap:20px}}
@media(max-width:720px){.mast .hero-copy{width:100%}.mast{background-color:#073a31;background-image:linear-gradient(to bottom,#073a31 0%,#073a31 39%,transparent 56%),url('assets/hero-cartoon.webp');background-position:center,81% bottom;background-size:cover,auto 56%}.mast h1{font-size:clamp(48px,12vw,72px)}.vk{margin-left:10px}.project-cards img{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.bag-meter i{transition:none}}
.stamp-option{display:flex;gap:8px;align-items:center;font-size:14px;line-height:1.3;margin:4px 0 16px;cursor:pointer}
.stamp-option input{width:17px;height:17px;margin:0;accent-color:#206448}
.album{position:relative}
.album-heart{position:absolute;top:2%;right:11%;width:clamp(42px,5.8vw,90px);rotate:11deg}
@media(prefers-reduced-motion:no-preference){
  .album.arrived .album-heart{animation:heart-hop .8s .18s both}
  @keyframes heart-hop{0%{scale:.6;translate:0 18px}55%{scale:1.1;translate:0 -6px}100%{scale:1;translate:0 0}}
}
@media(max-width:720px){
  .mast{background:#094437;isolation:isolate}
  .mast::before{content:"";position:absolute;inset:auto 0 0;height:56%;background:url('assets/hero-cartoon.webp') 81% bottom/auto 100% no-repeat;mask-image:linear-gradient(to bottom,transparent,#000 15%);z-index:-1}
}
