<script setup lang="ts">
defineProps<{ eyebrow?: string; title: string; subtitle?: string }>()
</script>

<template>
  <header class="page-header">
    <div class="lhs">
      <Eyebrow v-if="eyebrow">{{ eyebrow }}</Eyebrow>
      <h1>{{ title }}</h1>
      <p v-if="subtitle">{{ subtitle }}</p>
    </div>
    <div v-if="$slots.actions" class="rhs">
      <slot name="actions" />
    </div>
  </header>
</template>

<style scoped>
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px 24px 40px;
  border-bottom: 1px solid var(--border);
}

.lhs { min-width: 0; }

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.025em;
  margin: 8px 0 0 0;
  line-height: 1.05;
}

p {
  margin: 8px 0 0 0;
  color: var(--text-mute);
  font-size: 14px;
  max-width: 640px;
}

.rhs { display: flex; gap: 8px; flex-shrink: 0; }
</style>
