/* ============================================================
   ÀṢẸ MEDIA — Design System
   Palette named for the materials of Yoruba textile & ritual:
   efun (chalk), ide (brass), aro (indigo dye), osun (camwood).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800;900&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* Palette now sourced from the real Àṣẹ Media logo, not the earlier invented Yoruba-material palette. */
:root{
  --void:        #FFFFFF;
  --panel:       #F5EEE5;
  --panel-line:  rgba(28,15,8,0.12);
  --chalk:       #1C0F08;
  --chalk-dim:   #7A6A5C;
  --gold:        #A6461F;
  --gold-bright: #C96A3E;
  --indigo:      #2E1206;
  --indigo-deep: #170A02;
  --ember:       #B24B1E;
  --hero-ink:     #FBF3EA;
  --hero-ink-dim: #D9C9B8;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --nav-h: 5.5rem;
  --edge: clamp(1.5rem, 5vw, 4rem);
  --ease: cubic-bezier(.22,.68,.16,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--void);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display:block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection{ background: var(--gold); color: var(--void); }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: 0.01em; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before{
  content: '';
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
/* .eyebrow is a <p>, which carries a default browser margin (~1em) that was
   never reset. .section-head lets that margin collapse away harmlessly, but
   .page-head (which uses padding, not margin, for its own spacing) does not
   collapse it — so it silently added extra space only on page-head pages.
   Neutralize it in both contexts without touching the shared base rule. */
.page-head .eyebrow,
.section-head .eyebrow{
  margin: 0;
}

.wrap{
  max-width: 78rem;
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

/* ---------------- Accessibility: skip link ----------------
   Not part of the pasted design-system spec — restored so the
   .skip-link element keeps its hidden-until-focused behavior. */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--void);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus{
  left: 1rem;
  top: 1rem;
}

/* ---------------- Nav ---------------- */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--edge);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-line);
}
.site-nav .wrap{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 90rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--chalk);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand .mark{ width: 1.75rem; height: 1.75rem; flex-shrink: 0; object-fit: contain; }

