/* Giver: light charity impact page. Studied DNA: Netties Bees (Awwwards nominee): split hero with a
   full-height colour panel, a slow marquee, a step journey, a slider tool, a bold statement band and a
   warm seasonal band. Palette from brand/logo.png. */
@font-face { font-family: "Zodiak"; src: url("/assets/fonts/zodiak-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #F7F1E4;
  --paper-2: #F1E8D6;
  --cream: #ECE4D4;
  --marigold: #EB9026;
  --marigold-soft: #F6CF97;
  --berry: #90243D;
  --berry-deep: #761B31;
  --ink: #2B1C1F;
  --ink-2: #5E4D4F;
  --line: #2B1C1F24;
  --line-2: #2B1C1F12;
  --berry-12: #90243D1F;
  --cream-80: #ECE4D4CC;
  --shadow: #2B1C1F14;
  --font-display: "Zodiak", Georgia, serif;
  --font-body: "Switzer", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 4.4vw, 72px);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; font-style: normal; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 500 16px/1 var(--font-body); text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-berry { background: var(--berry); color: var(--cream); }
.btn-berry:hover { background: var(--berry-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: var(--berry); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 14px var(--pad); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.topbar.lined { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 28px/1 var(--font-display); letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.links { display: flex; gap: 30px; }
.links a { position: relative; text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; padding-bottom: 3px; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.links a:hover::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink); transition: border-color .25s var(--ease); }
.ico:hover { border-color: var(--ink); }
.ico svg { width: 17px; height: 17px; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px dashed var(--line); background: var(--paper-2); color: var(--ink-2); font: 500 14px/1 var(--font-body); cursor: pointer; max-width: 220px; white-space: nowrap; }
.ca span:last-child { overflow: hidden; text-overflow: ellipsis; }
.ca-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); opacity: .5; flex: none; }
.ca[data-state="live"] { border-style: solid; color: var(--ink); }
.ca[data-state="live"] .ca-dot { background: var(--berry); opacity: 1; }

/* opening */
.opening { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100svh - 69px); }
.opening-copy { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 2vw, 32px); padding: clamp(32px, 4vw, 90px) var(--pad); }
.display { font-family: var(--font-display); font-weight: 400; font-size: clamp(50px, 6.3vw, 178px); line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; min-width: 0; }
.display-m { font-size: clamp(42px, 5vw, 128px); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > .in { display: block; }
.lede { font-size: clamp(17px, 1.1vw, 28px); max-width: 52ch; color: var(--ink-2); }
.promise { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); max-width: 56ch; }
.promise svg { width: 20px; height: 20px; color: var(--berry); flex: none; margin-top: 1px; }
.promise a { color: var(--berry); text-underline-offset: 3px; }

.sun { position: relative; background: var(--marigold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 32px); padding: clamp(28px, 4vw, 64px); overflow: hidden; }
.sun-mark { width: clamp(130px, 13vw, 400px); height: auto; will-change: transform; }
.tally { width: min(100%, clamp(380px, 26vw, 660px)); background: var(--paper); border-radius: var(--radius); padding: 26px 28px; box-shadow: 0 30px 60px -30px var(--shadow); }
.tally-k { font-weight: 500; font-size: 15px; color: var(--ink-2); }
.tally-n { font: 400 clamp(52px, 4.6vw, 128px)/1 var(--font-display); letter-spacing: -.03em; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
.tally-now { font-weight: 600; }
.tally-sub { font-size: 15px; color: var(--ink-2); }
.feed { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.feed:empty { display: none; }
.feed li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.feed li a { color: var(--ink-2); white-space: nowrap; }
.feed .fresh { animation: arrive .9s var(--ease); }
@keyframes arrive { from { opacity: 0; transform: translateY(-8px); } }

/* marquee */
.ribbon { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--paper-2); }
.ribbon-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: drift 46s linear infinite; }
.ribbon-track span { font: 400 clamp(22px, 2vw, 34px)/1 var(--font-display); white-space: nowrap; letter-spacing: -.01em; }
.ribbon-track i { width: 14px; height: 14px; flex: none; background: var(--berry); clip-path: path("M7 13S0 8.6 0 4.2A3.8 3.8 0 0 1 7 2.1a3.8 3.8 0 0 1 7 2.1C14 8.6 7 13 7 13Z"); }
@keyframes drift { to { transform: translateX(-50%); } }

