/* metagraveyard.com, coming soon. Barvy z loga klienta, font Montserrat (OFL) self-hosted. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-wght.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: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}
:root {
  --ink: #2e4160;      /* wordmark */
  --blue: #4c97f1;     /* začátek gradientu symbolu */
  --violet: #af93f8;   /* konec gradientu symbolu */
  --muted: #6b7a93;
  --paper: #ffffff;    /* logo má bílé pozadí, stránka musí sedět */
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

::selection {
  background: rgb(175 147 248 / .35);
  color: var(--ink);
}

/* Same scrollbar as the app: thin, logo gradient on the thumb; standard properties only where the prefixed ones are missing. */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: linear-gradient(var(--blue), var(--violet));
}

@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--violet) transparent;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

/* Logo = symbol + wordmark set in Montserrat SemiBold, the typeface of the original logo; sized in em off one font size. */
.mark,
.mark a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mark {
  margin: 0;
  font-size: min(48px, 10.5vw);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.mark a {
  color: inherit;
  text-decoration: none;
}

.mark img {
  display: block;
  width: 4.6em;
  height: auto;
}

.wordmark {
  margin-top: .15em;
  letter-spacing: .01em;
}

.date {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .08em;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.countdown {
  display: flex;
  gap: clamp(.75rem, 4vw, 2rem);
  margin-top: 1.75rem;
}

.countdown[hidden] {
  display: none;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
}

.num {
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.label {
  margin-top: .5rem;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  margin: 1.5rem 0 0;
  font-size: 1.25rem;
}

/* Same link look as the app: weight 500, no resting underline, underline grows from the left on hover. */
.back a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
  padding-bottom: 1px;
  transition: background-size 300ms cubic-bezier(.25, .8, .25, 1);
}

.back a:hover,
.back a:focus-visible {
  background-size: 100% 1px;
}

.logo-gradient {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  overflow: hidden;
}

.logo-gradient::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 200%;
  background-image: linear-gradient(90deg, var(--blue), var(--violet), var(--blue));
  background-size: 50% 100%;
  animation: logo-flow 4s linear infinite;
}

@keyframes logo-flow {
  to { transform: translateX(-50%); }
}

.ambient-logo {
  position: fixed;
  right: max(1rem, 4vmin);
  bottom: max(1rem, 4vmin);
  z-index: -1;
  width: min(48vmin, 440px);
  aspect-ratio: 2 / 1;
  background: url("/assets/img/symbol-metagraveyard-trace.svg") no-repeat center / contain;
  opacity: .07;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .logo-gradient::before { animation: none; }
  .back a { transition: none; }
}
