:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #eef3ed;
  --ink: #101413;
  --muted: #5f6965;
  --line: #dfe5de;
  --accent: #116149;
  --accent-strong: #0a4635;
  --accent-soft: #dcebe4;
  --gold: #a56a1b;
  --danger: #9d2b2b;
  --shadow: 0 24px 60px rgba(22, 36, 30, 0.09);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 248, 245, 0.96)),
    radial-gradient(circle at top left, rgba(220, 235, 228, 0.9), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(16, 20, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 19, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

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

button,
input,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 229, 222, 0.82);
  background: rgba(247, 248, 245, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
}

.brand,
.nav-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 720;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
}

.nav-actions {
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-actions a {
  transition: color 160ms ease;
}

.nav-actions a:hover,
.nav-actions a:focus-visible {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  align-items: end;
  width: min(1120px, calc(100% - 2rem));
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 4rem;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.35rem;
  font-size: clamp(3.4rem, 6vw, 7.25rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.search-panel {
  max-width: 740px;
}

.search-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 680;
}

.search-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 0 1rem;
}

.brand-logo {
  display: block;
  width: clamp(238px, 32vw, 342px);
  height: auto;
  align-items: left-side;
}

.search-control:focus-within {
  border-color: rgba(17, 97, 73, 0.75);
  box-shadow: 0 0 0 4px rgba(17, 97, 73, 0.13), var(--shadow);
}

.search-control svg {
  flex: 0 0 auto;
  width: 21px;
  color: var(--muted);
}

.search-control input {
  width: 100%;
  min-height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.hero-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(22, 36, 30, 0.06);
}

.hero-stat span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 760;
}

.hero-stat strong {
  display: block;
  margin-top: 1.35rem;
  font-size: 1.05rem;
}

.hero-stat p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.jobs-count {
  margin-bottom: 0.35rem;
  color: var(--muted);
  white-space: nowrap;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(5, minmax(120px, max-content));
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(22, 36, 30, 0.06);
  padding: 0.65rem;
}

.filter-search,
.filter-select {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f7faf6;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.8rem;
}

.filter-search svg {
  flex: 0 0 auto;
  width: 19px;
  color: var(--muted);
}

.filter-search input,
.filter-select select {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.filter-search input::placeholder {
  color: #858e8a;
}

.filter-select {
  display: block;
  position: relative;
}

.filter-select::after {
  position: absolute;
  top: 50%;
  right: 0.78rem;
  width: 0.48rem;
  height: 0.48rem;
  content: "";
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
  border-bottom: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
}

.filter-select select {
  min-width: 118px;
  appearance: none;
  cursor: pointer;
  padding: 0 2rem 0 0.85rem;
}

.filter-search:focus-within,
.filter-select:focus-within {
  border-color: rgba(17, 97, 73, 0.58);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 97, 73, 0.11);
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  margin-bottom: 1rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip,
.clear-filters {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--accent-strong);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  border: 1px solid rgba(17, 97, 73, 0.2);
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(17, 97, 73, 0.42);
  background: #d0e4da;
}

.filter-chip span:last-child {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.clear-filters {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 720;
}

.clear-filters:hover,
.clear-filters:focus-visible {
  color: var(--ink);
}

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

.job-card {
  position: relative;
  display: flex;
  min-height: 268px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 1.25rem;
  box-shadow: 0 12px 38px rgba(22, 36, 30, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.job-card::after {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0;
  transition: opacity 180ms ease;
}

.job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 97, 73, 0.34);
  box-shadow: var(--shadow);
}

.job-card:hover::after {
  opacity: 1;
}

.job-topline,
.meta-list,
.tag-list,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-topline {
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0.28rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.job-card h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.25rem, 2.4vw, 1.62rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.company {
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.summary {
  display: -webkit-box;
  min-height: 3em;
  margin-bottom: 1.1rem;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border-radius: 999px;
  background: #f2f5f1;
  color: #46504c;
  padding: 0.22rem 0.52rem;
  font-size: 0.76rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius);
  background: var(--accent-strong);
  color: #fff;
  cursor: pointer;
  font-weight: 720;
  padding: 0.72rem 1rem;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--ink);
  border-color: var(--ink);
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--accent-strong);
  color: #fff;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.status-region {
  color: var(--muted);
}

.state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  text-align: center;
}

.state h1 {
  max-width: none;
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
}

.state h2,
.state h3 {
  margin-bottom: 0.45rem;
}

.state p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.skeleton {
  pointer-events: none;
}

.skeleton-line,
.skeleton-pill {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece5;
  position: relative;
}

.skeleton-line::after,
.skeleton-pill::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shimmer 1.25s infinite;
}

.skeleton-line {
  height: 16px;
  margin-bottom: 0.75rem;
}

.skeleton-line.title {
  width: 68%;
  height: 28px;
  margin-top: 1.4rem;
}

.skeleton-line.short {
  width: 44%;
}

.skeleton-pill {
  width: 92px;
  height: 26px;
}

.detail-main {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.job-article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.detail-hero,
.detail-section {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.detail-hero {
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-weight: 720;
}

.detail-hero h1 {
  max-width: 900px;
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 6vw, 4.5rem);
  line-height: 0.98;
}

.detail-meta {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-section {
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h2 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.detail-section ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.detail-section li + li {
  margin-top: 0.55rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills-grid li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0.42rem 0.75rem;
  font-weight: 680;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 700;
}

.reveal,
.job-card {
  animation: rise 520ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 820px) {
  .hero,
  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .filter-search {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: auto;
    gap: 1.25rem;
    padding-top: 4rem;
  }

  .hero-stat {
    max-width: 460px;
  }

  .section-heading,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav {
    min-height: 64px;
  }

  .nav-actions {
    gap: 0.8rem;
    font-size: 0.86rem;
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-summary {
    align-items: start;
    flex-direction: column;
  }

  .job-card {
    min-height: 0;
  }
}