/* shared section head */
section { padding: clamp(80px, 10vw, 170px) var(--pad); }
.head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
.head-note { color: var(--ink-2); max-width: 40ch; justify-self: end; }
.empty { color: var(--ink-2); max-width: 60ch; padding: 26px 28px; border: 1.5px dashed var(--line); border-radius: var(--radius); margin-bottom: 28px; }
.fine { margin-top: 40px; max-width: 70ch; font-size: 15px; color: var(--ink-2); }

/* the path */
.path-track { position: relative; }
.path-line { position: absolute; left: 0; right: 0; top: 48px; width: 100%; height: 20px; color: var(--marigold); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); position: relative; }
.step { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; padding: 0 0 24px; }
.step-ic { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); color: var(--berry); margin-bottom: 14px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.step-ic svg { width: 46px; height: 46px; }
.step:hover .step-ic { background: var(--berry); color: var(--cream); }
.step-t { font: 400 clamp(26px, 2.2vw, 36px)/1.05 var(--font-display); letter-spacing: -.02em; }
.step-d { color: var(--ink-2); font-size: 16px; max-width: 30ch; }
.step-v { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--berry); border-top: 1px solid var(--line); }

/* the gift scale */
.scale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: center; background: var(--paper-2); }
.scale-copy { display: flex; flex-direction: column; gap: 24px; }
.scale-copy p { color: var(--ink-2); max-width: 48ch; }
.scale-tool { background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3vw, 48px); border: 1px solid var(--line); }
.scale-k { font-weight: 500; color: var(--ink-2); }
.scale-k output { color: var(--ink); font-weight: 600; }
.scale-n { font: 400 clamp(54px, 6vw, 110px)/1 var(--font-display); letter-spacing: -.03em; margin: 18px 0 22px; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; margin: 18px 0 0; accent-color: var(--berry); height: 28px; cursor: pointer; }
.bowls { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 6px; }
.bowls b { aspect-ratio: 2 / 1; border-radius: 0 0 999px 999px; background: var(--line-2); transition: background-color .3s var(--ease), transform .3s var(--ease); }
.bowls b.on { background: var(--marigold); }

/* the vow band */
.vow { position: relative; background: var(--berry); color: var(--cream); overflow: hidden; padding-block: clamp(110px, 14vw, 240px); }
.vow-t { position: relative; font-family: var(--font-display); font-size: clamp(40px, 5.6vw, 110px); line-height: 1.04; letter-spacing: -.03em; max-width: 16ch; overflow-wrap: anywhere; }
.vow-t .ln:nth-child(2) { color: var(--marigold-soft); }
.hearts i { position: absolute; bottom: -40px; width: 22px; height: 20px; background: var(--marigold); opacity: .0; clip-path: path("M11 20S0 13.2 0 6.4A5.8 5.8 0 0 1 11 3.3a5.8 5.8 0 0 1 11 3.1C22 13.2 11 20 11 20Z"); animation: rise 14s linear infinite; }
.hearts i:nth-child(1) { left: 62%; animation-delay: 0s; }
.hearts i:nth-child(2) { left: 74%; animation-delay: -3s; transform: scale(.7); }
.hearts i:nth-child(3) { left: 86%; animation-delay: -6s; }
.hearts i:nth-child(4) { left: 68%; animation-delay: -9s; }
.hearts i:nth-child(5) { left: 92%; animation-delay: -11s; }
.hearts i:nth-child(6) { left: 80%; animation-delay: -1.5s; }
.hearts i:nth-child(7) { left: 56%; animation-delay: -7.5s; }
@keyframes rise { 0% { transform: translateY(0) scale(.8); opacity: 0; } 15% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translateY(-110vh) scale(1.2); opacity: 0; } }

