:root {
  --bg: #060606;
  --panel: rgba(18, 18, 18, 0.76);
  --panel-strong: rgba(10, 10, 10, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4efe6;
  --muted: #b3a896;
  --accent: #d54c2f;
  --accent-soft: #ff9f7d;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(213, 76, 47, 0.16), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06), transparent 20%),
    linear-gradient(145deg, #020202 0%, #0b0706 45%, #120909 100%);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  mix-blend-mode: soft-light;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
  position: relative;
  z-index: 1;
}

.maker-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: min(300px, calc(100% - 12px));
  padding: 28px 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0 30px 30px 30px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.9), rgba(8, 8, 8, 0.82));
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.maker-badge::before {
  content: "";
  position: absolute;
  inset: -16px 28px auto auto;
  width: 120px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0.55;
  pointer-events: none;
}

.maker-badge-kicker,
.maker-badge-name {
  display: block;
  position: relative;
  z-index: 1;
}

.maker-badge-kicker {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.maker-badge-name {
  margin-top: 10px;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
}

.hero,
.dossier,
.footer-note {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 40px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(213, 76, 47, 0.22), transparent 65%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-soft);
  font-size: 0.74rem;
  margin: 0 0 14px;
}

h1,
h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.4rem, 10vw, 6.4rem);
  max-width: 8ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.subtitle {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin-top: 28px;
}

.primary-btn {
  border: 0;
  padding: 14px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  color: #fff7f2;
  background: linear-gradient(135deg, var(--accent), #792715);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 30px rgba(213, 76, 47, 0.25);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(213, 76, 47, 0.32);
}

.warning {
  color: var(--muted);
  font-size: 0.92rem;
}

.fella-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.fella-tag:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.instagram-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-soft);
  border-radius: 9px;
  flex: 0 0 auto;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.instagram-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-soft);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.instagram-icon::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.fella-tag:hover .instagram-icon,
.fella-tag:focus-visible .instagram-icon {
  transform: scale(1.06);
  border-color: #ffd1be;
  box-shadow:
    0 0 0 4px rgba(213, 76, 47, 0.14),
    0 0 18px rgba(255, 159, 125, 0.45);
}

.portrait-card {
  align-self: start;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(180deg, #181312 0%, #090909 100%);
}

.portrait-frame video,
.photo-placeholder {
  width: 100%;
  height: 100%;
}

.portrait-frame {
  position: relative;
}

.portrait-video {
  object-fit: cover;
  display: block;
  filter: brightness(0.72) saturate(1.02) contrast(1.05);
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px 24px;
  color: #cdbda9;
  line-height: 1.8;
  background: linear-gradient(180deg, rgba(18, 12, 10, 0.24), rgba(4, 4, 4, 0.42));
  z-index: 1;
}

.photo-placeholder span {
  display: block;
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.55;
}

.photo-placeholder strong {
  display: block;
  color: var(--text);
  font-size: clamp(2.8rem, 9vw, 5rem);
  line-height: 1;
  letter-spacing: 0.08em;
  margin-top: 10px;
}

.case-note {
  padding: 18px 6px 6px;
}

.label,
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#spotlightJoke {
  margin: 14px 0 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 1.04rem;
}

.dossier {
  margin-top: 28px;
  border-radius: 28px;
  padding: 34px;
}

.section-heading {
  margin-bottom: 24px;
}

.joke-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.joke-card {
  padding: 22px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(9, 9, 9, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(18px);
  opacity: 0;
  animation: rise 700ms ease forwards;
}

.joke-card:nth-child(2) { animation-delay: 90ms; }
.joke-card:nth-child(3) { animation-delay: 180ms; }
.joke-card:nth-child(4) { animation-delay: 270ms; }
.joke-card:nth-child(5) { animation-delay: 360ms; }
.joke-card:nth-child(6) { animation-delay: 450ms; }

.joke-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.footer-note {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
}

@keyframes rise {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

  .joke-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
  }

  .maker-badge {
    top: 6px;
    right: 0;
    width: min(100%, 260px);
    padding: 22px 22px 20px;
    border-radius: 0 24px 24px 24px;
  }

  .maker-badge::before {
    inset: -14px 20px auto auto;
    width: 94px;
    height: 30px;
  }

  .maker-badge-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .maker-badge-name {
    font-size: 1.9rem;
  }

  .hero,
  .dossier {
    padding: 22px;
    border-radius: 22px;
  }

  .joke-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.8rem, 18vw, 4.2rem);
  }
}
