:root {
  --bg: #f5f4f8;
  --card: rgba(255, 255, 255, 0.55);
  --ink: #1c1b22;
  --muted: #5b5966;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --border: rgba(28, 27, 34, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
/* Home page: wider container + 3-up responsive grid */
.wrap.wide {
  max-width: 1120px;
}

.jobgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 20px;
}

/* Cards inside the grid lose their bottom margin—the grid gap handles spacing */
.jobgrid .jobcard {
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Push the description to fill the card so equal-height cards align cleanly */
.jobgrid .jobcard p:last-child:not(.jobmeta) {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .jobgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .jobgrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

header.top {
  padding: 8px 0 28px;
}
.brand {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.2;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 0 0 20px;
  backdrop-filter: blur(6px);
}
.card h2 {
  font-size: 20px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.card h3 {
  font-size: 17px;
  margin: 18px 0 6px;
}
.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}
.pill {
  display: inline-block;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent);
  border: 1px solid rgba(79, 70, 229, 0.18);
}
.skills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.skills li {
  padding-left: 22px;
  position: relative;
  font-size: 16px;
}
.skills li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.skills li small {
  display: block;
  color: var(--muted);
  font-size: 15px;
}
.callout {
  border-left: 3px solid var(--accent);
  background: rgba(79, 70, 229, 0.05);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
}
.callout p {
  margin: 0 0 10px;
}
.callout p:last-child {
  margin-bottom: 0;
}
ol.steps {
  padding-left: 22px;
  margin: 10px 0 0;
}
ol.steps li {
  margin-bottom: 10px;
}
.cta {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 8px 0 10px;
  transition:
    transform 0.12s ease,
    background 0.12s ease;
}
.cta:hover {
  background: #4338ca;
  transform: translateY(-1px);
}
.cta-sub {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.secondary {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.secondary:hover {
  text-decoration: underline;
}
footer {
  margin-top: 60px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .wrap {
    padding: 28px 16px 64px;
  }
  .card {
    padding: 20px;
  }
}
.jobcard {
  display: block;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease;
}
.jobcard:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.35);
}
.jobcard h2 {
  margin: 0 0 6px;
}
.jobcard p {
  margin: 0 0 8px;
}
.jobcard p:last-child:not(.jobmeta) {
  margin-bottom: 0;
  color: var(--muted);
}
.jobmeta {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
}
