/* tokens
   sky: #54B5E4 (sampled from the approved art's own background)
   capsule white: #FFFDF4   capsule green: #1EB264
   ink: #103042 (label/CA text on sky), tag: rgba(16,48,66,0.55)
   type: Chewy (tagline, bundled locally), JetBrains Mono (CA + chrome, real case, copyable)
   corner radius: 0 on the CA chip except a small pill nod to the capsule shape itself
   motion: capsule bobs a few px, the way a cheap shop preview thumbnail loops
*/

@font-face {
  font-family: "Chewy";
  src: url("assets/fonts/chewy-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #54b5e4;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4vh 5vw;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #103042;
}

.shelf {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.tag {
  position: absolute;
  top: -3.5vh;
  left: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(16, 48, 66, 0.55);
}

.thumb {
  margin: 0;
  width: min(58vw, 46vh);
  aspect-ratio: 1 / 1;
  animation: bob 2.6s ease-in-out infinite;
}

.capsule {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.line {
  margin: 2.2vh 0 0;
  max-width: min(84vw, 460px);
  text-align: center;
  font-family: "Chewy", "Comic Sans MS", cursive;
  font-size: clamp(16px, 2.6vw, 22px);
  line-height: 1.35;
  color: #103042;
}

.ca {
  margin: 2vh 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(12px, 1.8vw, 14px);
  color: #103042;
  background: #fffdf4;
  border: 2px solid #103042;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.ca:hover {
  background: #1eb264;
  color: #fffdf4;
}

.meta {
  margin-top: 1.8vh;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.ticker {
  font-weight: 700;
}

.sep {
  color: rgba(16, 48, 66, 0.5);
}

.meta a {
  color: #103042;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 48, 66, 0.5);
}

.meta a:hover {
  border-bottom-color: #103042;
}

@media (prefers-reduced-motion: reduce) {
  .thumb { animation: none; }
}

@media (max-width: 480px) {
  .thumb { width: min(70vw, 50vh); }
  .tag { top: -4.5vh; font-size: 10px; }
}
