.yearbook-hero {
  --yearbook-hero-bg: var(--color-paper, #F7F6F3);
  --yearbook-hero-text: var(--color-ink, #202124);
  --yearbook-hero-accent: var(--color-accent, #8F2638);
  --yearbook-hero-button-text: #FFFFFF;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 7rem) max(1.25rem, calc((100vw - 1280px) / 2));
  background: var(--yearbook-hero-bg);
  color: var(--yearbook-hero-text);
}
.yearbook-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1280px; margin-inline: auto; }
.yearbook-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.yearbook-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--yearbook-hero-bg) 0%, var(--yearbook-hero-bg) 32%, rgba(247,246,243,.84) 63%, rgba(247,246,243,.36) 100%);
}
.yearbook-hero__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .48; }
.yearbook-hero__eyebrow { margin: 0 0 .8rem; color: var(--yearbook-hero-accent); font-size: .75rem; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.yearbook-hero__title { max-width: 900px; margin: 0; color: inherit; font-size: clamp(2.25rem, 5.1vw, 4.75rem); font-weight: 800; line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
.yearbook-hero__subtitle { max-width: 760px; margin: 1.25rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.65; }
.yearbook-hero__description { max-width: 760px; margin: 1rem 0 0; font-size: 1rem; line-height: 1.75; }
.yearbook-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.75rem; }
.yearbook-hero__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.25rem;
  border: 2px solid var(--yearbook-hero-accent);
  border-radius: var(--radius-sm, .25rem);
  background: var(--yearbook-hero-accent);
  color: var(--yearbook-hero-button-text);
  font: inherit;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform .16s ease, filter .16s ease, background-color .16s ease;
}
.yearbook-hero__button--secondary { background: transparent; color: var(--yearbook-hero-secondary-text, var(--yearbook-hero-accent)); }
.yearbook-hero__button:hover { filter: brightness(.93); transform: translateY(-1px); }
.yearbook-hero__button--secondary:hover { background: var(--yearbook-hero-accent); color: var(--yearbook-hero-button-text); }
.yearbook-hero__button:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.yearbook-hero--align-center { text-align: center; }
.yearbook-hero--align-center .yearbook-hero__subtitle,
.yearbook-hero--align-center .yearbook-hero__description,
.yearbook-hero--centered .yearbook-hero__subtitle,
.yearbook-hero--centered .yearbook-hero__description { margin-right: auto; margin-left: auto; }
.yearbook-hero--align-center .yearbook-hero__actions,
.yearbook-hero--centered .yearbook-hero__actions { justify-content: center; }
.yearbook-hero--align-right { text-align: right; }
.yearbook-hero--align-right .yearbook-hero__subtitle,
.yearbook-hero--align-right .yearbook-hero__description { margin-left: auto; }
.yearbook-hero--align-right .yearbook-hero__actions { justify-content: flex-end; }

/* Split layout: content and image have distinct columns. */
.yearbook-hero--split { padding-block: clamp(2.75rem, 5vw, 5.5rem); }
.yearbook-hero--split .yearbook-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.yearbook-hero--split .yearbook-hero__media { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1 / span 5; min-height: 280px; border-radius: .4rem; }
.yearbook-hero--split .yearbook-hero__media::after { display: none; }
.yearbook-hero--split .yearbook-hero__image { min-height: 280px; max-height: 520px; opacity: 1; }
.yearbook-hero--split .yearbook-hero__eyebrow,
.yearbook-hero--split .yearbook-hero__title,
.yearbook-hero--split .yearbook-hero__subtitle,
.yearbook-hero--split .yearbook-hero__description,
.yearbook-hero--split .yearbook-hero__actions { grid-column: 1; }
.yearbook-hero--split .yearbook-hero__title { font-size: clamp(2.1rem, 4vw, 4rem); }

/* Overlay layout: full-bleed media with a darker protective layer behind copy. */
.yearbook-hero--overlay { min-height: 390px; display: flex; align-items: center; }
.yearbook-hero--overlay .yearbook-hero__media::after {
  background: linear-gradient(90deg, var(--yearbook-hero-bg) 0%, rgba(20,20,20,.24) 100%);
}
.yearbook-hero--overlay .yearbook-hero__image { opacity: .36; }
.yearbook-hero--overlay .yearbook-hero__inner { padding-block: 1rem; }

/* Centered layout deliberately limits text width for editorial pages. */
.yearbook-hero--centered .yearbook-hero__inner { max-width: 900px; text-align: center; }
.yearbook-hero--centered .yearbook-hero__title { margin-inline: auto; }
.yearbook-hero--centered .yearbook-hero__eyebrow { text-align: center; }

/* Context variants share the same markup but provide a restrained visual signature. */
.yearbook-hero--context-home { padding-block: clamp(4rem, 8vw, 8rem); }
.yearbook-hero--context-event { border-bottom: 1px solid rgba(32,33,36,.12); }
.yearbook-hero--context-event .yearbook-hero__eyebrow { letter-spacing: .18em; }
.yearbook-hero--context-article { padding-block: clamp(3rem, 6vw, 5.5rem); }
.yearbook-hero--context-article:not(.yearbook-hero--split) .yearbook-hero__inner { max-width: 1000px; }
.yearbook-hero--context-archive { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.yearbook-hero--context-archive .yearbook-hero__title { font-size: clamp(2rem, 4vw, 3.5rem); }
.yearbook-hero--context-page { border-bottom: 1px solid rgba(32,33,36,.12); }
.yearbook-hero--context-system { padding-block: clamp(2rem, 4vw, 3.5rem); }
.yearbook-hero--context-system .yearbook-hero__inner { max-width: 1000px; }
.yearbook-hero--context-system .yearbook-hero__title { font-size: clamp(1.9rem, 3.8vw, 3.25rem); }

@media (max-width: 760px) {
  .yearbook-hero { padding: 3rem 1.25rem; }
  .yearbook-hero__title { font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.06; }
  .yearbook-hero__subtitle { margin-top: 1rem; font-size: 1.05rem; line-height: 1.6; }
  .yearbook-hero__description { font-size: .95rem; }
  .yearbook-hero__media::after { background: linear-gradient(0deg, var(--yearbook-hero-bg) 0%, rgba(247,246,243,.92) 50%, rgba(247,246,243,.58) 100%); }
  .yearbook-hero--split .yearbook-hero__inner { display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .yearbook-hero--split .yearbook-hero__media { order: 2; width: 100%; min-height: 0; margin-top: .25rem; }
  .yearbook-hero--split .yearbook-hero__image { width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: 16 / 10; }
  .yearbook-hero--split .yearbook-hero__actions { margin-top: 1.25rem; }
  .yearbook-hero--overlay { min-height: 0; }
  .yearbook-hero--align-right .yearbook-hero__actions { justify-content: flex-end; }
}
@media (max-width: 480px) {
  .yearbook-hero__actions { align-items: stretch; flex-direction: column; }
  .yearbook-hero__button { width: 100%; }
  .yearbook-hero--align-center .yearbook-hero__actions,
  .yearbook-hero--centered .yearbook-hero__actions { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .yearbook-hero__button { transition: none; }
  .yearbook-hero__button:hover { transform: none; }
}
