:root {
  --ed-bg: oklch(98% 0.004 80);
  --ed-ink: oklch(20% 0.012 80);
  --ed-ink-2: oklch(38% 0.012 80);
  --ed-ink-3: oklch(56% 0.01 80);
  --ed-rule: oklch(88% 0.008 80);
  --ed-rule-soft: oklch(92% 0.006 80);
  --ed-accent: oklch(48% 0.14 255);
  --ed-surface: oklch(99.2% 0.003 80);
  --bg: var(--ed-bg);
  --text: var(--ed-ink);
  --muted: var(--ed-ink-2);
  --muted-2: var(--ed-ink-3);
  --line: var(--ed-rule);
  --line-soft: var(--ed-rule-soft);
  --accent: var(--ed-accent);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ed-bg);
  color: var(--ed-ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: multiply;
  content: "";
}

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

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.skip-link:focus {
  top: 16px;
  left: 16px;
  z-index: 10;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: var(--ed-ink);
  color: var(--ed-bg);
}

.jobs-shell,
.job-detail-shell {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 88px;
}

.jobs-header {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--ed-rule);
}

.jobs-header::before {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--ed-accent);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  position: relative;
  width: 27px;
  height: 30px;
  color: var(--ed-ink);
}

.brand-symbol::before,
.brand-symbol::after {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 9px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
}

.brand-symbol::before {
  left: 0;
  border-left: 3px solid currentColor;
}

.brand-symbol::after {
  right: 0;
  border-right: 3px solid currentColor;
}

.brand-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ed-accent);
  transform: translate(-50%, -50%);
}

.brand-word {
  color: var(--ed-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ed-ink-2);
  font-size: 14px;
  font-weight: 600;
}

.top-nav a:hover,
.top-nav [aria-current="page"] {
  color: var(--ed-ink);
}

.jobs-hero,
.detail-hero {
  position: relative;
  display: flex;
  min-height: min(680px, calc(100svh - 150px));
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin: clamp(28px, 4vw, 48px) 0 34px;
  padding: clamp(52px, 7vw, 84px) clamp(28px, 6vw, 72px)
    clamp(46px, 6vw, 72px);
  border: 1px solid color-mix(in oklab, var(--ed-rule) 78%, white);
  border-radius: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(
      circle at 78% 24%,
      color-mix(in oklab, var(--ed-accent) 12%, transparent) 0,
      transparent 30%
    ),
    linear-gradient(
      135deg,
      color-mix(in oklab, white 88%, var(--ed-bg)),
      color-mix(in oklab, var(--ed-bg) 88%, white)
    );
  box-shadow: 0 24px 58px rgb(35 31 25 / 7%);
}

.jobs-hero::before,
.detail-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    color-mix(in oklab, var(--ed-ink) 16%, transparent) 1px,
    transparent 1.25px
  );
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 82%);
  opacity: 0.5;
  content: "";
}

.jobs-hero::after,
.detail-hero::after {
  position: absolute;
  right: -16%;
  bottom: -34%;
  z-index: 0;
  width: min(420px, 52vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ed-accent) 8%, white);
  filter: blur(18px);
  opacity: 0.76;
  content: "";
}

.jobs-hero > *,
.detail-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--ed-ink-3);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.jobs-hero h1,
.detail-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ed-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}

.hero-count,
.detail-hero p {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--ed-ink-2);
  font-size: 18px;
  line-height: 1.55;
}

.hero-copy {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--ed-ink-2);
  font-size: 18px;
  line-height: 1.55;
}

.profile-button,
.search-button,
.apply-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ed-ink);
  border-radius: 0;
  background: var(--ed-ink);
  color: var(--ed-bg);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 0 24px;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.profile-button {
  margin-top: 26px;
}

.profile-button:hover,
.search-button:hover,
.apply-button:hover {
  border-color: var(--ed-accent);
  background: var(--ed-accent);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin: 0 0 22px;
  padding-top: 24px;
  border-top: 1px solid var(--ed-rule);
}

.search-field input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--ed-rule);
  border-radius: 0;
  background: var(--ed-surface);
  color: var(--ed-ink);
  font: inherit;
  font-size: 16px;
  padding: 0 16px;
}

