/* =========================================================
   Ssegujja Arts — Hero (diagonal split)
   Shares the wall-label palette/type used on the piece detail page
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Public+Sans:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

.ssegujja-hero {
  --ink: #1c1a17;
  --canvas: #f1ece0;
  --clay: #a8452a;
  --clay-dark: #7e3320;
  --moss: #4b5842;
  --brass: #a6863c;
  --sand: #d8cdb8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: 'Space Mono', 'Courier New', monospace;

  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: clamp(480px, 58vh, 640px);
  background: var(--ink);
  overflow: hidden;
}

.ssegujja-hero * {
  box-sizing: border-box;
}

.ssegujja-hero__panel--text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 5vw 40px 6vw;
  animation: ssegujja-fade-up 0.6s ease both;
}

.ssegujja-hero__panel--image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
}

.ssegujja-hero__panel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,0.15) 0%, rgba(28,26,23,0.45) 100%);
}

/* ---------- Intro ---------- */

.ssegujja-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}

.ssegujja-hero__eyebrow i {
  font-style: normal;
  color: var(--clay);
}

.ssegujja-hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.95;
  color: var(--canvas);
  margin: 0 0 16px;
}

.ssegujja-hero__tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 17px);
  color: var(--sand);
  letter-spacing: 0.01em;
  margin: 0 0 40px;
  position: relative;
  padding-left: 16px;
}

.ssegujja-hero__tagline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 1.5px;
  background: var(--clay);
}

@keyframes ssegujja-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ssegujja-hero__panel--text,
  .ssegujja-hero__list-link {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Featured pieces — numbered text list ---------- */

.ssegujja-hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 420px;
}

.ssegujja-hero__list-item {
  border-top: 1px dashed rgba(216, 205, 184, 0.35);
}

.ssegujja-hero__list-item:last-child {
  border-bottom: 1px dashed rgba(216, 205, 184, 0.35);
}

.ssegujja-hero__list-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 2px;
  text-decoration: none;
  transition: gap 0.2s ease, padding-left 0.2s ease;
}

.ssegujja-hero__list-link:hover {
  padding-left: 8px;
  gap: 18px;
}

.ssegujja-hero__list-index {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--brass);
  flex-shrink: 0;
}

.ssegujja-hero__list-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--canvas);
  transition: color 0.2s ease;
  flex: 1;
}

.ssegujja-hero__list-link:hover .ssegujja-hero__list-title {
  color: var(--clay);
}

.ssegujja-hero__list-arrow {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--brass);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ssegujja-hero__list-link:hover .ssegujja-hero__list-arrow {
  opacity: 1;
  transform: translateX(0);
}

.ssegujja-hero__list-link:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .ssegujja-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 220px;
    
  }

  .ssegujja-hero__panel--image {
    order: -1;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  }

  .ssegujja-hero__panel--text {
    padding: 32px 6vw 40px;
  }

  .ssegujja-hero__tagline {
    margin-bottom: 24px;
  }
}
