/* THE COMING-SOON PAGE'S ONLY STYLESHEET. The tokens are the site's own (app/globals.css): the dark ground, ink, gold and the bronze of
   its buttons, flat here. Karla for body and labels, Shippori Mincho for the headings, both self-hosted. No letter-spacing anywhere. */

@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Shippori Mincho";
  src: url("/fonts/shippori-mincho-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ground: #0f0c08;
  --ink: #ece3cf;
  --ink-soft: #d3c7ab;
  --gold: #c8963e;
  --gold-pale: #e6cc8e;
  --rule: rgba(200, 150, 62, 0.22);
  --bronze-fill: #4a3010;
  --bronze-fill-hot: #5f3f15;
  --bronze-edge: #b8862e;
  --bronze-ink: #fbe3a0;
  --edge: clamp(24px, 8vw, 140px);
}

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

html {
  background: var(--ground);
}

body {
  margin: 0;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: "Karla", system-ui, sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
}

/* The city fills the window; the veil behind the words is the ground at high opacity, thinning to the right so the scene shows. */
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 12, 8, 0.97) 0%, rgba(15, 12, 8, 0.92) 34%, rgba(15, 12, 8, 0.55) 62%, rgba(15, 12, 8, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 12, 8, 0.92) 0%, rgba(15, 12, 8, 0) 22%);
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100svh;
  padding: 72px var(--edge) 96px;
  max-width: calc((var(--edge) * 2) + 40rem);
}

.lockup {
  display: block;
  width: min(340px, 72vw);
  height: auto;
  margin: 0 0 40px -8px;
}

h1 {
  margin: 0;
  font-family: "Shippori Mincho", Georgia, serif;
  font-weight: 700;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1.02;
  color: var(--ink);
}

.slogan {
  margin: 12px 0 28px;
  font-family: "Shippori Mincho", Georgia, serif;
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  color: var(--gold-pale);
}

p {
  margin: 0 0 14px;
  max-width: 34rem;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

/* Flat buttons: a solid fill and a thin edge, no gradient and no shadow. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
}

.button:hover {
  border-color: var(--bronze-edge);
  background: rgba(200, 150, 62, 0.1);
}

.button-primary {
  min-height: 60px;
  padding: 0 40px;
  border-color: var(--bronze-edge);
  background: var(--bronze-fill);
  color: var(--bronze-ink);
  font-size: 18px;
}

.button-primary:hover {
  background: var(--bronze-fill-hot);
}

/* Brand marks as masks over currentColor, so each icon takes its button's text colour. */
.button {
  gap: 12px;
}
.icon {
  flex: none;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.icon-facebook {
  -webkit-mask-image: url("/img/facebook.svg");
  mask-image: url("/img/facebook.svg");
}
.icon-discord {
  -webkit-mask-image: url("/img/discord.png");
  mask-image: url("/img/discord.png");
}
.button:focus-visible {
  outline: 2px solid var(--gold-pale);
  outline-offset: 3px;
}

footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 var(--edge) 28px;
}

footer p {
  margin: 0;
  max-width: none;
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .scene {
    object-position: 70% 40%;
  }

  .veil {
    background:
      linear-gradient(0deg, rgba(15, 12, 8, 0.97) 0%, rgba(15, 12, 8, 0.9) 55%, rgba(15, 12, 8, 0.55) 100%),
      linear-gradient(90deg, rgba(15, 12, 8, 0.5), rgba(15, 12, 8, 0.2));
  }

  .stage {
    justify-content: flex-end;
    padding-top: 40px;
    padding-bottom: 120px;
  }

  .lockup {
    width: min(260px, 66vw);
    margin-bottom: 28px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .button-primary {
    padding: 0 24px;
  }
}
