/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg, #efeeee);
  color: #000;
  font-family: var(--font-body, 'Silka', sans-serif);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── SWISS BACKGROUND LETTER ── */
.bg-letter {
  position: absolute;
  top: -120px;
  left: -60px;
  font-family: var(--font-head, 'Borna', sans-serif);
  font-size: 1000px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.bg-letter--2 {
  top: -60px;
  left: auto;
  right: -100px;
  font-size: 900px;
}
.bg-letter--3 {
  top: auto;
  bottom: -200px;
  left: 35%;
  font-size: 700px;
}

/* ── PAGE HERO ── */
.bounty-page-hero {
  position: relative;
  padding: 80px 64px 64px;
  border-bottom: 1px solid #000;
  overflow: hidden;
}

.bounty-page-hero-inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}

.bounty-page-folio {
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  opacity: 0.45;
  margin-bottom: 24px;
}

.bounty-page-title {
  font-family: var(--font-head, 'Borna', sans-serif);
  font-size: 80px;
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -3px;
}

.bounty-page-right {
  flex-shrink: 0;
  text-align: right;
}

.bounty-page-desc {
  font-family: var(--font-body, 'Silka', sans-serif);
  font-size: 16px;
  line-height: 1.5;
  max-width: 420px;
  opacity: 0.7;
  text-align: right;
}

.bounty-page-count {
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 80px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -3px;
  opacity: 0.08;
  margin-top: 16px;
}

/* ── CHALLENGE LIST ── */
.challenges {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px 120px;
}

/* ── SINGLE CHALLENGE ── */
.challenge {
  border-bottom: 1px solid #000;
  padding: 64px 0;
}

.challenge:last-child {
  border-bottom: none;
}

/* Header row */
.challenge-header {
  display: flex;
  align-items: baseline;
  gap: 32px;
  margin-bottom: 40px;
}

.challenge-num {
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  opacity: 0.4;
  flex-shrink: 0;
  padding-top: 4px;
}

.challenge-title-wrap {
  flex: 1;
}

.challenge-name {
  font-family: var(--font-head, 'Borna', sans-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -1.5px;
}

.challenge-meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.meta-pill {
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  background: #000;
  color: #efeeee;
  padding: 4px 10px;
  border-radius: 2px;
}

.challenge-stat-badge {
  flex-shrink: 0;
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  background: #BF7665;
  color: #fff;
  padding: 6px 14px;
  border-radius: 2px;
  white-space: nowrap;
  align-self: center;
}

/* Image — full width, 2364×640 ratio (~3.7:1 cinematic) */
.challenge-image {
  width: 100%;
  aspect-ratio: 2364 / 640;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.15);
  margin-bottom: 40px;
}

.challenge-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body: two-column text layout below image */
.challenge-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.challenge-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.challenge-desc {
  font-family: var(--font-body, 'Silka', sans-serif);
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}

.challenge-quote {
  border-left: 3px solid #BF7665;
  padding-left: 20px;
}

.challenge-quote p {
  font-family: var(--font-body, 'Silka', sans-serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
  color: #000;
  opacity: 0.8;
}

.challenge-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  opacity: 0.5;
  font-style: normal;
}

/* Properties strip */
.challenge-props {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin-bottom: 32px;
}

.prop-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}

.prop-label {
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
}

.prop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prop-tag {
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  background: rgba(0,0,0,0.07);
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Footer row */
.challenge-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.challenge-geo-link {
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.challenge-geo-link:hover { opacity: 0.4; }

/* ── FOOTER ── */
.footer {
  background: #000;
  padding: 48px 64px;
}

.footer-inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left .logo-container { display: flex; align-items: center; gap: 12px; }
.footer-left .logo-text {
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.64px;
  color: #fff;
}

.footer-right {
  font-family: var(--font-mono, 'NudicaMono', monospace);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  color: rgba(255,255,255,0.35);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .bounty-page-hero { padding: 48px 24px 40px; }
  .bounty-page-hero-inner { flex-direction: column; align-items: flex-start; }
  .bounty-page-title { font-size: 52px; letter-spacing: -2px; }
  .bounty-page-desc { text-align: left; }
  .bounty-page-right { text-align: left; }
  .challenges { padding: 0 24px 80px; }
  .challenge-name { font-size: 28px; letter-spacing: -1px; }
  .challenge-body { grid-template-columns: 1fr; }
  .challenge-props { gap: 24px; }
  .footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}
