/* =============================================
   PROTEST SITE — Editorial Typographic Design
   ============================================= */

:root {
  --ink: #0e0d0b;
  --paper: #f5f0e8;
  --accent: #c8001e;
  --accent-dim: #8a0015;
  --mid: #5a5449;
  --rule: #c2bdb3;
  --hero-bg: #f5f0e8;
  --hero-text: #f5f0e8;
  --sig-bg: #1a1814;
  --sig-text: #f5f0e8;

  --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
  --font-body: 'Libre Baskerville', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --measure: 66ch;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.75;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dim); }

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-text);
  overflow: hidden;
  padding: clamp(3rem, 10vw, 6rem) var(--gap) clamp(2rem, 8vw, 5rem);
}

/* Grain texture overlay */
.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.5;
}

/* Red angled bar at bottom */
.hero__bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: var(--accent);
}

.hero__inner {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75em;
}
.hero__tag::before {
  content: '';
  display: inline-block;
  width: 2em;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  /* Dramatic text-shadow for depth */
  text-shadow: 3px 3px 0 var(--accent);
}

.hero__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.5;
  color: #c2bdb3;
  max-width: 52ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.hero__date {
  display: flex;
  align-items: baseline;
  gap: 1em;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.hero__date-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.65rem;
  min-width: 3.5em;
}
.hero__date-value {
  color: var(--hero-text);
  font-weight: 700;
}

/* Animation: staggered hero reveal */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: none; }
}

.hero__tag    { animation: fadeUp .5s ease both; animation-delay: .05s; }
.hero__title  { animation: fadeUp .6s ease both; animation-delay: .12s; }
.hero__sub    { animation: fadeUp .6s ease both; animation-delay: .22s; }
.hero__date   { animation: fadeUp .5s ease both; animation-delay: .32s; }

/* =============================================
   BODY TEXT
   ============================================= */

.body-text {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--gap);
}

.body-text h1,
.body-text h2,
.body-text h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}

.body-text h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.body-text h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.body-text h3 { font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--accent); }

.body-text p {
  margin-bottom: 1.5em;
}

.body-text p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4.5em;
  line-height: 0.8;
  float: left;
  margin-right: 0.08em;
  color: var(--accent);
}

.body-text strong { font-weight: 700; }
.body-text em { font-style: italic; }

.body-text ul, .body-text ol {
  margin: 1.25em 0 1.5em 1.5em;
}
.body-text li { margin-bottom: 0.5em; }

.body-text blockquote {
  border-left: 4px solid var(--accent);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: rgba(200, 0, 30, 0.04);
  font-style: italic;
  font-size: 1.1em;
}

.body-text hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3em 0;
  position: relative;
}
.body-text hr::after {
  content: '✦';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  color: var(--accent);
  padding: 0 0.5em;
  font-size: 0.8rem;
}

/* Call to action links in body */
.body-text a.cta,
.body-text p > a:only-child {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.7em 1.5em;
  margin-top: 0.5em;
  transition: background 0.15s ease, transform 0.1s ease;
}
.body-text a.cta:hover,
.body-text p > a:only-child:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* =============================================
   SIGNATORIES
   ============================================= */

.signatories {
  padding: clamp(3rem, 8vw, 5rem) var(--gap);
  border-top: 4px solid var(--accent);
}

.signatories__inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.signatories__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  color: var(--paper);
}

/* Category groups */
.sig-group {
  margin-bottom: 3rem;
  border-top: 1px solid rgba(194, 189, 179, 0.2);
  padding-top: 2rem;
}

.sig-group__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.sig-group__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
}

/* Individual signatory */
.sig-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(194, 189, 179, 0.12);
  border-radius: 2px;
  transition: border-color 0.15s, background 0.15s;
}
.sig-item:hover {
  border-color: rgba(200, 0, 30, 0.5);
  background: rgba(200, 0, 30, 0.06);
}

.sig-item__image-wrap {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.sig-item__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.sig-item__initial {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  text-transform: uppercase;
}

.sig-item__info {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.sig-item__name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.3;
  color: #d8d4cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sig-item__link {
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.sig-item__link:hover { opacity: 1; }

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--rule);
  color: var(--ink);
  padding: 2rem var(--gap);
  border-top: 1px solid #2a2825;
}

.footer__inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.footer__contact a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
}
.footer__contact a:hover { text-decoration: underline; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 480px) {
  .hero__title { text-shadow: 2px 2px 0 var(--accent); }
  .sig-group__list { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Print */
@media print {
  .hero { background: #000 !important; -webkit-print-color-adjust: exact; }
  .signatories { background: #111 !important; }
}

/* Hero background image */
.hero {
  background-image: url("/assets/img/background.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Button styles */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--hero-text);
  background-color: var(--accent);
  border: none;
  border-radius: 0.25rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--accent-dim);
}

.signatory-list li {
  list-style: none;
  display: inline-block;
  vertical-align: middle;
}

.signatory-list img {
  height: 80px;
}