/* style.css */

/* 1. Brand Foundations */
:root {
  /* 2026 Color of the Year: Cloud Dancer */
  --brand-bg: #f0eee9;
  --text-main: #1a1a1a;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--brand-bg);
  color: var(--text-main);
}

/* 2. Typography & Branding */
.serif {
  font-family: "Playfair Display", serif;
}

nav {
  background-color: var(--brand-bg);
}

.brand-logo {
  display: block;
  color: #202020;
  line-height: 1;
  text-decoration: none;
  letter-spacing: normal;
  text-align: center;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.brand-logo-tag {
  display: block;
  margin-top: 0.18rem;
  padding-left: 1ch;
  font-family: "Inter", sans-serif;
  font-size: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #343434;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.brand-logo-large .brand-logo-tag {
  margin-top: 0.3rem;
  font-size: 0.5rem;
  letter-spacing: 0.3em;
}

@media (min-width: 768px) {
  .brand-logo-tag {
    font-size: 0.46rem;
  }

  .brand-logo-large .brand-logo-tag {
    font-size: 0.58rem;
  }
}

/* 3. Animations */
.fade-in {
  animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 4. Utilities & Placeholders */
.placeholder {
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1a1;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.2em;
}

/* Small-x subscript style for 0x notation */
.small-x {
  font-size: 0.6em;
  text-transform: lowercase;
  display: inline-block;
  transform: translateY(-0.12em);
  line-height: 1;
  letter-spacing: 0;
}

.collection-heading {
  color: var(--text-main);
}

h2 .small-x {
  font-size: 0.8em;
  transform: translateY(-0.08em);
}

/* Custom GLITCH styles */
.serif {
  font-family: "Playfair Display", serif;
}
.glitch {
  position: relative;
  display: inline-block;
  cursor: crosshair;
}
.glitch:hover::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* Red/Cyan offset for that electronic 'separation' look */
  text-shadow:
    -2px 0 #ff0000,
    2px 0 #00ffff;
  background: transparent;
  overflow: hidden;
  /* This ensures it covers the full text area */
  display: block;
  z-index: -1;
  animation: glitch-anim 0.4s infinite linear;
}

@keyframes glitch-anim {
  0% {
    clip-path: inset(10% 0 30% 0);
    transform: translate(-2px, 2px);
  }
  20% {
    clip-path: inset(40% 0 10% 0);
    transform: translate(2px, -2px);
  }
  40% {
    clip-path: inset(70% 0 5% 0);
    transform: translate(-1px, 1px);
  }
  60% {
    clip-path: inset(15% 0 65% 0);
    transform: translate(1px, -1px);
  }
  80% {
    clip-path: inset(50% 0 20% 0);
    transform: translate(-2px, -1px);
  }
  100% {
    clip-path: inset(0% 0 85% 0);
    transform: translate(2px, 1px);
  }
}

/* 5. Reusable Components */
.muted {
  color: #4c4c4c;
}

.card {
  background: #ffffff;
  border: 1px solid #dfdfdf;
  border-radius: 12px;
  padding: 1rem 1rem 0.25rem;
  margin-top: 1rem;
}
