/* =========================================================
   Tiny Tank | The Pygmy Hippo ($TINYTANK)

   Cartoon sticker book. Everything is inked in the same
   black line and dropped onto a hard diagonal shadow, the
   way a sticker sits on a page. The background is drawn on
   rather than filled: graph paper, a straw hedge, doodled
   arrows. Colour comes from her own photograph, so the
   world is straw gold instead of sky blue.
   ========================================================= */

:root {
  --sky: #FFDD84;
  --sky-2: #FFCF5E;
  --butter: #FFF3D2;
  --yellow: #FFC01D;
  --pink: #FF7BA4;
  --white: #FFFFFF;
  --black: #14110E;
  --brown: #6E4B27;

  --font-display: "Luckiest Guy", ui-rounded, system-ui, sans-serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, sans-serif;

  --ink: 4px;
  --pop: 6px 6px 0 var(--black);
  --pop-sm: 4px 4px 0 var(--black);
  --round: 16px;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; }
::selection { background: var(--pink); color: var(--black); }

:focus-visible {
  outline: 4px solid var(--black);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------
   Type
   --------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
  margin: 0;
}

/* Inked display type: white fill, heavy black outline, hard
   offset shadow. paint-order keeps the stroke behind the
   fill so the letters do not thin out. */
h1, h2 {
  color: var(--white);
  text-transform: uppercase;
  -webkit-text-stroke: 5px var(--black);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--black);
}

h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
h3 { font-size: 1.35rem; line-height: 1.1; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.08rem;
  color: var(--brown);
  max-width: 52ch;
  margin-top: 18px;
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.band {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px);
}

/* graph paper, drawn on rather than filled */
.hero,
#story,
#tokenomics {
  background-color: var(--sky);
  background-image:
    linear-gradient(rgba(20, 17, 14, .07) 2px, transparent 2px),
    linear-gradient(90deg, rgba(20, 17, 14, .07) 2px, transparent 2px);
  background-size: 62px 62px;
}

#video,
#buy { background: var(--butter); }
.stats,
#gallery { background: var(--sky-2); }
#socials { background: var(--pink); }

.row { display: flex; flex-wrap: wrap; gap: 15px; }
.row--center { justify-content: center; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: var(--ink) solid var(--black);
  border-radius: var(--round);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--pop-sm);
  transition: transform .1s ease, box-shadow .1s ease, background-color .1s ease;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--black); }

.btn--yellow { background: var(--yellow); }
.btn--yellow:hover { background: #FFD152; }
.btn--pink { background: var(--pink); }
.btn--pink:hover { background: #FF95B6; }
.btn--white:hover { background: var(--butter); }

.btn--lg { padding: 16px 32px; font-size: 1.14rem; }
.btn--sm { padding: 10px 20px; font-size: .92rem; }
.btn svg { width: 21px; height: 21px; fill: currentColor; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--sky);
  border-bottom: 5px solid var(--black);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--black);
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: var(--ink) solid var(--black);
}

.nav { display: flex; gap: 24px; }

.nav a {
  font-weight: 700;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 3px solid transparent;
}

.nav a:hover { border-bottom-color: var(--black); }

/* ---------------------------------------------------------
   Hero: a centred collage, not a column layout
   --------------------------------------------------------- */

.hero {
  padding-bottom: clamp(90px, 12vw, 150px);
  overflow: hidden;
}

/* full container width so the wordmark has room to get big.
   The reading elements below it are narrowed one by one. */
.hero__inner {
  position: relative;
  text-align: center;
}

.sticker {
  position: relative;
  z-index: 3;
  width: clamp(170px, 26vw, 300px);
  margin: 0 auto -26px;
  border: 7px solid var(--black);
  border-radius: 50%;
  overflow: hidden;
  background: var(--black);
  box-shadow: 9px 9px 0 var(--black);
  transform: rotate(-4deg);
}

.sticker img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 42%;
}

/* Sized to fill the container rather than guessed at.
   Measured from the font: "TINY TANK" is 4.833em wide in
   Luckiest Guy, plus .045em of tracking on nine characters
   is 5.24em, plus 9px for the outline growing outward.
   Filling 95% of (100vw - 48px of gutter) works out at
   18vw - 10px, and 12rem is where it stops growing once the
   1120px container stops growing with the viewport. */
.wordmark {
  position: relative;
  z-index: 2;
  font-size: clamp(2.9rem, calc(18vw - 10px), 12rem);
  letter-spacing: .045em;
  -webkit-text-stroke: 9px var(--black);
  text-shadow: 12px 12px 0 var(--black);
}

.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--black);
  margin: 16px 0 0;
}

.hero__line {
  font-size: 1.12rem;
  max-width: 46ch;
  margin: 20px auto 32px;
}

.hero .ca { margin-inline: auto; }
.hero .row { margin-top: 22px; }

/* ---- the spinning badge and the doodled arrows ---- */

