/* AES UK Section interim site. Colours follow the global AES site. */
:root {
  --blue: #0b3f66;          /* AES primary */
  --blue-dark: #051c2e;
  --blue-tint: #e8f4fd;
  --magenta: #a21e6e;       /* AES accent */
  --magenta-tint: #fbe9f4;
  --ink: #1a1a1a;
  --muted: #4a5560;
  --line: #d5dbe1;
  --bg: #ffffff;
  --radius: 12px;
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--magenta); }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }
.narrow { max-width: 46rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--blue); color: #fff; padding: 0.5rem 1rem; z-index: 10;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; color: #fff; }

.draft-banner {
  background: #fff4cc;
  color: #4d3800;
  border-bottom: 1px solid #e6c84d;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.4rem 1rem;
}

/* ---------- Header */

.site-header { background: #fff; }

.brand-row { padding-top: 0.875rem; padding-bottom: 0.875rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--blue);
}
.brand img { width: 9.5rem; }
.brand-section {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  padding-left: 0.875rem;
  border-left: 2px solid var(--line);
  white-space: nowrap;
}
@media (min-width: 40rem) {
  .brand img { width: 12rem; }
  .brand-section { font-size: 1.5rem; padding-left: 1.125rem; }
}

.site-nav { background: var(--blue); }
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.site-nav a {
  display: block;
  padding: 0.8rem 0;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.6); }
.site-nav a[aria-current="page"] { border-bottom-color: #f3bede; }
.site-nav a:focus-visible { outline-color: #fff; }
@media (min-width: 40rem) { .site-nav ul { gap: 0 2.25rem; } }

/* ---------- Page sections */

.hero, .page-head {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(circle at 92% 0%, var(--magenta-tint), transparent 40%),
    #fff;
}
.hero { text-align: center; padding: 4rem 0 3.5rem; }
@media (min-width: 40rem) { .hero { padding: 5.5rem 0 4.5rem; } }
.page-head { border-bottom: 1px solid var(--line); }

.eyebrow {
  color: var(--magenta);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.hero .lede { margin: 0 auto; }

.section { padding: 2.5rem 0; }
@media (min-width: 40rem) { .section { padding: 3.5rem 0; } }
.section-tint { background: var(--blue-tint); }
.section-title { margin-bottom: 1.25rem; }

.empty {
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  max-width: 46rem;
}

.more { margin-top: 1.25rem; font-weight: 600; }

.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.button:hover { background: var(--magenta); color: #fff; }

.cta { text-align: center; }

/* ---------- Events */

.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 52rem; }
.event {
  position: relative;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  background: #fff;
}
.event:hover { border-left-color: var(--magenta); }
.event-title { font-size: 1.25rem; margin-bottom: 0.3rem; }
.event-title a { text-decoration: none; }
.event-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.event-title a:hover { text-decoration: underline; }
.event-date { margin: 0; color: var(--magenta); font-weight: 600; }

/* ---------- Home feature cards */

.feature-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.feature {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature h3 { margin-bottom: 0.4rem; }
.feature h3 a { text-decoration: none; }
.feature h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.feature p { margin: 0; color: var(--muted); }
.feature:hover { border-color: var(--blue); }
.feature-accent { border-top: 5px solid var(--magenta); }

/* ---------- Supporters */

.supporter-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.supporter {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #fff;
}
.supporter:hover { border-color: var(--blue); }
.supporter-logo {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.supporter-logo img { width: 100%; height: 100%; object-fit: contain; }
.supporter-name { font-size: 1.2rem; margin-bottom: 0.4rem; }
.supporter-name a { text-decoration: none; color: var(--ink); }
.supporter-name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.supporter-strapline { color: var(--muted); }
.supporter-link {
  margin: auto 0 0;
  color: var(--blue);
  font-weight: 600;
}
.supporter-link::after { content: " →"; }
.supporter:hover .supporter-link { color: var(--magenta); }

/* Associate supporters: same card, about half the size, in a denser grid */
.associates {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.associates:first-child { margin-top: 0; padding-top: 0; border-top: 0; } /* no main supporters above */
.associates-title { font-size: 1.35rem; margin-bottom: 1.25rem; }
.associate-grid {
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
}
.associate-grid .supporter { padding: 0.9rem; }
.associate-grid .supporter-logo { aspect-ratio: 3 / 2; padding: 0.75rem; margin-bottom: 0.75rem; }
.associate-grid .supporter-name { font-size: 1rem; margin-bottom: 0.25rem; }
.associate-grid .supporter-strapline { font-size: 0.9rem; margin-bottom: 0.75rem; }
.associate-grid .supporter-link { font-size: 0.9rem; }

.supporter-strip { border-top: 1px solid var(--line); }
.strip-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center;
}
.strip-logos img { height: 3.5rem; width: auto; max-width: 11rem; object-fit: contain; }

/* ---------- Committee */

.member-grid {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.member {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.member-photo {
  width: 7rem; height: 7rem; object-fit: cover;
  border-radius: 50%; margin-bottom: 1rem;
}
.member-name { font-size: 1.2rem; margin-bottom: 0.2rem; }
.member-role { color: var(--magenta); font-weight: 600; margin-bottom: 0.5rem; }
.member-bio { color: var(--muted); margin: 0; }
.contact-note { margin-top: 1.5rem; }

/* ---------- Footer */

.site-footer {
  background: var(--blue);
  color: #fff;
  padding: 2.5rem 0;
  margin-top: 0;
  font-size: 0.975rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f3bede; }
.site-footer a:focus-visible { outline-color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr auto; } }
.footer-name { font-weight: 700; font-size: 1.1rem; }
.site-footer p { margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }

.social {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.social a:hover { text-decoration: underline; }
.social svg { fill: currentColor; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  a, .button, .event, .feature, .supporter { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
}
