@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070504;
  --bg-raised: #120c09;
  --ink: #f6ece3;
  --muted: #b59a86;
  --quiet: #7d6758;
  --line: rgba(255, 140, 60, 0.16);
  --ember: #ff6b1a;
  --ember-hot: #ffc089;
  --ember-deep: #c2410c;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-height: 100%;
}

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

a {
  color: var(--ember-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.wrap {
  width: min(100%, 42rem);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 2.1rem 1.25rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: -10% 0 20%;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 50% 38%, rgba(255, 80, 16, 0.28), transparent 62%),
    radial-gradient(ellipse 50% 40% at 50% 70%, rgba(80, 20, 0, 0.5), transparent 70%);
  pointer-events: none;
}

.hero-art {
  position: relative;
  width: min(78vw, 20.5rem);
  margin: 0 auto 1.15rem;
  animation: float 5.6s ease-in-out infinite;
}

.hero-art .glow {
  position: absolute;
  inset: 16% 12% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.55), rgba(255, 80, 16, 0.12) 55%, transparent 72%);
  filter: blur(22px);
  z-index: -1;
  animation: ember 3.4s ease-in-out infinite;
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  animation: flicker 3.4s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(circle at 50% 54%, #000 58%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 54%, #000 58%, transparent 76%);
}

.hero h1 {
  margin: 0 auto 0.7rem;
  max-width: 18.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 8.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff6ee;
}

.tagline {
  margin: 0 auto 1.5rem;
  max-width: 19.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a3a 0%, var(--ember) 55%, var(--ember-deep) 100%);
  color: #1a0b04;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 200, 140, 0.25),
    0 10px 28px rgba(255, 80, 16, 0.28);
}

.btn:hover {
  color: #1a0b04;
  filter: brightness(1.06);
}

/* Sections */
main section {
  padding: 2.4rem 0 0.4rem;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
}

.who p {
  margin: 0 0 0.95rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #efe3d8;
  max-width: 32rem;
}

.who p:last-child {
  margin-bottom: 0;
}

/* Best of Dip strip */
.strip-label {
  padding-inline: 1.25rem;
  width: min(100%, 42rem);
  margin-inline: auto;
}

.strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 1.25rem 1rem;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 26, 0.4) transparent;
}

.strip figure {
  flex: 0 0 auto;
  width: min(78vw, 17.5rem);
  margin: 0;
  scroll-snap-align: start;
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: 0 0 0 1px var(--line);
}

.strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Meme kit */
.kit-intro {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.kit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.kit-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.kit-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #000;
}

.kit-card .meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem 0.7rem;
}

.kit-card .name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f3e7dc;
}

.kit-card .dl {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ember);
  letter-spacing: 0.02em;
}

/* Token footnote */
.token {
  margin: 2.75rem auto 0;
  padding: 1.35rem 1.25rem 0.4rem;
  border-top: 1px solid rgba(255, 140, 60, 0.12);
  color: var(--quiet);
  font-size: 0.75rem;
  line-height: 1.5;
}

.token p {
  margin: 0 0 0.4rem;
}

.token-name {
  letter-spacing: 0.02em;
}

.ca-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.15rem 0 0.45rem;
}

.ca {
  margin: 0;
  flex: 1 1 auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  color: #8a7466;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.copy {
  flex: 0 0 auto;
  margin-top: 0.05rem;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(255, 140, 60, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--quiet);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.copy:hover,
.copy[data-copied="true"] {
  color: var(--ember-hot);
  border-color: rgba(255, 192, 137, 0.45);
}

.token a {
  color: #9a7d6c;
}

.token .honest {
  margin-top: 0.7rem;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: #8f7868;
}

/* Footer */
.site-footer {
  padding: 1.1rem 1.25rem 2.4rem;
  text-align: center;
  color: var(--quiet);
  font-size: 0.75rem;
}

.site-footer a {
  color: #9a7d6c;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ember-hot);
}

.site-footer p {
  margin: 0.35rem 0 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.55rem);
  }
}

@keyframes flicker {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }
  40% {
    filter: brightness(1.06) saturate(1.08);
  }
  62% {
    filter: brightness(0.97) saturate(0.96);
  }
  78% {
    filter: brightness(1.04) saturate(1.05);
  }
}

@keyframes ember {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .hero-art img,
  .hero-art .glow {
    animation: none;
  }
}

@media (min-width: 600px) {
  .hero h1 {
    max-width: 24rem;
  }

  .tagline {
    max-width: 24rem;
  }

  .strip {
    padding-inline: max(1.25rem, calc((100% - 42rem) / 2 + 1.25rem));
  }
}
