:root {
  --ink: #21172e;
  --forest: #563b86;
  --moss: #67489a;
  --paper: #eeebf5;
  --line: #30233f;
  --orange: #9fbe68;
  --soft: #e5def0;
  --muted: #685f72;
  --shadow: 8px 8px 0 rgba(77, 54, 116, .16);
  --cyan: #65b4c8;
  --pink: #cf729b;
  --yellow: #d6b866;
  --night: #0d0c12;
  --night-panel: #191722;
  --night-line: #514c60;
  --mint: #78cfb4;
}

body {
  background: var(--night);
  background-image:
    linear-gradient(rgba(120, 207, 180, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 207, 180, .045) 1px, transparent 1px);
  background-size: 32px 32px;
}

.topbar {
  border-top: 5px solid var(--mint);
  border-bottom: 1px solid var(--night-line);
  background: rgba(13, 12, 18, .94);
  color: #f5f2f8;
}

.topbar .brand,
.topbar .top-actions > a { color: #f5f2f8; }

.topbar .language { border-color: var(--night-line); background: var(--night-panel); }

.topbar .language button { color: #f5f2f8; }

.topbar .language button.active { background: var(--yellow); color: var(--night); }

.brand-mark,
.primary,
.language button.active,
.category-tabs button.active,
.signal-panel,
.how {
  background: var(--forest);
}

.brand-mark {
  box-shadow: 4px 4px 0 var(--pink);
  object-fit: cover;
  image-rendering: pixelated;
}

.intro h1,
.section-heading h2,
.how h2,
.signal-panel strong,
.job-title,
.dialog-title {
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 500;
}

.intro h1 {
  font-family: "Oxanium", sans-serif;
  font-weight: 500;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.08;
  color: #f0d778;
  text-shadow: 3px 3px 0 rgba(207, 114, 155, .72);
}

.intro {
  position: relative;
  overflow: hidden;
  width: min(1460px, calc(100% - 40px));
  margin: 28px auto;
  color: #f5f2f8;
  background-color: var(--night-panel);
  background-image:
    linear-gradient(135deg, rgba(120, 207, 180, .025) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, .018) 25%, transparent 25%);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  border: 2px solid var(--night-line);
  box-shadow: 7px 7px 0 rgba(86, 59, 134, .34);
}

.intro .eyebrow { color: var(--mint); }

.intro .lede { color: #cbc6d1; }

.intro .secondary { color: #f5f2f8; background: transparent; border-color: #bbb5c4; }

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.intro::before {
  width: 18px;
  height: 18px;
  right: 39%;
  top: 54px;
  background: var(--pink);
  box-shadow: 22px 0 0 var(--cyan), 44px 0 0 var(--yellow), 0 22px 0 var(--yellow), 44px 22px 0 var(--pink);
}

.intro::after {
  width: 105px;
  height: 10px;
  left: 7vw;
  bottom: 0;
  background: var(--cyan);
  box-shadow: 105px 0 0 var(--pink), 210px 0 0 var(--orange);
}

.section-heading h2,
.how h2 {
  font-size: clamp(26px, 3vw, 39px);
}

.job-title {
  font-size: 19px;
  line-height: 1.35;
}

.signal-panel strong {
  font-size: 31px;
  font-variant-numeric: tabular-nums;
}

.signal-panel {
  border-top: 4px solid var(--orange);
  border-left: 2px solid #8b829a;
  border-right: 2px solid #8b829a;
  border-bottom: 2px solid #8b829a;
  box-shadow: 10px 10px 0 var(--pink);
}

.signal-panel strong {
  margin-right: 7px;
}

.signal-panel .how-link {
  color: #f5f2f8;
  font-weight: 600;
  text-underline-offset: 3px;
}

.signal-panel .how-link:hover {
  color: var(--yellow);
}

.primary,
.secondary,
.view-button,
.match-grid input,
.match-grid select,
.filters input,
.filters select,
.language,
.brand-mark,
dialog {
  border-radius: 3px;
}

.primary {
  box-shadow: 4px 4px 0 var(--cyan);
}

.secondary {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
}

.primary:hover,
.view-button:hover {
  background: #442d6c;
}

.eyebrow,
.clear-button,
.dialog-eyebrow {
  color: var(--moss);
}

.live-dot {
  background: var(--orange);
  border-radius: 0;
}

.tag,
.match-score {
  border-radius: 2px;
}

.tag:nth-child(3n + 1) { background: #e2f0f3; }
.tag:nth-child(3n + 2) { background: #f5e7ee; }
.tag:nth-child(3n) { background: #ebf0de; }

.match-score {
  background: #e4edda;
  color: #31520c;
}

.job-card:hover {
  box-shadow: inset 4px 0 0 var(--forest);
}

.jobs-section {
  background-color: rgba(247, 245, 251, .93);
  background-image:
    linear-gradient(90deg, rgba(86, 59, 134, .04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 2px solid #514c60;
  box-shadow: 7px 7px 0 rgba(101, 180, 200, .2);
  margin-block: 36px;
}

.job-card {
  border-bottom: 2px solid #d4c9e4;
  padding-left: 20px;
}

.job-card:nth-child(4n + 1) { box-shadow: inset 5px 0 0 var(--cyan); }
.job-card:nth-child(4n + 2) { box-shadow: inset 5px 0 0 var(--pink); }
.job-card:nth-child(4n + 3) { box-shadow: inset 5px 0 0 var(--orange); }
.job-card:nth-child(4n) { box-shadow: inset 5px 0 0 var(--yellow); }

.fit-copy {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--mint);
  background: #f2eef8;
}

.fit-copy h3 { margin: 0 0 8px; }

.fit-copy p { margin: 0; color: var(--muted); }

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 24px;
}

.dialog-actions .dialog-apply { width: auto; }

.dialog-share { min-width: 142px; }

@media (max-width: 640px) {
  .dialog-actions { grid-template-columns: 1fr; }
  .dialog-share { width: 100%; }
}

.category-tabs button {
  border: 2px solid var(--ink);
  background: white;
  box-shadow: 2px 2px 0 #c9b8e2;
}

.category-tabs button.active {
  box-shadow: 3px 3px 0 var(--pink);
}

.matcher {
  background-color: #e1eef0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .42) 25%, transparent 25%),
    linear-gradient(315deg, rgba(44, 75, 82, .055) 25%, transparent 25%);
  background-position: 0 0, 7px 7px;
  background-size: 14px 14px;
  border-block: 3px solid var(--ink);
}

.how {
  border-top: 8px solid var(--pink);
  background-color: #181621;
  background-image:
    linear-gradient(rgba(120, 207, 180, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 207, 180, .035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.how-grid article:nth-child(1) { border-top: 5px solid var(--cyan); }
.how-grid article:nth-child(2) { border-top: 5px solid var(--orange); }
.how-grid article:nth-child(3) { border-top: 5px solid var(--yellow); }

footer {
  border-top: 5px solid var(--cyan);
  background: #09080d;
}

.newsletter {
  padding: 58px clamp(20px, 7vw, 110px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: var(--ink);
  border-top: 6px solid var(--yellow);
  background-color: #e5def0;
  background-image:
    linear-gradient(90deg, rgba(86, 59, 134, .055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .45) 1px, transparent 1px);
  background-size: 24px 24px;
}

.newsletter .eyebrow { margin-bottom: 10px; }

.newsletter h2 {
  max-width: 760px;
  margin: 0;
  font: 500 clamp(27px, 3.2vw, 42px)/1.15 "Pixelify Sans", sans-serif;
}

.newsletter p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.newsletter-button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--forest);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 4px 4px 0 var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.newsletter-button:hover { background: #442d6c; }

@media (max-width: 900px) {
  .signal-panel strong {
    display: block;
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  .intro {
    width: calc(100% - 24px);
    margin: 12px auto 24px;
  }

  .intro-copy {
    padding-top: 32px;
  }

  .intro h1 {
    font-size: 35px;
    line-height: 1.18;
  }

  .intro::before {
    right: 18px;
    top: 16px;
    transform: scale(.58);
    transform-origin: top right;
  }

  .job-card {
    padding-left: 16px;
  }

  .signal-panel > div:nth-child(3) {
    display: block;
    grid-column: 1 / -1;
  }

  .newsletter {
    padding: 44px 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter-button { width: 100%; }

}
