:root{
  --cream:#f5f1e9;
  --paper:#ebe6dc;
  --ink:#252b25;
  --olive:#505947;
  --gold:#a48c68;
  --muted:#77776f;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:"DM Sans",sans-serif;
}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
h1,h2,h3{
  font-family:"Playfair Display",serif;
  font-weight:400;
}
.eyebrow{
  font-size:11px;
  letter-spacing:3px;
  text-transform:uppercase;
}
header{
  position:absolute;
  z-index:10;
  top:0;
  left:0;
  width:100%;
  padding:28px 7%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:white;
}
.logo{
  font-family:"Playfair Display",serif;
  font-size:32px;
  letter-spacing:7px;
}
nav{display:flex;gap:30px}
nav a{
  font-size:11px;
  letter-spacing:2px;
  text-transform:uppercase;
}
nav a:hover{color:#e1c8a1}
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:130px 10% 90px;
  color:white;
  background:
    linear-gradient(90deg,rgba(0,0,0,.65),rgba(0,0,0,.1)),
    url("https://images.unsplash.com/photo-1617127365659-c47fa864d8bc?w=1800&q=85")
    center/cover;
}
.hero-content{max-width:760px}
.hero h1{
  font-size:clamp(58px,9vw,120px);
  line-height:1.04;
  margin:22px 0;
}
.hero p{
  max-width:480px;
  line-height:1.9;
  color:#e8e5df;
}
.btn{
  display:inline-block;
  padding:17px 30px;
  margin-top:24px;
  background:var(--cream);
  color:var(--ink);
  border:0;
  font-size:11px;
  letter-spacing:2px;
  text-transform:uppercase;
  transition:.25s;
}
.btn:hover{
  background:var(--gold);
  color:white;
}
section{padding:100px 7%}
.section-heading{
  text-align:center;
  margin-bottom:55px;
}
.section-heading h2{
  font-size:clamp(38px,5vw,65px);
  margin:15px 0;
}
.section-heading p{color:var(--muted)}
.collection-grid,
.product-grid,
.journal-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:25px;
}
.collection{
  position:relative;
  overflow:hidden;
  background:#ddd;
}
.collection img{
  display:block;
  width:100%;
  height:470px;
  object-fit:cover;
  transition:transform .5s;
}
.collection:hover img{transform:scale(1.05)}
.collection h3{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  margin:0;
  padding:75px 25px 25px;
  color:white;
  font-size:32px;
  background:linear-gradient(transparent,rgba(0,0,0,.7));
}

/* WARDROBE */
#wardrobe{background:#faf8f3}
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:20px;
  margin-bottom:35px;
}
#search{
  min-width:220px;
  flex:1;
  padding:15px 18px;
  border:1px solid #d8d3c9;
  background:transparent;
  outline:none;
}
#search:focus{border-color:var(--olive)}
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.filter,.outline-btn{
  padding:13px 18px;
  border:1px solid #d8d3c9;
  background:transparent;
  color:var(--ink);
  font-size:11px;
  letter-spacing:1px;
  transition:.2s;
}
.filter:hover,.outline-btn:hover{
  border-color:var(--olive);
}
.filter.active{
  background:var(--olive);
  color:white;
  border-color:var(--olive);
}
.product-card{
  background:white;
  position:relative;
  overflow:hidden;
}
.product-image{
  width:100%;
  height:380px;
  object-fit:cover;
  display:block;
}
.product-info{padding:22px}
.product-info h3{
  font-size:24px;
  margin:8px 0;
}
.product-info p{
  font-size:13px;
  color:var(--muted);
  line-height:1.7;
}
.product-category{
  font-size:10px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--gold);
}
.favorite-btn{
  position:absolute;
  top:15px;
  right:15px;
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.93);
  font-size:23px;
  z-index:2;
}
.favorite-btn.saved{color:#9c554e}
.empty-state{
  text-align:center;
  padding:40px;
  color:var(--muted);
}

/* JOURNAL */
.journal-section{background:var(--paper)}
.journal-card img{
  width:100%;
  height:300px;
  object-fit:cover;
}
.journal-card .eyebrow{
  display:block;
  margin-top:22px;
  color:var(--gold);
}
.journal-card h3{
  font-size:29px;
  margin:15px 0;
}
.journal-card p{
  color:var(--muted);
  line-height:1.8;
}
.text-link{
  background:none;
  border:0;
  padding:10px 0;
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  border-bottom:1px solid var(--ink);
}

/* PHILOSOPHY */
.philosophy{
  display:grid;
  grid-template-columns:1fr 1fr;
  padding:0;
  background:#e6e0d5;
}
.philosophy-image{
  min-height:600px;
  background:url("https://images.unsplash.com/photo-1591047139829-d91aecb6caea?w=1200&q=85") center/cover;
}
.philosophy-copy{
  padding:12%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}
.philosophy-copy h2{
  font-size:clamp(40px,5vw,68px);
  line-height:1.15;
}
.philosophy-copy p{
  line-height:1.9;
  color:var(--muted);
}

/* STYLE QUIZ */
.quiz-section{background:#f5f1e9}
.quiz-box{
  max-width:650px;
  margin:auto;
  text-align:center;
}
.quiz-box h3{font-size:32px}
.quiz-option{
  display:block;
  width:100%;
  padding:18px;
  margin:12px 0;
  background:transparent;
  border:1px solid #c9c2b5;
  color:var(--ink);
}
.quiz-option:hover{
  background:var(--olive);
  color:white;
}

/* FAVORITES */
.side-panel{
  position:fixed;
  top:0;
  right:0;
  width:min(420px,100%);
  height:100vh;
  padding:65px 30px 30px;
  background:var(--cream);
  z-index:102;
  overflow-y:auto;
  transform:translateX(105%);
  transition:transform .3s;
}
.side-panel.open{transform:translateX(0)}
.panel-close{
  position:absolute;
  right:25px;
  top:20px;
  border:0;
  background:none;
  font-size:32px;
}
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:101;
}
.overlay[hidden]{display:none}
#favorites-list .saved-item{
  padding:18px 0;
  border-bottom:1px solid #ddd;
}
#article-dialog{
  width:min(750px,90vw);
  max-height:85vh;
  padding:55px 35px;
  border:0;
  background:var(--cream);
  color:var(--ink);
}
#article-dialog::backdrop{
  background:rgba(0,0,0,.7);
}
#article-content{
  line-height:1.9;
}
#article-content h2{font-size:42px}

/* FOOTER */
footer{
  background:var(--ink);
  color:white;
  text-align:center;
  padding:65px 20px;
}
footer p{
  font-size:11px;
  letter-spacing:2px;
  color:#c5c5bb;
}

/* MOBILE */
@media(max-width:900px){
  .collection-grid,.product-grid,.journal-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .philosophy{grid-template-columns:1fr}
  .philosophy-image{min-height:400px}
}
@media(max-width:600px){
  header{
    padding:22px 5%;
    flex-direction:column;
    gap:20px;
  }
  nav{
    gap:15px;
    flex-wrap:wrap;
    justify-content:center;
  }
  nav a{font-size:9px}
  section{padding:70px 5%}
  .hero{padding:180px 7% 80px}
  .collection-grid,.product-grid,.journal-grid{
    grid-template-columns:1fr;
  }
  .collection img{height:400px}
  .product-image{height:400px}
  .toolbar{flex-direction:column;align-items:stretch}
  .filters{justify-content:center}
  .philosophy-copy{padding:70px 7%}
}
