/* jobs.westwald.io — mobile-first, dark */
:root {
  --bg: #0d1220;
  --card: #17203a;
  --card-edge: #26335c;
  --text: #eef2ff;
  --muted: #96a1c0;
  --accent: #6c8cff;
  --accent-deep: #4a63d8;
  --green: #34d399;
  --radius: 20px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 520px at 50% -8%, #1c2650 0%, rgba(28, 38, 80, 0) 70%) fixed,
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  animation: pageIn .3s ease;
}

/* Hero */
.hero {
  max-width: 640px; margin: 0 auto;
  padding: 26px 22px 8px;
}
.hero > * { animation: riseIn .5s ease both; }
.hero > *:nth-child(2) { animation-delay: .07s; }
.hero > *:nth-child(3) { animation-delay: .14s; }
.hero-badge {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(108, 140, 255, .4);
  background: rgba(108, 140, 255, .08);
  padding: 7px 13px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 10vw, 56px);
  line-height: 1.02; letter-spacing: -1.2px;
}
.lede { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 46ch; }

/* Job cards */
.jobs {
  max-width: 640px; margin: 0 auto;
  padding: 22px 16px 8px;
  display: flex; flex-direction: column; gap: 18px;
}
.job {
  background: linear-gradient(160deg, #1d2745 0%, var(--card) 55%, #141c33 100%);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 24px 22px;
  animation: riseIn .55s ease both;
}
.jobs .job:nth-child(2) { animation-delay: .1s; }
.jobs .job:nth-child(3) { animation-delay: .2s; }
.job-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pick {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  color: #0d1220; background: linear-gradient(135deg, #8fa6ff, var(--accent));
  padding: 6px 12px; border-radius: 999px;
}
.mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  font-weight: 800; font-size: 13px; color: #fff; letter-spacing: .5px;
}
.mark--snow { background: linear-gradient(135deg, #62a9ff, #1f6feb); }
.mark--viasat { background: linear-gradient(135deg, #f59e0b, #b45309); }
.mark--shield { background: linear-gradient(135deg, #8b5cf6, #4c1d95); }

.company { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.job h2 { margin: 0 0 8px; font-size: clamp(22px, 6vw, 28px); letter-spacing: -.4px; line-height: 1.2; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.dot-sep { opacity: .5; }

.pay {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px; font-weight: 700; color: var(--green);
  background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .35);
  padding: 9px 15px; border-radius: 12px; margin-bottom: 18px;
}
.pay span { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.pay--na { color: var(--muted); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }

.job h3 {
  font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent); margin: 18px 0 10px;
}
.fit { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.62; color: #dbe2f7; }
.fit li { margin-bottom: 9px; }
.fit li::marker { color: var(--accent); font-weight: 700; }
.fit strong { color: #fff; }

.caveat {
  margin-top: 14px; font-size: 13px; line-height: 1.55; color: #f5c66b;
  background: rgba(251, 191, 36, .07);
  border: 1px solid rgba(251, 191, 36, .3);
  border-radius: 12px; padding: 11px 14px;
}

.reqs { display: flex; flex-wrap: wrap; gap: 8px; }
.reqs span {
  font-size: 12.5px; color: #cdd6ef;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 6px 12px; border-radius: 999px;
}

.apply {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px; padding: 15px;
  border-radius: 16px; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 8px 22px rgba(108, 140, 255, .35);
  transition: transform .12s;
  touch-action: manipulation;
}
.apply:active { transform: scale(.97); }
.apply span { font-size: 18px; }

/* Footer */
footer {
  max-width: 640px; margin: 0 auto;
  padding: 22px 22px calc(28px + env(safe-area-inset-bottom));
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
footer p { margin: 0 0 8px; }
.sig { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; }

/* Back-to-top */
.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(108, 140, 255, .5);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-size: 20px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(74, 99, 216, .5);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 30;
  touch-action: manipulation;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:active { transform: scale(.93); }

/* Shared cross-project nav (identical on leetcode/jobs/stocks) */
.ww-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  flex: none;
  display: flex;
  justify-content: center;
  padding: calc(8px + env(safe-area-inset-top)) 0 8px;
  background: rgba(10, 14, 26, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ww-nav-inner {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
}
.ww-nav a {
  color: #96a1c0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background .2s ease, color .2s ease, transform .12s ease;
}
.ww-nav a:active { transform: scale(.96); }
.ww-nav a.active {
  color: #fff;
  background: rgba(108, 140, 255, .2);
}
.ww-nav .ww-home {
  font-size: 17px;
  padding: 8px 12px;
  color: #c9d2ec;
}

/* Page-load + entrance motion */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
