:root {
  --bg: #f4f1ea;
  --card: #fffcf7;
  --ink: #171513;
  --muted: #746d64;
  --line: #e4ddd2;
  --accent: #1f3a2e;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

.page {
  min-height: 100vh;
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 20;
}

.micro-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding-left: 16px;
  background: #1f3a2e;
  color: #f4efe4;
  overflow: hidden;
}

.micro-label {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgba(244, 239, 228, 0.22);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 24px), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-run 42s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0 18px 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
}

.ticker-item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c8b48a;
}

.ticker-item:hover {
  color: #fff8ea;
}

@keyframes ticker-run {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, #1f3a2e 50%, transparent 50%) 0 0 / 50% 50%,
    linear-gradient(135deg, #c8b48a 50%, transparent 50%) 100% 0 / 50% 50%,
    linear-gradient(135deg, #c8b48a 50%, transparent 50%) 0 100% / 50% 50%,
    linear-gradient(135deg, #1f3a2e 50%, transparent 50%) 100% 100% / 50% 50%;
  background-repeat: no-repeat;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.045em;
  font-weight: 650;
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search {
  position: relative;
  min-width: min(320px, 100%);
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #8a8378;
}

.search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px 0 42px;
  background: #fffcf7;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.search input:focus {
  border-color: #1f3a2e;
  box-shadow: 0 0 0 4px rgba(31, 58, 46, 0.1);
}

.jobs {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  background: #efe8db;
  color: #5c564d;
}

.badge.demand {
  background: #e8f0ea;
  color: #1f3a2e;
}

.posted {
  color: var(--muted);
  font-size: 12px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.skill {
  border-radius: 999px;
  background: #f3eee4;
  color: #5c564d;
  font-size: 13px;
  padding: 6px 10px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.pay {
  font-size: 14px;
  color: var(--muted);
}

.pay strong {
  color: var(--ink);
  font-weight: 650;
}

.apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #f7f3ea;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.apply:hover {
  background: #16291f;
}

.skeleton {
  height: 156px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ebe4d7 0%, #f7f1e6 50%, #ebe4d7 100%);
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
}

@keyframes shine {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.status,
.sentinel {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 18px 0;
}

.empty {
  text-align: center;
  padding: 64px 16px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

@media (max-width: 720px) {
  .micro-label {
    display: none;
  }

  .heading-row {
    flex-direction: column;
    align-items: stretch;
  }

  .card-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .apply {
    width: 100%;
  }
}
