/* Shared Alumni & Friends editorial hero — cream paper, Fraunces display, photo or panel on the right.
   Faculty pages pick up their theme colour through --faculty-brand (set by .faculty-theme--*). */

/* Buttons and links are reused outside the hero, so they carry the palette too. */
.ed-hero,
.ed-btn,
.ed-link {
  --ed-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ed-ink: #1a1212;
  --ed-oxide: #551516;
  --ed-gold: #cb892c;
  --ed-gold-text: #8a5a17;
}

.ed-hero {
  --ed-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ed-ink: #1a1212;
  --ed-oxide: #551516;
  --ed-accent: var(--faculty-brand, #551516);
  --ed-gold: #cb892c;
  --ed-gold-text: #8a5a17;
  --ed-green: #496049;
  --ed-muted: #6f6260;
  --ed-line: #e7dcd1;
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(203, 137, 44, 0.2), transparent 36%),
    radial-gradient(circle at 4% 96%, rgba(73, 96, 73, 0.12), transparent 40%),
    #fbf7f2;
  color: var(--ed-ink);
  font-family: Helvetica, Arial, sans-serif;
}

.ed-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.ed-hero__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.ed-hero__grid--single > div {
  max-width: 760px;
}

.ed-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  color: var(--ed-muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.ed-crumb:hover {
  color: var(--ed-accent);
}

.ed-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  color: var(--ed-gold-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ed-kicker span {
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background: var(--ed-gold);
}

.ed-hero h1 {
  margin: 0 0 1.2rem;
  color: var(--ed-ink);
  font-family: var(--ed-serif);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.ed-hero h1 em {
  color: var(--ed-accent);
  font-style: italic;
  font-weight: 500;
}

.ed-lead {
  max-width: 540px;
  margin: 0 0 1.9rem;
  color: var(--ed-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.ed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ed-btn:hover {
  transform: translateY(-1px);
}

.ed-btn--primary {
  background: var(--ed-oxide);
  color: #fff;
}

.ed-btn--primary:hover {
  background: #3a0d0e;
  color: #fff;
}

.ed-btn--outline {
  border-color: var(--ed-oxide);
  color: var(--ed-oxide);
  background: transparent;
}

.ed-btn--outline:hover {
  background: var(--ed-oxide);
  color: #fff;
}

.ed-link {
  color: var(--ed-oxide);
  font-weight: 700;
  text-decoration: none;
}

.ed-link:hover {
  color: var(--ed-gold-text);
}

.ed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.1rem;
  margin: 2.2rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--ed-line);
  list-style: none;
  color: var(--ed-muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.ed-meta li {
  max-width: 150px;
}

.ed-meta strong {
  display: block;
  color: var(--ed-accent);
  font-family: var(--ed-serif);
  font-size: 1.8rem;
  line-height: 1.1;
}

/* Photo — rounded with one sweeping corner and a tag in the page accent colour */
.ed-photo {
  position: relative;
  margin: 0;
}

.ed-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px 120px 28px 28px;
  box-shadow: 0 28px 56px rgba(85, 21, 22, 0.16);
}

.ed-photo figcaption {
  position: absolute;
  left: -1rem;
  bottom: 1.5rem;
  max-width: 80%;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--ed-accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(26, 18, 18, 0.2);
}

/* Panel — white card with a short list (used when a page has no photo) */
.ed-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--ed-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 56px rgba(85, 21, 22, 0.1);
}

.ed-panel__title {
  margin: 0 0 1.1rem;
  color: var(--ed-gold-text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ed-panel ul {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ed-panel li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.ed-panel__icon {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f3ebe1;
  color: var(--ed-oxide);
}

.ed-panel li strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ed-ink);
  font-family: var(--ed-serif);
  font-size: 1.1rem;
}

.ed-panel li span:last-child {
  color: var(--ed-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .ed-hero__grid {
    grid-template-columns: 1fr;
  }

  .ed-photo figcaption {
    left: 1rem;
  }
}

@media (max-width: 560px) {
  .ed-photo img {
    border-radius: 20px 70px 20px 20px;
  }

  .ed-meta {
    gap: 0.8rem 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-btn {
    transition: none;
  }
}
