:root {
  --bg: #ffe14d;
  --ink: #16110a;
  --accent: #ff3d2e;
  --accent2: #2b6cff;
  --muted: #6e5f33;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* funky dotted + grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(var(--ink) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 35%, black 90%);
  mask-image: radial-gradient(ellipse at center, transparent 35%, black 90%);
  z-index: 1;
}

.wrap {
  position: relative;
  z-index: 3;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 7rem;
}

.wrap header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  transform: rotate(-2deg);
  opacity: 0;
  animation: rise 0.7s ease forwards 0.1s;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.25s;
}

h1 .ital {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  position: relative;
}

/* hand-drawn underline scribble */
h1 .ital::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.04em;
  height: 0.16em;
  background: var(--accent2);
  border-radius: 50%;
  transform: rotate(-1.5deg) scaleX(1);
  opacity: 0.85;
  z-index: -1;
}

.sub {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.6;
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.4s;
}

.btn {
  position: relative;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  color: var(--bg);
  background: var(--ink);
  border: 3px solid var(--ink);
  padding: 1.15rem 2.8rem;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform 0.16s cubic-bezier(.34, 1.56, .64, 1), background 0.2s, box-shadow 0.16s;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.55s;
}

.btn:hover {
  background: var(--accent);
  box-shadow: 8px 8px 0 var(--accent2);
  transform: translate(-2px, -2px) rotate(-2deg);
}

.btn:active {
  transform: translate(3px, 3px) scale(0.98);
  box-shadow: 2px 2px 0 var(--accent2);
}

.btn .arrow {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.btn:hover .arrow {
  transform: translateX(5px) rotate(8deg);
}

/* ── Product Hunt badge ── */
.ph-badge {
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.7s;
  transition: transform 0.2s;
}

.ph-badge:hover {
  transform: scale(1.05);
}

/* ── ad placeholder ── */
.ad-slot {
  margin-top: 2.6rem;
  width: min(100%, 728px);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--muted);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.25);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.7s ease forwards 0.7s;
}

/* paste your ad network <script>/<ins> code inside #ad-slot */

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}

footer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer .disclaimer {
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.7;
  font-size: 0.68rem;
}

footer .submit-cta {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent2);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

footer .submit-cta:hover {
  background: var(--accent);
  transform: scale(1.05);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* floating junk with funky outlines */
.float {
  position: fixed;
  z-index: 2;
  font-size: 2.2rem;
  opacity: 0.9;
  animation: bob 6s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.18));
}

.float.a {
  top: 16%;
  left: 9%;
  animation-delay: 0s;
}

.float.b {
  top: 72%;
  left: 13%;
  animation-delay: 1.5s;
}

.float.c {
  top: 20%;
  right: 11%;
  animation-delay: 0.8s;
}

.float.d {
  top: 68%;
  right: 9%;
  animation-delay: 2.2s;
}

.float.e {
  top: 44%;
  left: 4%;
  animation-delay: 3s;
  font-size: 1.7rem;
}

.float.f {
  top: 40%;
  right: 5%;
  animation-delay: 1.1s;
  font-size: 1.7rem;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0) rotate(-10deg);
  }

  50% {
    transform: translateY(-18px) rotate(10deg);
  }
}

@media (max-width: 640px) {
  .float {
    display: none;
  }
}
