/* Gathering the Voices - light, GOV.UK-influenced, no black */
:root {
  --accent: #4b286d;
  --accent-dark: #2f1848;
  --ink: #2b1745;
  --muted: #4a3a5e;
  --tint-1: #f4effa;
  --tint-2: #e6dcf2;
  --line: #d9cfe6;
  --focus: #ffdd00;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 19px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

a:focus-visible, button:focus-visible {
  outline: 3px solid transparent;
  background-color: var(--focus);
  color: var(--ink);
  box-shadow: 0 -2px var(--focus), 0 4px var(--ink);
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus-visible { left: 0; z-index: 10; padding: 12px 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 40px; padding-top: 16px; padding-bottom: 16px;
}
.site-name { color: var(--accent); text-decoration: none; font-size: 26px; font-weight: 700; line-height: 1.2; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-header nav a { display: inline-block; padding: 12px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

/* Homepage bands */
.band-inner {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
  padding-top: 88px; padding-bottom: 88px;
}
.band-text { flex: 1 1 460px; min-width: 0; }
.band-media { flex: 1 1 360px; min-width: 0; margin: 0; }
.band-media figcaption { font-size: 15px; margin-top: 8px; opacity: .85; }
.band h1 { margin: 0 0 24px; font-size: 56px; line-height: 1.1; font-weight: 700; }
.band h2 { margin: 0 0 20px; font-size: 44px; line-height: 1.15; font-weight: 700; }
.band p { margin: 0 0 32px; font-size: 22px; line-height: 1.45; color: var(--muted); }

.band-1 { background: var(--accent); color: #fff; }
.band-1 p { color: #f1ebf7; font-size: 24px; line-height: 1.4; }
.band-2 { background: var(--tint-1); }
.band-3 { background: #fff; }
.band-4 { background: var(--tint-2); }
.band-2 .band-inner, .band-4 .band-inner { flex-direction: row-reverse; }

.button {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 20px; text-decoration: none;
  box-shadow: 0 3px 0 var(--ink);
}
.button:hover { color: #fff; background: var(--accent-dark); }
.band-1 .button { background: #fff; color: var(--accent); }
.band-1 .button:hover { background: var(--tint-1); color: var(--accent-dark); }

/* Content pages: one centred column, no sidebar */
.prose { max-width: 680px; margin: 0 auto; padding: 48px 24px 88px; }
.crumbs { font-size: 16px; margin-bottom: 32px; color: var(--muted); }
.crumbs span[aria-hidden] { color: #6b5a80; margin: 0 4px; }
.prose h1 { margin: 0 0 24px; font-size: 48px; line-height: 1.15; font-weight: 700; }
.prose h2 { margin: 40px 0 16px; font-size: 32px; line-height: 1.25; font-weight: 700; }
.prose h3 { margin: 32px 0 12px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.prose p { margin: 0 0 24px; }
.prose .lead { font-size: 24px; line-height: 1.5; color: var(--muted); margin-bottom: 32px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 28px; }
.prose li { margin-bottom: 8px; }
.prose figure { margin: 0 0 40px; }
.prose figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 0 0 40px; padding: 24px 28px; background: var(--tint-1); font-size: 22px; line-height: 1.45; }
.prose blockquote p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--accent); color: #fff; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 32px 64px; padding-top: 48px; padding-bottom: 56px;
}
.footer-name { font-size: 24px; font-weight: 700; }
.site-footer p { margin: 8px 0 0; color: var(--tint-2); font-size: 16px; line-height: 1.5; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 17px; }
.site-footer a { display: inline-block; padding: 8px 0; color: #fff; }
.site-footer a:hover { color: var(--tint-2); }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .band-inner { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .band h1 { font-size: 40px; }
  .band h2 { font-size: 34px; }
  .prose h1 { font-size: 38px; }
  .prose h2 { font-size: 28px; }
}
