/* ============ TOKENS ============ */
:root{
  --void: #0b0b0a;
  --charcoal: #16140f;
  --gold: #c9a227;
  --gold-light: #e8cf7a;
  --cream: #f3ede1;
  --wine: #6e1f2a;
  --line: rgba(243,237,225,0.14);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Work Sans', -apple-system, sans-serif;

  --max: 1180px;
}

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

html{ scroll-behavior:smooth; }

body{
  background:var(--void);
  color:var(--cream);
  font-family:var(--sans);
  font-weight:300;
  line-height:1.6;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }

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

.eyebrow{
  font-family:var(--serif);
  font-style:italic;
  font-size:1.05rem;
  color:var(--gold-light);
  letter-spacing:0.02em;
}

/* subtle film-grain texture over the black */
.grain{
  position:fixed; inset:0; pointer-events:none; z-index:1;
  opacity:0.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ HEADER ============ */
.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(11,11,10,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:var(--max); margin:0 auto;
  padding:1.1rem 1.5rem;
  display:flex; align-items:center; justify-content:space-between;
}
.wordmark{
  display:flex;
  align-items:center;
}
.header-logo{
  height:48px;
  width:48px;
  border-radius:50%;
  object-fit:cover;
  display:block;
}
.main-nav{ display:flex; gap:2.2rem; }
.main-nav a{
  font-size:0.85rem;
  letter-spacing:0.04em;
  color:var(--cream);
  opacity:0.75;
  transition:opacity 0.2s ease;
}
.main-nav a:hover{ opacity:1; }
.main-nav a.active{
  opacity:1;
  color:var(--gold-light);
}

.bag-toggle{
  background:none; border:1px solid var(--line);
  color:var(--cream); font-family:var(--sans);
  font-size:0.82rem; letter-spacing:0.03em;
  padding:0.55rem 1rem; border-radius:2px;
  cursor:pointer; display:flex; align-items:center; gap:0.5rem;
  transition:border-color 0.2s ease;
}
.bag-toggle:hover{ border-color:var(--gold); }
.bag-count{
  background:var(--gold); color:var(--void);
  font-size:0.72rem; font-weight:600;
  width:1.35rem; height:1.35rem; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}

/* ============ HERO ============ */
.hero{
  position:relative;
  min-height:auto;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center;
  padding:2rem 1.5rem 2.2rem;
  overflow:hidden;
}
.hero-emblem{
  position:relative;
  width:min(38vw, 220px);
  height:min(38vw, 220px);
  margin:1rem 0 1.3rem;
}
.ring-svg{
  position:absolute; inset:0;
  width:100%; height:100%;
  opacity:0.6;
  animation:ringTurn 60s linear infinite;
}
@keyframes ringTurn{ to{ transform:rotate(360deg); } }
.hero-logo-img{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:78%; height:78%;
  border-radius:50%;
  object-fit:cover;
}

.hero-eyebrow{
  font-family:var(--serif); font-style:italic;
  color:var(--gold-light); font-size:1.05rem;
}
.hero-tagline{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1.1rem;
  flex-wrap:wrap;
  max-width:36ch;
}
.tagline-part{
  font-family:var(--serif);
  font-weight:500;
  color:var(--cream);
  opacity:0;
  animation:taglineUp 0.7s ease forwards;
}
.tagline-part.tagline-one{
  font-size:clamp(1.8rem, 4.2vw, 2.8rem);
  animation-delay:0.1s;
}
.tagline-part.tagline-two{
  font-size:clamp(1.05rem, 2.3vw, 1.4rem);
  font-style:italic;
  font-weight:400;
  color:var(--gold-light);
  animation-delay:1.1s;
}
.tagline-rule{
  width:1px;
  height:34px;
  background:var(--gold);
  opacity:0;
  animation:taglineFade 0.6s ease forwards;
  animation-delay:0.7s;
}
@keyframes taglineUp{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes taglineFade{
  from{ opacity:0; }
  to{ opacity:0.7; }
}
.hero-sub{
  max-width:42ch;
  margin:1rem 0 1.5rem;
  font-size:0.98rem;
  color:rgba(243,237,225,0.72);
}

.btn{
  display:inline-block;
  font-family:var(--sans);
  font-size:0.88rem;
  letter-spacing:0.03em;
  padding:0.95rem 2.1rem;
  border-radius:2px;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary{
  position:relative; z-index:1;
  background:linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  color:var(--void);
  font-weight:500;
}
.btn-primary:hover{ transform:translateY(-2px); }
.btn-wide{ width:100%; text-align:center; }

/* ============ STORY LINK (homepage teaser) ============ */
.story-link{
  display:inline-block;
  margin-top:0.4rem;
  font-family:var(--serif);
  font-style:italic;
  color:var(--gold-light);
  font-size:1.02rem;
  border-bottom:1px solid transparent;
  transition:border-color 0.2s ease;
}
.story-link:hover{ border-color:var(--gold-light); }

/* ============ ABOUT PAGE ============ */
.about-hero{
  padding:6rem 1.5rem 3rem;
  text-align:center;
}
.about-title{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(2.4rem, 5.5vw, 4rem);
  line-height:1.1;
  margin-top:1rem;
}
.about-article{
  max-width:680px;
  margin:0 auto;
  padding:2rem 1.5rem 8rem;
}
.article-lead{
  font-family:var(--sans);
  font-size:1.05rem;
  font-weight:500;
  color:var(--cream);
  line-height:1.6;
  margin-bottom:1.6rem;
}
.about-article p{
  font-family:var(--sans);
  font-weight:300;
  color:rgba(243,237,225,0.75);
  font-size:1.05rem;
  line-height:1.6;
  margin-bottom:1.6rem;
}
.article-subhead{
  font-family:var(--serif);
  font-weight:500;
  font-size:1.6rem;
  color:var(--gold-light);
  margin:2.6rem 0 1rem;
}
.pull-quote{
  font-family:var(--serif);
  font-style:italic;
  font-size:1.35rem;
  color:var(--gold-light);
  border-left:2px solid var(--gold);
  padding:0.4rem 0 0.4rem 1.6rem;
  margin:2.4rem 0;
  line-height:1.5;
}
.about-article .btn{
  margin-top:1.5rem;
}

/* ============ STORY ============ */
.story{ padding:3rem 1.5rem; border-top:1px solid var(--line); }
.story-grid{
  max-width:var(--max); margin:0 auto;
  display:grid; grid-template-columns:0.7fr 1.3fr 0.8fr; gap:3rem;
  align-items:start;
}
.story-media{
  border:1px solid var(--line);
  overflow:hidden;
  aspect-ratio:9/16;
}
.story-video{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.story-lead{
  font-family:var(--serif);
  font-size:1.6rem; font-weight:500;
  color:var(--cream);
  max-width:34ch;
  margin-bottom:1.5rem;
}
.story-copy p:not(.story-lead){
  max-width:56ch;
  color:rgba(243,237,225,0.72);
  font-size:0.98rem;
}

/* ============ SHOP GRID ============ */
.shop{ padding:2rem 1.5rem 7rem; max-width:var(--max); margin:0 auto; }
.piece-eyebrow{ text-align:center; display:block; margin-bottom:2.5rem; }

.shop-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:2.5rem;
}

.product-card{
  border:1px solid var(--line);
  display:flex; flex-direction:column;
  background:var(--charcoal);
}
.product-media{
  aspect-ratio:4/5;
  overflow:hidden;
}
.product-media img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transition:transform 0.6s ease;
}
.product-card:hover .product-media img{ transform:scale(1.045); }

.product-info{
  padding:1.5rem;
  display:flex; flex-direction:column;
  flex:1;
}
.product-title{
  font-family:var(--serif); font-weight:500;
  font-size:1.35rem; color:var(--cream);
  margin-bottom:0.35rem;
}
.product-price{
  color:var(--gold-light);
  font-size:1rem;
  margin-bottom:0.9rem;
}
.product-desc{
  font-size:0.88rem;
  color:rgba(243,237,225,0.68);
  margin-bottom:1.2rem;
  flex:1;
}

.qty-row{
  display:flex; align-items:center; gap:1rem;
  margin-bottom:1.1rem;
}
.qty-row label{ font-size:0.82rem; color:rgba(243,237,225,0.7); }
.qty-stepper{
  display:flex; align-items:center;
  border:1px solid var(--line); border-radius:2px;
}
.qty-stepper button{
  background:none; border:none; color:var(--cream);
  width:2.2rem; height:2.2rem; font-size:1.05rem;
  cursor:pointer;
}
.qty-stepper span{
  min-width:1.8rem; text-align:center; font-size:0.92rem;
}

.product-note{
  margin-top:0.7rem;
  font-size:0.76rem;
  color:rgba(243,237,225,0.5);
  text-align:center;
}

/* ============ DETAILS / ACCORDION ============ */
.details{
  padding:6rem 1.5rem 8rem;
  max-width:760px; margin:0 auto;
  border-top:1px solid var(--line);
}
.details .eyebrow{ display:block; margin-bottom:2rem; }
.accordion details{
  border-bottom:1px solid var(--line);
  padding:1.3rem 0;
}
.accordion summary{
  cursor:pointer;
  font-family:var(--serif);
  font-size:1.15rem;
  color:var(--cream);
  list-style:none;
  display:flex; justify-content:space-between; align-items:center;
}
.accordion summary::-webkit-details-marker{ display:none; }
.accordion summary::after{
  content:'+';
  color:var(--gold-light);
  font-size:1.3rem;
}
.accordion details[open] summary::after{ content:'–'; }
.accordion p{
  margin-top:0.9rem;
  color:rgba(243,237,225,0.7);
  font-size:0.95rem;
  max-width:60ch;
}

/* ============ BAG DRAWER ============ */
.bag-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,0.5);
  opacity:0; pointer-events:none; transition:opacity 0.3s ease;
  z-index:50;
}
.bag-overlay.active{ opacity:1; pointer-events:auto; }

