@font-face {
  font-family: Montserrat;
  src: url("assets/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("assets/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #123a5a;
  --ink: #153750;
  --teal: #75c9c8;
  --orange: #f04a2c;
  --muted: #687784;
  --pale: #f3f7f7;
  --line: #c7dddd;
  --white: #ffffff;
  color-scheme: light;
  font-family: Montserrat, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid var(--teal);
}

.brand img {
  display: block;
  width: 284px;
  max-width: 56vw;
  height: auto;
}

.intro,
.controls-inner,
.filter-row,
.results,
.submit-role {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.intro {
  padding: 72px 0 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: 88px;
  line-height: 0.96;
  text-transform: uppercase;
}

.intro-line {
  margin-bottom: 16px;
  font-size: 27px;
  font-weight: 700;
  text-transform: uppercase;
}

.intro-line::after {
  display: block;
  width: 310px;
  height: 8px;
  margin-top: 22px;
  background: var(--teal);
  content: "";
}

.intro-copy {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.controls {
  padding: 28px 0 22px;
  background: var(--pale);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.controls-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 18px;
}

.search-field,
.company-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 4px;
  outline: none;
  text-transform: none;
}

input:focus,
select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(117, 201, 200, 0.28);
}

.filter-row {
  display: flex;
  gap: 8px;
  padding-top: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.filter:hover,
.filter.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.results {
  padding: 54px 0 72px;
}

.results-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--teal);
}

.results-heading h2,
.submit-role h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 28px;
  text-transform: uppercase;
}

#result-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.company-section {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.company-overview {
  align-self: start;
  position: sticky;
  top: 20px;
}

.company-identity {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.company-logo {
  width: 58px;
  height: 58px;
  padding: 6px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.company-logo.logo-wide {
  width: 92px;
  padding: 8px;
}

.company-logo.logo-dark {
  padding: 9px;
  background: var(--navy);
  border-color: var(--navy);
}

.company-section h3 {
  margin: 0;
  color: var(--navy);
  font-size: 23px;
}

.company-description {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.company-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.job-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.job-link {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.job-link:hover,
.job-link:focus-visible {
  background: var(--pale);
  outline: none;
}

.job-title {
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.job-kind {
  padding: 5px 8px;
  color: var(--muted);
  background: var(--pale);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.job-arrow {
  color: var(--teal);
  font-size: 23px;
  font-weight: 700;
  text-align: center;
}

.volunteer-section {
  border-left: 8px solid var(--orange);
  padding-left: 24px;
}

.empty-state {
  padding: 72px 0;
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 10px;
  color: var(--navy);
}

.empty-state p {
  color: var(--muted);
}

.submit-role {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 50px 0;
  border-top: 8px solid var(--teal);
}

.submit-role p:last-child {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.primary-action {
  flex: 0 0 auto;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--ink);
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

footer {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--navy);
}

footer a {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.footer-cube {
  width: 64px;
  height: 68px;
  object-fit: cover;
  object-position: left;
}

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

  .brand img {
    width: 210px;
  }

  .intro {
    padding: 46px 0 44px;
  }

  h1 {
    font-size: 54px;
  }

  .intro-line {
    font-size: 19px;
    line-height: 1.4;
  }

  .intro-copy {
    font-size: 16px;
  }

  .controls-inner {
    grid-template-columns: 1fr;
  }

  .results {
    padding-top: 38px;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .results-heading h2,
  .submit-role h2 {
    font-size: 23px;
  }

  .company-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 0;
  }

  .company-overview {
    position: static;
  }

  .job-link {
    grid-template-columns: minmax(0, 1fr) 26px;
  }

  .job-kind {
    display: none;
  }

  .submit-role {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  footer a {
    font-size: 16px;
  }
}

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