:root {
  --navy: #12233a;
  --blue: #2f3f99;
  --sky: #55b6df;
  --pale: #d4eeee;
  --orange: #f15a24;
  --amber: #ffc914;
  --gold: #ffb21a;
  --green: #91d51f;
  --ink: #121b2d;
  --muted: #5b6575;
  --paper: #fff8e9;
  --white: #ffffff;
  --line: rgba(18, 35, 58, 0.16);
  --shadow: 0 22px 60px rgba(18, 35, 58, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Arial Rounded MT Bold, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 8px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 4px solid transparent;
  backdrop-filter: blur(20px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--amber);
  box-shadow: 0 10px 28px rgba(18, 35, 58, 0.12);
}

.brand {
  display: block;
  min-width: 0;
}

.brand img {
  display: block;
  width: min(100%, 220px);
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 900;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--orange);
}

.nav-action,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 950;
}

.nav-action {
  color: var(--white);
  background: var(--blue);
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button.primary {
  color: var(--navy);
  background: var(--amber);
  box-shadow: 0 14px 24px rgba(255, 201, 20, 0.3);
}

.button.secondary {
  color: var(--white);
  background: var(--navy);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 0.95fr) minmax(310px, 0.58fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  overflow: hidden;
  padding: clamp(46px, 8vh, 86px) clamp(16px, 5vw, 72px) clamp(34px, 7vh, 72px);
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(18, 35, 58, 0.98) 0 48%, rgba(18, 35, 58, 0.72) 48% 70%, rgba(18, 35, 58, 0.08) 70%),
    url("assets/bcf-banner.jpg") center / cover no-repeat;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.92;
  background:
    linear-gradient(135deg, transparent 0 12%, rgba(255, 201, 20, 0.92) 12% 19%, transparent 19% 100%),
    linear-gradient(45deg, transparent 0 70%, rgba(241, 90, 36, 0.88) 70% 82%, transparent 82%),
    linear-gradient(135deg, transparent 0 78%, rgba(85, 182, 223, 0.72) 78% 90%, transparent 90%);
  mix-blend-mode: normal;
  pointer-events: none;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 90px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-copy,
.poster-frame {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 830px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(3.2rem, 8.5vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.16rem;
  line-height: 1.18;
}

.hero-text {
  max-width: 650px;
  color: #eefbff;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
}

.event-strip {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 26px;
  border: 4px solid var(--navy);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--orange);
}

.event-strip span {
  display: grid;
  gap: 3px;
  min-height: 86px;
  align-content: center;
  padding: 14px 18px;
  color: var(--navy);
  border-right: 2px solid var(--line);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 950;
  text-transform: uppercase;
}

.event-strip span:last-child {
  border-right: 0;
}

.event-strip strong {
  color: var(--orange);
  font-size: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.poster-frame {
  justify-self: end;
  width: min(100%, 440px);
  margin: 0;
  padding: 12px;
  background: var(--white);
  border: 5px solid var(--navy);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.poster-frame img,
.photo-tile img,
.feature-photo,
.bee-card img,
.site-footer img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-panel,
.section,
.join {
  padding: clamp(72px, 10vw, 132px) clamp(16px, 5vw, 72px);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: end;
}

.intro-panel h2 {
  color: var(--navy);
}

.intro-panel p:last-child,
.section p,
.join p,
.map-copy li {
  color: var(--muted);
}

.intro-panel p:last-child {
  margin: 0;
  font-size: 1.15rem;
}

.photo-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding-top: 0;
  background:
    linear-gradient(135deg, transparent 0 14%, rgba(255, 201, 20, 0.22) 14% 24%, transparent 24% 100%),
    var(--paper);
}

.photo-story-copy {
  max-width: 560px;
}

.photo-story-copy h2 {
  color: var(--navy);
}

.photo-story-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 158px;
  gap: 12px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border: 5px solid var(--navy);
  border-radius: 4px;
  box-shadow: 10px 10px 0 rgba(18, 35, 58, 0.16);
  background: var(--navy);
}

.photo-tile img {
  height: 100%;
  object-fit: cover;
}

.photo-tile figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 10px;
  color: var(--navy);
  background: var(--amber);
  border: 3px solid var(--navy);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.photo-large {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-tall {
  grid-row: span 2;
}

.video-highlight {
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(17, 142, 190, 0.18) 0 16%, transparent 16% 100%),
    var(--pale);
}

.video-copy {
  max-width: 560px;
}

.video-copy h2 {
  color: var(--navy);
}

.video-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.video-frame {
  margin: 0;
  padding: 12px;
  background: var(--navy);
  border: 5px solid var(--navy);
  border-radius: 4px;
  box-shadow: 12px 12px 0 rgba(18, 35, 58, 0.16);
}

.video-frame video,
.video-frame img {
  display: block;
  width: 100%;
  max-height: 640px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #050b18;
  border-radius: 2px;
}

.video-frame figcaption {
  margin-top: 10px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-heading {
  max-width: 980px;
  margin-bottom: 34px;
}

.programme {
  background:
    linear-gradient(135deg, transparent 0 10%, rgba(255, 255, 255, 0.24) 10% 18%, transparent 18% 100%),
    var(--navy);
}

.programme h2,
.programme h3 {
  color: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 24px;
  border: 5px solid var(--navy);
  border-radius: 4px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.18);
}

.feature-card::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 35, 58, 0.2), rgba(18, 35, 58, 0.9)),
    linear-gradient(135deg, rgba(255, 201, 20, 0.28), transparent 40%);
}

