:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #000000;
  --shadow: rgb(0 0 0 / 0.82);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

img {
  max-width: 100%;
}

.yao-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 47px, rgb(0 0 0 / 0.04) 48px 50px, transparent 51px 100%),
    linear-gradient(0deg, transparent 0 47px, rgb(0 0 0 / 0.04) 48px 50px, transparent 51px 100%),
    var(--paper);
  background-size: 96px 96px;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background-image: url("/images/background-noise.gif");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
  opacity: 0.08;
}

.topbar {
  position: relative;
  z-index: 30;
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px clamp(12px, 4vw, 20px);
  border-bottom: 4px solid var(--ink);
  background: rgb(255 255 255 / 0.82);
  box-shadow: 0 5px 0 var(--shadow);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.2rem, 7vw, 2rem);
  font-weight: 950;
  line-height: 1;
}

.brand img {
  width: clamp(38px, 11vw, 48px);
  height: clamp(38px, 11vw, 48px);
  flex: 0 0 auto;
  object-fit: contain;
}

.brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.socials {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(7px, 2.4vw, 12px);
}

.social-button {
  display: grid;
  width: clamp(36px, 10.2vw, 40px);
  height: clamp(36px, 10.2vw, 40px);
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 160ms ease, background-color 160ms ease;
}

.social-button:hover {
  background: var(--paper);
  transform: translateY(-2px) rotate(-3deg);
}

.social-button img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(26px, 6vw, 90px);
  padding: clamp(34px, 7vw, 80px) clamp(20px, 6vw, 82px) clamp(50px, 8vw, 96px);
}

.logo-frame {
  position: relative;
  justify-self: center;
  width: min(410px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--shadow);
  transform: rotate(-3deg);
}

.logo-frame::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--shadow);
  content: "$YAO";
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1;
}

.logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(10px, 3vw, 22px);
  object-fit: contain;
  object-position: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.ticker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 9px 14px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--shadow);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 950;
  line-height: 1;
}

h1 {
  max-width: 7ch;
  margin: 0;
  font-size: clamp(5rem, 17vw, 13rem);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: 0;
  text-shadow: 8px 12px 0 rgb(0 0 0 / 0.13);
}

h2 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 7rem);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 6px 9px 0 rgb(0 0 0 / 0.13);
}

.tagline {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.04;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--ink);
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 6px 6px 0 var(--shadow);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  box-shadow: 4px 4px 0 var(--shadow);
  transform: translate(2px, 2px);
}

.button.primary {
  background: var(--paper);
  color: var(--ink);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.button.meme {
  background: var(--paper);
  color: var(--ink);
}

.button.lore {
  width: fit-content;
  background: var(--ink);
  color: var(--paper);
}

.button.copy-ca {
  width: fit-content;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transform: rotate(-2deg);
}

.button.copy-ca:hover {
  transform: translate(2px, 2px) rotate(-2deg);
}

.hero-sticker {
  position: absolute;
  z-index: 0;
  width: clamp(110px, 15vw, 190px);
  height: auto;
  pointer-events: none;
  opacity: 0.16;
}

.hero-sticker-left {
  bottom: 58px;
  left: 28px;
  transform: rotate(9deg);
}

.hero-sticker-right {
  top: 118px;
  right: clamp(18px, 7vw, 120px);
  transform: rotate(-9deg) scaleX(-1);
}

.contract-callout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
  padding: clamp(34px, 6vw, 64px) clamp(18px, 6vw, 82px);
  border-top: 4px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.contract-copy {
  max-width: 610px;
}

.contract-copy .ticker {
  background: var(--paper);
  color: var(--ink);
}

.contract-copy p:not(.ticker) {
  max-width: 560px;
  margin: 20px 0 0;
  font-size: clamp(1.12rem, 2.3vw, 1.5rem);
  font-weight: 900;
  line-height: 1.08;
}

.contract-panel {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.contract-value {
  width: min(100%, 680px);
  padding: clamp(14px, 3vw, 22px);
  overflow-wrap: anywhere;
  border: 5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--shadow);
  color: var(--ink);
  font-size: clamp(1.7rem, 6vw, 4.3rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.copy-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.2;
}

.copy-fallback {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

.history-callout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 260px);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  padding: clamp(34px, 6vw, 62px) clamp(18px, 6vw, 82px);
  border-top: 4px solid var(--ink);
  background: transparent;
}

.history-copy {
  max-width: 720px;
}

.history-copy .ticker {
  background: var(--paper);
}

.history-copy p:not(.ticker) {
  max-width: 590px;
  margin: 20px 0 24px;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 900;
  line-height: 1.08;
}

.history-face {
  display: grid;
  width: min(100%, 220px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  border: 5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--shadow);
  transform: rotate(4deg);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.history-face:hover {
  box-shadow: 5px 5px 0 var(--shadow);
  transform: translate(3px, 3px) rotate(2deg);
}

.history-face img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.meme-gallery {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 6vw, 68px) clamp(18px, 6vw, 82px);
  border-top: 4px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.meme-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.meme-gallery-heading .ticker {
  flex: 0 0 auto;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(-2deg);
}

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

.meme-card {
  margin: 0;
  border: 5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--shadow);
  color: var(--ink);
  overflow: hidden;
  transform: rotate(-1deg);
}

.meme-card:nth-child(2) {
  transform: rotate(1.5deg);
}

.meme-card:nth-child(3) {
  transform: rotate(-0.5deg);
}

.meme-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.meme-card:nth-child(1) img,
.meme-card:nth-child(2) img {
  object-position: center top;
}

.meme-card:nth-child(3) img {
  object-position: center bottom;
}

.marquee {
  position: relative;
  z-index: 1;
  height: 132px;
  overflow: hidden;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background: transparent;
}

.marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  gap: 34px;
  padding: 0 28px;
  animation: marquee-slide 30s linear infinite;
}

