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

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

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.25);
}

body {
  font-family: monospace;
  background: var(--bg);
  color: var(--fg);

  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ==============================
   Noise
============================== */

body::before {
  content: '';
  position: fixed;
  inset: 0;

  background-image: url('../assets/bg.jpg');
  background-repeat: repeat;

  opacity: 0.23;
  pointer-events: none;

  z-index: 0;
}

/* ==============================
   Header
============================== */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;

  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--line);

  z-index: 1000;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;

  padding: 1.5rem 4rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.15em;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.85rem;
  opacity: 0.8;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a.active {
  opacity: 1;
  border-bottom: 1px dotted #fff;
}

/* ==============================
   Hamburger
============================== */

.hamburger {
  display: none;
  background: none;
  border: none;

  flex-direction: column;
  gap: 4px;

  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
}

/* ==============================
   Overlay
============================== */

.menu-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.4);

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;

  z-index: 900;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ==============================
   Page Grid
============================== */

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

  max-width: 1200px;
  margin: 0 auto;

  padding: 160px 4rem 120px;

  display: flex;
  flex-direction: column;
  gap: 8rem;
}

/* ==============================
   Hero
============================== */

.hero {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 0.12em;
}

.cursor {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.lead {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.cta {
  margin-top: 2.5rem;

  background: none;
  border: 1px solid var(--fg);
  color: var(--fg);

  padding: 0.6rem 1.5rem;

  cursor: pointer;
}

.cta:hover {
  background: var(--fg);
  color: var(--bg);
}

/* ==============================
   Collection
============================== */

.collection {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.section-header h2 {
  font-size: 2rem;
  letter-spacing: 0.1em;
}

.section-header p {
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ==============================
   Products Grid
============================== */

.products {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem 2rem;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  border: 1px solid var(--line);
  padding: 1rem;

  transition: 0.25s;
}

.product:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
}

.product img {
  width: 100%;
  display: block;
}

.product p {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ==============================
   Footer
============================== */

.site-footer {
  margin-top: 4rem;

  padding-top: 3rem;

  border-top: 1px solid var(--line);

  display: flex;
  justify-content: center;
  gap: 3rem;

  font-size: 0.75rem;
  opacity: 0.7;
}

/* ==============================
   Mobile
============================== */

@media (max-width: 768px) {
  .header-inner {
    padding: 1rem 1.5rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -260px;

    width: 250px;
    height: 100vh;

    background: #000;

    flex-direction: column;
    padding: 6rem 2rem;

    border-left: 1px solid var(--line);

    transition: 0.3s;

    z-index: 950;
  }

  .main-nav.show {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .page {
    padding: 140px 1.5rem 80px;
    gap: 6rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }
}