/* people */
.givers { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.givers:empty { display: none; }
.givers a { display: inline-flex; gap: 10px; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); text-decoration: none; font-size: 15px; white-space: nowrap; }
.givers b { font-weight: 600; }
.givers a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); }
.me { margin-top: 18px; color: var(--ink-2); }

/* receipts */
.receipts { background: var(--paper-2); }
.lines { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.lines:empty { display: none; }
.lines li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.lines .m { font: 400 clamp(26px, 2.4vw, 40px)/1 var(--font-display); }
.lines a { color: var(--berry); white-space: nowrap; }
.wallet { color: var(--ink-2); }
.wallet a { color: var(--berry); }

/* share band */
.sharing { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: center; background: var(--marigold); }
.sharing-copy { display: flex; flex-direction: column; gap: 24px; }
.sharing-copy p { max-width: 44ch; }
.sharing .btn-line { border-color: var(--ink); }
.postcard { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 40px 80px -40px var(--shadow); background: var(--paper); }

/* where it goes */
.where-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); margin-top: clamp(36px, 4vw, 64px); }
.where-cols p { color: var(--ink-2); max-width: 44ch; }
.where-cols a { color: var(--berry); text-underline-offset: 3px; }
.where-cols .indep { color: var(--ink); padding-left: 20px; border-left: 0; position: relative; }
.where-cols .indep::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--berry); }

/* footer */
.end { padding: 0 var(--pad) var(--pad); }
.end-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: clamp(36px, 4vw, 64px); background: var(--cream); border-radius: calc(var(--radius) + 8px); }
.brand-end img { width: 48px; height: 48px; }
.end-col { display: flex; flex-direction: column; gap: 10px; }
.end-col a { text-decoration: none; white-space: nowrap; }
.end-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.end-h { font-weight: 600; margin-bottom: 4px; }
.end-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }

/* corner share and toast */
.corner { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--berry); color: var(--marigold-soft); display: grid; place-items: center; cursor: pointer; box-shadow: 0 16px 30px -14px var(--shadow); transition: transform .3s var(--ease); }
.corner:hover { transform: translateY(-3px); }
.corner svg { width: 24px; height: 24px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 15px; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .links { display: none; }
  .topbar { grid-template-columns: auto 1fr; }
}
@media (max-width: 900px) {
  .opening, .scale, .sharing { grid-template-columns: minmax(0, 1fr); }
  .opening { min-height: 0; }
  .head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .head-note { justify-self: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .path-line { display: none; }
  .where-cols, .end-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .brand span { display: none; }
  .ca { max-width: 132px; padding: 0 10px; font-size: 13px; }
  .tools .ico { width: 36px; height: 36px; }
  .tools { flex-wrap: wrap; row-gap: 6px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step-ic { width: 88px; height: 88px; }
  .lines li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .bowls { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .btn { padding: 0 20px; }
  .corner { width: 48px; height: 48px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-track, .hearts i { animation: none; }
  .hearts i { display: none; }
  * { transition-duration: 0s !important; }
}
h1 .ln, .display-m .ln { white-space: nowrap; }
@media (max-width: 380px) { h1 .ln, .display-m .ln { white-space: normal; } }
.opening { padding: 0; }
@media (max-width: 900px) { .sun { min-height: 70svh; } }
@media (min-width: 2200px) { body { font-size: 20px; } .btn { min-height: 60px; padding: 0 32px; font-size: 18px; } .promise, .tally-sub, .tally-k { font-size: 18px; } }
@media (min-width: 2200px) { .btn-sm { min-height: 48px; font-size: 17px; } .ca { height: 48px; font-size: 16px; } .ico { width: 48px; height: 48px; } .links a { font-size: 18px; } .brand img { width: 52px; height: 52px; } .brand { font-size: 34px; } }
