:root {
  --bg: #F5F7FA;
  --text: #1C2B4C;
  --accent: #2C4F7C;
  --card: #ffffff;
  --muted: #6b778c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0f1624;
    --text:#e6ebff;
    --accent:#89a8ff;
    --card:#131b2d;
    --muted:#9aa7bd;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial;
  cursor: none;
}

.wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }

.card {
  width: min(820px, 100%);
  background: var(--card);
  border: 1px solid rgba(28,43,76,.1);
  border-radius: 20px;
  padding: clamp(18px,3vw,36px);
  box-shadow: 0 10px 30px rgba(12,24,48,.08);
}

a { color: var(--accent); }

h1 { margin: .2rem 0 1rem; font-size: clamp(28px,4.2vw,40px); }

p { line-height: 1.6; color: var(--text); }

.sub { color: var(--muted); margin-top: 0; margin-bottom: 1.25rem; }

.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }

.role {
  position: relative;
  border: 1px solid rgba(28,43,76,.22);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(0deg, rgba(44,79,124,.06), rgba(44,79,124,.06)), var(--card);
  box-shadow: 0 6px 18px rgba(12,24,48,.10), 0 0 0 1px rgba(28,43,76,.06) inset;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.role:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(12,24,48,.18), 0 0 0 2px rgba(44,79,124,.12) inset; border-color: rgba(28,43,76,.30); }

.role strong { display: block; font-size: clamp(18px,2.4vw,20px); margin-bottom: 8px; }

.status { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 9999px; margin: 0 0 8px; color: #0f1624; background: #e6ebff; }

.status.open { color:#0f3b15; background:#c6f6d5; border:1px solid #8fe0a8; }

.status.taken { color:#3c3c3c; background:#f0f0f0; border:1px solid #dadada; }

@media (prefers-color-scheme: dark) {
  .role {
    border-color: rgba(137,168,255,.35);
    background: linear-gradient(0deg, rgba(137,168,255,.10), rgba(137,168,255,.10)), var(--card);
    box-shadow: 0 10px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(137,168,255,.10) inset;
  }
  .role:hover { box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 2px rgba(137,168,255,.18) inset; }
}

.back { display: inline-block; margin-bottom: 12px; text-decoration: none; border: 1px solid rgba(28,43,76,.25); padding: 8px 12px; border-radius: 10px; }

.cta { display: inline-block; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--accent); color: #fff; text-decoration: none; }

.spaced { margin-top: 18px; }

.custom-cursor {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  background: transparent; border: 2px solid #E59B2A;
  transform: translate(-50%,-50%);
  transition: background-color .2s ease;
  /* keep above modal */
  z-index: 10050;
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10000;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal.is-open { display: flex; opacity: 1; }

.modal__dialog {
  width: min(760px, 92%);
  max-height: 86dvh;
  overflow: auto;
  background: var(--card);
  border: 1px solid rgba(28,43,76,.15);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  padding: 20px 20px 24px;
}

.modal__title { margin: 0 0 10px; font-size: clamp(20px,2.6vw,24px); }
.modal__body p { margin: 0 0 12px; }
.modal__body ul { margin: 0 0 12px 18px; }

.modal__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(28,43,76,.25);
  background: transparent;
  color: var(--text);
  font-size: 22px; line-height: 1;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .modal__dialog { border-color: rgba(137,168,255,.25); box-shadow: 0 18px 60px rgba(0,0,0,.6); }
  .modal__close { border-color: rgba(137,168,255,.35); }
}

/* --- Pills + lists (like status chips) --- */
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
}
.pill.remote { color:#0f3b15; background:#c6f6d5; border-color:#8fe0a8; }
.pill.inperson { color:#0f1624; background:#e6ebff; border-color:#a9baf7; }
.pill.hybrid { color:#2b1150; background:#edd0ff; border-color:#d5a8ff; }

.meta { margin: 8px 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.modal__body h3 { margin: 14px 0 8px; }
.checks { margin-left: 0; padding-left: 0; list-style: none; }
.checks li { position: relative; padding-left: 22px; margin: 6px 0; }
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: #2C4F7C;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .checks li::before { color: #89a8ff; }
}
