/* Aeoleaf · Home page specifics (North Star · Phase 1b)
 *
 * Loaded AFTER tokens.css / bento.css via extraCss on index.ejs. Anything
 * that styles `.home-*` or layout composition specific to the home page
 * lives here. Generic primitives (card-v2, btn-v2, bento-grid, tag-v2)
 * remain in bento.css.
 */

/* ===================================================================== */
/* HERO — large editorial wordmark + subtitle + CTA.                     */
/* ===================================================================== */
.home-hero {
  padding-top: clamp(96px, 14vw, 200px);
  padding-bottom: clamp(40px, 6vw, 88px);
  position: relative;
}
.home-hero__inner {
  max-width: var(--content-max, 1200px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}
.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--bg-elev-1) 60%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: clamp(20px, 2vw, 28px);
}
.home-hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 clamp(16px, 2vw, 24px);
}
/* Override the generic .hero-title__accent spacing when nested in the new hero */
.home-hero__title .hero-title__accent {
  display: inline-block;
  font-style: italic;
  margin-left: 0.15em;
}

.home-hero__sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 clamp(28px, 3.5vw, 40px);
}

.home-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===================================================================== */
/* BENTO outer container                                                  */
/* ===================================================================== */
.home-bento {
  max-width: var(--container-max, 1800px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px) clamp(64px, 8vw, 120px);
}

/* ===================================================================== */
/* Featured post card — magazine-style full-bleed cover + text overlay.   */
/* ===================================================================== */
.home-featured-post {
  min-height: 360px;
  justify-content: flex-end;  /* push title + cta toward bottom */
  padding: clamp(24px, 2.4vw, 36px);
  overflow: hidden;
}
.home-featured-post__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.home-featured-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-emphasis), filter var(--transition);
  filter: saturate(0.9);
}
a.home-featured-post:hover .home-featured-post__media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
/* Dark veil so display text stays legible over any cover */
.home-featured-post::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.78) 100%
  );
}
.home-featured-post .card-v2__eyebrow,
.home-featured-post .card-v2__title,
.home-featured-post .card-v2__desc,
.home-featured-post .card-v2__meta {
  color: #fff;
}
.home-featured-post .card-v2__eyebrow { color: rgba(255,255,255,0.78); }
.home-featured-post .card-v2__desc    { color: rgba(255,255,255,0.82); }
.home-featured-post .card-v2__meta    { color: rgba(255,255,255,0.68); }
.home-featured-post .card-v2__title {
  font-size: clamp(28px, 3.2vw, 44px);
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
/* Fallback (no featured post) — keeps gradient but no image */
.home-featured-post--empty::after { display: none; }

/* ===================================================================== */
/* Work card on home — top cover then text.                              */
/* ===================================================================== */
.home-work__cover {
  margin: calc(-1 * clamp(20px, 2.2vw, 32px));
  margin-bottom: clamp(16px, 1.8vw, 24px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
}
.home-work__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-emphasis);
}
a.card-v2:hover .home-work__cover img { transform: scale(1.04); }

/* Monogram placeholder when work has no cover_image */
.home-work__mono {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 96px);
  color: color-mix(in oklab, var(--tone, var(--accent)) 70%, var(--text));
  background:
    radial-gradient(80% 80% at 50% 30%, color-mix(in oklab, var(--tone, var(--accent)) 18%, transparent), transparent 70%),
    var(--bg-elev-2);
}

/* ===================================================================== */
/* Stats card                                                             */
/* ===================================================================== */
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 0;
}
.home-stats > div { min-width: 0; }
.home-stats dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  margin-bottom: 6px;
}
.home-stats dd { margin: 0; }
.home-stats .hp-stats__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

/* ===================================================================== */
/* Recent posts list card                                                 */
/* ===================================================================== */
.home-list__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 12px;
}
.home-list__more {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition);
}
.home-list__more:hover { color: var(--accent); }

.home-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.home-list__item + .home-list__item {
  border-top: 1px solid var(--border);
}
.home-list__link {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition), padding var(--transition);
}
.home-list__link:hover {
  color: var(--accent);
  padding-left: 6px;
}
.home-list__date {
  color: var(--text-subtle);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.home-list__title {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .home-list__link {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .home-list__link:hover { padding-left: 0; }
  .home-list__date { order: 2; font-size: 12px; }
  .home-list__title { white-space: normal; }
  .home-list__link .tag-v2 { display: none; }
}

/* ===================================================================== */
/* Contact card                                                           */
/* ===================================================================== */
.home-contact {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-contact li + li { border-top: 1px solid var(--border); }
.home-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition), padding var(--transition);
}
.home-contact a:hover {
  color: var(--text);
  padding-left: 4px;
}
.home-contact svg {
  color: color-mix(in oklab, var(--tone, var(--accent)) 70%, var(--text-muted));
  flex-shrink: 0;
}
.home-contact__bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: color-mix(in oklab, var(--tone, var(--accent)) 70%, var(--text-muted));
  flex-shrink: 0;
}
.home-contact__hint {
  color: var(--text-subtle);
  padding: 12px 0;
  font-size: 13px;
}
.home-contact__label {
  flex: 1;
}
.home-contact__val {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ===================================================================== */
/* Responsive fine-tuning                                                 */
/* ===================================================================== */
@media (max-width: 640px) {
  .home-hero {
    padding-top: clamp(72px, 20vw, 112px);
  }
  .home-featured-post { min-height: 280px; }
}