.badge {
  position: absolute;
  top: 6px;
  left: -18px;
  z-index: 4;
  width: clamp(96px, 12vw, 140px);
  animation: spin 16s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.doodle {
  position: absolute;
  width: clamp(74px, 9vw, 116px);
  fill: none;
  stroke: var(--black);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.doodle--left { left: 2%; bottom: 74px; transform: rotate(-6deg); }
.doodle--right { right: 2%; bottom: 74px; transform: rotate(6deg); }

/* ---- the straw hedge along the bottom ---- */

.straw {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 64px;
  background: url("assets/straw.svg") repeat-x bottom center;
  background-size: 200px 64px;
}

/* ---------------------------------------------------------
   Contract address
   --------------------------------------------------------- */

.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  text-align: left;
  padding: 11px 11px 11px 20px;
  background: var(--white);
  border: var(--ink) solid var(--black);
  border-radius: var(--round);
  box-shadow: var(--pop-sm);
}

.ca--wide { max-width: none; margin-top: 32px; }
.ca > div { flex: 1; min-width: 0; }

.ca__label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 2px;
}

.ca__value {
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  line-height: 1.4;
  margin: 0;
}

/* ---------------------------------------------------------
   Crossing strips
   --------------------------------------------------------- */

.strips {
  position: relative;
  z-index: 5;
  margin-block: -22px -20px;
  padding-block: 26px;
  pointer-events: none;
}

.strip {
  width: 112%;
  margin-left: -6%;
  overflow: hidden;
  border-block: 5px solid var(--black);
  padding-block: 11px;
}

.strip--yellow { background: var(--yellow); transform: rotate(-2.2deg); }
.strip--pink { background: var(--pink); transform: rotate(1.6deg); margin-top: -6px; }

.strip__track {
  display: flex;
  width: max-content;
  animation: slide 30s linear infinite;
}

.strip--pink .strip__track { animation-direction: reverse; }

.strip span {
  font-family: var(--font-display);
  font-size: 1.16rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  padding-inline: 22px;
}

.strip span::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--black);
  margin-left: 22px;
  vertical-align: .06em;
}

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

/* ---------------------------------------------------------
   Numbers band
   --------------------------------------------------------- */

.stats {
  border-block: 5px solid var(--black);
  padding-block: clamp(48px, 6vw, 74px);
  text-align: center;
}

.stats__live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 30px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.stats__live i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2E7D32;
  border: 3px solid var(--black);
  animation: blink 1.8s ease-in-out infinite;
}

[data-state="waiting"] .stats__live i { background: var(--brown); }

@keyframes blink { 50% { opacity: .25; } }

.stats__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats__row li {
  background: var(--white);
  border: var(--ink) solid var(--black);
  border-radius: var(--round);
  box-shadow: var(--pop-sm);
  padding: 18px 12px 15px;
}

.stats__row b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stats__row b[data-dir="up"] { color: #1E7A2B; }
.stats__row b[data-dir="down"] { color: #C7343F; }

.stats__row span {
  display: block;
  margin-top: 8px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown);
}

/* ---- buy against sell pressure ---- */

.pressure { max-width: 620px; margin: 32px auto 0; }

.pressure__bar {
  height: 30px;
  border: var(--ink) solid var(--black);
  border-radius: 999px;
  overflow: hidden;
  background: #E8556B;
  box-shadow: var(--pop-sm);
}

.pressure__buys {
  display: block;
  width: 50%;
  height: 100%;
  background: #46BE5E;
  border-right: var(--ink) solid var(--black);
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}

.pressure__legend {
  margin-top: 14px;
  font-size: .92rem;
  font-weight: 600;
}

.pressure__legend b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.14rem;
  font-variant-numeric: tabular-nums;
}

.stats__cta { margin-top: 32px; }

/* ---------------------------------------------------------
   Photo prints
   --------------------------------------------------------- */

.snap {
  margin: 0;
  background: var(--white);
  padding: 12px;
  border: var(--ink) solid var(--black);
  border-radius: var(--round);
  box-shadow: var(--pop);
  transition: transform .25s ease;
}

.snap img { border-radius: 8px; }

.snap figcaption {
  padding: 12px 4px 2px;
  text-align: center;
  font-size: .86rem;
  font-weight: 700;
}

.snap--left { transform: rotate(-3deg); }
.snap--right { transform: rotate(2.5deg); }
.snap:hover { transform: rotate(0); }

/* ---------------------------------------------------------
   Video, embedded from the zoo's own post on X
   --------------------------------------------------------- */

.video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 550px);
  gap: clamp(34px, 5vw, 60px);
  align-items: center;
}

.video .btn { margin-top: 26px; }
.tweet { width: 100%; }

/* Only the pre-render fallback gets this card. Once widgets.js
   swaps the blockquote for its iframe it picks up
   .twitter-tweet-rendered and keeps its own styling. */
