/* Love Well. Think Hard. — shared styles
   Sticker-style illustrations: flat colour, thick black ink, hard offset shadows.
   The logo's dividing bar returns everywhere as a four-colour stripe. */

:root {
  --ink: #000000;
  --text: #22252b;
  --muted: #555c69;
  --paper: #ffffff;
  --line: #d9dce2;

  --rose: #f0446e;
  --rose-tint: #ffe3ea;
  --sun: #ffc83d;
  --sun-tint: #fff3cc;
  --mint: #14a37f;
  --mint-tint: #d6f4ea;
  --cobalt: #2638c9;
  --cobalt-tint: #e2e7ff;

  --display: "Alegreya SC", Georgia, "Times New Roman", serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --stripe: linear-gradient(90deg, var(--rose) 0 25%, var(--sun) 25% 50%, var(--mint) 50% 75%, var(--cobalt) 75% 100%);
  --pop: 6px 6px 0 var(--ink);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); text-decoration-thickness: 2.5px; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Colour surfaces ---------- */
.rose-tint { background: var(--rose-tint); }
.sun-tint { background: var(--sun-tint); }
.mint-tint { background: var(--mint-tint); }
.cobalt-tint { background: var(--cobalt-tint); }
.sun { background: var(--sun); }

/* ---------- SVG art vocabulary ---------- */
svg { overflow: visible; }
.ink { stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.ink-thin { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.no-fill { fill: none; }
.f-rose { fill: var(--rose); }
.f-sun { fill: var(--sun); }
.f-mint { fill: var(--mint); }
.f-cobalt { fill: var(--cobalt); }
.f-white { fill: #fff; }
.f-ink { fill: var(--ink); }
.ray { stroke: #fff; stroke-width: 5; stroke-linecap: round; fill: none; }
.art-glyph {
  font-family: var(--display);
  font-weight: 800;
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 4;
  paint-order: stroke;
}
.dg-label { font-family: var(--display); font-weight: 800; font-size: 30px; fill: var(--ink); }
.dg-tight { font-size: 22px; }
.dg-small { font-family: var(--body); font-weight: 500; font-size: 15.5px; fill: var(--ink); }
.dg-node { font-family: var(--body); font-weight: 700; font-size: 22px; fill: var(--ink); }
.dg-on-dark { fill: #fff; }
.road-edge { fill: none; stroke: var(--ink); stroke-width: 32; stroke-linecap: round; }
.road { fill: none; stroke: var(--mint); stroke-width: 24; stroke-linecap: round; }
.road-line { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 10 12; }
.handle-edge { fill: none; stroke: var(--ink); stroke-width: 18; stroke-linecap: round; }
.handle { fill: none; stroke: var(--cobalt); stroke-width: 9; stroke-linecap: round; }

.art { width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 3px solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.0625rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { background: var(--sun-tint); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sun); font-weight: 700; }
.nav a.nav-donate {
  margin-left: 10px;
  background: var(--rose);
  color: var(--ink);
  font-weight: 700;
  padding: 7px 18px;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.nav a.nav-donate:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav a.nav-donate[aria-current="page"] { background: var(--rose); }

.nav-toggle {
  display: none;
  appearance: none;
  border: 2.5px solid var(--ink);
  background: var(--sun);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .brand img { height: 34px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    padding: 12px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 1.125rem; }
  .nav a.nav-donate { margin: 8px 0 0; text-align: center; padding: 12px; }
}

/* ---------- Split title (logo device) ---------- */
.split { padding: clamp(40px, 7vw, 88px) 0; border-bottom: 3px solid var(--ink); }

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero-title { margin: 0; font-weight: inherit; }

.split-top,
.split-bottom {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}

.split-rule {
  display: block;
  height: 16px;
  background: var(--stripe);
  border: 3px solid var(--ink);
  margin: clamp(14px, 2vw, 22px) 0;
  transform-origin: left center;
  box-shadow: 4px 4px 0 var(--ink);
}

.page-title { font-size: clamp(2.75rem, 7vw, 5rem); }
.page-dek {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
  margin: 0;
}

.head-art { max-width: 300px; justify-self: end; }

/* Home hero */
.hero .split-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hero .split-top,
.hero .split-bottom { font-size: clamp(3.2rem, 7.4vw, 7rem); white-space: nowrap; }
.hero .split-rule { height: clamp(16px, 1.8vw, 24px); }
.hero .art { max-width: 540px; justify-self: end; }

@media (prefers-reduced-motion: no-preference) {
  .hero .split-rule { animation: draw 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both; }
  .hero .split-bottom { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s both; }
  .hero .art { animation: pop 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.35s both; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(0.18em); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.85) rotate(-4deg); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .split-grid,
  .hero .split-grid { grid-template-columns: 1fr; }
  .hero .art { max-width: 380px; justify-self: center; }
  .head-art { max-width: 200px; justify-self: start; order: -1; }
}

/* ---------- Bands ---------- */
.band { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 3px solid var(--ink); }
.band:last-child { border-bottom: 0; }
.band-flush { padding-top: 0; }
.band.no-rule { border-bottom: 0; }

.section-head {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 16px;
}
.section-head.center { text-align: center; }

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.3rem, 2.3vw, 1.55rem); line-height: 1.45; color: var(--ink); }

.pull {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
  border-left: 10px solid var(--rose);
  padding: 4px 0 4px 20px;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) { .manifesto { grid-template-columns: 1fr; } }

/* ---------- Diagrams ---------- */
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
  margin-top: 18px;
}
.diagram-hub { max-width: 760px; margin: 12px auto 0; }
.diagram-hub a .pill { transition: filter 0.15s ease; }
.diagram-hub a:hover .pill { filter: brightness(1.12); }
.diagram-hub a:hover text { text-decoration: underline; }
.diagram-hub a:focus-visible { outline: none; }
.diagram-hub a:focus-visible .pill { stroke: var(--cobalt); stroke-width: 6; }
.diagram-topics { margin-top: 24px; }

/* ---------- Event ---------- */
.event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.event-date {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.9;
  text-align: center;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--pop);
  padding: 16px 24px 18px;
  min-width: 136px;
  transform: rotate(-3deg);
}
.event-date .m { display: block; font-size: 1.5rem; color: var(--rose); }
.event-date .d { display: block; font-size: 4.5rem; }
.event-date .w { display: block; font-family: var(--body); font-weight: 700; font-size: 0.9375rem; color: var(--muted); margin-top: 6px; }
.event h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--ink);
}
.event .when { font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.event p { margin: 0; max-width: 54ch; color: var(--ink); }
.event .btn { margin-top: 22px; }

@media (max-width: 900px) {
  .event { grid-template-columns: auto minmax(0, 1fr); }
  .event-art { grid-column: 1 / -1; max-width: 320px; }
}
@media (max-width: 600px) {
  .event { grid-template-columns: 1fr; }
  .event-date { justify-self: start; display: flex; align-items: baseline; gap: 10px; padding: 10px 18px; min-width: 0; }
  .event-date .d { font-size: 2.75rem; }
  .event-date .w { margin: 0; }
  .event-art { max-width: 260px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 3px solid var(--ink);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--rose); }
.btn-dark:hover { color: #fff; box-shadow: 6px 6px 0 var(--rose); }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--sun); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.center-cta { text-align: center; margin: 40px 0 0; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.steps .step {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--pop);
  padding: 24px 22px 26px;
}
.steps .step::before {
  content: counter(step);
  position: absolute;
  top: -18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
}
.step-icon { width: 84px; height: 84px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; border: 2.5px solid var(--ink); }
.step-icon svg { width: 64px; height: 64px; }
.steps .rose-tint .step-icon { background: var(--rose-tint); }
.steps .sun-tint .step-icon { background: var(--sun-tint); }
.steps .cobalt-tint .step-icon { background: var(--cobalt-tint); }
.steps .mint-tint .step-icon { background: var(--mint-tint); }
.step h3 { font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; color: var(--ink); margin: 0 0 8px; }
.step p { margin: 0; font-size: 1.0625rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 48px; align-items: center; }
.cta .art { max-width: 300px; justify-self: end; }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; }
  .cta .art { max-width: 220px; justify-self: start; order: -1; }
}

