/* The team toolbox: Hype Up's own look (black on white, Bakbak One + Work Sans, the rainbow used once).
   Each tile shows its tool's own wordmark, in that tool's look (Bricolage + warm yellow, or the game logo).
   All fonts are bundled: no request to Google. */

@font-face {
  font-family: "Bakbak One";
  src: url("fonts/BakbakOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/work-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Work Sans";
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/work-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Only for the Check-in and HypeQuiz wordmarks, as in those apps. */
@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --blanc: #ffffff;
  --light-grey: #e6e6e6;
  --middle-grey: #7f7f7f;
  --muted: #595959; /* middle grey is too light for small text on white */
  --noir: #000000;
  --yellow: #f9c74f; /* the apps' accent, only inside their wordmarks */
  --rainbow: linear-gradient(90deg, #e63946 0%, #f3722c 10%, #f9c74f 22%, #c6d92c 34%, #7abf5a 44%, #2ec4c2 55%, #4a7cf0 68%, #6a52c8 78%, #8e3cb8 87%, #e84393 100%);
  --display: "Bakbak One", "Work Sans", system-ui, sans-serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --app: "Bricolage Grotesque Variable", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--noir);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: min(1120px, 100%); margin: 0 auto; padding: 0 24px; }

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--noir); outline-offset: 3px; }

/* Header */
.top { width: min(1120px, 100%); margin: 0 auto; padding: 24px; }
.top-logo { display: inline-block; }
.top-logo img { display: block; height: 60px; width: auto; }

/* Intro */
.intro { padding: 48px 0 56px; }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(56px, 10vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 12px 0 28px;
}
.intro p { font-size: 18px; line-height: 1.65; margin: 0 0 12px; max-width: 46ch; }
.intro .lead { font-size: 24px; line-height: 1.4; font-weight: 500; }

/* Tool tiles */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 96px;
}
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px 28px;
  background: var(--blanc);
  border: 1px solid var(--light-grey);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
a.tool:hover {
  transform: translateY(-3px);
  border-color: var(--noir);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}
.tool h2 { font-family: var(--body); font-weight: 700; font-size: 22px; line-height: 1.2; margin: 12px 0 0; }
.tool p { font-size: 16px; line-height: 1.65; margin: 0; flex: 1; }

/* A screenshot of the tool, above its button */
.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  margin-top: 8px;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
}
.tool.is-soon .shot { filter: grayscale(1); opacity: 0.65; }

/* The apps' own wordmarks, as in their top bars */
.wordmark {
  font-family: var(--app);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  height: 64px;
}
.pill {
  background: var(--yellow);
  border: 3px solid #1b1b1b;
  border-radius: 10px;
  box-shadow: 3px 3px 0 #1b1b1b;
  padding: 0.08em 0.3em 0.12em;
  transform: rotate(-3deg);
}
.wordmark-img { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }

.cta {
  margin-top: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: flex-start;
  padding: 12px 18px;
  border: 1.5px solid var(--noir);
  border-radius: 8px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
a.tool:hover .cta { background: var(--noir); color: var(--blanc); }

/* Coming soon: greyed out, not a link */
.tool.is-soon { box-shadow: none; background: #fafafa; cursor: default; }
.tool.is-soon .wordmark-img { filter: grayscale(1); opacity: 0.45; }
.tool.is-soon h2, .tool.is-soon p { color: var(--middle-grey); }
.badge {
  position: absolute;
  top: -13px;
  right: 20px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--noir);
  background: var(--blanc);
  color: var(--noir);
}

/* Footer: the one rainbow on the page (besides the logo) */
.foot { width: min(1120px, 100%); margin: 0 auto; padding: 0 24px 40px; }
.rainbow { height: 4px; border: 0; background: var(--rainbow); margin: 0 0 24px; }
.foot p { margin: 0; font-size: 14px; color: var(--muted); }
.foot a { color: var(--noir); }

@media (max-width: 720px) {
  .top-logo img { height: 52px; }
  .intro { padding: 24px 0 40px; }
  .intro .lead { font-size: 20px; }
  .tools { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
