/*
==================================================
GLAS — MAIN STYLESHEET
==================================================

Everything you are likely to want to change is
controlled from this file.

CUSTOM FONT:
1. Put your font file in /fonts/
2. Change YOUR-FONT.woff2 below to its filename.

TYPOGRAPHY:
Change the font sizes in the TYPOGRAPHY section.

SPACING:
Change --padding to control the distance from
the edges of the screen.

SLIDESHOW:
Change --slide-duration to control how often
the image changes.
==================================================
*/

/* ---------- CUSTOM FONT ---------- */

@font-face {
  font-family: "GlasFont";
  src: url("fonts/SharkeyV24Web-Medium.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* ---------- EASY CONTROLS ---------- */

:root {
  /* Text */
  --text: #ffffff;

  /* Distance from screen edges */
  --padding: clamp(18px, 2.4vw, 36px);

  /* Desktop typography */
  --logo-size: 24px;
  --text-size: 16px;

  /* Mobile typography */
  --mobile-logo-size: 24px;
  --mobile-text-size: 16px;

  /* Slideshow */
  --slide-duration: 3s;
  --fade-duration: 0s;

  /* Mobile breakpoint */
  --mobile-breakpoint: 700px;
}


/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000000;
}


/* ---------- TYPOGRAPHY ---------- */

body {
  color: var(--text);
  font-family: "GlasFont", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--text-size);
  font-weight: 400;
  letter-spacing: 0.02em;
}


/* ---------- SLIDESHOW ---------- */

.slideshow,
.slide {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--fade-duration) ease-in-out;
}

.slide.active {
  opacity: 1;
}


/* ---------- CONTENT ---------- */

.content {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.logo,
.email,
.instagram {
  position: absolute;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  pointer-events: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}

.logo {
  top: var(--padding);
  left: var(--padding);
  font-size: var(--logo-size);
  letter-spacing: -0.02em;
}

.email {
  bottom: var(--padding);
  left: var(--padding);
  font-size: var(--text-size);
}

.instagram {
  bottom: var(--padding);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-size);
}

.logo:hover,
.email:hover,
.instagram:hover {
  opacity: 0.7;
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

  .logo {
    font-size: var(--mobile-logo-size);
  }

  .email,
  .instagram {
    left: var(--padding);
    font-size: var(--mobile-text-size);
    transform: none;
  }

  /* Instagram sits below the email */
  .email {
    bottom: calc(var(--padding) + 24px);
  }

  .instagram {
    bottom: var(--padding);
  }
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
}
