/* ─── Self-hosted fonts ──────────────────────────── */

@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/alegreya-sans-v26-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/alegreya-sans-v26-latin-300italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/alegreya-sans-v26-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/alegreya-sans-v26-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alegreya Sans';
  src: url('../fonts/alegreya-sans-v26-latin-700italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-v9-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-v9-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-v9-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────────────── */

:root {
  --bg: #000;
  --fg: #fff;
  --font-primary: 'Alegreya Sans', sans-serif;
  --font-mono: 'Bricolage Grotesque', monospace;
}

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

html,
body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ─── Header ──────────────────────────────────────────── */
 
.site-header {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.25rem 0;
  text-align: center;
}

.logo-link {
  display: inline-block;
  vertical-align: bottom;
  transition: opacity 0.15s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.logo-img {
  display: block;
  width: 55vw;
  height: auto;
  margin: 0 auto;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.015em;
  color: var(--fg);
  opacity: 1.0;
  margin-top: 0;
  max-width: min(72vw, 38.5vh);
  margin-left: auto;
  margin-right: auto;
}

/* ─── Blob arena ──────────────────────────────────────── */

.blob-arena {
  position: relative;
  flex: 1;
  min-height: 0;
}

.blob-link {
  position: absolute;
  display: block;
  text-decoration: none;
  --blob-size: min(56vw, 36vh);
  width: var(--blob-size);
  height: var(--blob-size);
  pointer-events: none; /* bounding box is not clickable — only the filled path is */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.blob-link--games {
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 46%), calc(-50% - 27%));
  z-index: 1;
}

.blob-link--archive {
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 46%), calc(-50% + 27%));
}

.blob-link svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none; /* transparent areas of the SVG viewBox are not clickable */
}

.blob-link path {
  pointer-events: fill; /* only the white filled shape is a hit target */
  cursor: pointer;
}

.blob-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 5.5vw, 3.25rem);
  font-weight: 700;
  color: #000;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;

}

.blob-link--games .blob-label {
  transform: translate(-50%, -50%) rotate(-6deg);
  filter: url(#blob-text-warp-games);
}

.blob-link--archive .blob-label {
  transform: translate(-50%, -50%) rotate(5deg);
  filter: url(#blob-text-warp-archive);
}

.blob-label a:hover{
    opacity: 0.5;
}

/* ─── Footer ──────────────────────────────────────────── */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 10;
  overflow: visible;
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  background: transparent;
  padding: 0.5rem 1.25rem 0.9rem;
  margin-top: -2px;
}



.footer-wave-wrap {
  max-width: 100rem;
  margin: 0 auto -3.75rem; /* negative bottom pulls nav up into the SVG box area */
  padding: 0;
}

.footer-wave {
  display: block;
  width: 100%;
  height: 7.5rem;
  margin-top: -3.75rem; /* wave floats 3.75rem above; SVG bottom extends 3.75rem below */
  pointer-events: none;
}


/* ─── Site nav ────────────────────────────────────────── */

.site-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem 0.9rem;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--fg);
  text-decoration: none;
  opacity: 1.0;
  transition: opacity 0.15s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.site-nav a:hover {
  opacity: 0.5;
}

.nav-sep {
  font-family: var(--font-mono);
  font-size: 1rem;
  opacity: 0.5;
  color: var(--fg);
}

/* ─── Mobile ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .logo-img {
    width: 90vw;
  }
}

/* ─── Desktop ─────────────────────────────────────────── */

@media (min-width: 768px) {
  .site-header {
    padding: 1.5rem 2rem 0;
  }

  .logo-img {
    width: 32vw;
  }

  .tagline {
    max-width: min(100%, 45.5vh);
  }

  .blob-link {
    --blob-size: min(41vw, 41vh);
  }

  .blob-link--games {
    transform: translate(calc(-50% - 38%), calc(-50% - 30%));
  }

  .blob-link--archive {
    transform: translate(calc(-50% + 38%), calc(-50% + 30%));
  }

  .site-nav {
    padding: 0.85rem 2rem 1.25rem;
  }
}

@media (min-width: 1200px) {
  .logo-img {
    max-height: 30vh;
    max-width: 55vw;
  }

  .tagline {
    max-width: min(100%, 52.5vh);
  }

  .blob-link {
    --blob-size: min(38vw, 43vh);
  }

  .blob-link--games {
    transform: translate(calc(-50% - 33%), calc(-50% - 24%));
  }

  .blob-link--archive {
    transform: translate(calc(-50% + 33%), calc(-50% + 24%));
  }
}
