:root {
  --ink: #181416;
  --muted: #675f5c;
  --paper: #fff8ec;
  --card: #fffdf7;
  --teal: #006d6f;
  --teal-dark: #004c4d;
  --coral: #ff6b4a;
  --yellow: #ffc83d;
  --mint: #c6f0de;
  --line: rgba(24, 20, 22, 0.14);
  --shadow: 0 24px 70px rgba(33, 22, 15, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 248, 236, 0.88);
  box-shadow: 0 12px 34px rgba(23, 16, 12, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, system-ui, sans-serif;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Nunito", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #332b29;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  background: rgba(0, 109, 111, 0.1);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 118px 0 42px;
  background: #201818;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 11, 11, 0.8) 0%, rgba(13, 11, 11, 0.42) 44%, rgba(13, 11, 11, 0.18) 100%),
    linear-gradient(0deg, rgba(255, 248, 236, 0.98) 0%, rgba(255, 248, 236, 0) 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 430px);
  gap: 28px;
  align-items: end;
}

.hero-copy {
  max-width: 690px;
  padding: 18px 0 40px;
  color: #fffdf7;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, system-ui, sans-serif;
  line-height: 0.96;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.6rem, 9vw, 8.4rem);
  font-weight: 900;
}

.hero-lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 253, 247, 0.9);
  font-size: clamp(1.06rem, 1.55vw, 1.32rem);
  font-weight: 700;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: #20130f;
  background: var(--yellow);
  box-shadow: 0 12px 28px rgba(255, 200, 61, 0.3);
}

.button.secondary {
  color: #fffdf7;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.joke-form {
  scroll-margin-top: 110px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.form-heading {
  margin-bottom: 18px;
}

.form-heading .eyebrow {
  color: var(--coral);
}

.form-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #2f2927;
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 109, 111, 0.14);
}

.hidden-field {
  display: none;
}

.checkbox {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--teal);
}

.submit-button {
  width: 100%;
  margin-top: 18px;
}

.form-note {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
}

.form-note.success {
  color: var(--teal-dark);
}

.stats-band {
  width: min(1120px, calc(100% - 32px));
  margin: -10px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 16px 42px rgba(33, 22, 15, 0.1);
}

.stats-band div {
  display: grid;
  gap: 6px;
  padding: 22px;
  background: var(--card);
}

.stats-band strong {
  color: var(--coral);
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.stats-band span {
  font-weight: 900;
}

.content-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 46px;
}

.content-section .eyebrow {
  color: var(--teal);
}

.content-section h2 {
  font-size: clamp(2.25rem, 5vw, 4.3rem);
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article,
.topic-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(33, 22, 15, 0.08);
}

.steps article {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 16px;
  padding: 20px;
}

.steps span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.steps h3,
.topic-grid h3 {
  align-self: center;
  font-size: 1.28rem;
}

.steps p,
.topic-grid p,
.rules-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.steps p {
  grid-column: 2;
}

.rules {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.topic-grid article {
  min-height: 180px;
  padding: 22px;
}

.topic-grid article:first-child {
  background: var(--mint);
}

.topic-grid article:last-child {
  grid-column: 1 / -1;
  background: #ffe6a8;
}

.youtube-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  color: #fffdf7;
  background: linear-gradient(135deg, #171111 0%, #2c1918 58%, #5b1716 100%);
  box-shadow: 0 20px 58px rgba(33, 22, 15, 0.18);
}

.youtube-section .eyebrow {
  color: var(--yellow);
}

.youtube-copy h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.youtube-copy p {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 253, 247, 0.82);
  font-weight: 800;
  line-height: 1.55;
}

.youtube-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  padding: 15px 20px;
  color: #fff;
  background: #ff1f1f;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(255, 31, 31, 0.28);
}

.youtube-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal-dark);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-content,
  .split,
  .rules,
  .youtube-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .joke-form {
    margin-bottom: 18px;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .youtube-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding: 92px 0 28px;
  }

  .hero-content {
    width: calc(100% - 20px);
    gap: 18px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.1rem);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .joke-form {
    padding: 18px;
  }

  .content-section {
    width: calc(100% - 20px);
    padding: 58px 0;
  }

  .stats-band {
    width: calc(100% - 20px);
  }

  .steps article {
    grid-template-columns: 40px 1fr;
    padding: 16px;
  }

  .steps span {
    width: 40px;
    height: 40px;
  }

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

  .topic-grid article:last-child {
    grid-column: auto;
  }

  .youtube-section {
    width: calc(100% - 20px);
    margin-bottom: 58px;
    padding: 22px;
  }
}
