/* ==========================================================
   COLOURS: change these to change the look of the whole site.
   Keep text colours dark on light backgrounds so it stays easy to read.
   ========================================================== */
:root {
  --brand: #4c3a99;        /* main colour: header, dates, links */
  --brand-dark: #33266e;   /* darker shade for hover and footer */
  --accent: #0f766e;       /* second colour: step numbers, buttons */
  --bg: #ffffff;           /* page background */
  --tint: #f4f1fc;         /* background of alternate sections */
  --text: #1e1b2e;         /* main text */
  --muted: #4f4a63;        /* softer text */
  --radius: 16px;          /* corner roundness */
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 1.1rem; }
.section { padding: 2.5rem 1.1rem; }
.section.wrap { padding-left: 1.1rem; padding-right: 1.1rem; }
.tint { background: var(--tint); padding-left: 0; padding-right: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.12rem; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

/* Header */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 3.5rem 0 3rem; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 3.3rem); }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 700; margin: 0 0 .6rem; }
.lead { font-size: 1.15rem; max-width: 34em; margin: 0 auto 1.6rem; }
.btn { display: inline-block; margin: .25rem; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: .75rem 1.3rem; border-radius: 99px; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn:hover { opacity: .9; }
.hero .btn:focus-visible { outline-color: #fff; }

/* Events */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.events li { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid #e3def3; border-radius: var(--radius); padding: 1rem; }
.events p { margin: 0 0 .2rem; color: var(--muted); }
.events h3 { color: var(--text); }
.date { flex: 0 0 auto; width: 64px; text-align: center; background: var(--brand); border-radius: 12px; padding: .5rem 0; line-height: 1.1; }
.events .date { color: #fff; }
.day { display: block; font-size: 1.5rem; font-weight: 800; }
.mon { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

/* Join steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: .9rem; }
.steps li { counter-increment: s; position: relative; background: #fff; border-radius: var(--radius); padding: 1rem 1rem 1rem 3.6rem; }
.steps li::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* FAQ */
details { background: #fff; border-radius: 12px; margin: 0 0 .7rem; padding: .2rem 1rem; }
summary { cursor: pointer; font-weight: 700; padding: .7rem 0; }
details p { margin: 0 0 .9rem; color: var(--muted); }

/* Contact */
.contact { list-style: none; padding: 0; margin: 0; }
.contact li { margin: .5rem 0; }
.contact a { overflow-wrap: anywhere; font-weight: 600; }

/* Footer */
.footer { background: var(--brand-dark); color: #ece9f7; padding: 1.4rem 0; font-size: .92rem; text-align: center; }
.footer p { margin: .25rem 0; }
.footer a { color: #fff; }

/* Wider screens */
@media (min-width: 720px) {
  .events { grid-template-columns: repeat(3, 1fr); }
  .events li { flex-direction: column; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
