/* Ultra-Minimal Manifesto Style - OF THE CULTURE Ecommerce */

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

:root {
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gold: #C19A4B;
}

html {
  font-size: 16px;
  line-height: 1;
}

body {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 400;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.block {
  margin-bottom: 80px;
}

.block:last-child {
  margin-bottom: 40px;
}

/* Wordmark - SVG Image */
.wordmark {
  margin-bottom: 0;
  height: 2.5rem;
  display: flex;
  align-items: flex-start;
  overflow: visible;
}

/* Wordmark section standardization - CONSISTENT ACROSS ALL PAGES */
.wordmark-section {
  margin-bottom: 80px;
}

/* Footer section standardization - CONSISTENT ACROSS ALL PAGES */
.footer-section {
  margin-bottom: 40px;
  margin-top: 80px;
}

/* Global SELECT styling standardization - Override all conflicts */
select {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
}

/* Mobile-specific override for product page select elements */
@media (max-width: 768px) {
  .product-page .mobile-form select {
    font-size: 0.75rem !important;
    padding: 10px 8px !important;
    line-height: 1.2 !important;
  }
}

/* Ensure all page types have consistent wordmark/footer positioning */
.page .wordmark-section,
.shop-page .wordmark-section,
.product-page .wordmark-section {
  margin-bottom: 80px;
}

.page .footer-section,
.shop-page .footer-section, 
.product-page .footer-section {
  margin-bottom: 40px;
  margin-top: 80px;
}

.wordmark img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  transform: scale(1.7) translateY(-2px);
  transform-origin: left top;
}

.wordmark a {
  border: none !important;
  padding: 0 !important;
  margin: 0;
  display: inline-block;
  text-decoration: none;
  outline: none;
}

.wordmark a:hover {
  opacity: 1;
  transform: none;
  border: none;
}

.wordmark a:focus {
  outline: none;
}

/* Body text */
p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.block p:last-child {
  margin-bottom: 0;
}

/* Contact link */
a {
  color: var(--color-black);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  border-bottom: 1px solid var(--color-black);
  padding-bottom: 1px;
}

a:hover {
  opacity: 0.7;
}

/* Footer */
.footer {
  /* Uses standard .block margin-bottom: 80px, no custom margin-top */
  opacity: 0.6;
}

.footer p {
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.footer a {
  font-size: 0.75rem;
  color: var(--color-black);
  text-decoration: none;
  border-bottom: none;
  padding-bottom: 0;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 0.7;
}

/* Cultural concept headers */
.cultural-header {
  color: var(--color-gold);
}

/* Directory Navigation */
.navigation {
  margin-bottom: 120px;
  text-align: left;
}

.directory-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.directory-link {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: #007acc;
  text-decoration: none;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 4px 0;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  position: relative;
  display: inline-block;
}

.directory-link::before {
  content: "├── ";
  color: var(--color-black);
  opacity: 0.5;
  transition: all 0.25s ease;
}

.directory-link:last-child::before {
  content: "└── ";
}

.directory-link:hover {
  color: var(--color-gold);
}

.directory-link:hover::before {
  opacity: 0.8;
  color: var(--color-gold);
}

/* Grosgrain Label Element */
.grosgrain-block {
  margin-top: 120px;
  margin-bottom: 120px;
}

.grosgrain-text {
  font-family: 'Lekton', sans-serif;
  font-size: 0.775rem !important;
  color: #000000;
  background: repeating-linear-gradient(
    90deg,
    #eae6df 0%,
    #eae6df 2px,
    #f5f3ee 2px,
    #f5f3ee 4px
  );
  background-size: 4px 100%;
  background-blend-mode: multiply;
  text-align: left;
  padding: 12px 20px;
  border-radius: 2px;
  max-width: 85%;
  margin: 0 auto;
  line-height: 1.8;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.grosgrain-text span {
  display: inline-block;
  background: repeating-linear-gradient(
    90deg,
    #000000 0%,
    #000000 2px,
    rgba(0, 0, 0, 0.7) 2px,
    rgba(0, 0, 0, 0.7) 4px
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Mobile adjustments - CONSISTENT POSITIONING ACROSS ALL PAGES */
@media (max-width: 768px) {
  .page,
  .shop-page {
    padding: 30px 16px 40px 16px; /* Reduced bottom padding to prevent phantom space */
  }
  
  /* Product pages handled by product.css */
  
  .block {
    margin-bottom: 60px;
  }
  
  /* Reduce excessive bottom margins on mobile to prevent phantom black space */
  .navigation {
    margin-bottom: 80px;
  }
  
  .grosgrain-block {
    margin-bottom: 80px;
  }
  
  /* Wordmark mobile standardization */
  .wordmark-section {
    margin-bottom: 60px;
  }
  
  .page .wordmark-section,
  .shop-page .wordmark-section,
  .product-page .wordmark-section {
    margin-bottom: 60px;
  }
  
  .wordmark img {
    max-width: 85%;
    transform: scale(1.5);
  }

  .navigation {
    margin-bottom: 100px;
  }

  .directory-link {
    font-size: 0.8rem;
  }
  
  /* Footer mobile standardization */
  .footer-section {
    margin-bottom: 40px;
    margin-top: 60px;
  }
  
  .page .footer-section,
  .shop-page .footer-section,
  .product-page .footer-section {
    margin-bottom: 40px;
    margin-top: 60px;
  }
  
  .footer {
    /* Uses standard mobile footer-section margins */
  }

  .footer p {
    font-size: 0.7rem;
  }

  .footer a {
    font-size: 0.7rem;
  }

  .grosgrain-block {
    margin-top: 90px;
    margin-bottom: 90px;
  }

  .grosgrain-text {
    font-size: 0.675rem !important;
    padding: 10px 16px;
    line-height: 1.6;
    max-width: 90%;
  }
}

/* Accessibility - Visually Hidden */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Global Site Navigation */
.site-header {
  margin-bottom: 80px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.nav-home {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-black);
  text-decoration: none;
  letter-spacing: 0.02em;
  border: none;
  padding: 0;
}

.nav-home:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-current {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-black);
  text-decoration: none;
  opacity: 0.7;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
  border: none;
  padding: 0;
}

.nav-link:hover {
  opacity: 1;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
  .site-header {
    margin-bottom: 60px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .nav-home {
    font-size: 0.9rem;
  }
  
  .nav-current,
  .nav-link {
    font-size: 0.8rem;
  }
}

/* Selection styling */
::selection {
  background-color: var(--color-black);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* No page load animations - static manifesto content */

/* Enhanced Link Interactions - Desktop Only with Product Card Exclusion */
@media (hover: hover) and (pointer: fine) {
  a:not(.directory-link):not(.nav-link):not(.product-card) {
    position: relative;
    transition: all 0.2s ease;
  }

  a:not(.directory-link):not(.nav-link):not(.product-card):hover {
    opacity: 0.8;
    transform: translateY(-1px);
  }
}

/* Mobile Touch Protection handled by desktop-hover.js */

/* Enhanced Focus States for Accessibility - Minimal approach */
a:focus,
button:focus {
  outline: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}