:root {
  --ink: #15161d;
  --paper: #fffaf1;
  --muted: #686877;
  --line: rgba(21, 22, 29, 0.13);
  --pink: #ff5f9e;
  --red: #f05657;
  --yellow: #ffd35c;
  --cyan: #55c7d8;
  --green: #8bd36a;
  --violet: #7d6dff;
  --shadow: 0 22px 56px rgba(26, 20, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.88), rgba(255, 250, 241, 0.96) 46%, #fffaf1),
    url("assets/kirby-site-bg.png") center top / 760px auto repeat,
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(21, 22, 29, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 22, 29, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 86%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: 100%;
}

main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(230px, auto) 1fr auto;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 88px;
  padding: 12px clamp(16px, 4vw, 46px);
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 211, 92, 0.92), rgba(255, 95, 158, 0.88) 46%, rgba(85, 199, 216, 0.9)),
    var(--paper);
  box-shadow: 0 12px 0 rgba(21, 22, 29, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 6px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 18px, transparent 18px 36px);
  opacity: 0.95;
}

.brand,
.main-nav,
.socials,
.hero-actions,
.ticker-strip,
.token-box {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
  min-width: 0;
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-4deg);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1;
}

.brand-copy span:first-child {
  font-size: 1.55rem;
}

.brand-copy span:last-child {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav {
  justify-content: center;
  gap: 8px;
  justify-self: center;
}

.main-nav a {
  padding: 10px 18px;
  border: 2px solid rgba(21, 22, 29, 0.82);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.7);
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.main-nav a:hover,
.socials a:hover {
  background: #fff;
  box-shadow: 4px 4px 0 rgba(21, 22, 29, 0.82);
  transform: translate(-2px, -2px);
}

.socials {
  justify-content: flex-end;
  gap: 9px;
}

.socials a {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 2px solid rgba(21, 22, 29, 0.82);
  border-radius: 13px;
  background: rgba(255, 250, 241, 0.72);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-text {
  font-size: 0.72rem;
  font-weight: 900;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  padding: clamp(44px, 7vw, 86px) 0 78px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(21, 22, 29, 0.9);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baloo 2", system-ui, sans-serif;
  line-height: 0.96;
}

h1 {
  max-width: 800px;
  font-size: clamp(3.15rem, 7.6vw, 6.7rem);
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.45rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.64;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 22px 0 0;
  color: #4d4c59;
  font-size: 1.2rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.button.primary {
  background: var(--pink);
}

.button.secondary {
  background: #fff;
}

.hero-art {
  position: relative;
  min-height: 610px;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 58px 26px 70px 42px;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(125, 109, 255, 0.2), rgba(85, 199, 216, 0.22)),
    repeating-linear-gradient(-45deg, rgba(21, 22, 29, 0.08) 0 8px, transparent 8px 18px);
  box-shadow: 10px 10px 0 rgba(21, 22, 29, 0.14);
}

.hero-card {
  position: absolute;
  object-fit: cover;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 10px 10px 0 var(--ink);
  transition: transform 180ms ease;
}

.hero-card.main {
  --base-transform: rotate(2deg);
  right: 2%;
  top: 4%;
  width: min(470px, 89%);
  aspect-ratio: 1;
  border-radius: 30px;
  object-position: center 42%;
  transform: var(--base-transform);
}

.hero-card.mini {
  width: 208px;
  aspect-ratio: 1;
  border-radius: 24px;
}

.hero-card.work {
  --base-transform: rotate(-8deg);
  left: 0;
  bottom: 68px;
  transform: var(--base-transform);
}

.hero-card.hype {
  --base-transform: rotate(7deg);
  right: 8px;
  bottom: 0;
  transform: var(--base-transform);
}

.ticker-strip {
  overflow: hidden;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 88px;
  padding: 17px 24px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--cyan);
  box-shadow: 8px 8px 0 var(--ink);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.92rem);
  font-weight: 800;
}

.ticker-strip span:nth-child(2) {
  color: #fff;
  text-shadow: 2px 2px 0 var(--ink);
}

.ticker-strip span:nth-child(4) {
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--ink);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.about,
.vibes,
.token {
  padding: 66px 0;
}

.about-story {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.97) 0%, rgba(255, 250, 241, 0.9) 46%, rgba(255, 250, 241, 0.26) 100%),
    linear-gradient(135deg, rgba(255, 95, 158, 0.52), rgba(255, 211, 92, 0.38), rgba(85, 199, 216, 0.44));
  box-shadow: 10px 10px 0 var(--ink);
}

