/* The game's menu look: Russo One, graphite tiles with cream end trim, the blue selector glow and angled plates */

@font-face {
  font-family: "Russo One";
  src: url("assets/fonts/russo_one.ttf") format("truetype");
  font-display: swap;
}

:root {
  --display: "Russo One", var(--font);
  --graphite-top: #2a2f37;
  --graphite-bottom: #14171c;
  --trim: #e6d8bf;
  --selector: #6cb6ff;
  --selector-glow: #3d8bff;
}

/* Type */

h1, h2, h3, .footer-name, .play-title { font-family: var(--display); font-weight: 400; font-synthesis: none; }
.hero h1 { letter-spacing: -.01em; line-height: 1.02; }
h2 { letter-spacing: 0; }
.section-heading h2::after, .game-section h2::after, .build-section h2::after, .next-section h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: .8rem;
  background: var(--selector);
  box-shadow: 0 0 .7rem var(--selector-glow);
}
.next-section h2::after { margin-inline: auto; }
.mechanics h3, .build-section h3 { font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }

/* Section labels as hologram plates: the menu's angled plate shape in a translucent blue wash with scanlines, and a
   bright glowing blue edge on the left */

.eyebrow {
  position: relative;
  display: inline-block;
  padding: .4rem 1.7rem .4rem .85rem;
  color: #cfe8ff;
  background:
    repeating-linear-gradient(0deg, #8fd0ff14 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #3d8bff4d, #3d8bff24);
  box-shadow: inset 0 1px 0 #8fd0ff4d, inset 0 -1px 0 #8fd0ff26;
  clip-path: polygon(0 0, 100% 0, calc(100% - .9rem) 100%, 0 100%);
  font: .72rem/1.4 var(--display);
  letter-spacing: .12em;
  text-shadow: 0 0 .55rem #3d8bffcc;
  text-transform: uppercase;
}

.build-section p.eyebrow { color: #cfe8ff; font-size: .72rem; line-height: 1.4; }

.eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #9fd6ff;
  box-shadow: 0 0 .5rem #3d8bff, 0 0 1rem #3d8bff99;
}

/* Menu tiles: graphite with cream ends, the blue selector on hover and when chosen */

.site-header nav a, .hero .text-link, .clips button, .lightbox button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: .55rem 1.05rem;
  color: var(--ink);
  background: linear-gradient(180deg, var(--graphite-top), var(--graphite-bottom));
  border: 1px solid #07090c;
  border-radius: .6rem;
  box-shadow: inset 0 1px 0 #ffffff17, 0 .3rem .9rem #0009;
  font: .78rem/1 var(--display);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: box-shadow .2s, color .2s;
}

.site-header nav a::before, .hero .text-link::before, .clips button::before, .lightbox button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid transparent;
  border-left-color: var(--trim);
  border-right-color: var(--trim);
  border-radius: inherit;
  opacity: .8;
  pointer-events: none;
}

.site-header nav a:hover, .hero .text-link:hover, .clips button:hover, .clips button[aria-pressed="true"], .lightbox button:hover {
  color: #e4f2ff;
  border-color: var(--selector);
  box-shadow: 0 0 0 1px var(--selector), 0 0 1rem #3d8bff99, inset 0 0 .9rem #3d8bff40;
}

.site-header nav a:hover::before, .hero .text-link:hover::before, .clips button:hover::before, .clips button[aria-pressed="true"]::before, .lightbox button:hover::before { opacity: 0; }

.site-header nav { gap: .6rem; }
.site-header nav a { padding-block: .55rem; font-size: .72rem; }
.hero .text-link { margin-top: 1.4rem; padding-inline: 1.4rem; }
.clips { gap: .6rem; }
.clips button { border-bottom-width: 1px; }
.clips button span { margin-left: .5rem; color: var(--blue); font: .7rem var(--mono); }

/* Tags: flat labels for what the game's built with and what's coming, nothing to press */

.built-with ul, .roadmap { gap: .5rem; }
.built-with li, .roadmap li {
  padding: .3rem .75rem;
  color: #bfe2ff;
  background: #3d8bff14;
  border: 1px solid #3d8bff4d;
  border-radius: .5rem;
  font: .74rem/1.4 var(--mono);
  letter-spacing: .03em;
}
.built-with li a { color: inherit; text-decoration: none; }
.built-with li a:hover { color: #e4f2ff; text-decoration: underline; text-underline-offset: 3px; }
.lightbox button { min-height: 2.4rem; }

/* Panels: the features, the build cards, the player and the screenshots as menu tiles */

.mechanics article, .build-cards article {
  position: relative;
  margin-top: .7rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, #1f242c, #12151a);
  border: 1px solid #07090c;
  border-radius: .7rem;
  box-shadow: inset 0 1px 0 #ffffff12, 0 .4rem 1.2rem #0008;
}


.mechanics article:last-child { border-bottom: 1px solid #07090c; }
.build-cards article { margin-top: 0; border-top: 1px solid #07090c; }
.game-intro { padding-bottom: .4rem; }

.player, .game-image { overflow: hidden; border: 1px solid #07090c; border-radius: .8rem; box-shadow: 0 0 0 2px #e6d8bf55, 0 .6rem 1.6rem #000a; }

.gallery a { overflow: hidden; background: linear-gradient(180deg, #1f242c, #12151a); border: 1px solid #07090c; border-radius: .7rem; box-shadow: 0 .3rem .9rem #0009; transition: box-shadow .2s; }
.gallery a:hover { border-color: var(--selector); box-shadow: 0 0 0 1px var(--selector), 0 0 1rem #3d8bff88; }
.gallery span { font: .72rem var(--display); letter-spacing: .06em; text-transform: uppercase; }

.footer-name { font-size: .85rem; letter-spacing: .08em; }

@media (max-width: 700px) {
  .site-header nav { gap: .4rem; }
  .site-header nav a { min-height: 2.2rem; padding: .45rem .6rem; font-size: .64rem; }
}

@media (max-width: 430px) {
  .site-header nav a { padding-inline: .55rem; font-size: .62rem; letter-spacing: .05em; }
  .site-header nav a.nav-gallery, .nav-long { display: none; }
}