.bag-drawer{
  position:fixed; top:0; right:0; bottom:0;
  width:min(420px, 92vw);
  background:var(--charcoal);
  border-left:1px solid var(--line);
  z-index:51;
  transform:translateX(100%);
  transition:transform 0.35s ease;
  display:flex; flex-direction:column;
  padding:1.8rem;
}
.bag-drawer.active{ transform:translateX(0); }

.bag-header{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:1.5rem;
}
.bag-header h3{ font-family:var(--serif); font-size:1.4rem; }
.bag-header button{
  background:none; border:none; color:var(--cream);
  font-size:1.6rem; cursor:pointer; line-height:1;
}

.bag-items{ flex:1; overflow-y:auto; }
.bag-empty{ color:rgba(243,237,225,0.5); font-size:0.95rem; }

.bag-item{
  display:flex; gap:1rem;
  padding-bottom:1.2rem; margin-bottom:1.2rem;
  border-bottom:1px solid var(--line);
}
.bag-item img{ width:70px; height:90px; object-fit:cover; }
.bag-item-name{ font-family:var(--serif); font-size:1.05rem; }
.bag-item-meta{ font-size:0.82rem; color:rgba(243,237,225,0.6); margin-top:0.3rem; }
.bag-item-remove{
  background:none; border:none; color:var(--gold-light);
  font-size:0.78rem; cursor:pointer; margin-top:0.5rem;
  text-decoration:underline;
}

.bag-footer{ border-top:1px solid var(--line); padding-top:1.4rem; }
.bag-total-row{
  display:flex; justify-content:space-between;
  font-size:1rem; margin-bottom:1.2rem;
}
.bag-note{
  font-size:0.75rem; color:rgba(243,237,225,0.45);
  text-align:center; margin-top:0.8rem;
}

/* ============ FOOTER ============ */
.site-footer{
  text-align:center; padding:3.5rem 1.5rem;
  border-top:1px solid var(--line);
}
.footer-logo{ width:64px; margin:0 auto 1rem; opacity:0.85; }
.site-footer p{ font-size:0.8rem; color:rgba(243,237,225,0.45); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px){
  .shop-grid{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width: 860px){
  .main-nav{ display:none; }
  .story-grid{ grid-template-columns:1fr; }
  .story-media{ max-width:280px; margin:1.5rem auto 0; }
  .shop-grid{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  .hero-ring{ animation:none; }
  *{ transition:none !important; }
}