.search-field input:focus,
.filter-button:focus,
.profile-button:focus,
.search-button:focus,
.apply-button:focus,
.detail-tab:focus {
  outline: 2px solid var(--ed-accent);
  outline-offset: 2px;
}

.search-field input::placeholder {
  color: var(--ed-ink-3);
}

.filter-button {
  height: 54px;
  border: 1px solid var(--ed-rule);
  border-radius: 0;
  background: transparent;
  color: var(--ed-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px;
}

.filter-button:hover {
  border-color: var(--ed-ink);
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 24px;
}

.filter-panel label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ed-rule);
  border-radius: 0;
  background: var(--ed-surface);
  color: var(--ed-ink-2);
  font-size: 13px;
  font-weight: 550;
  padding: 0 12px;
}

.filter-panel input {
  accent-color: var(--ed-accent);
}

.job-list {
  display: grid;
  border-top: 1px solid var(--ed-rule);
}

.job-card {
  border-bottom: 1px solid var(--ed-rule);
  padding-top: 22px;
}

.job-card h2 {
  margin: 0;
  color: var(--ed-ink-3);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.job-link {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 14px 0 24px;
  transition:
    color 150ms ease,
    padding-left 150ms ease;
}

.job-link:hover {
  color: var(--ed-accent);
  padding-left: 8px;
}

.job-title-row {
  display: grid;
  gap: 10px;
}

.job-title {
  color: var(--ed-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.job-link:hover .job-title {
  color: var(--ed-accent);
}

.apply-pill {
  width: max-content;
  color: var(--ed-ink-3);
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--ed-rule);
  border-radius: 0;
  background: var(--ed-surface);
  color: var(--ed-ink-2);
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
}

.empty-state {
  border-bottom: 1px solid var(--ed-rule);
  color: var(--ed-ink-2);
  margin: 0;
  padding: 28px 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.pagination-status {
  color: var(--ed-ink-3);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pagination-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--ed-rule);
  border-radius: 0;
  background: var(--ed-surface);
  color: var(--ed-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 0 14px;
}

.pagination-button:hover:not(:disabled) {
  border-color: var(--ed-ink);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.detail-tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ed-rule);
  border-radius: 0;
  color: var(--ed-ink);
  font-size: 14px;
  font-weight: 650;
  padding: 0 18px;
}

.detail-tab:hover,
.detail-tab.active {
  border-color: var(--ed-ink);
}

.detail-tab.active {
  background: var(--ed-ink);
  color: var(--ed-bg);
}

.job-description-card {
  max-width: 860px;
  margin-top: 24px;
  border-top: 1px solid var(--ed-rule);
  padding: 34px 0 0;
}

.job-description-card h2 {
  margin: 42px 0 14px;
  color: var(--ed-ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.job-description-card h2:first-child {
  margin-top: 0;
}

.job-description-card p,
.job-description-card li {
  color: var(--ed-ink-2);
  font-size: 17px;
  line-height: 1.72;
}

.job-description-card p {
  margin: 0 0 16px;
}

.job-description-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.detail-meta {
  margin: 24px 0 0;
}

.apply-panel {
  display: flex;
  max-width: 860px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  border-top: 1px solid var(--ed-rule);
  border-bottom: 1px solid var(--ed-rule);
  padding: 28px 0;
}

.apply-panel p {
  margin: 0;
  color: var(--ed-ink-2);
  font-size: 18px;
}

.powered {
  max-width: 860px;
  margin-top: 28px;
  color: var(--ed-ink-3);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .jobs-shell,
  .job-detail-shell {
    width: min(100% - 40px, 1120px);
  }

  .jobs-header {
    min-height: 78px;
  }

  .brand-word {
    font-size: 24px;
  }

  .top-nav {
    gap: 14px;
  }

  .jobs-hero,
  .detail-hero {
    min-height: auto;
    margin: 24px 0 28px;
    padding: 42px 22px 34px;
    border-radius: 22px;
  }

  .jobs-hero h1,
  .detail-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-button,
  .filter-button {
    width: 100%;
  }

  .job-link {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0;
  }

  .job-title {
    font-size: clamp(26px, 8vw, 34px);
  }

  .job-description-card h2 {
    font-size: 28px;
  }

  .apply-panel {
    display: grid;
    justify-items: start;
  }

  .pagination {
    justify-content: space-between;
  }
}
