/* ==========================================================================
   Make Ends Meet Party
   ========================================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #FCFAF5;
  color: #2E2A26;
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

a {
  color: #4A2593;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: #6C3FC0; }

img { display: block; }

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
}

.oswald { font-family: 'Oswald', sans-serif; }

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

.site-header {
  background: #FCFAF5;
  border-bottom: 1px solid #E4DED2;
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  padding: 16px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  width: 158px;
  max-width: 42vw;
  flex: none;
}

.logo img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  color: #2E2A26;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: #4A2593;
  border-bottom-color: #FCDB7E;
}

/* --------------------------------------------------------------------------
   Pages
   -------------------------------------------------------------------------- */

main { flex: 1; }

.page { display: none; }
.page.active { display: block; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: #5B4A7A;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-home       { min-height: min(62vh, 560px); }
.hero-leadership { min-height: min(44vh, 400px); }

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-home .hero-image       { object-position: center 30%; }
.hero-leadership .hero-image { object-position: 60% 62%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-home .hero-overlay {
  background: linear-gradient(to top, rgba(28,12,58,0.92) 12%, rgba(28,12,58,0.55) 52%, rgba(28,12,58,0.2) 100%);
}

.hero-leadership .hero-overlay {
  background: linear-gradient(to top, rgba(28,12,58,0.9) 15%, rgba(28,12,58,0.3) 100%);
}

.hero-content {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
}

.hero-home .hero-content       { padding: 96px 28px 56px; }
.hero-leadership .hero-content { padding: 80px 28px 44px; }

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  color: #FFFFFF;
}

.hero-home h1 {
  font-size: clamp(36px, 6.4vw, 78px);
  max-width: 15em;
  text-wrap: balance;
}

.hero-leadership h1 { font-size: clamp(34px, 5.6vw, 66px); }

.hero h1 span { color: #FCDB7E; }

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */

.lede {
  margin: 0;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
  color: #3A2168;
  font-weight: 600;
}

.body-copy {
  font-size: 17px;
  line-height: 1.75;
  color: #4A443C;
}

.body-copy p { margin: 0; }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
  color: #3A2168;
}

.subhead {
  font-weight: 600;
  color: #4A2593;
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.intro { padding: 64px 28px 56px; }

.intro .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px 56px;
}

.intro .body-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.callout-wrap { padding: 0 28px 72px; }

.callout {
  background: #FCDB7E;
  padding: clamp(28px, 4vw, 48px);
}

.callout p {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.25;
  margin: 0;
  max-width: 24em;
  color: #24201C;
}

.platform { padding: 0 28px 80px; }

.platform .section-title { font-size: clamp(28px, 3.6vw, 46px); }

.platform .subhead {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  margin: 18px 0 0;
}

.platform .platform-intro {
  font-size: 17px;
  line-height: 1.7;
  margin: 26px 0 22px;
  color: #4A443C;
}

.platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* Add class "grid" to .platform-list for a two-up layout */
.platform-list.grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.platform-list li {
  border-top: 2px solid #4A2593;
  padding: 20px 0;
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.platform-list .num {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #4A2593;
  flex: none;
  min-width: 28px;
}

.platform-list .text {
  font-size: 17px;
  line-height: 1.7;
  color: #3A352F;
}

.closing { padding: 0 28px 96px; }

.closing .container {
  border-top: 1px solid #E4DED2;
  padding-top: 40px;
}

.closing p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #4A443C;
  max-width: 44em;
}

/* --------------------------------------------------------------------------
   Leadership
   -------------------------------------------------------------------------- */

.leadership-intro { padding: 48px 28px 40px; }
.leadership-intro .lede { max-width: 34em; }

.leaders { padding: 0 28px 96px; }

.leaders .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 36px 56px;
}

.leader {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 2px solid #4A2593;
  padding-top: 18px;
}

.leader h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 23px;
  line-height: 1.15;
  margin: 0;
  color: #3A2168;
}

.leader .role {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: flex-start;
  background: #FCDB7E;
  padding: 4px 10px;
  color: #24201C;
}

.leader p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #4A443C;
}

/* --------------------------------------------------------------------------
   Fusion voting
   -------------------------------------------------------------------------- */

.fusion { padding: 72px 28px 104px; }

.fusion .section-title {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.02;
}

.fusion .subhead {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.4;
  margin: 18px 0 44px;
}

.fusion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 44px 64px;
  align-items: start;
}

.fusion-grid .body-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  line-height: 1.8;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  border-radius: 16px;
  overflow: hidden;
  background: #F3EDFB;
}

.card-head {
  background: #4A2593;
  color: #FCDB7E;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 18px;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card-body .vote-for {
  font-size: 14px;
  color: #7A7186;
}

.ballot-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 10px;
  padding: 12px 15px;
  background: #FFFFFF;
}

.ballot-row.fusion-line { background: #FDF2DC; }
.ballot-row.results { justify-content: space-between; }

.ballot-row .bubble {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #4A2593;
  flex: none;
}

.candidate {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.candidate .name {
  font-size: 16px;
  color: #241F2E;
}

.candidate .party {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7A7186;
}

.candidate .party.party-a      { color: #4A2593; }
.candidate .party.party-fusion { color: #9A4E22; }

.ballot-row .pct {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #3A2168;
}

/* Winner card */
.card.winner { background: #FDF2DC; }

.card.winner .card-head {
  background: #FCDB7E;
  color: #241F2E;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 13px 18px;
}

.card.winner .card-body {
  padding: 16px 18px 20px;
  gap: 16px;
}

.card.winner .card-body > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #6B5A3A;
}

.bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.bar-label .bar-name {
  font-weight: 600;
  font-size: 14px;
  color: #3A2168;
}

.bar-label .bar-detail {
  font-size: 13px;
  color: #6B5A3A;
}

.bar-track {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  background: #F0E4CB;
}

.bar-main   { background: #4A2593; }
.bar-fusion { background: #C25A2E; }

.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6B5A3A;
}

.legend span {
  display: flex;
  gap: 7px;
  align-items: center;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Privacy
   -------------------------------------------------------------------------- */

.privacy { padding: 88px 28px 120px; }

.privacy .container { max-width: 720px; }

.privacy .section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
}

.privacy-intro {
  font-size: 17px;
  line-height: 1.8;
  margin: 24px 0 20px;
  color: #4A443C;
}

.privacy ol,
.privacy ul {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  font-size: 17px;
  line-height: 1.7;
  color: #4A443C;
}

.privacy ol {
  margin: 0 0 44px;
  gap: 10px;
}

.privacy ul {
  margin: 0;
  gap: 8px;
}

.privacy-sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.privacy-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 2px solid #4A2593;
  padding-top: 20px;
}

.privacy-section h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
  color: #3A2168;
}

.privacy-section p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #4A443C;
}

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

.site-footer {
  background: #3A2168;
  color: #FFFFFF;
  padding: 48px 28px 40px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 28px 56px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand .footer-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 21px;
  color: #FCDB7E;
}

.footer-brand .footer-email {
  font-size: 15px;
  line-height: 1.6;
}

.footer-brand a { color: #FFFFFF; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav a {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-nav a:hover { color: #FCDB7E; }

.paid-for {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #C9BEE2;
}
