/* Kapow's page: the addon's own comic look. Ink outlines, hard shadows, a starburst, halftone on
   the indigo of its screenshots. Bangers is SIL Open Font License (fonts/bangers-OFL.txt). */
@font-face { font-family: 'Bangers'; src: url(fonts/bangers-regular.ttf); font-display: swap; }

:root { --ink: #111; --yellow: #ffd23f; --red: #ff3b4f; --cream: #fff6dc; --bg: #1c1b33; --lift: 7px; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; overflow-x: clip; color: var(--cream); font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(rgba(255, 210, 63, 0.09) 1.2px, transparent 1.8px) 0 0 / 12px 12px,
    radial-gradient(ellipse at 50% 0%, #4a3f6e, transparent 60%), var(--bg);
  -webkit-font-smoothing: antialiased; }
main { max-width: 1180px; margin: 0 auto; padding: 56px 20px 40px; }

/* ---------- the hero: a starburst, the name, a caption box and the button ---------- */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 0 10px; isolation: isolate; min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); justify-content: center; padding-bottom: 40px; }
.star { position: absolute; z-index: -1; top: -20px; left: 50%; width: min(640px, 118vw); height: auto; overflow: visible;
  transform: translateX(-50%) rotate(-4deg); animation: pop 0.6s cubic-bezier(.3, 1.6, .5, 1) both; }
h1 { margin: 40px 0 0; font: clamp(96px, 17vw, 190px)/0.9 'Bangers', Impact, sans-serif; letter-spacing: 0.02em; color: #fff;
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--ink); transform: rotate(-4deg);
  animation: pop 0.6s cubic-bezier(.3, 1.6, .5, 1) 0.08s both; }
.caption { margin: 52px 0 0; padding: 8px 16px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink);
  font-weight: 700; font-size: clamp(15px, 2.2vw, 19px); transform: rotate(-1.5deg); box-shadow: 5px 5px 0 var(--ink); }
.download { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 56px; padding: 10px 30px 8px; color: var(--ink);
  text-decoration: none; font: 34px 'Bangers', Impact, sans-serif; letter-spacing: 0.04em; background: var(--red);
  color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink);
  border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--lift) var(--lift) 0 var(--ink); transform: rotate(1deg);
  transition: transform 0.18s cubic-bezier(.3, 1.8, .5, 1), box-shadow 0.18s; }
.download .ver { font-size: 20px; color: var(--yellow); }
.download:hover { transform: rotate(-1deg) translate(-3px, -3px) scale(1.04); box-shadow: calc(var(--lift) + 4px) calc(var(--lift) + 4px) 0 var(--ink); }
.download:active { transform: rotate(0deg) translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 0.05s; }
.download:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }
.install { margin: 30px 0 0; font-size: 14px; color: rgba(255, 246, 220, 0.75); }
code { font: 0.92em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; padding: 0.1em 0.4em; border-radius: 3px;
  background: rgba(255, 246, 220, 0.08); border: 1px solid rgba(255, 246, 220, 0.14); overflow-wrap: anywhere; }
@keyframes pop { from { opacity: 0; transform: translateX(var(--tx, 0)) rotate(-12deg) scale(0.6); } }
.star { --tx: -50%; }

/* ---------- the showcase: one picture of what the addon draws (made by addons-site/tools/hero.py) ---------- */
.showcase { margin: 120px auto 0; max-width: 1100px; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden;
  background: var(--ink); box-shadow: var(--lift) var(--lift) 0 rgba(0, 0, 0, 0.4); }
.showcase img { display: block; width: 100%; height: auto; }

footer { margin-top: 120px; padding-bottom: 20px; text-align: center; }
footer a { color: var(--yellow); font: 24px 'Bangers', Impact, sans-serif; letter-spacing: 0.06em; text-decoration: none; }
footer a:hover { color: #fff; }

/* the POW! that flies out of the download button */
.pow { position: fixed; z-index: 10; pointer-events: none; font: 60px 'Bangers', Impact, sans-serif; color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink);
  transform: translate(-50%, -50%) rotate(var(--r)) scale(0.2); animation: pow 0.7s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes pow { 40% { transform: translate(-50%, -110%) rotate(var(--r)) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -160%) rotate(var(--r)) scale(0.9); opacity: 0; } }

@media (max-width: 560px) {
  :root { --lift: 5px; }
  main { padding-top: 36px; }
  h1 { -webkit-text-stroke-width: 4px; text-shadow: 5px 5px 0 var(--ink); }
  .download { font-size: 28px; }
  .showcase { margin-top: 90px; }
  footer { margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