.nav-links{
  display: flex;
  gap: 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a{
  position: relative;
  padding-bottom: 0.35rem;
  color: var(--chalk-dim);
  transition: color .25s var(--ease);
}
.nav-links a::after{
  content:'';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active{ color: var(--chalk); }
.nav-links a:hover::after,
.nav-links a.is-active::after{ transform: scaleX(1); transform-origin: left; }

.nav-toggle{
  display: none;
  width: 2.25rem; height: 2.25rem;
  position: relative;
  z-index: 210;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:'';
  position: absolute;
  left: 0.35rem; right: 0.35rem;
  height: 1px;
  background: var(--chalk);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s;
}
.nav-toggle span{ top: 50%; }
.nav-toggle span::before{ top: -7px; }
.nav-toggle span::after{ top: 7px; }
.nav-toggle.is-open span{ background: transparent; }
.nav-toggle.is-open span::before{ top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after{ top: 0; transform: rotate(-45deg); }

.mobile-menu{
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
  padding: 0 var(--edge);
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-menu a{
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 10vw, 3.5rem);
  font-weight: 700;
  color: var(--chalk-dim);
}
.mobile-menu a.is-active{ color: var(--gold); }
.mobile-menu .eyebrow{ margin-bottom: 0.5rem; }

@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-toggle{ display: block; }
}

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover{ background: var(--gold); color: var(--void); }
.btn.solid{ background: var(--gold); color: var(--void); }
.btn.solid:hover{ background: var(--gold-bright); }

.volume-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}
@media (max-width: 480px){
  .volume-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .volume-actions .btn{
    justify-content: center;
    text-align: center;
  }
}

.volume-layout{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 780px){
  .volume-layout{
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------------- Hero (shared scaffold) ---------------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--void);
}
.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg svg{ width: 100%; height: 100%; }
.hero-banner-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.hero-scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(28,15,8,0.78) 0%,
    rgba(28,15,8,0.45) 32%,
    rgba(28,15,8,0.12) 55%,
    rgba(28,15,8,0) 72%
  );
  pointer-events: none;
}
.hero-content{
  position: relative;
  z-index: 2;
  padding: 0 var(--edge) clamp(3rem, 8vh, 6rem);
}
.hero-title{
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  line-height: 0.94;
  text-transform: uppercase;
  margin: 1rem 0 1.25rem;
  color: var(--hero-ink);
}
.hero-sub{
  max-width: 34rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--hero-ink-dim);
}
.hero-scroll{
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  right: var(--edge);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hero-ink-dim);
}
.hero-scroll .line{
  width: 1px; height: 2.5rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: dropline 2.2s var(--ease) infinite;
}
@keyframes dropline{
  0%{ transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%{ transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%{ transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100%{ transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.star{ fill: var(--gold-bright); animation: twinkle var(--t,5s) ease-in-out var(--d,0s) infinite; }
@keyframes twinkle{
  0%, 100%{ opacity: 0.10; }
  50%{ opacity: 0.45; }
}

/* ---------------- Sections ---------------- */
section{ position: relative; }
.section-pad{ padding: clamp(4.5rem, 12vh, 8rem) 0; }
.section-pad-tight-bottom{ padding-bottom: clamp(1.5rem, 4vh, 2.5rem) !important; }
.section-pad-tight-top{ padding-top: 1.25rem !important; }

.page-head{
  padding: calc(var(--nav-h) + 3rem) 0 2rem;
}
.page-head-tight{
  padding-bottom: 1.25rem;
}
.page-head h1,
.section-title-lg{
  font-size: clamp(3rem, 7vw, 5.5rem);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 1rem;
}
/* .section-head h2 (below) is more specific than .section-title-lg alone and would
   otherwise win when both classes land on the same element (e.g. tosad's section
   headings) — this keeps .section-title-lg's larger size in that case without
   touching the original .section-head h2 rule. */
.section-head h2.section-title-lg{
  font-size: clamp(3rem, 7vw, 5.5rem);
  text-transform: uppercase;
  line-height: 1;
}
.divider{
  border: none;
  border-top: 1px solid var(--panel-line);
  margin: 0;
}

.section-head{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.section-head-tight{
  margin-bottom: 1.25rem;
}
.section-head h2{
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  text-transform: uppercase;
  line-height: 1;
}

/* Titles / flagship teaser */
.title-card{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.title-card .art{
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-line);
}
.title-card .art svg{ width: 100%; height: 100%; }
.title-card .copy h3{
  font-size: clamp(2rem, 4vw, 3.25rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.02;
}
.title-card .copy p{
  color: var(--chalk-dim);
  max-width: 32rem;
  margin-bottom: 2rem;
}
.title-meta{
  display: flex;
  gap: 2rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--chalk-dim);
  text-transform: uppercase;
}
.title-meta strong{ display:block; color: var(--chalk); font-family: var(--font-body); font-size: 0.95rem; margin-top: 0.25rem; text-transform: none; letter-spacing: 0; }

@media (max-width: 780px){
  .title-card{ grid-template-columns: 1fr; }
  .title-card .art{ aspect-ratio: 16/10; }
}

/* About */
.about-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.about-statement{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--chalk);
}
.about-statement .accent{ color: var(--gold); }
.fact-list{ display: flex; flex-direction: column; gap: 1.5rem; }
.fact-list .fact{ border-top: 1px solid var(--panel-line); padding-top: 1rem; }
.fact-list dt{ font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.fact-list dd{ margin: 0; color: var(--chalk-dim); }

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

/* Shop */
.shop-status{
  max-width: 46rem;
  margin-top: 0;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--chalk-dim);
}

.shop-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.shop-card{
  border: 1px solid var(--panel-line);
  background: var(--panel);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 15rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.shop-card:hover{ border-color: var(--gold); transform: translateY(-2px); }
.shop-card .tag{
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--gold);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.shop-card.is-soon .tag{ background: transparent; color: var(--chalk-dim); border: 1px solid var(--panel-line); }
.shop-card h3{ font-size: 1.4rem; text-transform: uppercase; margin-top: auto; }
.shop-card p{ color: var(--chalk-dim); font-size: 0.92rem; margin: 0; }

@media (max-width: 900px){
  .shop-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .shop-grid{ grid-template-columns: 1fr; }
}

/* Galleries — rendered from js/series-data.js, js/merch-data.js, js/prints-data.js by
   main.js (renderSeriesGallery / renderVolumesGallery / renderMerchGallery / renderPrintsGallery) */
.titles-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.gallery-card{ display:block; color:inherit; }
.gallery-card .art{ aspect-ratio:4/5; border-radius:4px; overflow:hidden; background:var(--panel); border:1px solid var(--panel-line); transition:border-color .3s var(--ease); }
.gallery-card:hover .art{ border-color:var(--gold); }
.gallery-card h3{ margin-top:1rem; font-size:1.3rem; text-transform:uppercase; }
.shop-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
@media (max-width:900px){ .titles-gallery{ grid-template-columns:1fr 1fr; } .shop-gallery{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .titles-gallery{ grid-template-columns:1fr; } .shop-gallery{ grid-template-columns:1fr; } }

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.contact-lead{ font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; }
.contact-lead a{ color: var(--gold); border-bottom: 1px solid var(--gold); }
.field{ margin-bottom: 1.5rem; }
.field label{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  margin-bottom: 0.6rem;
}
.field input, .field textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--panel-line);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus{ border-color: var(--gold); outline: none; }
.field textarea{ resize: vertical; min-height: 5rem; }

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

/* Footer */
.site-footer{
  border-top: 1px solid var(--panel-line);
  padding: 3rem 0;
}
.footer-row{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-row .brand{ font-size: 1rem; }
.footer-links{ display: flex; gap: 1.75rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chalk-dim); }
.footer-links a:hover{ color: var(--gold); }

.social-links{
  display: flex;
  gap: 1rem;
  align-items: center;
}
.social-links a{
  color: var(--chalk-dim);
  transition: color .25s var(--ease);
  display: inline-flex;
}
.social-links a:hover{ color: var(--gold); }
.social-links svg{ width: 1.2rem; height: 1.2rem; }
.footer-note{ font-family: var(--font-mono); font-size: 0.72rem; color: var(--chalk-dim); }

/* ---------------- Reveal on scroll ---------------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------------- CTA band ---------------- */
.cta-band{
  background: var(--gold);
  color: var(--void);
}
.cta-band .wrap{
  padding-top: clamp(3rem, 8vh, 5rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2{
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  text-transform: uppercase;
  max-width: 32rem;
  line-height: 1.02;
}
.cta-band .btn{ border-color: var(--void); color: var(--void); }
.cta-band .btn:hover{ background: var(--void); color: var(--gold); }
.cta-band .eyebrow, .cta-band .eyebrow::before{ color: var(--void); background: var(--void); }

/* ============================================================
   TOSAD page — Tale of Song and Dance
   ============================================================ */
.tosad-hero .hero-content{ max-width: 56rem; }
.tosad-hero .hero-title{ font-size: clamp(3.25rem, 11vw, 9.5rem); }
.tosad-hero .hero-tag{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hero-ink-dim);
  margin-top: 1.5rem;
}

.tosad-hero{
  min-height: unset;
  height: auto;
  aspect-ratio: 1717 / 916;
  margin-top: var(--nav-h);
}
.tosad-hero .hero-content{ padding-bottom: 0; max-width: 38rem; }
.tosad-hero .hero-title{ color: var(--chalk); }
.tosad-hero .hero-sub,
.tosad-hero .hero-tag{ color: var(--chalk-dim); }

.world-copy{ max-width: 52rem; }
.world-copy p{ font-family: var(--font-body); font-size: clamp(1.1rem,1.8vw,1.35rem); line-height: 1.75; color: var(--chalk); }

.cover-art{ aspect-ratio: 2 / 3; }
.banner-art{ aspect-ratio: 1717 / 916; }
.series-gallery{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* .title-card .art / .gallery-card .art / .volume-card .art are more specific
   (two classes) than .cover-art alone and would otherwise win and keep the
   4:5 placeholder ratio even when .cover-art is also present on the element. */
.title-card .art.cover-art,
.gallery-card .art.cover-art,
.volume-card .art.cover-art{
  aspect-ratio: 2 / 3;
}
/* Same specificity issue as above, for banner art on series cards. */
.gallery-card .art.banner-art{
  aspect-ratio: 1717 / 916;
}

.volumes-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.volume-card{ display:block; color:inherit; }
.volume-card .art{ aspect-ratio:4/5; border-radius:4px; overflow:hidden; background:var(--panel); border:1px solid var(--panel-line); transition:border-color .3s var(--ease); }
.volume-card:hover .art{ border-color:var(--gold); }
.volume-card h3{ margin-top: 1rem; font-size: 0.95rem; text-transform: uppercase; text-align: center; }