.story-bg {
  position: absolute;
  inset: 0;
}

.story-img {
  position: absolute;
  object-fit: cover;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(21, 22, 29, 0.92);
}

.story-wave {
  right: 30%;
  bottom: -46px;
  width: 280px;
  aspect-ratio: 0.56;
  border-radius: 23px;
  transform: rotate(-8deg);
}

.story-night {
  right: 13%;
  top: 52px;
  width: 255px;
  aspect-ratio: 0.9;
  border-radius: 24px;
  object-position: center 42%;
  transform: rotate(6deg);
}

.story-rainbow {
  right: -12px;
  bottom: 36px;
  width: 310px;
  aspect-ratio: 1;
  border-radius: 26px;
  object-position: center 42%;
  transform: rotate(3deg);
}

.story-copy {
  position: relative;
  z-index: 1;
  width: min(610px, 100%);
  padding: clamp(28px, 6vw, 68px);
}

.story-copy h3 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.vibe-card {
  --base-transform: none;
  overflow: hidden;
  padding: 14px 14px 24px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 8px 8px 0 rgba(21, 22, 29, 0.92);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.vibe-card:nth-child(1) {
  background: #f7fff1;
}

.vibe-card:nth-child(2) {
  background: #effaff;
}

.vibe-card:nth-child(3) {
  background: #fff3c2;
}

.vibe-card:hover {
  box-shadow: 11px 11px 0 rgba(21, 22, 29, 0.92);
}

.vibe-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 42%;
  border: 2px solid var(--ink);
  border-radius: 16px;
  margin-bottom: 20px;
}

.vibe-card h3,
.vibe-card p {
  padding: 0 10px;
}

.vibe-card p {
  margin-bottom: 0;
}

.token {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.82fr);
  align-items: center;
  gap: 28px;
  margin: 40px auto 70px;
  padding: clamp(26px, 5vw, 50px);
  border: 2px solid var(--ink);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 95, 158, 0.92), rgba(255, 211, 92, 0.88) 54%, rgba(139, 211, 106, 0.8));
  box-shadow: 10px 10px 0 var(--ink);
}

.token-copy p {
  max-width: 630px;
  color: rgba(21, 22, 29, 0.72);
}

.token .eyebrow {
  background: #fff;
}

.token-box {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.token-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: 4px 4px 0 rgba(21, 22, 29, 0.84);
}

.label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.token-box strong {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.28rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 42px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer span:first-child {
  color: var(--ink);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.4rem;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .token {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 560px;
  }

  .vibe-grid {
    grid-template-columns: 1fr;
  }

  .about-story {
    min-height: 680px;
    background:
      linear-gradient(0deg, rgba(255, 250, 241, 0.96) 0%, rgba(255, 250, 241, 0.9) 54%, rgba(255, 250, 241, 0.2) 100%),
      linear-gradient(135deg, rgba(255, 95, 158, 0.52), rgba(255, 211, 92, 0.38), rgba(85, 199, 216, 0.44));
  }

  .story-copy {
    padding: 34px 24px;
  }

  .story-wave {
    left: 6%;
    right: auto;
    bottom: 18px;
    width: 180px;
  }

  .story-night {
    right: 8%;
    top: 260px;
    width: 190px;
  }

  .story-rainbow {
    right: 12%;
    bottom: 26px;
    width: 220px;
  }

  .ticker-strip {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  main,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    padding: 10px 11px 13px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .brand-copy span:first-child {
    font-size: 1.32rem;
  }

  .brand-copy span:last-child {
    display: none;
  }

  .socials {
    gap: 6px;
  }

  .socials a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .main-nav a {
    padding: 9px 14px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1.07rem;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 460px;
  }

  .hero-art::before {
    inset: 54px 12px 62px 20px;
    border-radius: 22px;
  }

  .hero-card.main {
    width: 82%;
    right: 0;
    border-radius: 24px;
  }

  .hero-card.mini {
    width: 154px;
    border-radius: 20px;
  }

  .hero-card.work {
    bottom: 52px;
  }

  .ticker-strip,
  .about-story,
  .token,
  .vibe-card {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .about,
  .vibes,
  .token {
    padding: 42px 0;
  }

  .token-box div,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
