:root {
  color-scheme: light;
  --paper: #fcfaf4;
  --ink: #09334f;
  --muted: #355367;
  --violet: #8b57e7;
  --teal: #08bcb9;
  --yellow: #fdd600;
  --line: #ccd6d7;
  --lavender: #eee5fb;
  --pale-teal: #e3f4f1;
  --white: #fffdf8;
  --sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.container { width: min(100% - 80px, 960px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--white);
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.brand-mark {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
}
.brand-mark::before {
  content: "";
  width: 10px;
  height: 6px;
  border: solid var(--lavender);
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.main-nav { display: flex; gap: clamp(14px, 3vw, 38px); align-items: center; }
.main-nav a, .site-footer a { text-decoration: none; }
.main-nav a { font-size: .9rem; font-weight: 600; color: var(--muted); }
.main-nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.languages {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.languages a {
  display: grid;
  min-width: 44px;
  min-height: 36px;
  place-items: center;
  border-radius: 99px;
  color: var(--ink);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 750;
}
.languages a[aria-current="page"] { background: var(--ink); color: var(--white); }
.languages a:not([aria-current]):hover { background: var(--lavender); }

/* The opening panel uses the brochure's navy cover and paper collage. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.21fr) minmax(0, 1fr);
  gap: clamp(22px, 3.2vw, 46px);
  align-items: center;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.eyebrow {
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.speech-marks {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-block: 22px 17px;
  padding-left: 4px;
}
.speech-marks span {
  position: relative;
  width: 27px;
  height: 21px;
  border-radius: 7px;
  background: var(--bubble);
}
.speech-marks span::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--bubble);
  transform: skewY(-32deg);
}
.speech-marks span:nth-child(1) { --bubble: var(--teal); transform: rotate(-16deg); }
.speech-marks span:nth-child(2) { --bubble: var(--violet); transform: rotate(9deg); }
.speech-marks span:nth-child(3) { --bubble: var(--yellow); transform: rotate(-7deg); }
h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 820;
  letter-spacing: -.055em;
  line-height: 1.04;
}
h1 span { display: block; }
h1 .highlight {
  position: relative;
  isolation: isolate;
  width: fit-content;
  margin-bottom: 6px;
  color: var(--ink);
}
.highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -.13em -.18em -.08em -.13em;
  background: var(--yellow);
  clip-path: polygon(0 8%, 84% 0, 100% 9%, 97% 91%, 4% 100%);
}
.event {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(0, 1.15fr) minmax(0, .92fr);
  gap: 12px 15px;
  margin: 24px 0 17px;
  padding-top: 13px;
  border-top: 1px solid #648498;
}
.event dt { color: var(--yellow); font-size: .81rem; font-weight: 700; }
.event dd { margin: 4px 0 0; font-size: .98rem; font-weight: 750; line-height: 1.35; }
.event-weekday { display: block; }
.intro { max-width: 42ch; margin-bottom: 19px; color: #e0eaef; }
.button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-height: 48px;
  padding: 9px 17px;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--yellow); }
.button:focus-visible { outline-color: var(--white); }
.button span { font-size: 1.12rem; line-height: 1; }

.hero-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1;
}
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
}
.hero-art::before {
  inset: -6% -6% -5% -5%;
  background: var(--violet);
  clip-path: polygon(24% 8%, 100% 0, 90% 87%, 0 100%, 4% 46%);
}
.hero-art::after {
  inset: 0;
  background: var(--white);
  clip-path: polygon(7% 4%, 93% 0, 100% 14%, 95% 91%, 13% 100%, 0 84%);
}
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  clip-path: polygon(9% 7%, 91% 3%, 97% 15%, 92% 88%, 15% 97%, 3% 82%);
}

.section { scroll-margin-top: 24px; }
h2 { font-size: clamp(1.65rem, 3.9vw, 2.45rem); font-weight: 780; line-height: 1.15; letter-spacing: -.045em; }
.candidates { padding-block: 45px 52px; }
.candidates-intro { max-width: 62ch; margin: 12px 0 26px; color: var(--muted); }
.candidate-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}
.candidate-grid > li { min-width: 0; }
.candidate-card {
  --candidate-paper: var(--lavender);
  --candidate-accent: #6a4d91;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.candidate-grid > li:nth-child(3n + 2) .candidate-card {
  --candidate-paper: var(--pale-teal);
  --candidate-accent: #26776f;
}
.candidate-grid > li:nth-child(3n + 3) .candidate-card {
  --candidate-paper: #f8edc2;
  --candidate-accent: #80601d;
}
.candidate-card summary { display: block; cursor: pointer; list-style: none; }
.candidate-card summary::-webkit-details-marker { display: none; }
.candidate-card summary:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; }
.candidate-card:has(summary:hover), .candidate-card[open] { border-color: var(--ink); }
.candidate-art {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  padding-inline: clamp(26px, 5vw, 52px);
  background: var(--candidate-paper);
}
.candidate-art::before, .candidate-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid var(--candidate-accent);
  border-radius: 36px 36px 12px 36px;
  opacity: .32;
}
.candidate-art::before {
  width: 58%;
  height: 52%;
  right: -5%;
  top: 10%;
  transform: rotate(-19deg);
}
.candidate-art::after {
  width: 46%;
  height: 44%;
  right: 10%;
  bottom: -6%;
  transform: rotate(13deg);
}
.candidate-letter {
  color: var(--candidate-accent);
  font-size: clamp(7rem, 16vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.08em;
}
.candidate-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.candidate-art--photo::before, .candidate-art--photo::after { content: none; }
.candidate-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: clamp(19px, 3vw, 30px);
}
.candidate-role {
  display: block;
  margin-bottom: 5px;
  color: var(--candidate-accent);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.candidate-name {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.candidate-slogan { display: block; margin-top: 10px; color: var(--ink); }
.candidate-open, .candidate-close {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 600;
}
.candidate-card[open] .candidate-open,
.candidate-card:not([open]) .candidate-close { display: none; }
.candidate-icon {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--candidate-paper);
}
.candidate-icon::before, .candidate-icon::after {
  content: "";
  grid-area: 1 / 1;
  width: 14px;
  height: 2px;
  background: currentColor;
}
.candidate-icon::after { transform: rotate(90deg); }
.candidate-card[open] .candidate-icon::after { display: none; }
.candidate-profile {
  display: grid;
  gap: 20px;
  margin-inline: clamp(19px, 3vw, 30px);
  padding-block: 21px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .98rem;
  overflow-wrap: anywhere;
}
.candidate-profile h3 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1.1rem;
}
.candidate-profile p { white-space: pre-line; }
.candidate-programme {
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--candidate-paper);
}
.candidate-programme ul { margin: 0; padding-left: 1.25em; }
.candidate-programme p + ul { margin-top: 9px; }
.candidate-programme li + li { margin-top: 6px; }
.candidate-poster {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 650;
  text-underline-offset: 3px;
}
.candidate-poster:hover { border-color: var(--ink); }
.candidate-poster img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: var(--paper);
}
.vote {
  display: grid;
  grid-template-columns: minmax(76px, .38fr) 1.62fr;
  align-items: center;
  gap: clamp(18px, 4vw, 52px);
  padding: clamp(24px, 4vw, 52px);
  background: var(--yellow);
}
.vote-number {
  display: grid;
  place-items: center;
  min-height: 103px;
  padding: .12em .23em;
  background: var(--ink);
  color: var(--white);
  clip-path: polygon(3% 10%, 100% 0, 95% 88%, 12% 100%);
  font-size: clamp(4rem, 9vw, 6rem);
  font-weight: 820;
  line-height: .85;
}
.vote p { max-width: 47ch; margin-top: 12px; font-size: clamp(1rem, 1.5vw, 1.2rem); }

.dates { padding-block: 52px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.timeline li { padding: 18px 20px 20px; background: var(--lavender); }
.timeline time {
  display: block;
  margin-bottom: 10px;
  color: #5e3795;
  font: 800 1.85rem/1.15 var(--sans);
  letter-spacing: -.04em;
}
.timeline small { font: 650 .8rem/1.2 var(--sans); letter-spacing: 0; }
.timeline h3 { font-size: 1.05rem; line-height: 1.28; margin-bottom: 6px; }
.timeline p, .about p { color: var(--muted); }
.about {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 15px 30px;
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 56px;
  background: var(--pale-teal);
}
.about p { max-width: 58ch; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 23px; font-size: .86rem; color: var(--muted); }
.footer-inner a { font-weight: 700; }

@media (min-width: 900px) {
  .candidate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .candidate-art { aspect-ratio: 4 / 3; padding-inline: clamp(24px, 3vw, 40px); }
  .candidate-letter { font-size: clamp(7rem, 12vw, 10rem); }
  .candidate-heading { gap: 10px; padding: clamp(16px, 2vw, 24px); }
  .candidate-name { font-size: clamp(1.55rem, 2.8vw, 2rem); }
  .candidate-icon { width: 36px; }
  .candidate-profile { margin-inline: clamp(16px, 2vw, 24px); }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 48px); }
  .main-nav { gap: 16px; }
  .hero { gap: 28px; }
  .event { grid-template-columns: 1fr 1fr; }
  .event > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 40px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding-top: 10px; }
  .languages { grid-area: 1 / 2; }
  .main-nav { grid-column: 1 / -1; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
  .main-nav a { font-size: .8rem; padding-block: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 16px; }
  h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-art { aspect-ratio: 1.25; }
  .event { grid-template-columns: 1fr 1fr; }
  .event > :first-child { grid-column: 1 / -1; }
  .candidate-grid { grid-template-columns: 1fr; }
  .candidate-art { aspect-ratio: 4 / 3; }
  .candidates { padding-block: 31px 39px; }
  .vote { grid-template-columns: auto minmax(0, 1fr); }
  .vote-number { min-height: 0; }
  .dates { padding-block: 44px; }
  .timeline { grid-template-columns: 1fr; gap: 8px; }
  .timeline li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .timeline small { display: block; }
  .about { grid-template-columns: 1fr; margin-bottom: 42px; }
}
