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

:root {
  --navy:   #2F5E84;
  --sky:    #E8F0FA;
  --ink:    #1A1A2E;
  --mid:    #4A5568;
  --rule:   #D1DCF0;
  --white:  #FFFFFF;
  --accent: #C8382A;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* -- Site nav -- */
.site-nav {
  background: var(--navy);
}
.site-nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.wordmark {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-careers {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.nav-careers:hover { color: rgba(255,255,255,0.85); }

/* -- Site footer -- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 32px;
  text-align: center;
}
.site-footer a {
  font-size: 13px;
  color: var(--mid);
  text-decoration: none;
}
.site-footer a:hover { color: var(--navy); }

/* -- Job hero -- */
.job-hero {
  background: var(--navy);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.job-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255,255,255,0.15) 60%, transparent 100%);
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
.back-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.back-link:hover { color: rgba(255,255,255,0.85); }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.tag {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* -- Job content -- */
.job-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.job-content h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.job-content h2:first-child { margin-top: 0; }

.job-content p {
  font-size: 15.5px;
  color: var(--mid);
  margin-bottom: 14px;
}
.job-content p:last-child { margin-bottom: 0; }

.job-content ul + p,
.job-content .stack-grid + p { margin-top: 16px; }

.job-content ul {
  list-style: none;
}
.job-content ul li {
  font-size: 15.5px;
  color: var(--mid);
  padding: 9px 0 9px 22px;
  position: relative;
  border-bottom: 1px solid var(--rule);
  line-height: 1.6;
}
.job-content ul li:first-child { border-top: 1px solid var(--rule); }
.job-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.job-content ul li strong {
  color: var(--ink);
  font-weight: 600;
}

/* -- Stack grid -- */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.stack-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.5;
}
.stack-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

/* -- Offer grid -- */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.offer-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px;
  font-size: 14.5px;
  color: var(--mid);
  line-height: 1.5;
}
.offer-item.featured {
  grid-column: 1 / -1;
  background: var(--sky);
  border-color: var(--navy);
  color: #1a3a56;
  font-weight: 500;
  font-size: 15px;
}

/* -- Closing CTA -- */
.closing {
  background: var(--navy);
  border-radius: 10px;
  padding: 36px 40px;
  text-align: center;
  margin-top: 56px;
}
.closing p {
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
  line-height: 1.5;
}
.closing a {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.closing a:hover { opacity: 0.88; }

/* -- Landing page hero -- */
.page-hero {
  background: var(--navy);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255,255,255,0.15) 60%, transparent 100%);
}
.page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  margin: 0;
}

/* -- Landing body -- */
.landing-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.landing-about {
  margin-bottom: 40px;
}
.landing-about p {
  font-size: 15.5px;
  color: var(--mid);
  margin-bottom: 14px;
}
.landing-about p:last-child { margin-bottom: 0; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

/* -- Role card -- */
.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.role-card:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 12px rgba(47, 94, 132, 0.1);
}
.role-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.role-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.role-card-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--mid);
  background: var(--sky);
  border: 1px solid var(--rule);
  padding: 3px 10px;
  border-radius: 20px;
}
.role-card-arrow {
  font-size: 20px;
  color: var(--navy);
  flex-shrink: 0;
  line-height: 1;
}

/* -- Mobile -- */
@media (max-width: 560px) {
  .stack-grid,
  .offer-grid { grid-template-columns: 1fr; }
  .offer-item.featured { grid-column: 1; }
  .job-hero { padding: 36px 0 44px; }
  .job-content { padding: 40px 20px 60px; }
  .closing { padding: 28px 24px; }
  .page-hero { padding: 40px 0 48px; }
  .landing-body { padding: 36px 20px 60px; }
  .site-nav-inner { padding: 12px 20px; }
  .role-card { flex-direction: column; align-items: flex-start; }
  .role-card-arrow { display: none; }
}
