/* ==========================================================
THE PEOPLE'S ARCHIVE OF AFRICAN AMERICAN HISTORY — WEBSITE
Design: black cinematic canvas, oversized Archivo headlines,
Playfair Display pull quotes, restrained gold accent, cream footer.
========================================================== */

/* 1. CSS VARIABLES */
:root {
  --black: #050403;
  --near-black: #0d0908;
  --maroon: #6f1717;
  --maroon-dark: #3a0b0b;
  --tan: #c7a46a;
  --cream: #f3ead7;
  --muted: #c7b9a0;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, .55);
  --max: 1180px;

  --font-head: "Archivo", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 2. RESET */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button,
input { font: inherit; }

/* 3. ACCESSIBILITY */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--cream);
  color: var(--black);
  padding: .75rem 1rem;
  z-index: 1000;
}

.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--tan);
  outline-offset: 4px;
}

/* 4. HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0));
  transition: background .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 4, 3, .94);
  border-bottom: 1px solid rgba(199,164,106,.22);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: .12em;
}

.brand img {
  width: 84px;
  height: 84px;
  padding: 5px;
  box-sizing: border-box;
  object-fit: contain;
  background: rgba(255,255,255,.94);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-nav a { opacity: .88; }
.site-nav a:hover { opacity: 1; color: var(--tan); }

.nav-button {
  border: 1px solid var(--tan);
  padding: .55rem .9rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  padding: .4rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 7px 0;
  background: var(--cream);
}

/* 5. HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 9rem 1.25rem 5rem;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.7)),
    url("data:image/jpeg;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAwIiBoZWlnaHQ9IjEwMDAiIHZpZXdCb3g9IjAgMCAxNjAwIDEwMDAiPgogIDxkZWZzPgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJnIiB4MT0iMCIgeTE9IjAiIHgyPSIxIiB5Mj0iMSI+CiAgICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiMxODEyMGYiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSI1NSUiIHN0b3AtY29sb3I9IiMyYTE1MTQiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjMGEwNzA2Ii8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPGZpbHRlciBpZD0iZ3JhaW4iPgogICAgICA8ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjgiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzd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PSI5MDAiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyMiIgZmlsbD0iI2YzZWFkNyIgb3BhY2l0eT0iLjciPlBsYWNlaG9sZGVyIGltYWdlIMK3IHByb3ZlbmFuY2UgcGVuZGluZzwvdGV4dD4KICA8cmVjdCB3aWR0aD0iMTYwMCIgaGVpZ2h0PSIxMDAwIiBmaWx0ZXI9InVybCgjZ3JhaW4pIiBvcGFjaXR5PSIuMzUiLz4KPC9zdmc+") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 50% 20%, rgba(111,23,23,.28), transparent 35%),
    linear-gradient(to bottom, rgba(5,4,3,.2), rgba(5,4,3,.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  text-align: center;
}

.hero-emblem {
  width: min(190px, 34vw);
  height: min(190px, 34vw);
  margin: 0 auto 1.5rem;
  background: rgba(255,255,255,.96);
  border-radius: 50%;
  padding: .6rem;
  object-fit: contain;
  box-shadow: 0 24px 80px var(--shadow);
}

.eyebrow,
.section-kicker {
  margin: 0 0 .8rem;
  color: var(--tan);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .22em;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 10vw, 8.8rem);
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: -.06em;
}

.hero h1 em {
  color: var(--tan);
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: -.04em;
}

.hero-copy {
  max-width: 780px;
  margin: 1.5rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(243,234,215,.88);
}

.hero-actions,
.support-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem;
}

.zelle-note {
  margin-top: 1rem;
  font-size: .95rem;
  text-align: center;
}

/* 6. BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1.6rem 2.3rem;
  border: 2px solid var(--tan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.64rem;
}

.button.primary {
  background: var(--tan);
  color: var(--black);
}

.button.secondary {
  background: transparent;
  color: var(--cream);
}

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

/* 7. STATEMENT */
.statement,
.content-section,
.gallery,
.support {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 1.25rem;
}

.statement-grid {
  display: grid;
  grid-template-columns: .6fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.statement h2,
.section-heading h2,
.cream-panel h2,
.support h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.05em;
}

#partners h2,
.cream-panel h2 {
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
}

.statement p:last-child {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.15;
}

/* 8. FULL BLEED STORY */
.full-bleed-story {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
}

.full-bleed-story img {
  width: 100%;
  min-height: 68vh;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.05);
}

.full-bleed-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent 58%);
}

.caption {
  position: absolute;
  z-index: 2;
  left: clamp(1rem, 5vw, 4rem);
  bottom: clamp(1rem, 5vw, 4rem);
  max-width: 560px;
}

.caption strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.05em;
  color: var(--cream);
}

.caption strong .lead-gold {
  color: var(--tan);
}

.caption span {
  display: inline-block;
  margin-top: .4rem;
  color: var(--tan);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* 9. CONTENT */
.section-heading {
  max-width: 850px;
  margin-bottom: 2rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  color: rgba(243,234,215,.82);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: rgba(199,164,106,.28);
}

.feature-grid article {
  background: var(--near-black);
  padding: 2rem;
}

.feature-grid span {
  color: var(--tan);
  font-weight: 900;
  letter-spacing: .15em;
}

.feature-grid h3 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  text-transform: uppercase;
}