.feature-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.02);
}

.music-card {
  background: var(--orange);
}

.food-card {
  background: var(--sky);
}

.family-card {
  background: var(--green);
}

.arts-card {
  background: var(--blue);
}

.feature-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-bottom: 88px;
  padding: 0 12px;
  color: var(--navy);
  background: var(--amber);
  border: 3px solid var(--navy);
  font-weight: 950;
  text-transform: uppercase;
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 2;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
}

.activity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.activity-list span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  color: var(--navy);
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 4px;
  font-weight: 950;
}

.map-section {
  background: var(--paper);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 0.58fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: stretch;
}

.map-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(45deg, transparent 0 20%, rgba(255, 255, 255, 0.56) 20% 26%, transparent 26%),
    linear-gradient(135deg, transparent 0 62%, rgba(241, 90, 36, 0.25) 62% 74%, transparent 74%),
    #bfe8ef;
  border: 5px solid var(--navy);
  border-radius: 4px;
  box-shadow: 12px 12px 0 var(--orange);
}

.map-panel > div {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  text-align: center;
  border: 4px solid var(--navy);
  border-radius: 4px;
  font-weight: 950;
  text-transform: uppercase;
}

.map-stage {
  right: 10%;
  bottom: 16%;
  width: 32%;
  height: 25%;
  color: white;
  background: var(--orange);
}

.map-market {
  top: 31%;
  left: 9%;
  width: 37%;
  height: 25%;
  background: var(--amber);
}

.map-family {
  right: 14%;
  top: 25%;
  width: 31%;
  height: 19%;
  background: var(--green);
}

.map-community {
  bottom: 12%;
  left: 14%;
  width: 32%;
  height: 18%;
  background: white;
}

.map-entry {
  top: 4%;
  right: -5%;
  left: -5%;
  height: 74px;
  color: white;
  background: var(--blue);
  transform: rotate(-2deg);
}

.map-copy {
  align-self: center;
  padding: 28px;
  color: var(--navy);
  background: var(--white);
  border: 5px solid var(--navy);
  border-radius: 4px;
}

.map-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 20px;
}

.stories {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 201, 20, 0.92) 0 18%, transparent 18%),
    var(--blue);
}

.stories h2,
.stories h3 {
  color: var(--white);
}

.story-lead {
  max-width: 850px;
  margin-bottom: 34px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.story-grid article,
.organiser-grid article,
.news-grid article,
.signup {
  border: 5px solid var(--navy);
  border-radius: 4px;
  background: var(--white);
}

.story-grid article {
  min-height: 300px;
  padding: 24px;
  color: var(--ink);
}

.story-grid h3 {
  color: var(--navy);
}

.story-grid p {
  color: var(--muted);
}

.bee-card img {
  max-width: 280px;
  margin-bottom: 26px;
}

.organisers {
  background: #eef8fb;
}

.organiser-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.organiser-grid article,
.news-grid article {
  padding: 22px;
}

.organiser-grid h3,
.news-grid h3 {
  color: var(--navy);
}

.news {
  background: var(--paper);
}

.news-grid time {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-weight: 950;
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(255, 201, 20, 0.95) 72% 86%, transparent 86%),
    var(--navy);
}

.join h2 {
  color: var(--white);
}

.join p {
  max-width: 760px;
  color: #eefbff;
}

.signup {
  display: grid;
  gap: 14px;
  padding: 24px;
  box-shadow: 12px 12px 0 var(--orange);
}

.signup label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 950;
}

.signup input,
.signup select {
  width: 100%;
  min-height: 50px;
  padding: 0 12px;
  color: var(--ink);
  background: #f7fbfd;
  border: 3px solid var(--navy);
  border-radius: 4px;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--blue);
  font-weight: 950;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(16px, 5vw, 72px);
  background: var(--white);
  border-top: 5px solid var(--amber);
}

.site-footer img {
  max-width: 310px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--blue);
  font-weight: 950;
}

.nav-action:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus,
select:focus {
  outline: 4px solid rgba(255, 201, 20, 0.55);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 210px 1fr auto;
  }

  .feature-grid,
  .organiser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand img {
    max-width: 230px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .intro-panel,
  .photo-story,
  .video-highlight,
  .map-layout,
  .join {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .poster-frame {
    justify-self: start;
    width: min(100%, 360px);
    transform: none;
  }

  .event-strip,
  .photo-mosaic,
  .story-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .photo-mosaic {
    grid-auto-rows: 220px;
  }

  .photo-large,
  .photo-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .event-strip span {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .event-strip span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand img {
    max-width: 190px;
  }

  .nav-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2rem, 10.5vw, 3.2rem);
  }

  .hero {
    padding-right: 8px;
    padding-left: 8px;
    background:
      linear-gradient(180deg, rgba(18, 35, 58, 0.96), rgba(18, 35, 58, 0.9)),
      url("assets/bcf-banner.jpg") center / cover no-repeat;
  }

  .button {
    width: 100%;
  }

  .poster-frame {
    width: min(100%, 310px);
  }

  .feature-grid,
  .organiser-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 270px;
  }

  .feature-label {
    margin-bottom: 58px;
  }

  .map-panel {
    min-height: 410px;
  }

  .map-panel > div {
    font-size: 0.82rem;
  }

  .site-footer img {
    max-width: 250px;
  }
}
