/* Team CHANGE - ECU Guild Election 2026
   Palette sampled from the campaign posters. */

@font-face {
  font-family: "Alfa Slab One";
  src: url("../fonts/alfa-slab-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-var.woff2") format("woff2-variations"),
       url("../fonts/jost-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #65bedb;
  --sky-dark: #4ba7c6;
  --pink: #ef5b98;
  --pink-light: #fc92e3;
  --yellow: #ede48c;
  --navy: #005792;
  --ink: #0a0a0a;
  --white: #ffffff;

  --display: "Alfa Slab One", Rockwell, "Courier Bold", Georgia, serif;
  --sans: "Jost", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --measure: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.brand img { width: 74px; height: auto; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.site-header nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { border-bottom-color: var(--yellow); }

/* ---------- hero ---------- */

.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 4.5rem;
  text-align: center;
}

.hero-lead {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.75rem, 17vw, 10.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--pink);
  -webkit-text-stroke: 6px var(--yellow);
  paint-order: stroke fill;
  text-shadow:
     6px  6px 0 var(--pink-light),
    12px 12px 0 rgba(252, 146, 227, 0.55);
}

.squiggle {
  display: block;
  width: min(100%, 820px);
  height: auto;
  margin: 1.25rem auto 2.75rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
}

.tagline,
.election-line {
  margin: 0.35rem 0;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
}

.hashtag {
  margin: 1.25rem 0 0;
  color: var(--pink);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
}
.hashtag.small { font-size: 1rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 3px solid var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pink);
  border-color: var(--yellow);
  color: var(--white);
}
.btn-primary:hover { background: #e3467f; }

.btn-ghost { background: transparent; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }

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

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-alt {
  max-width: none;
  background: var(--sky-dark);
}
.section-alt > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  line-height: 1.1;
  color: var(--white);
  text-shadow: 4px 4px 0 var(--pink);
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 60ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 1.6rem;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 rgba(10, 10, 10, 0.85);
  color: var(--ink);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.card p { margin: 0; }

.card-yellow { background: var(--yellow); }
.card-pink { background: var(--pink); color: var(--white); }
.card-white { background: var(--white); }

/* ---------- people ---------- */

.people {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.person {
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 rgba(10, 10, 10, 0.85);
  padding: 1.6rem;
  text-align: center;
}

.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--sky);
  color: var(--white);
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 86px;
}

.person h3 { margin: 0 0 0.2rem; font-size: 1.2rem; font-weight: 600; }

.person .role {
  margin: 0 0 0.75rem;
  color: var(--pink);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.person p { margin: 0; }

/* ---------- steps ---------- */

.steps {
  margin: 0;
  padding-left: 1.3rem;
  max-width: 60ch;
  font-size: 1.1rem;
}
.steps li { margin-bottom: 0.9rem; }
.steps strong { font-weight: 600; color: var(--yellow); }

/* ---------- footer ---------- */

.site-footer {
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
}

.authorisation {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