/* Flip cards — Digital Collections / Public Exhibits / Community Contributions */
.feature-grid article.flip-card {
  background: transparent;
  padding: 0;
  perspective: 1400px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  transition: transform .7s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-front {
  background: var(--near-black);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.flip-card-front span {
  display: block;
  margin-bottom: .5rem;
}

.flip-card-front h3 {
  margin: 0 0 .6rem;
}

.flip-card-front p {
  margin: 0;
}

.flip-card-back {
  transform: rotateY(180deg);
  overflow: hidden;
}

.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 10. QUOTE */
.quote-band {
  padding: clamp(4rem, 8vw, 8rem) 1.25rem;
  background: var(--maroon);
  text-align: center;
}

.quote-band blockquote {
  margin: 0 auto;
  max-width: 980px;
}

.quote-band p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.04;
  color: var(--tan);
}

/* 11. GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.gallery figure {
  margin: 0;
  background: #120d0b;
  overflow: hidden;
}

.gallery img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery figure:hover img { transform: scale(1.035); }

.gallery figcaption {
  padding: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gallery figcaption span {
  display: block;
  color: var(--tan);
  font-weight: 500;
  font-size: .78rem;
  margin-top: .25rem;
}

/* 12. PARTNERS + CREAM PANEL */
.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2rem 0;
}

.partner-list a {
  border: 1px solid rgba(199,164,106,.38);
  padding: .75rem 1rem;
  color: var(--tan);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  transition: background .2s ease, color .2s ease;
}

.partner-list a:hover {
  background: var(--tan);
  color: var(--black);
}

.wide-copy {
  max-width: 850px;
  color: rgba(243,234,215,.82);
  font-size: 1.16rem;
}

.cream-panel {
  background: var(--cream);
  color: var(--black);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.section-kicker.dark { color: var(--maroon); }

.cream-panel p {
  max-width: 660px;
}

.dark-button {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}

/* 13. SUPPORT + FOOTER */
.support-card {
  border: 1px solid rgba(199,164,106,.28);
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at right top, rgba(111,23,23,.36), transparent 40%),
    #0d0908;
  text-align: center;
}

.support-card p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  background: var(--cream);
  color: var(--black);
  padding: clamp(3rem, 6vw, 5rem) 1.25rem 1.5rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .8fr 1.2fr .8fr;
  gap: 2rem;
  align-items: start;
}

.footer-logo {
  width: 100px;
  height: 100px;
  padding: 6px;
  object-fit: contain;
  background: rgba(255,255,255,.94);
  border-radius: 50%;
}

.signup label {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.signup-row {
  display: flex;
  gap: .5rem;
}

.signup input {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(0,0,0,.25);
}

.signup button {
  background: var(--maroon);
  color: var(--cream);
  border: 0;
  padding: .85rem 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signup small {
  display: block;
  margin-top: .5rem;
  color: rgba(0,0,0,.65);
}

.footer-links {
  display: grid;
  gap: .45rem;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  color: rgba(0,0,0,.65);
  font-size: .88rem;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    background: rgba(5,4,3,.98);
    border: 1px solid rgba(199,164,106,.3);
    padding: 1.25rem;
  }

  .site-nav.is-open { display: flex; }

  .statement-grid,
  .two-column,
  .feature-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cream-panel {
    display: block;
  }

  .cream-panel .button {
    margin-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* ==========================================================
VIDEO HERO UPDATE
Uses images/hero-video.mp4 as the homepage background video.
========================================================== */

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(.1) contrast(1.06) brightness(.72);
}

.hero-bg {
  z-index: 0;
}

.hero-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 20%, rgba(111,23,23,.34), transparent 34%),
    linear-gradient(to bottom, rgba(5,4,3,.34), rgba(5,4,3,.92));
}

.hero-content {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

/* ==========================================================
LIGHTER COLOR SCHEME — every section after the hero
Palette sourced from PAAAH-website-LIGHT.html
========================================================== */
:root {
  --paper: #faf7f1;
  --paper-2: #f2ece1;
  --ink: #221c14;
  --ink-soft: #574d3e;
  --muted-light: #8a7f6c;
  --gold: #a8782a;
  --gold-deep: #855e1d;
  --line: #e3d9c6;
}

body { background: var(--paper); }

.statement,
.content-section,
.gallery,
.support {
  background: var(--paper);
  color: var(--ink-soft);
}

.statement h2,
.section-heading h2,
.support h2 {
  color: var(--ink);
}

.statement p:last-child { color: var(--tan); font-weight: 400; }

.section-kicker { color: var(--gold-deep); }
.section-kicker.dark { color: var(--maroon); }

.two-column,
.wide-copy { color: var(--ink-soft); }

.feature-grid { background: var(--line); }

.feature-grid article {
  background: var(--paper-2);
  color: var(--ink-soft);
}

.feature-grid article.flip-card { background: transparent; }

.flip-card-front {
  background: var(--paper-2);
  color: var(--ink-soft);
}

.feature-grid span { color: var(--gold-deep); }
.feature-grid h3 { color: var(--ink); }

.partner-list a {
  border-color: var(--line);
  color: var(--gold-deep);
  background: var(--paper-2);
}

.partner-list a:hover {
  background: var(--gold-deep);
  color: var(--paper-2);
}

.gallery figure { background: var(--paper-2); }
.gallery figcaption { color: var(--ink); }
.gallery figcaption span { color: var(--gold-deep); }

.support-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.support-card p { color: var(--ink-soft); }

.support .button.secondary {
  color: var(--ink);
  border-color: var(--gold-deep);
}