/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
  font-family: "League Gothic";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/league-gothic-latin.woff2") format("woff2");
  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;
}

@font-face {
  font-family: "League Gothic";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/league-gothic-latin-ext.woff2") format("woff2");
  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: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/roboto-latin.woff2") format("woff2");
  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;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/roboto-latin-ext.woff2") format("woff2");
  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;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --bg: #111519;
  --fg: #eaeaea;
  --accent: #0a5ec5;
  --link: #5A9CED;
  --muted: rgba(234, 234, 234, 0.62);

  --content-width: 480px;
  --logo-width: 150px;
  --masthead-gap: 2rem;

  --font-display: "League Gothic", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;

  --size-wordmark: min(6rem, 26vw);
  --size-years: calc(var(--size-wordmark) * 0.6);
  --size-body: 1rem;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 3rem 1.5rem;

  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;

  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
p {
  text-wrap: pretty;
}

/* ==========================================================================
   Blurred background shape
   ========================================================================== */

.backdrop {
  position: fixed;
  inset: -10%;
  z-index: 0;

  background-image: url("assets/bg-shape.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  filter: blur(48px);
  opacity: 0.05;

  pointer-events: none;
}

/* ==========================================================================
   Content
   ========================================================================== */

.content {
  position: relative;
  z-index: 1;

  width: var(--content-width);
  max-width: 100%;
}

.masthead {
  display: flex;
  align-items: center;
  gap: var(--masthead-gap);
}

.masthead__logo {
  flex: 0 0 auto;
  width: var(--logo-width);
  height: auto;
}

.masthead__text {
  min-width: 0;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-wordmark);
  line-height: 0.82;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}

.wordmark__cs {
  color: var(--accent);
}

.years {
  margin-top: 0.5rem;

  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-years);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg);
}

.blurb {
  margin-top: 2rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.65;
  color: var(--fg);
}

a.discord {
  color: var(--link);
}

/* ==========================================================================
   Narrow viewports
   ========================================================================== */

/* Below 34rem the 480px column no longer fits, so the masthead stacks. Staying
   left-aligned keeps it consistent with the body copy. */
@media (max-width: 34rem) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .masthead__logo {
    width: min(220px, 60%);
  }
}

/* ==========================================================================
   Preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
