:root {
  --navy: #0c3c64;
  --deep: #082236;
  --red: #e83d53;
  --gold: #f0b845;
  --sage: #72805d;
  --paper: #fffaf0;
  --white: #ffffff;
  --ink: #17212a;
  --muted: #5f6870;
  --line: #d9d4ca;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body::selection {
  background: var(--gold);
  color: var(--deep);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(8, 34, 54, 0.94), rgba(12, 60, 100, 0.86)),
    url("assets/juanita-courtroom.jpeg") center / cover;
  color: var(--white);
  position: relative;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--sage));
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.brand,
.nav-links a {
  text-decoration: none;
}

.brand {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  padding: 54px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.74fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 730px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin: 18px 0 10px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 7.7vw, 100px);
  line-height: 0.88;
  font-weight: 1000;
  text-transform: uppercase;
}

.office {
  width: fit-content;
  margin: 24px 0 0;
  padding: 4px 12px 7px;
  background: var(--red);
  color: var(--white);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.96;
  font-weight: 1000;
  text-transform: uppercase;
}

.district {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
}

.lede {
  max-width: 660px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: var(--deep);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--white);
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border: 8px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.hero-media figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

main {
  background: var(--paper);
}

.pledge-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.pledge-strip p {
  margin: 0;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 1000;
  text-transform: uppercase;
}

.pledge-strip p:last-child {
  border-right: 0;
}

.section-grid,
.experience,
.priorities {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
  padding: clamp(72px, 10vw, 122px) 0;
}

.section-copy h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: #33404a;
  font-size: clamp(17px, 1.6vw, 20px);
}

.feature-image,
.campaign-card {
  width: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
}

.feature-image {
  aspect-ratio: 1 / 1.06;
}

.experience {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 790px;
}

.experience-list {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.experience-list article,
.priority-grid article {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.experience-list span {
  color: var(--red);
  font-size: 15px;
  font-weight: 1000;
}

.experience-list h3,
.priority-grid h3 {
  margin: 16px 0 0;
  color: var(--deep);
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.08;
}

.experience-list p,
.priority-grid p {
  margin: 16px 0 0;
  color: var(--muted);
}

.community {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.campaign-card {
  aspect-ratio: 640 / 494;
  background: var(--navy);
}

.priorities {
  padding: 0 0 clamp(84px, 11vw, 132px);
}

.priority-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.priority-grid article {
  border-top: 6px solid var(--red);
}

.priority-grid article:nth-child(2) {
  border-top-color: var(--gold);
}

.priority-grid article:nth-child(3) {
  border-top-color: var(--sage);
}

.priority-grid article:nth-child(4) {
  border-top-color: var(--navy);
}

.contact {
  padding: clamp(64px, 9vw, 104px) 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
  background: var(--deep);
  color: var(--white);
}

.contact h2 {
  color: var(--white);
}

.contact-intro,
.contact-form {
  width: min(100%, 560px);
}

.contact-intro {
  justify-self: end;
}

.contact-intro p:not(.eyebrow) {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 28px;
  background: var(--white);
  border-top: 6px solid var(--gold);
  border-radius: 6px;
  color: var(--ink);
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group.full {
  grid-column: 1 / -1;
}

.field-group label {
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.field-group textarea {
  min-height: 132px;
  resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12, 60, 100, 0.16);
  outline: 0;
}

.contact-form .button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

@media (max-width: 960px) {
  .site-header {
    min-height: auto;
  }

  .nav {
    min-height: auto;
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hero,
  .section-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-media {
    max-width: 560px;
  }

  .hero-media figcaption {
    text-align: left;
  }

  .pledge-strip,
  .experience-list,
  .priority-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pledge-strip p:nth-child(2) {
    border-right: 0;
  }

  .pledge-strip p:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .community .campaign-card {
    order: 2;
  }

  .contact-intro {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .nav,
  .hero,
  .pledge-strip,
  .section-grid,
  .experience,
  .priorities {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    font-size: 16px;
  }

  .nav-links {
    gap: 14px;
    justify-content: flex-start;
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .office {
    font-size: clamp(28px, 11vw, 48px);
  }

  .hero-media img {
    border-width: 5px;
  }

  .pledge-strip,
  .experience-list,
  .priority-grid {
    grid-template-columns: 1fr;
  }

  .pledge-strip p {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pledge-strip p:last-child {
    border-bottom: 0;
  }

  .section-grid {
    padding: 64px 0;
  }

  .experience {
    padding: 64px 0;
  }

  .experience-list article,
  .priority-grid article {
    padding: 22px;
  }

  .contact {
    padding-inline: 14px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .contact-form .button {
    width: 100%;
  }
}