.twitter-tweet:not(.twitter-tweet-rendered) {
  margin: 0;
  padding: 26px;
  background: var(--white);
  border: var(--ink) solid var(--black);
  border-radius: var(--round);
  box-shadow: var(--pop);
  font-size: .98rem;
}

.twitter-tweet:not(.twitter-tweet-rendered) cite {
  display: block;
  margin-top: 14px;
  font-size: .86rem;
  font-style: normal;
  font-weight: 700;
}

.twitter-tweet:not(.twitter-tweet-rendered) a {
  font-weight: 700;
  word-break: break-all;
}

/* ---------------------------------------------------------
   Story
   --------------------------------------------------------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 70px);
  align-items: center;
}

.story p { max-width: 46ch; }
.story h2 { margin-bottom: 26px; }

.snaps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.facts { margin: 30px 0 0; padding: 0; max-width: 420px; }

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 3px solid var(--black);
}

.facts dt {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
  padding-top: 4px;
}

.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------------------------------------------------------
   Gallery
   --------------------------------------------------------- */

.gallery {
  position: relative;
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  margin: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 16px 12px 14px;
  border: var(--ink) solid var(--black);
  border-radius: var(--round);
  box-shadow: var(--pop-sm);
  background-color: var(--butter);
  background-image: repeating-linear-gradient(-45deg,
    rgba(20, 17, 14, .06) 0 11px, transparent 11px 22px);
}

.tile b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: rgba(20, 17, 14, .16);
}

.tile span {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  text-align: center;
  color: var(--brown);
}

/* the stamp lands across the middle of the grid, over the
   question marks rather than over the labels */
.stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  margin: 0;
  transform: translate(-50%, -50%) rotate(-7deg);
  padding: 14px 34px 18px;
  background: var(--pink);
  border: 6px solid var(--black);
  border-radius: var(--round);
  box-shadow: var(--pop);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  -webkit-text-stroke: 4px var(--black);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--black);
}

/* ---------------------------------------------------------
   Steps
   --------------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 20px;
}

.steps li {
  background: var(--white);
  border: var(--ink) solid var(--black);
  border-radius: var(--round);
  padding: 28px 24px;
  box-shadow: var(--pop);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--yellow);
  border: var(--ink) solid var(--black);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.steps h3 { margin-bottom: 8px; }
.steps p { font-size: .95rem; color: var(--brown); }
.steps a { font-weight: 800; text-underline-offset: 3px; }

/* ---------------------------------------------------------
   Tokenomics
   --------------------------------------------------------- */

.spec {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
  gap: 18px;
}

.spec li {
  background: var(--white);
  border: var(--ink) solid var(--black);
  border-radius: var(--round);
  box-shadow: var(--pop-sm);
  padding: 20px 20px 18px;
}

.spec b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.spec span {
  display: block;
  margin-top: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--brown);
}

/* ---------------------------------------------------------
   Socials
   --------------------------------------------------------- */

.socials { text-align: center; border-top: 5px solid var(--black); }
.socials h2 { margin-bottom: 36px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-foot {
  background: var(--black);
  color: #D6C9B6;
  border-top: 5px solid var(--black);
  padding-block: 44px;
}

.site-foot p { font-size: .84rem; max-width: 62ch; }
.site-foot a { color: var(--yellow); font-weight: 700; }

.site-foot__mark {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 940px) {
  .story,
  .video { grid-template-columns: minmax(0, 1fr); }
  .snaps { max-width: 520px; }
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stamp { -webkit-text-stroke-width: 3px; padding: 12px 24px 15px; }
}

@media (max-width: 860px) {
  .badge { width: 86px; top: -6px; left: 0; }
  .doodle { display: none; }

  /* the outline is a fixed width, so it has to come down
     with the type or it swallows the letterforms */
  .wordmark {
    -webkit-text-stroke-width: 7px;
    text-shadow: 8px 8px 0 var(--black);
  }
}

/* five links, a logo and a button need the gap to give a little */
@media (max-width: 1000px) {
  .nav { gap: 15px; }
  .nav a { font-size: .86rem; }
}

@media (max-width: 780px) {
  .nav { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }

  h1, h2 {
    -webkit-text-stroke-width: 3px;
    text-shadow: 4px 4px 0 var(--black);
  }

  .wordmark {
    -webkit-text-stroke-width: 5px;
    text-shadow: 6px 6px 0 var(--black);
  }

  .stats__row b { -webkit-text-stroke-width: 3px; }
  .site-head__inner { min-height: 64px; }
  .brand { font-size: 1.12rem; }
  .brand img { width: 44px; height: 44px; }
  .ca { flex-direction: column; align-items: stretch; text-align: center; }
  .row .btn { flex: 1 1 100%; }
  .stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .snaps { grid-template-columns: 1fr; gap: 28px; }
  .facts div { flex-direction: column; gap: 0; }
  .facts dd { text-align: left; }
  .strip span { font-size: 1rem; }
}

/* ---------------------------------------------------------
   Motion preferences
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
