/* Careers — Alara pink cream, editorial roommate energy */

:root {
  --cream: #FDEEF1;
  --cream-2: #F9DCE3;
  --paper: #FFF8FA;
  --ink: #2A101C;
  --ink-soft: #6B3A50;
  --ink-faint: rgba(42, 16, 28, 0.48);
  --terra: #D6336C;
  --terra-deep: #A61E4D;
  --line: rgba(42, 16, 28, 0.1);
  --line-strong: rgba(42, 16, 28, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 48% at 8% -5%, rgba(242, 123, 163, 0.34), transparent 58%),
    radial-gradient(ellipse 50% 40% at 92% 12%, rgba(214, 51, 108, 0.14), transparent 52%),
    radial-gradient(ellipse 55% 42% at 55% 105%, rgba(255, 177, 200, 0.28), transparent 58%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 1;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar,
.career-main {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

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

.brand img {
  width: 118px;
  height: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(214, 51, 108, 0.1);
  color: var(--terra);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost,
.hot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease, background 0.2s ease;
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}

.ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.hot {
  background: var(--terra);
  color: #fff;
  border: none;
  box-shadow: 0 5px 0 var(--terra-deep);
}

.hot:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--terra-deep);
}

.hot:active,
.ghost:active {
  transform: translateY(1px);
}

.career-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 24px 96px;
}

.hero {
  padding: 40px 0 8px;
  animation: rise 0.7s var(--ease) both;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
}

.headline {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 18px;
  max-width: 9ch;
}

.subhead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 28px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.roles {
  margin-top: 56px;
  padding-top: 8px;
  animation: rise 0.75s var(--ease) 0.12s both;
}

.roles-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.roles-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.roles-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: start;
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(255, 248, 250, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: rise 0.6s var(--ease) both;
}

.role-card:hover {
  border-color: rgba(214, 51, 108, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -24px rgba(120, 20, 60, 0.35);
}

.role-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--terra);
  background: rgba(214, 51, 108, 0.08);
  letter-spacing: 0.02em;
}

.role-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.55;
  white-space: pre-wrap;
}

.role-apply {
  align-self: center;
  white-space: nowrap;
}

.empty-state {
  padding: 36px 28px;
  border-radius: 22px;
  background: rgba(255, 248, 250, 0.78);
  border: 1px dashed rgba(214, 51, 108, 0.28);
  text-align: left;
  animation: rise 0.65s var(--ease) 0.08s both;
}

.empty-state h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 40ch;
  line-height: 1.55;
  margin-bottom: 20px;
}

.empty-state a.mail {
  color: var(--terra);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.roles-loading {
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 12px 0;
}

.career-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: rise 0.7s var(--ease) 0.2s both;
}

.career-foot p {
  font-size: 0.86rem;
  color: var(--ink-faint);
  max-width: 36ch;
  line-height: 1.5;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 18px 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .career-main { padding: 24px 18px 80px; }

  .hero { padding-top: 28px; }

  .role-card {
    grid-template-columns: 1fr;
  }

  .role-apply {
    width: 100%;
  }

  .role-apply .hot {
    width: 100%;
  }
}
