/* ==========================================================================
   Beananza LTD — company page
   The same night-sky system as the Super Bean Boy site: one dark canvas, glass
   panels, Fredoka display over Manrope text, a single green accent.
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/Fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --display: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;

  --bg: #0a0d1c;
  --bg-2: #0f1430;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f2f4ff;
  --muted: #aab2d5;

  --green: #a4ff3f;

  --radius: 22px;
  --gutter: 20px;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; position: relative; z-index: 1; }

:where(a, button, [tabindex]):focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 12px; }
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 0.6em 1em; background: var(--green); color: #0a0d1c; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.masthead__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(164, 255, 63, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.wordmark {
  display: flex; align-items: baseline; justify-content: center; gap: 0.35em;
  flex-wrap: wrap;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  letter-spacing: -0.02em; line-height: 1;
  margin: 0;
}
.wordmark__suffix {
  font-family: var(--body); font-weight: 700;
  font-size: clamp(0.8rem, 2.2vw, 1.1rem);
  letter-spacing: 0.22em;
  color: var(--green);
  transform: translateY(-0.2em);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 50ch;
  margin: 1.2rem auto 0;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Games
   -------------------------------------------------------------------------- */

main { padding-bottom: clamp(4rem, 10vw, 7rem); }

.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.01em;
  margin: 0 0 clamp(1.5rem, 3vw, 2.2rem);
}

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: radial-gradient(80% 60% at 50% 20%, rgba(164, 255, 63, 0.18), var(--surface) 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--line-2); }

.card__art { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1.4rem 1.4rem 0; }
.card__art img {
  max-height: 100%; max-width: 74%; width: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s var(--ease);
}
.card:hover .card__art img, .card:focus-within .card__art img { transform: scale(1.04) translateY(-4px); }

.card__body { padding: 1.1rem 1.5rem 1.5rem; }
.card__body h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 0; letter-spacing: -0.01em; }
.card__body p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; }

.card__meta {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1rem 0 0; padding: 0;
}
.card__meta li {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.3em 0.9em;
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
}

/* The title carries the link, stretched over the card so the whole card is
   clickable. Nothing about it reads as a link until you hover it. */
.card__link { text-decoration: none; }
.card__link::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

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

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  background: var(--bg-2);
}
footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
