/* ==========================================================================
   Kevin Kanyama campaign site
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #122019;
  --forest: #123f2b;
  --forest-dark: #0a2c1d;
  --orange: #ee6c29;
  --orange-hover: #d95718;
  --orange-soft: #f3975f;
  --cream: #f5f0e5;
  --paper: #fbf8f1;
  --white: #fffdf8;

  --font-body: "DM Sans", sans-serif;
  --font-display: "Libre Franklin", sans-serif;

  --page-pad: clamp(28px, 6vw, 100px);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

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

button {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

svg {
  width: 1.15em;
  height: 1.15em;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: inherit;
}

/* --------------------------------------------------------------------------
   Shared components
   -------------------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1.5px solid;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-name small {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 56px;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.18s, background 0.18s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--orange);
  color: var(--white);
}

.button-primary:hover {
  background: var(--orange-hover);
}

.button-light {
  background: var(--white);
  color: var(--forest);
}

.button-light:hover {
  background: var(--orange-soft);
}

.kicker {
  margin-bottom: 22px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker-light {
  color: var(--orange-soft);
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 88px;
  padding: 0 clamp(22px, 4.5vw, 76px);
  border-bottom: 1px solid rgba(255, 253, 248, 0.2);
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links > a:not(.nav-cta) {
  position: relative;
}

.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.18s;
}

.nav-links > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 253, 248, 0.45);
}

.menu-button {
  display: none;
  padding: 8px;
  border: 0;
  background: none;
}

.menu-button svg {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 56% 44%;
  min-height: 800px;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 145px clamp(28px, 4.5vw, 76px) 118px;
  background:
    radial-gradient(circle at 10% 80%, rgba(238, 108, 41, 0.18), transparent 28%),
    var(--forest);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -115px;
  bottom: -85px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: 50%;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.eyebrow-line {
  width: 42px;
  height: 2px;
  background: var(--orange);
}

h1 {
  max-width: 780px;
  font-size: clamp(58px, 7.1vw, 112px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: var(--orange-soft);
  font-style: italic;
  font-weight: 800;
}

.hero-lead {
  max-width: 540px;
  margin-top: 38px;
  padding-left: 56px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.65;
  opacity: 0.83;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 42px;
  padding-left: 56px;
}

.election-note {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.election-note strong {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.04em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--cream);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7, 30, 20, 0.35), transparent 45%, rgba(7, 30, 20, 0.42));
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.88) contrast(1.04);
}

.sun-disc {
  position: absolute;
  top: 18%;
  right: -8%;
  z-index: 2;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--orange);
  mix-blend-mode: multiply;
}

.candidate-card {
  position: absolute;
  right: 8%;
  bottom: 14%;
  z-index: 3;
  width: min(330px, 72%);
  padding: 30px;
  border: 1px solid rgba(255, 253, 248, 0.55);
  background: rgba(10, 44, 29, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.candidate-card span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.candidate-card strong {
  display: block;
  margin-top: 16px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(29px, 3vw, 48px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.candidate-card p {
  margin-top: 18px;
  color: var(--orange-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-statement {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  width: 44%;
  min-height: 110px;
  padding: 24px 9%;
  background: var(--orange);
}

.hero-statement p {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 19px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 55px;
  line-height: 0.7;
}

/* --------------------------------------------------------------------------
   Vision
   -------------------------------------------------------------------------- */
.vision-section {
  display: grid;
  grid-template-columns: 23% 77%;
  padding: 125px var(--page-pad);
  background: var(--paper);
}

.section-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label span {
  color: var(--orange);
}

.vision-content {
  max-width: 1020px;
}