/* ---------- Topics ---------- */
.topics { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.topics li {
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 18px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.topics .c-cobalt { background: var(--cobalt); color: #fff; }
.topics .c-rose { background: var(--rose); }
.topics .c-mint { background: var(--mint); }
.topics .c-sun { background: var(--sun); }
.topics li.open { border-style: dashed; box-shadow: none; }
.diagram-topics + .topics { display: none; }
@media (max-width: 700px) {
  .diagram-topics { display: none; }
  .diagram-topics + .topics { display: flex; }
}

/* ---------- Connect ---------- */
.channels { display: grid; gap: 36px; }
.channel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 4vw, 44px);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink);
  scroll-margin-top: 100px;
}
.channel-head { display: flex; gap: 18px; align-items: flex-start; }
.channel-icon { flex: 0 0 72px; }
.channel-icon svg { width: 72px; height: 72px; }
.channel .section-head { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 8px; }
.channel p { margin: 0; }
@media (max-width: 860px) { .channel { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .channel-head { flex-direction: column; gap: 10px; } }

.email-big {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 4px solid var(--cobalt);
}
.email-big:hover { color: var(--cobalt); }
.email-row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }
.copy-btn { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

.discord { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.discord .qr img { width: 168px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }

.frame {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.frame iframe { display: block; width: 100%; border: 0; }
.fine { font-size: 1rem; color: var(--muted); margin-top: 14px !important; }

/* ---------- Donate ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.duo-sticky { position: sticky; top: 104px; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo-sticky { position: static; }
}

/* ---------- Testimonies / volunteer ---------- */
.empty {
  background: #fff;
  border: 3px dashed var(--ink);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  margin-top: 28px;
}
.empty h2 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.85rem; margin: 0 0 8px; line-height: 1.1; }
.empty p { margin: 0 0 22px !important; }

.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 40px; }
.story { border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--pop); padding: 26px; }
.story h2 { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.75rem; margin: 0 0 8px; line-height: 1.1; }
.story p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding: 0 0 40px; font-size: 1rem; }
.site-footer .stripe { height: 14px; background: var(--stripe); margin-bottom: 52px; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 32px 56px; align-items: start; }
.site-footer .brand img { height: 52px; filter: invert(1); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-meta {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
@media (max-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav a { transition: none; }
}

/* Diagrams swap to tall layouts on phones so their labels stay readable */
.diagram .dg-tall { display: none; }
@media (max-width: 600px) {
  .diagram .dg-wide { display: none; }
  .diagram .dg-tall { display: block; max-width: 340px; margin: 0 auto; }
  .dg-small { display: none; }
}
