/* GoreBoy's look, shared by its pages (goreboy.html, store.html): the fonts, the palette, the
   chrome over site.css, the type, the hero's atmosphere, sections, the paddle's bubble and the
   "?" box. What only one page uses stays in that page's <style>. Linked after creatures.css. */

@font-face {
  font-family: "Creepster";
  src: url("../fonts/Creepster-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/PressStart2P-Regular.woff2") format("woff2");
  font-display: swap;
}

/* GoreBoy's own palette, lifted from the game */
:root {
  --pit: #0c0708;
  --pit-2: #160a0c;
  --blood: #a8232a;
  --bright: #ff4444;
  --bone: #e3dac9;
  --flesh: #c45c5c;
  --bile: #8bac0f;
  --steel: #8fa3a8;
  --rule: rgba(227, 218, 201, 0.12);
}

body {
  background: var(--pit);
  color: var(--bone);
}
.nav.scrolled {
  background: rgba(12, 7, 8, 0.86);
}
.footer {
  color: #9a8f86;
}
.footer-name {
  color: var(--bone);
}
.footer-name small,
.footer-links {
  color: #9a8f86;
}
.footer-links a:hover {
  color: var(--bone);
}
:focus-visible {
  outline-color: var(--bright);
}
/* GoreBoy's accounts: icons at the end of the footer's links, kept together when they wrap */
.footer-links {
  align-items: center;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.footer-social svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.display {
  font-family: "Creepster", cursive;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--bone);
}
.pixel {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 64px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 10%,
      rgba(168, 35, 42, 0.28),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 40% at 85% 90%,
      rgba(139, 172, 15, 0.12),
      transparent 70%
    );
}
.hero h1.display {
  margin: 0 0 8px -0.03em;
  text-shadow: 0.05em 0.05em 0 var(--blood);
}
.hero .sub {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero .sub2 {
  font-size: 18px;
  color: var(--bone);
  max-width: 40ch;
  margin: 0 0 28px;
  opacity: 0.85;
}

/* the paddle's speech bubble (the hero's, and his peek from the bottom of the screen) */
.bubble {
  position: relative;
  align-self: flex-end;
  margin-right: 8%;
  padding: 10px 16px;
  border: 2px solid var(--bone);
  border-radius: 10px;
  background: var(--pit);
  color: var(--bone);
}
.bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -10px;
  width: 14px;
  height: 14px;
  background: var(--pit);
  border-right: 2px solid var(--bone);
  border-bottom: 2px solid var(--bone);
  transform: rotate(45deg);
}

/* ---------- sections ---------- */

.section {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
.section h2.display {
  font-size: clamp(40px, 6vw, 72px);
  margin: 0 0 8px;
}
.section .lede {
  font-size: 18px;
  color: #b5aa9f;
  max-width: 52ch;
  margin: 0 0 40px;
}

/* the "?" box: a picture withheld, or not made yet */
.unknown {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--rule);
  border-radius: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 44px;
  color: var(--bone);
  text-shadow: 4px 4px 0 var(--blood);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .hero {
    padding-top: calc(var(--nav-h) + 32px);
  }
  .unknown {
    width: 96px;
    height: 96px;
    font-size: 32px;
  }
  .section {
    padding: 64px 0;
  }
}
