/*
Theme Name: Apt Goods
Theme URI: https://github.com/scotthaven/apt-goods-theme
Author: Apt Goods LLC
Author URI: https://aptgoods.com
Description: Minimal one-page portfolio theme with full-viewport rotating background gallery and mix-blend-mode text overlay.
Version: 1.0.0
Text Domain: apt-goods
*/

/* ─── Reset ─────────────────────────────────── */

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

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Gallery (background layer) ────────────── */

.gallery {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.gallery-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.gallery-item.active {
  opacity: 1;
}

/* ─── Overlay (text layer) ──────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  mix-blend-mode: difference;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.32px;
  line-height: normal;
}

.overlay__top,
.overlay__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.overlay__bottom {
  align-items: flex-end;
}

/* ─── Logo ──────────────────────────────────── */

.logo {
  display: block;
  height: 44px;
  width: auto;
}

/* ─── Contact link ──────────────────────────── */

.contact {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}

.contact:hover {
  opacity: 0.8;
}

/* ─── Fallback (no gallery items) ───────────── */

.gallery--empty {
  background: #111;
}

/* ─── Mobile ────────────────────────────────── */

@media (max-width: 768px) {
  .overlay {
    padding: 24px 20px;
    font-size: 22px;
    letter-spacing: -0.22px;
  }

  .logo {
    height: 32px;
  }

  .overlay__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tagline {
    display: none;
  }
}

/* ─── Reduced motion ────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .gallery-item {
    /* JS handles stopping rotation; this ensures
       no accidental CSS transitions sneak in */
    transition: none !important;
  }
}
