:root {
  color-scheme: dark;
  --background: #050607;
  --surface: #0b0d10;
  --surface-soft: #111419;
  --border: #252b32;
  --text: #f7f7f5;
  --muted: #9ba2aa;
  --orange: #ff4b0b;
  --orange-soft: rgba(255, 75, 11, 0.12);
  --green: #6bdd95;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 75, 11, 0.1), transparent 27rem),
    var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1440px, calc(100% - 3rem));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #170803;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(255, 75, 11, 0.23);
}

.brand > span:last-child {
  display: grid;
  gap: 0.25rem;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.28rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.18rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.topnav a {
  color: #c6cbd0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.topnav a:hover,
.topnav a.active {
  color: var(--orange);
}

.topnav .account-link {
  max-width: 180px;
  padding: 0.8rem 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  flex: 1;
}

.hero {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.eyebrow {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24rem;
}

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

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(3rem, 7vw, 6.7rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.hero h1 span {
  color: var(--orange);
  font-weight: 800;
}

.hero-copy > p:last-child {
  max-width: 650px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.job-search {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 0.55rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr auto;
  align-items: stretch;
  background: rgba(11, 13, 16, 0.95);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.search-field {
  min-width: 0;
  padding: 0.65rem 1.1rem;
}

.search-field + .search-field {
  border-left: 1px solid var(--border);
}

.search-field label {
  display: block;
  color: #d9dcdf;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.search-field > div {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-field span {
  color: var(--orange);
  font-size: 1.25rem;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-field input::placeholder {
  color: #70777e;
}

.job-search button {
  min-width: 145px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.jobs-section {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
}

.section-head > p {
  color: var(--muted);
}

.section-head > p strong {
  color: var(--text);
  font-size: 1.5rem;
}

.status-tabs {
  margin-top: 2rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.status-tabs a {
  flex: 0 0 auto;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.status-tabs a:hover,
.status-tabs a.active {
  color: var(--orange);
  background: var(--orange-soft);
}

.status-tabs .clear {
  margin-left: auto;
  color: #d4d7da;
}

.jobs-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.job-card {
  min-height: 280px;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1.2rem;
  background: linear-gradient(145deg, var(--surface-soft), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 75, 11, 0.55);
}

.company-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 75, 11, 0.26);
  border-radius: 17px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 1.6rem;
  font-weight: 900;
}

.job-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card-topline {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.status,
.new-badge {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.status.open {
  background: rgba(72, 201, 117, 0.11);
  color: var(--green);
}

.status.closed {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.new-badge {
  background: var(--orange-soft);
  color: var(--orange);
}

.job-card h3 {
  margin-top: 0.85rem;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.2;
}

.company {
  margin-top: 0.4rem;
  color: #d6d9dc;
  font-size: 0.9rem;
  font-weight: 700;
}

.location {
  margin-top: 0.65rem;
  color: var(--orange);
  font-size: 0.84rem;
}

.description {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-footer time {
  color: #747b82;
  font-size: 0.72rem;
}

.card-footer a {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
}

.empty-state {
  min-height: 320px;
  margin-top: 1.5rem;
  padding: 2rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 24px;
}

.empty-state > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 1.5rem;
}

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

.empty-state a {
  color: var(--orange);
  font-weight: 800;
}

.pagination {
  min-height: 84px;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.pagination a {
  color: var(--orange);
  font-weight: 800;
}

.pagination a:last-child {
  text-align: right;
}

.pagination p {
  color: var(--muted);
  font-size: 0.84rem;
}

.footer {
  width: min(1240px, calc(100% - 3rem));
  margin: auto auto 0;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
}

.footer strong {
  color: var(--text);
  letter-spacing: 0.18rem;
}

@media (max-width: 900px) {
  .topbar {
    min-height: 88px;
  }

  .topnav > a:not(.active):not(.account-link) {
    display: none;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .job-search {
    grid-template-columns: 1fr;
  }

  .search-field + .search-field {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .job-search button {
    min-height: 54px;
  }
}

@media (max-width: 600px) {
  .topbar,
  .hero,
  .jobs-section,
  .footer {
    width: min(100% - 2rem, 1240px);
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.78rem;
    letter-spacing: 0.16rem;
  }

  .topnav .active {
    display: none;
  }

  .topnav .account-link {
    max-width: 120px;
  }

  .hero {
    padding-top: 3rem;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 0.8rem;
  }

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

  .company-mark {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 1.2rem;
  }

  .card-footer {
    align-items: start;
    flex-direction: column;
  }

  .pagination {
    grid-template-columns: 1fr 1fr;
  }

  .pagination p {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 1rem;
    text-align: center;
  }

  .footer {
    flex-direction: column;
  }
}
