/* grit.gg — hand-written, no build step, no JavaScript.
   Palette and typography carried over from the SquareSpace site. */

@font-face {
  font-family: 'Brothers';
  src: url('../fonts/brothers-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Brothers';
  src: url('../fonts/brothers-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --gold: #DB830F;
  --gold-hover: #FFA811;
  --dark: #38383B;
  --off-white: #F7F7F7;
  --black: #000000;
  --display: 'Brothers', 'Arial Narrow', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --measure: 62rem;
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.075rem;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }

a { color: var(--gold); }
a:hover, a:focus-visible { color: var(--gold-hover); }

img, video { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--gold); color: var(--black);
  padding: 0.75rem 1.25rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons — Brothers bold, uppercase, wide tracking, inset outline.
   Carried over from the site's custom.css. */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.15rem 2.25rem;
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  outline: 4px solid rgba(0, 0, 0, 0.1);
  outline-offset: -4px;
  transition: background-color 120ms ease;
}
.btn:hover, .btn:focus-visible { background: var(--gold-hover); color: var(--black); }

/* The Steam wishlist button — the page's primary call to action. Larger than
   a stock .btn and carrying the Steam mark, so it reads as *the* thing to do
   rather than one link among several. inline-flex (not the base
   inline-block) is what lets the mark and the label share a baseline-centred
   row with a real gap between them. */
.btn--steam {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
}
/* flex: none stops the mark being squeezed by a long label at narrow widths;
   currentColor keeps it black-on-gold through the hover swap. */
.btn--steam svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  flex: none;
}

/* Secondary action. Outlined rather than solid so a button sitting next to
   the Steam CTA reads as the lesser of the two — two solid gold buttons side
   by side would compete and neither would win. Declared after .btn:hover so
   it overrides it at equal specificity. */
.btn--ghost {
  background: transparent;
  color: var(--off-white);
  border: 2px solid rgba(247, 247, 247, 0.5);
  box-shadow: none;
  outline: none;
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(247, 247, 247, 0.12);
  border-color: var(--off-white);
  color: var(--off-white);
}

/* A row of actions that wraps to stacked buttons on narrow screens. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

/* Hero — looping background video behind the title. */
.hero {
  position: relative;
  min-height: min(78vh, 42rem);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 5rem 0;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.45));
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; }
.hero__logo { width: min(80%, 30rem); margin: 0 auto 2rem; }
.hero__kicker {
  font-family: var(--display);
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 1.125rem;
  margin: 0 0 1rem;
}
.hero__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: 0.12rem;
  margin-bottom: 1.25rem;
}
.hero__lede { max-width: 46rem; margin: 0 auto 2.5rem; font-size: 1.15rem; }

/* Honour reduced-motion without JavaScript: hiding the video element removes
   all visible motion and the poster image takes its place. (display:none
   is not spec-guaranteed to halt decode in every browser, so this is a
   visual-motion guarantee, not a CPU/battery one.) */
.hero__bg-poster { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__bg { display: none; }
  .hero__bg-poster {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
  }
}

.section { padding: 5rem 0; }

/* Dark sections use the site's wood-plank texture, as the SquareSpace original
   does, over a solid fallback so they stay dark if the image fails to load. */
.section--wood {
  background-color: #14100e;
  background-image: url('../img/wood.webp');
  background-size: cover;
  background-position: center;
}

/* The light band. The original uses it to break up the dark sections and to
   carry the two-column Discord / press-kit cards. */
.section--light {
  background: var(--off-white);
  color: #1b1b1d;
}
.section--light h2 { color: #1b1b1d; }
.section--light p { color: #33333a; }

.section--dark { background: var(--dark); }
.section__lede { max-width: 44rem; margin: 0 0 2rem; }

/* --gold on --dark measures 4.04:1, below the 4.5:1 AA threshold for normal
   text. --gold-hover (already a brand colour, used elsewhere as the hover
   state) measures 6.04:1 on --dark, so it stands in as the resting link
   colour inside dark sections. :not(.btn) keeps this from overriding the
   button's own black-on-gold colouring when a .btn sits inside .section--dark. */
.section--dark a:not(.btn) { color: var(--gold-hover); }

/* Two-column cards, as the original lays out Discord and the press kit. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 3rem;
  align-items: start;
}
.card p { margin: 0 0 1.75rem; }
.card h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.075rem;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
}

/* Gold-bordered image frame, carried over from the original's image cards. */
.framed {
  border: 3px solid var(--gold);
  outline: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  display: block;
  width: 100%;
}

/* The standalone tagline band that sits under the hero video. */
.tagline { padding: 4rem 0; text-align: center; }
.tagline h2 {
  color: var(--gold);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  margin-bottom: 1.25rem;
}
.tagline p { max-width: 46rem; margin: 0 auto; font-size: 1.15rem; }

.trailer video { width: 100%; background: var(--black); }

/* Gallery — CSS-only lightbox via :target. Degrades to plain links. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.gallery a { display: block; line-height: 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.lightbox {
  position: fixed; inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.94);
  z-index: 50;
  padding: 2rem;
}
.lightbox:target { display: grid; }
.lightbox img { max-height: 88vh; width: auto; }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--off-white);
  text-decoration: none;
}

.site-footer { padding: 3rem 0; background: var(--black); text-align: center; }
.site-footer nav { margin-bottom: 1.5rem; }
.site-footer nav a { margin: 0 0.75rem; }
.social { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; }
.social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--off-white);
  color: var(--black);
  transition: background-color 120ms ease;
}
.social a:hover, .social a:focus-visible { background: var(--gold-hover); }
.social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.copyright { font-size: 0.75rem; opacity: 0.8; }

/* Long-form legal pages */
.prose { max-width: 44rem; padding: 4rem 0; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
