/* pages.css — hero, page-specific layouts, article typography */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 120px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 480px;
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-hero);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glass);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.85;
}

.hero-art .art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(214, 32, 122, 0.42), rgba(76, 29, 149, 0.55));
}

.hero-art .art-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(18, 7, 28, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
}

.hero-art .art-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.hero-art .art-badge span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 420px;
    margin-inline: auto;
    aspect-ratio: 16 / 12;
  }
}

/* ---------- Page header (interior) ---------- */
.page-hero {
  padding-block: clamp(54px, 8vw, 96px);
  position: relative;
}

/* Photo-backed interior header with dark scrim for legible light text */
.page-hero--photo {
  overflow: hidden;
}

.page-hero--photo .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-hero--photo .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.page-hero--photo .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 11, 39, 0.72), rgba(26, 11, 39, 0.86)),
    linear-gradient(105deg, rgba(214, 32, 122, 0.28), rgba(76, 29, 149, 0.34));
}

.page-hero--photo .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  margin-bottom: 1.1rem;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 60ch;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--magenta-bright);
}

.breadcrumb span {
  opacity: 0.5;
}

/* ---------- Article / longread typography ---------- */
.article {
  max-width: 760px;
  margin-inline: auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-glass);
}

.article h2 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
}

.article h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.article p {
  font-size: 1.06rem;
}

.article ul,
.article ol {
  font-size: 1.04rem;
}

.lead-para {
  font-size: 1.22rem !important;
  color: var(--text) !important;
  line-height: 1.6;
}

.pull-quote {
  margin: 2.2rem 0;
  padding: 1.6rem 1.8rem;
  border-left: 4px solid var(--magenta-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(120deg, rgba(255, 92, 182, 0.12), rgba(139, 92, 246, 0.08));
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--text);
}

.pull-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--magenta-bright);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.figure {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.figure figcaption {
  padding: 0.8rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.callout {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(109, 40, 217, 0.14);
}

.callout strong {
  color: #d9c9ff;
}

/* ---------- TOC ---------- */
.toc {
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.2rem;
  border-radius: var(--radius);
}

.toc h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta-bright);
  margin-bottom: 0.8rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 2rem;
}

.toc a {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.toc a:hover {
  color: var(--magenta-bright);
}

@media (max-width: 540px) {
  .toc ol {
    columns: 1;
  }
}

/* ---------- Player / profile cards ---------- */
.profile-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.profile-head {
  position: relative;
  height: 150px;
  background: var(--grad-hero);
  display: grid;
  place-items: center;
}

.profile-head .num-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1;
}

.profile-head .initials {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
  background: rgba(18, 7, 28, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.profile-body {
  padding: 1.3rem 1.4rem 1.6rem;
}

.profile-body h3 {
  margin-bottom: 0.25rem;
}

.profile-role {
  font-size: 0.82rem;
  color: var(--magenta-bright);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.profile-body p {
  font-size: 0.93rem;
}

/* ---------- Timeline (history) ---------- */
.timeline {
  position: relative;
  margin-top: 1rem;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--magenta-bright), var(--violet-soft));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 0 4px rgba(255, 92, 182, 0.18);
}

.timeline-item .year {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}

.timeline-item h3 {
  margin: 0.2rem 0 0.4rem;
}

.timeline-item p {
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* ---------- Feature rows (development) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.feature-row:nth-child(even) .feature-visual {
  order: -1;
}

.feature-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  position: relative;
  background: var(--grad-hero);
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .feature-row {
    grid-template-columns: 1fr;
  }
  .feature-row:nth-child(even) .feature-visual {
    order: 0;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.contact-item .ic {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-accent);
  color: #fff;
}

.contact-item .ic svg {
  width: 22px;
  height: 22px;
}

.contact-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-item a,
.contact-item p {
  font-size: 0.96rem;
  margin: 0;
  color: var(--text-muted);
}

.contact-item a:hover {
  color: var(--magenta-bright);
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  position: relative;
  background:
    radial-gradient(420px 320px at 70% 20%, rgba(255, 92, 182, 0.35), transparent 60%),
    var(--grad-hero);
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-glass);
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal / prose ---------- */
.prose {
  max-width: 780px;
  margin-inline: auto;
}

.prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.prose p,
.prose li {
  font-size: 1.02rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.94rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.prose th {
  color: var(--text);
  font-family: var(--font-head);
  background: rgba(255, 255, 255, 0.04);
}

.prose td {
  color: var(--text-muted);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
  background: var(--grad-hero);
  border: 1px solid var(--border-glass);
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
}

.cta-banner > * {
  position: relative;
}

.cta-banner h2 {
  margin-bottom: 0.8rem;
}

.cta-banner p {
  max-width: 52ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.6rem;
}
