@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Jost:wght@300;400;500&display=swap');

:root{
  --text: #333333;
  --muted: #767676;
  --border: #e5e5e5;
  --bg: #ffffff;
  --nav-font: 'Inconsolata', 'Courier New', monospace;
  --heading-font: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --body-font: 'Helvetica Neue', Arial, sans-serif;
}

*{ box-sizing: border-box; }

html,body{
  margin:0;
  padding:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }

.wrap{ max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* Header */
header.site-header{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align: center;
  padding: 40px 32px 22px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.site-title{
  font-family: var(--heading-font);
  font-weight:300;
  font-size:30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

nav.main-nav{
  display:flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

nav.main-nav a{
  font-family: var(--nav-font);
  font-weight:700;
  font-size:12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav.main-nav a.active,
nav.main-nav a:hover{
  border-bottom-color: var(--text);
}

.nav-toggle{
  display:none;
  position: absolute;
  top: 34px;
  right: 28px;
  font-family: var(--nav-font);
  font-size: 22px;
  background:none;
  border:none;
  cursor:pointer;
  color: var(--text);
}

/* Home hero slideshow */
.hero-slideshow{
  position: relative;
  width: 100%;
  height: 78vh;
  max-height: 680px;
  min-height: 340px;
  overflow: hidden;
  background: #f4f4f4;
}
.hero-slideshow img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slideshow img.active{
  opacity: 1;
}

.video-section{
  padding: 60px 32px 10px;
}
.video-wrap{
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 46.1%; /* 820x378 ~16:9 */
  height: 0;
  background: #000;
}
.video-wrap iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-collections{
  padding: 60px 32px;
}

.collections-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.collection-tile{
  text-align:center;
}

.collection-tile .tile-img{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f4f4;
  margin-bottom: 14px;
}

.collection-tile .tile-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.collection-tile:hover .tile-img img{
  transform: scale(1.04);
}

.collection-tile h2{
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 4px;
}

.collection-tile .sub{
  font-family: var(--nav-font);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.home-story{
  max-width: 720px;
  margin: 70px auto 40px;
  padding: 0 32px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
.home-story a{ text-decoration: underline; }

/* Collection page */
.collection-header{
  text-align:center;
  padding: 48px 32px 10px;
}
.collection-header h1{
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 34px;
  margin: 0;
}

.product-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 34px 26px;
  padding: 30px 32px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card{
  display:block;
}

.product-card .thumb{
  width:100%;
  aspect-ratio: 1 / 1;
  overflow:hidden;
  background: #f4f4f4;
  margin-bottom: 12px;
  position:relative;
}

.product-card .thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.product-card:hover .thumb img{
  transform: scale(1.04);
}

.product-card .no-image{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-family: var(--nav-font);
  font-size: 11px;
  text-align:center;
  padding: 10px;
}

.product-card .sold-out-tag{
  position:absolute;
  top:10px;
  left:10px;
  background: var(--bg);
  font-family: var(--nav-font);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 8px;
}

.product-card .name{
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 2px;
}

.product-card .price{
  font-family: var(--nav-font);
  font-size: 12px;
  color: var(--muted);
}

/* Product detail page */
.product-detail{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  padding: 50px 32px 90px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail .gallery{
  display:flex;
  flex-direction:column;
  gap: 16px;
}

.product-detail .gallery img{
  width:100%;
}

.product-detail .no-image-block{
  width:100%;
  aspect-ratio: 1/1;
  background:#f4f4f4;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-family: var(--nav-font);
  font-size: 12px;
}

.product-detail .info{
  padding-top: 10px;
}

.product-detail .info h1{
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 10px;
}

.product-detail .info .price{
  font-family: var(--nav-font);
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.product-detail .info .back-link{
  display:inline-block;
  margin-top: 20px;
  font-family: var(--nav-font);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text);
}

.sold-out-label{
  display:inline-block;
  font-family: var(--nav-font);
  font-size: 11px;
  letter-spacing:1px;
  border: 1px solid var(--text);
  padding: 4px 10px;
  margin-bottom: 18px;
}

/* About page */
.about-wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px 90px;
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items:center;
}

.about-wrap img{ width:100%; }

.about-wrap .about-text p{
  line-height: 1.8;
  font-size: 15px;
  color: #444;
}

.about-wrap .about-text a{
  text-decoration: underline;
}

/* Footer */
footer.site-footer{
  border-top: 1px solid var(--border);
  padding: 26px 32px;
  text-align:center;
  font-size: 12px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px){
  .hero-slideshow{ height: 55vh; }
  .collections-grid{ grid-template-columns: repeat(2, 1fr); }
  .product-detail{ grid-template-columns: 1fr; }
  .about-wrap{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .site-title{ font-size: 22px; }
  nav.main-nav{
    display:none;
    width:100%;
    flex-direction:column;
    gap: 14px;
    padding-top: 16px;
  }
  nav.main-nav.open{ display:flex; }
  .nav-toggle{ display:block; }
  .hero-slideshow{ height: 42vh; min-height: 260px; }
  .collections-grid{ grid-template-columns: 1fr; }
  .collection-header h1{ font-size: 26px; }
}