.vision-content h2 {
  max-width: 930px;
  font-size: clamp(34px, 4.1vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  max-width: 770px;
  margin-top: 58px;
  margin-left: auto;
  color: rgba(18, 32, 25, 0.68);
  font-size: 14px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Priorities
   -------------------------------------------------------------------------- */
.priorities-section {
  padding: 110px var(--page-pad);
  background: var(--forest-dark);
  color: var(--white);
}

.priorities-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 76px;
}

.priorities-heading h2 {
  font-size: clamp(42px, 5.5vw, 82px);
  font-style: italic;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.priorities-intro {
  max-width: 390px;
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.65;
}

.priority-list {
  border-top: 1px solid rgba(255, 253, 248, 0.18);
}

.priority-card {
  display: grid;
  grid-template-columns: 9% 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.priority-card > span {
  color: var(--orange-soft);
  font-size: 11px;
  font-weight: 700;
}

.priority-card h3 {
  font-size: clamp(21px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.priority-card p {
  max-width: 560px;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.58;
}

.priority-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 50%;
  color: var(--orange-soft);
}

/* --------------------------------------------------------------------------
   Message
   -------------------------------------------------------------------------- */
.message-section {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 690px;
}

.message-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.08) 9px 10px),
    var(--orange);
}

.message-art::before,
.message-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 253, 248, 0.52);
  border-radius: 50%;
}

.message-art::before {
  width: 380px;
  height: 380px;
}

.message-art::after {
  width: 510px;
  height: 510px;
}

.message-art span {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(80px, 11vw, 170px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.1em;
  transform: rotate(-7deg);
}

.message-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px clamp(36px, 8vw, 135px);
  background: var(--cream);
}

.message-copy blockquote {
  max-width: 750px;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.message-note {
  max-width: 590px;
  margin: 32px 0;
  color: rgba(18, 32, 25, 0.65);
  font-size: 14px;
  line-height: 1.7;
}

.message-copy strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.message-role {
  margin-top: 5px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Vote
   -------------------------------------------------------------------------- */
.vote-section {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  align-items: center;
  gap: 9%;
  min-height: 650px;
  padding: 100px clamp(28px, 8vw, 135px);
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.vote-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: min(390px, 80vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 253, 248, 0.4);
  border-radius: 50%;
}

.vote-badge::before,
.vote-badge::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 50%;
}

.vote-badge::after {
  inset: 22%;
  background: var(--orange);
}

.vote-badge span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.vote-badge small {
  position: absolute;
  bottom: 22%;
  z-index: 2;
  color: var(--forest-dark);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.17em;
  text-align: center;
  text-transform: uppercase;
}

.vote-copy h2 {
  font-size: clamp(58px, 8vw, 118px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.vote-text {
  max-width: 550px;
  margin: 36px 0;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 30px var(--page-pad);
  background: var(--paper);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-note {
  justify-self: end;
  color: var(--orange);
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

/* --------------------------------------------------------------------------
   Tablet and below (900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header {
    height: 76px;
  }

  .menu-button {
    position: relative;
    z-index: 25;
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 20;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 80px 30px;
    background: var(--forest-dark);
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.18s, transform 0.18s;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    margin-top: 10px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 370px;
    min-height: 950px;
  }

  .hero-copy {
    padding-top: 125px;
    padding-bottom: 65px;
  }

  .hero-lead,
  .hero-actions {
    padding-left: 0;
  }

  .hero-visual {
    min-height: 370px;
  }

  .hero-visual img {
    object-position: center 24%;
  }

  .candidate-card {
    display: none;
  }

  .hero-statement {
    width: 70%;
    min-height: 85px;
    padding: 18px 28px;
  }

  .vision-section {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .vision-grid {
    margin-left: 0;
  }

  .priorities-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .message-section {
    grid-template-columns: 1fr;
  }

  .message-art {
    min-height: 430px;
  }

  .vote-section {
    grid-template-columns: 1fr;
  }

  .vote-badge {
    width: min(300px, 75vw);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer > p {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Mobile (560px)
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .brand-name {
    font-size: 12px;
  }

  .hero {
    grid-template-rows: auto 330px;
    min-height: 900px;
  }

  .hero-copy {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(49px, 16vw, 70px);
  }

  .hero-lead {
    margin-top: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-top: 30px;
  }

  .hero-statement {
    width: 92%;
  }

  .sun-disc {
    display: none;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 38px;
  }

  .priorities-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .priorities-heading {
    margin-bottom: 48px;
  }

  .priority-card {
    grid-template-columns: 35px 1fr;
    gap: 12px;
  }

  .priority-arrow {
    display: none;
  }

  .message-art {
    min-height: 310px;
  }

  .message-art::before {
    width: 250px;
    height: 250px;
  }

  .message-art::after {
    width: 340px;
    height: 340px;
  }

  .message-copy {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .vote-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
