/* The website of Yeet Orbital, in the look of the game (www/style.css): the lime and Ben-Day dots of zone 1, comic
   lettering, caption boxes, a speech balloon, thick ink outlines and hard shadows. */

/* Bangers, by Vernon Adams, under the SIL Open Font License (fonts/OFL.txt): the lettering of the game. */
@font-face {
  font-family: Bangers;
  src: url('fonts/Bangers-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --ink: #111111;
  --accent: #ff3d9a;
  --caption: #ffe14a; /* the yellow of comic book captions */
  --lime: #d7ff3e;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: calc(env(safe-area-inset-top) + 32px) 20px calc(env(safe-area-inset-bottom) + 24px);
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.1) 22%, transparent 25%) 0 0 / 12px 12px,
    radial-gradient(circle, rgba(0, 0, 0, 0.1) 22%, transparent 25%) 6px 6px / 12px 12px,
    var(--lime);
  color: var(--ink);
  /* Bangers has one weight: no bold is made up for it. */
  font-family: Bangers, Impact, 'Arial Black', sans-serif;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 460px;
}

.game-icon {
  border: 4px solid var(--ink);
  border-radius: 22%;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-4deg);
}

/* Title lettering: white with a thick ink outline and a hard drop shadow. */
h1 {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: clamp(56px, 17vw, 88px);
  font-weight: 400;
  line-height: 0.9;
  text-shadow:
    3px 0 var(--ink), -3px 0 var(--ink), 0 3px var(--ink), 0 -3px var(--ink),
    2px 2px var(--ink), -2px 2px var(--ink), 2px -2px var(--ink), -2px -2px var(--ink),
    4px 8px var(--ink), -1px 8px var(--ink), 2px 6px var(--ink);
  transform: rotate(-4deg);
}

/* A caption box, like the narration of a comic. */
.caption {
  display: inline-block;
  padding: 3px 10px 2px;
  border: 3px solid var(--ink);
  background: var(--caption);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 22px;
  font-weight: 400;
  transform: rotate(-2deg);
}

/* A speech balloon, its tail pointing down. */
.balloon {
  position: relative;
  margin-bottom: 18px;
  padding: 12px 22px 10px;
  border: 4px solid var(--ink);
  border-radius: 46% / 40%;
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 24px;
  line-height: 1;
  transform: rotate(2deg);
}

.balloon::before,
.balloon::after {
  content: '';
  position: absolute;
  border-style: solid;
  border-color: var(--ink) transparent transparent;
}

.balloon::before {
  top: 100%;
  left: 24%;
  border-width: 22px 0 0 18px;
}

.balloon::after {
  top: calc(100% - 5px);
  left: calc(24% + 5px);
  border-width: 17px 0 0 11px;
  border-top-color: #ffffff;
}

.button {
  display: inline-block;
  padding: 12px 22px 9px;
  border: 4px solid var(--ink);
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-size: 28px;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
}

.button[href]:active {
  transform: translate(5px, 5px);
  box-shadow: none;
}

/* The Google Play button, white and not a link yet until the game is out, under a COMING SOON sticker. */
.store {
  position: relative;
}

.button.soon {
  background: #ffffff;
}

.sticker {
  position: absolute;
  top: -18px;
  right: -14px;
  font-size: 18px;
  transform: rotate(6deg);
}

a:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 4px;
}

.small {
  font-size: 16px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 32px;
  font-size: 14px;
}

footer a {
  color: var(--ink);
}
