:root {
  --ground: #FFFBF5;
  --ink: #2E1D12;
  --muted: #5C4537;
  --line: #F1E4D6;
  --accent: #F28C28;
  --peach: #FFE9D2;
  --blue-tint: #E3EEFB;
  --blue: #1F5FAE;
  --green-tint: #E4F4DE;
  --green: #2E7D32;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(40px, 6vw, 72px); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  padding-block: 12px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 0.3px; }
.wordmark .c1 { color: #2952CC; } .wordmark .c2 { color: #D93025; } .wordmark .c3 { color: #D9660B; }
.wordmark .c4 { color: #2E8B3E; } .wordmark .c5 { color: #8E3FB8; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 10px 12px; text-decoration: none; font-weight: 700; font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 17px;
  border: 2px solid transparent;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn:focus-visible, .nav a:focus-visible { outline: 3px solid #2952CC; outline-offset: 2px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 5vw, 64px); align-items: center;
  padding-block: clamp(32px, 6vw, 80px) clamp(24px, 4vw, 56px);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 800;
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -0.5px; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-art { position: relative; display: flex; justify-content: center; padding: 12px; }
.blob {
  width: min(100%, 460px); aspect-ratio: 1 / 1;
  border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
  background: var(--peach); display: flex; align-items: center; justify-content: center;
}
.blob img { width: 82%; height: auto; mix-blend-mode: multiply; }
.foot { position: absolute; }

/* Footprint trail */
.trail { display: flex; justify-content: center; gap: clamp(10px, 3vw, 36px); padding: 8px 20px 24px; overflow: hidden; }
.trail svg:nth-child(odd) { transform: rotate(-14deg) translateY(6px); }
.trail svg:nth-child(even) { transform: scaleX(-1) rotate(-14deg); }

/* Cards */
.h2 { font-size: clamp(30px, 4.5vw, 44px); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.programme { border-radius: 28px; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.programme.pre { background: var(--blue-tint); }
.programme.after { background: var(--green-tint); }
.icon { width: 56px; height: 56px; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; }
.pre .icon { color: var(--blue); } .after .icon { color: var(--green); }
.programme h3 { font-size: 28px; }
.hours { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hours strong { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 44px); line-height: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 14px; background: #fff; border-radius: 999px; font-size: 14px; font-weight: 800; }

/* Funding */
.panel {
  background: #fff; border: 1.5px solid var(--line); border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  display: grid; gap: clamp(20px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.fund { display: flex; gap: 14px; }
.fund .dot { flex: none; width: 12px; height: 12px; margin-top: 9px; border-radius: 50%; }
.fund h3 { font-family: var(--body); font-size: 18px; font-weight: 800; margin-bottom: 4px; }

/* Notice board */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.posts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.post-card {
  position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  padding: 22px 24px; display: flex; flex-direction: column; gap: 10px;
}
.post-card h3 { font-size: 22px; line-height: 1.25; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.post-card:hover { border-color: #E2CDB8; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: #6B5446; }
.cat { padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--ink); background: var(--peach); }
.cat-event { background: var(--blue-tint); }
.cat-learning { background: var(--green-tint); }
.cat-menu { background: #F3E6F9; }

/* Contact */
.contact {
  background: var(--accent); border-radius: 32px;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.contact h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; }
.contact .address { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 700; text-underline-offset: 3px; padding: 6px 0; }
.contact .btn { max-width: 100%; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-block: 24px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 14px; color: var(--muted);
}
.site-footer img { width: 28px; height: 28px; object-fit: contain; }
.site-footer span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-footer a { font-weight: 700; padding: 10px 0; }

/* Article page */
.article { max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 20px; }
.article h1 { font-size: clamp(34px, 6vw, 52px); margin: 12px 0 20px; }
.article .hero-img { border-radius: 22px; margin-bottom: 24px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; margin-top: 1.4em; }
.prose h3 { font-size: 22px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img { border-radius: 16px; height: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; padding: 10px 0; }