.marquee-track span {
  flex: 0 0 auto;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1;
}

.marquee-track img {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  padding: 6px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--shadow);
  object-fit: contain;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 50px 40px 30px;
  border-top: 4px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.site-footer h2 {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.footer-links a {
  display: inline-flex;
  min-width: 132px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid rgb(255 255 255 / 0.36);
  border-radius: 6px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.footer-links a:hover {
  background: rgb(255 255 255 / 0.12);
}

.site-footer p {
  margin: 0;
  color: rgb(255 255 255 / 0.52);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.legal-page {
  min-height: calc(100vh - 190px);
  padding: clamp(18px, 5vw, 52px);
  background:
    linear-gradient(90deg, transparent 0 47px, rgb(0 0 0 / 0.04) 48px 50px, transparent 51px 100%),
    linear-gradient(0deg, transparent 0 47px, rgb(0 0 0 / 0.04) 48px 50px, transparent 51px 100%),
    var(--paper);
  background-size: 96px 96px;
}

.legal-nav {
  max-width: 940px;
  margin: 0 auto 22px;
}

.legal-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--shadow);
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
}

.legal-page article {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--shadow);
}

.legal-page h1 {
  max-width: none;
  margin: 0 0 14px;
  font-size: clamp(3.2rem, 10vw, 6rem);
  line-height: 0.86;
}

.legal-page h2 {
  margin: 32px 0 12px;
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  line-height: 0.95;
  text-shadow: none;
}

.legal-page p,
.legal-page li {
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.45;
}

.legal-page p {
  margin: 0 0 16px;
}

.legal-date {
  margin-bottom: 28px;
  color: rgb(0 0 0 / 0.62);
}

.legal-page ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-page li + li {
  margin-top: 10px;
}

.legal-page article a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@keyframes marquee-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .logo-frame {
    width: min(330px, calc(100vw - 54px));
  }

  h1 {
    font-size: clamp(4.3rem, 23vw, 8.2rem);
  }

  .hero-sticker-right {
    top: auto;
    right: 18px;
    bottom: 290px;
  }

  .history-callout {
    grid-template-columns: 1fr;
  }

  .contract-callout {
    grid-template-columns: 1fr;
  }

  .meme-gallery-heading {
    display: block;
  }

  .meme-gallery-heading h2 {
    margin-top: 14px;
  }

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

  .history-face {
    width: min(190px, 56vw);
    justify-self: start;
  }
}

@media (max-width: 460px) {
  .topbar {
    min-height: 60px;
  }

  .brand {
    font-size: clamp(1.25rem, 6.7vw, 1.65rem);
  }

  .hero {
    padding-inline: 16px;
  }

  .button {
    width: 100%;
  }

  .button.lore {
    width: 100%;
  }

  .button.copy-ca {
    width: 100%;
  }

  .contract-panel {
    justify-items: stretch;
  }
}
