/* Same self-hosted fonts as blackcatalystnetwork.ca (OFL licences beside them). */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-stretch: 100% 125%; font-display: swap; src: url('/fonts/archivo-latin.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('/fonts/outfit-latin.woff2') format('woff2'); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: a navy night sky with a wall of white gift tags strung on gold thread; one column of letter + wall on phones, two on desktop. */
:root {
  --navy: #032742;
  --navy-2: #0a3557;
  --navy-3: #12466f;
  --gold: #f2af32;
  --green: #65bc46;
  --green-dark: #1f7b44;
  --blue: #0579ac;
  --tag: #ffffff;
  --tag-ink: #032742;
  --tag-muted: #4a5d6e;
  --line: rgba(255,255,255,.14);
  --muted: #b7c7d6;
  --display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --body: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--navy); color: #fff; font-family: var(--body); font-size: 16px; line-height: 1.55; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }


header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
header.top img { height: 44px; width: auto; display: block; }
header.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
header.top nav a { color: #fff; text-decoration: none; opacity: .85; }
header.top nav a:hover { opacity: 1; color: var(--gold); }
.counts { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counts b { color: #fff; }

.hero { position: relative; overflow: hidden; }
.lights { position: absolute; top: 0; left: 0; right: 0; height: 46px; pointer-events: none; overflow: hidden; }
.lights svg { width: 100%; height: 46px; display: block; }
.bulb { animation: twinkle 2.4s ease-in-out infinite; }
.bulb:nth-child(3n) { animation-delay: .8s; } .bulb:nth-child(3n+1) { animation-delay: 1.6s; }
@keyframes twinkle { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .bulb { animation: none; } }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; padding-block: 72px 48px; display: grid; gap: 20px; max-width: 1120px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.02; font-weight: 800; text-transform: uppercase; max-width: 15ch; }
.hero h1 span { color: var(--gold); }
.hero p.lede { font-size: 1.15rem; color: #dbe6ef; max-width: 58ch; margin: 0; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font-family: var(--display); font-weight: 700; font-size: 15px; border-radius: 999px; padding: 12px 22px; border: 2px solid var(--gold); background: var(--gold); color: var(--navy); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.green { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

.promises { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 12px; }
.promise { border-top: 3px solid var(--green); padding-top: 12px; font-size: 14px; color: #dbe6ef; }
.promise strong { display: block; font-family: var(--display); color: #fff; font-size: 16px; margin-bottom: 2px; }
.promise:nth-child(2) { border-color: var(--gold); }
.promise:nth-child(3) { border-color: var(--blue); }

section { padding-block: 48px; }
section.alt { background: var(--navy-2); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
.sec-head p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }

/* Letter */
.letter-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.letter { background: var(--tag); color: var(--tag-ink); border-radius: 6px; padding: 26px; position: relative; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.letter::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(135deg, var(--green-dark) 0 14px, #fff 14px 22px, var(--gold) 22px 36px, #fff 36px 44px); }
.stamp { position: absolute; top: 22px; right: 22px; width: 64px; height: 76px; border: 2px dashed var(--green-dark); border-radius: 4px; display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: 10px; font-weight: 700; color: var(--green-dark); line-height: 1.1; transform: rotate(4deg); }
.stamp b { display: block; font-size: 22px; color: var(--gold); }
.letter .to { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tag-muted); margin-top: 6px; }
.letter h3 { font-size: 1.6rem; margin: 6px 0 4px; }
.letter .hint { font-size: 14px; color: var(--tag-muted); margin: 0 0 16px; max-width: 46ch; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field legend { font-weight: 700; font-size: 14px; }
.field small { color: var(--tag-muted); font-size: 12.5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
textarea, select, input[type=text], input[type=email], input[type=tel] { font: inherit; font-size: 15px; color: var(--tag-ink); background: #f4f7fa; border: 1px solid #c9d6e2; border-radius: 6px; padding: 10px 12px; width: 100%; color-scheme: light; }
textarea { min-height: 96px; resize: vertical; }
textarea:focus, select:focus, input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(5,121,172,.2); }
.counter { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--tag-muted); text-align: right; }
.counter.over { color: #b3261e; font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 13px; border: 1px solid #c9d6e2; background: #fff; color: var(--tag-ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip:hover { border-color: var(--green-dark); color: var(--green-dark); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 14px; }
.seg legend { margin-bottom: 6px; }
.seg label { font-weight: 500; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; border: 1px solid #c9d6e2; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.seg input { accent-color: var(--green-dark); }
.check { display: flex; gap: 10px; align-items: start; font-size: 14px; margin-bottom: 16px; }
.check input { margin-top: 4px; accent-color: var(--green-dark); }
.error { color: #b3261e; font-size: 13.5px; font-weight: 700; min-height: 1.2em; margin: 0 0 10px; }
.thanks { text-align: left; }
.thanks h3 { color: var(--green-dark); }
.thanks code { display: block; background: #f4f7fa; border: 1px dashed #c9d6e2; border-radius: 6px; padding: 10px; font-size: 13px; word-break: break-all; margin: 8px 0 14px; }

.rules { display: grid; gap: 16px; }
.rules h3 { font-size: 1.2rem; }
.rules ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.rules li { padding-left: 26px; position: relative; color: #dbe6ef; font-size: 15px; }
.rules li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.rules li.no::before { background: transparent; border: 2px solid #ff8a80; }
.ideas { border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.ideas h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ideas p { margin: 0; font-size: 14px; color: var(--muted); }

/* Wall */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.tabs button { font: inherit; font-size: 14px; background: transparent; color: #fff; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.tabs button[aria-pressed=true] { background: var(--gold); color: var(--navy); font-weight: 700; }
.toolbar select, .toolbar input { width: auto; background: var(--navy-3); color: #fff; border-color: var(--line); color-scheme: dark; font-size: 14px; padding: 8px 12px; }
.toolbar input { flex: 1 1 200px; min-width: 0; }

.wall { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 22px; padding-top: 18px; }
.tagcard { position: relative; background: var(--tag); color: var(--tag-ink); border-radius: 8px 8px 8px 8px; padding: 30px 18px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transform: rotate(var(--tilt, 0deg)); transition: transform .2s ease; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.tagcard:hover { transform: rotate(0deg) translateY(-3px); }
.tagcard::before { content: ""; position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 2px var(--gold); }
.tagcard::after { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 38px; background: var(--gold); }
.tagcard .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--tag-muted); }
.tagcard p { margin: 0; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.tagcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px dashed #d4e2ec; flex-wrap: wrap; }
.pill { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.pill.career { background: #e3f0fa; color: var(--blue); }
.pill.winter { background: #e6f4e0; color: var(--green-dark); }
.pill.joy { background: #fdf0d6; color: #8a5a00; }
.pill.example { background: #eef1f4; color: var(--tag-muted); }
.links { display: flex; gap: 10px; font-size: 12.5px; }
.links button { font: inherit; background: none; border: 0; padding: 0; color: var(--tag-muted); text-decoration: underline; cursor: pointer; }
.tagcard .grant-btn { font-family: var(--display); font-weight: 700; font-size: 13.5px; background: var(--green-dark); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.tagcard .grant-btn:hover { background: #17663a; }
.tagcard.granted { background: #f1f8ee; }
.granted-mark { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--green-dark); }
.granted-mark svg { width: 18px; height: 18px; }
.tagcard.pending { background: #fffaf0; outline: 2px dashed var(--gold); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px; border: 1px dashed var(--line); border-radius: 8px; }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.offer { border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; gap: 8px; background: var(--navy); min-width: 0; }
.offer h3 { font-size: 1.1rem; }
.offer .who { font-size: 13px; color: var(--muted); }
.offer .left { font-size: 13px; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.offer p { margin: 0; font-size: 14.5px; color: #dbe6ef; }

/* Quiz */
.quiz { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 28px; align-items: start; }
.bauble { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin: 20px auto 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #ffffff55 0 12%, transparent 13%), radial-gradient(circle at 50% 55%, var(--green) 0, var(--green-dark) 70%); display: grid; place-items: center; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,.35); max-width: 100%; }
.bauble::before { content: ""; position: absolute; top: -20px; left: 50%; width: 46px; height: 26px; margin-left: -23px; background: var(--gold); border-radius: 6px 6px 3px 3px; }
.bauble::after { content: ""; position: absolute; top: -44px; left: 50%; width: 2px; height: 26px; background: var(--gold); }
.bauble .score { font-family: var(--display); font-size: 50px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.bauble .of { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.qcard { background: var(--tag); color: var(--tag-ink); border-radius: 10px; padding: 24px; box-shadow: 0 18px 40px rgba(0,0,0,.35); min-width: 0; }
.qprog { display: flex; gap: 5px; margin-bottom: 14px; }
.qprog i { flex: 1; height: 6px; border-radius: 3px; background: #d4e2ec; }
.qprog i.done { background: var(--green-dark); }
.qprog i.miss { background: #c0392b; }
.qprog i.now { background: var(--gold); }
.qnum { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tag-muted); font-weight: 700; }
.qcard h3 { font-size: 1.35rem; margin: 6px 0 16px; }
.opts { display: grid; gap: 10px; }
.opt { font: inherit; text-align: left; font-size: 15px; padding: 12px 14px; border-radius: 8px; border: 2px solid #d4e2ec; background: #fff; color: var(--tag-ink); cursor: pointer; }
.opt:hover:not([disabled]) { border-color: var(--gold); }
.opt[disabled] { cursor: default; }
.opt.right { border-color: var(--gold); background: #fdf0d6; font-weight: 700; }
.opt.wrong { border-color: #c0392b; background: #fbe9e7; }
.fact { margin: 14px 0 0; font-size: 14.5px; color: var(--tag-muted); }
.qnext { margin-top: 16px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.qnext .btn.ghost { color: var(--tag-ink); border-color: #c9d6e2; }
@media (max-width: 860px) { .quiz { grid-template-columns: minmax(0,1fr); } }
/* FAQ */
.faq { display: grid; gap: 10px; max-width: 780px; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
summary { font-family: var(--display); font-weight: 600; font-size: 1.05rem; cursor: pointer; }
details p { margin: 10px 0 0; color: #dbe6ef; }

footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 13.5px; color: var(--muted); }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Grant panel */
dialog { border: 0; border-radius: 10px; padding: 0; max-width: 520px; width: calc(100% - 32px); background: var(--tag); color: var(--tag-ink); }
dialog::backdrop { background: rgba(3,39,66,.75); }
dialog .inner { padding: 24px; }
dialog h3 { font-size: 1.4rem; margin-bottom: 6px; }
dialog blockquote { margin: 0 0 16px; padding: 12px 14px; background: #f4f7fa; border-left: 4px solid var(--gold); font-size: 15px; }
dialog .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
dialog .btn.ghost { color: var(--tag-ink); border-color: #c9d6e2; }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--green-dark); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 20; box-shadow: 0 8px 20px rgba(0,0,0,.35); }

/* Support BCN */
.support .wrap { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 28px; align-items: center; }
.support h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 8px; }
.support p { margin: 0 0 10px; color: #dbe6ef; max-width: 58ch; }
.support .note { font-size: 13px; color: var(--muted); }
.fund { border: 2px solid var(--gold); border-radius: 10px; padding: 20px; display: grid; gap: 12px; }
.fund h3 { font-size: 1.15rem; }
.fund ul { margin: 0; padding-left: 18px; color: #dbe6ef; font-size: 14.5px; display: grid; gap: 6px; }
/* e-Transfer box */
.etransfer { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.et-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.et-email { font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; user-select: all; }
.etransfer .btn { justify-self: start; }
@media (max-width: 860px) { .support .wrap { grid-template-columns: minmax(0,1fr); } }
/* Live-site extras */
.lbl { font-weight: 700; font-size: 14px; }
.keep { margin: 0; font-size: 14px; font-weight: 700; }
textarea.short { min-height: 70px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.letter { overflow: hidden; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; }
.offer .pill { justify-self: start; }
.offer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tilt-0 { --tilt: -1.2deg; } .tilt-1 { --tilt: -0.6deg; } .tilt-2 { --tilt: 0deg; } .tilt-3 { --tilt: 0.6deg; } .tilt-4 { --tilt: 1.2deg; }
.loading { grid-column: 1 / -1; color: var(--muted); padding: 20px 0; }
.btn[disabled] { opacity: .6; cursor: wait; }
footer .foot-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) auto; gap: 24px; align-items: start; }
.foot-brand { display: grid; gap: 10px; }
.foot-brand p { margin: 0; }
.foot-brand img { width: 122px; height: auto; }
.foot-contact { display: grid; gap: 6px; }
.foot-contact a { color: #fff; text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.foot-bebc { display: flex; gap: 10px; align-items: center; color: #d4e2ec; }
.foot-bebc b { color: #fff; }
footer .land { display: block; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
footer .land p { margin: 0 0 6px; max-width: 110ch; }
@media (max-width: 760px) { footer .foot-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 860px) {
  .letter-grid { grid-template-columns: minmax(0,1fr); }
  .days { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .promises { grid-template-columns: minmax(0,1fr); }
  .row2 { grid-template-columns: minmax(0,1fr); }
  .stamp { display: none; }
  .hero .wrap { padding-block: 40px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .tagcard, .tagcard:hover { transition: none; transform: none; }
}
