/* The Cyberguide Dad — brand palette and type from the brand kit ("Colors and Fonts.txt"). */

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

:root {
  --electric-yellow: #e3df2b;
  --white: #ffffff;
  --black: #000000;
  --dark-grey: #1b1b1a;

  --font-title: "Bungee", "Arial Black", Impact, sans-serif;
  /* Brand body face is Cerebri (not licensed for web here); system UI is the stand-in. */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--dark-grey);
  color: var(--white);
  color-scheme: dark;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(7rem, 22vw, 11rem) 1.5rem;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

/* Corner chevrons and dot grids, echoing the channel art. Purely decorative. */
.decor,
.decor::before,
.decor::after {
  position: fixed;
  pointer-events: none;
}

.decor {
  inset: 0;
  z-index: 0;
  background: url("/assets/img/chevrons.svg") no-repeat left -2% top -4% / clamp(220px, 30vw, 560px) auto;
}

/* Bottom-right chevrons, flipped to point left. */
.decor::after {
  content: "";
  right: 0;
  bottom: 0;
  width: clamp(220px, 30vw, 560px);
  aspect-ratio: 820 / 280;
  background: url("/assets/img/chevrons.svg") no-repeat center / 100% auto;
  transform: translate(2%, 4%) rotate(180deg);
}

/* White dot grid from the channel art. */
.decor::before {
  content: "";
  top: clamp(1.5rem, 4vw, 3rem);
  left: clamp(9rem, 24vw, 30rem);
  width: clamp(120px, 16vw, 300px);
  height: clamp(70px, 9vw, 170px);
  background: radial-gradient(circle, var(--white) 1.5px, transparent 2px) 0 0 / 32px 32px;
  opacity: 0.9;
}

main {
  position: relative;
  z-index: 1;
}

/* Home page lockup: wordmark | logo | status, like the channel banner. */
.lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  width: min(100%, 68rem);
}

.wordmark {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--electric-yellow);
  text-wrap: balance;
}

.lockup .wordmark {
  text-align: end;
}

.wordmark-line {
  display: block;
}

.slashes {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-inline-end: 0.5em;
}

.wordmark .slashes {
  color: var(--white);
  font-size: 0.6em;
  vertical-align: 0.2em;
}

.logo {
  display: block;
  width: clamp(110px, 13vw, 180px);
  height: auto;
}

.status {
  margin: 0;
  width: min-content;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
}

.status .slashes {
  display: block;
  margin: 0 0 0.35em;
  font-size: 0.6em;
  color: var(--electric-yellow);
}

/* 404 page */
.notfound {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
}

.logo-small {
  width: clamp(80px, 10vw, 120px);
}

.notfound p {
  margin: 0;
  font-size: 1.125rem;
}

a {
  color: var(--white);
  text-decoration-color: var(--electric-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--electric-yellow);
}

a:focus-visible {
  outline: 3px solid var(--electric-yellow);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Small screens: stack logo, wordmark, status. */
@media (max-width: 44rem) {
  .lockup {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .lockup .logo {
    order: -1;
  }

  .lockup .wordmark {
    text-align: center;
  }

  .wordmark .slashes {
    display: none;
  }

  .status {
    width: auto;
  }

  .status .slashes {
    display: inline;
    margin: 0 0.5em 0 0;
  }

  .decor::before {
    display: none;
  }
}
