/* ─── Gnorts, Mr A! WebFont ────────────────────────────────────────── */
@font-face {
  font-family: 'Gnorts-Mr-A';
  src: url('../webfonts/Gnorts-Mr-A.ttf.eot');
  src: url('../webfonts/Gnorts-Mr-A.ttf.eot?#iefix') format('embedded-opentype'),
       url('../webfonts/Gnorts-Mr-A.ttf.woff') format('woff'),
       url('../webfonts/Gnorts-Mr-A.ttf.svg#Gnorts-Mr-A') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* ─── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #F00808;
  --red-dark: #8b0d22;
  --red-glow: rgba(196, 18, 48, 0.35);
  --cream:    #f5f0e8;
  --white:      #ffffff;
  --ink:      #0d0d0d;
  --ink-mid:  #1a1a1a;
  --ink-soft: #2e2e2e;
  --muted:    #666;
  --border:   rgba(255,255,255,0.07);
  --font-display: 'Gnorts-Mr-A', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Noise texture overlay ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 6% 60px;
  background-image: url(https://tollthetroll.lol/images/drumph2.webp);
  background-size: cover;
  background-position: center; 
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.hero-branding {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.1s;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
}

.hero-title .troll {
  display: block;
  color: var(--red);
  -webkit-text-stroke: 1px var(--red);
  text-shadow: 0 0 80px var(--red-glow), 0 0 20px var(--red-glow);
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin: 32px 0;
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 23px);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  max-width: 440px;
  line-height: 1.65;
}

.hero-sub strong {
  color: var(--cream);
  font-style: normal;
  font-weight: 600;
}

/* ─── Pledge Widget (in hero) ───────────────────────────────────────── */
.pledge-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 36px 40px;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.widget-heading {
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

/* Context stats above slider */
.widget-stats {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

.widget-stat {
  flex: 1;
  padding: 14px 18px;
  text-align: center;
}

.widget-stat + .widget-stat {
  border-left: 1px solid var(--border);
}

.widget-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.widget-stat-lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

/* Amount display */
.amount-display {
  text-align: center;
  margin-bottom: 16px;
}

.amount-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.amount-label {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* Slider */
.pledge-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 4px 0 10px;
  background: linear-gradient(to right, var(--red) var(--pct, 0%), rgba(255,255,255,0.1) var(--pct, 0%));
}

.pledge-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
}

.pledge-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  border: 3px solid var(--cream);
  box-shadow: 0 0 12px var(--red-glow);
  margin-top: -9px;
}

.pledge-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}

.pledge-slider::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--red);
}

.pledge-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  border: 3px solid var(--cream);
  box-shadow: 0 0 12px var(--red-glow);
}

.slider-endpoints {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.cost-estimate {
  font-size: 17px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Field groups */
.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field-group input[type="email"] {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--red);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field-group input:focus {
  border-color: var(--red);
}

/* Submit */
.submit-btn {
  width: 100%;
  background: var(--red);
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px;
  cursor: pointer;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease;
}

.submit-btn:hover { background: #a30f28; }

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* State messages */
.form-success,
.form-error {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.5;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.form-error {
  background: rgba(196, 18, 48, 0.1);
  border: 1px solid rgba(196, 18, 48, 0.3);
  color: #fca5a5;
}

/* ─── Share Widget ─────────────────────────────────────────────── */
.share-widget {
  display: none;
  margin-top: 20px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.share-heading {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  line-height: 1;
  background: var(--white);
  color: var(--ink);
}

.share-btn:hover {
  border-color: rgba(0,0,0,0.25);
  background: #f5f5f5;
}

.share-bluesky:hover  { color: #0085ff; border-color: #0085ff; }
.share-facebook:hover { color: #1877F2; border-color: #1877F2; }
.share-reddit:hover   { color: #FF4500; border-color: #FF4500; }
.share-copy:hover     { color: var(--red); border-color: var(--red); }

/* ─── Monthly Posts Graph ────────────────────────────────────────── */
.monthly-graph {
  background: var(--red);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.4);
  padding: 28px 24px 20px;
  position: relative;
  z-index: 1;
}

.graph-inner {
  max-width: 860px;
  margin: 0 auto;
}

.graph-title {
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-bottom: 16px;
}

.graph-bars {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  align-items: end;
}

.graph-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bar-count {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1;
}

.bar-track {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}

.bar-label {
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .graph-bars { gap: 3px; }
  .bar-count  { font-size: 9px; }
  .bar-label  { font-size: 8px; letter-spacing: 0; }
  .bar-track  { height: 72px; }
}

/* ─── How It Works ──────────────────────────────────────────────── */
.how {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 48px;
  max-width: 700px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
}

.step {
  background: var(--ink-mid);
  border: 1px solid var(--border);
  padding: 32px 28px;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
}

.step-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--cream);
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Hall of Shame / Carousel ─────────────────────────────────── */
.hof {
  max-width: 860px;
  margin: 0 auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hof-intro {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 32px;
}

.carousel {
  position: relative;
  background: var(--ink-mid);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.carousel-slide.active {
  display: flex;
  animation: carouselFade 0.35s ease;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@keyframes carouselFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 36px;
  line-height: 1;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: background 0.2s ease, border-color 0.2s ease;
  /* keep button above dots strip */
  margin-bottom: 44px;
}

.carousel-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ink-soft);
  border-top: 1px solid var(--border);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--red);
  transform: scale(1.35);
}

.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 860px) {
  .carousel-slide img {
    max-height: 55vh;
  }
}

@media (max-width: 600px) {
  .carousel-slide img {
    max-height: 60vw;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 28px;
    margin-bottom: 40px;
  }
}

/* ─── Footer ────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.2);
  line-height: 1.8;
}

footer a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ─── Animations ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px 50px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(52px, 14vw, 80px);
  }

  .pledge-widget {
    padding: 28px 24px;
  }

  .amount-value {
    font-size: 44px;
  }
}

@media (max-width: 600px) {
  .stats-inner { grid-template-columns: 1fr; gap: 16px; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat:last-child { border-bottom: none; }
}
