/* ============================================================
   ELENA ABAYA — stylesheet
   Palette: warm ink + ivory, restrained antique-gold accent.
   Signature: vertical "drape" hairlines + elongated Cormorant.
   ============================================================ */

:root {
  --ink: #17130F;
  --ink-soft: #221C16;
  --char: #463F37;
  --muted: #6E655A;
  --ivory: #FBF9F5;
  --sand: #EFE9DE;
  --sand-deep: #E7E0D2;
  --line: #E1D9CB;
  --gold: #B4934E;
  --gold-deep: #8A6E3C;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;

  --wrap: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fixed backdrop photo — content sits over it via translucent sections */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('../images/backdrop.jpg') center 22% / cover no-repeat;
}

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

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}

.section-lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--gold-deep); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--ivory); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
  color: var(--ivory);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
}
.site-header.is-solid {
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.brand { grid-column: 2; text-align: center; line-height: 1; }
.brand__name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: .34em;
  text-indent: .34em;
}
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: .28rem;
}

.nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 2rem;
}
.nav a {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav a:hover::after { width: 100%; }

.bag {
  grid-column: 3;
  justify-self: end;
  display: none; /* becomes flex >900px via media query below */
  align-items: center;
  gap: .55rem;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .6rem 0;
}
.bag__count {
  min-width: 1.4rem; height: 1.4rem;
  display: inline-grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
  font-size: .64rem; letter-spacing: 0;
}

.nav-toggle {
  grid-column: 1; justify-self: start;
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  min-height: 44px;
  width: 30px; background: none; border: 0; cursor: pointer; padding: 10px 2px;
}
.nav-toggle span { height: 1.4px; width: 26px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-6.4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(to bottom,
    rgba(23,19,15,.32) 0%, rgba(23,19,15,.58) 52%, rgba(23,19,15,.88) 100%);
  color: var(--ivory);
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
/* signature: vertical drape hairlines */
.hero__drape {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0, transparent calc(9% - 1px),
    rgba(180,147,78,.16) calc(9% - 1px), rgba(180,147,78,.16) 9%
  );
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 80%, transparent);
  pointer-events: none;
}
.hero::after { /* warm vignette */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 8%, rgba(180,147,78,.10), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__inner .eyebrow,
.hero__title,
.hero__sub { text-shadow: 0 1px 26px rgba(0,0,0,.38); }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 8.6vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.6rem;
}
.hero__sub {
  max-width: 44ch;
  color: rgba(251,249,245,.78);
  font-size: 1.1rem;
  margin: 0 0 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ink-soft);
  color: var(--ivory);
  overflow: hidden;
  border-block: 1px solid rgba(180,147,78,.25);
}
.marquee__track {
  display: inline-flex;
  gap: 2.4rem;
  align-items: center;
  white-space: nowrap;
  padding: .95rem 0;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(251,249,245,.85);
  animation: slide 34s linear infinite;
}
.marquee__track span:nth-child(even) { color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   SHOP
   ============================================================ */
.shop { padding: clamp(4.5rem, 9vw, 8rem) 0; background: rgba(251,249,245,.95); }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 3rem; }
.chip {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .72rem 1.3rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--char); }
.chip.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.4rem;
}

.product { display: flex; flex-direction: column; }
.product.is-hidden { display: none; }

.product__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 5;
}
.product__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.product:hover .product__media img { transform: scale(1.045); }
.product__tag {
  position: absolute; top: 12px; left: 12px;
  font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(251,249,245,.9); color: var(--char);
  padding: .32rem .6rem;
}

.product__body { padding: 1.1rem .1rem 0; display: flex; flex-direction: column; flex: 1; }
.product__colour {
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 .35rem;
}
.product__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.15;
  margin: 0 0 .45rem;
}
.product__blurb { font-size: .84rem; color: var(--muted); margin: 0 0 1.1rem; flex: 1; }
.product__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .8rem; border-top: 1px solid var(--line);
}
.product__price { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.btn--add { padding: .82rem 1.1rem; font-size: .68rem; background: var(--ink); color: var(--ivory); }
.btn--add:hover { background: var(--gold-deep); }

/* ============================================================
   STORY
   ============================================================ */
.story { background: rgba(239,233,222,.93); padding: clamp(4.5rem, 9vw, 8rem) 0; }
.story__inner {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.story__art {
  background: var(--ivory);
  padding: 2rem;
  border: 1px solid var(--line);
}
.story__art img { width: 100%; }
.story__text p { color: var(--char); margin: 0 0 1.2rem; max-width: 48ch; }
.story__text .btn { margin-top: .6rem; }

/* ============================================================
   CRAFT
   ============================================================ */
.craft { padding: clamp(4.5rem, 9vw, 8rem) 0; background: rgba(251,249,245,.94); }
.craft__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.craft__item {
  border-top: 1px solid var(--ink);
  padding-top: 1.4rem;
}
.craft__num {
  font-family: var(--sans);
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-deep);
}
.craft__item h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.7rem;
  margin: .8rem 0 .7rem;
}
.craft__item p { color: var(--muted); font-size: .95rem; margin: 0; max-width: 34ch; }

/* ============================================================
   SIGNUP
   ============================================================ */
.signup { background: rgba(23,19,15,.93); color: var(--ivory); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.signup .eyebrow { color: var(--gold); }
.signup .section-title { color: var(--ivory); }
.signup__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.signup__form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.signup__form input {
  flex: 1 1 240px;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(251,249,245,.4);
  color: var(--ivory);
  font-family: var(--sans); font-size: 1rem;
  padding: .8rem .2rem;
}
.signup__form input::placeholder { color: rgba(251,249,245,.45); }
.signup__form input:focus { outline: none; border-color: var(--gold); }
.signup__note { flex-basis: 100%; font-size: .74rem; color: rgba(251,249,245,.55); margin: .3rem 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: rgba(34,28,22,.96); color: rgba(251,249,245,.85); padding: clamp(3.5rem,7vw,5.5rem) 0 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(251,249,245,.14);
}
.footer__brand .brand__name { font-size: 1.15rem; margin-bottom: 1rem; }
.footer__brand p { max-width: 34ch; font-size: .9rem; color: rgba(251,249,245,.6); }
.footer__col h4 {
  font-family: var(--sans); font-weight: 500;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.1rem;
}
.footer__col a { display: block; font-size: .9rem; padding: .3rem 0; color: rgba(251,249,245,.7); }
.footer__col a:hover { color: var(--gold); }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  padding-top: 1.6rem; font-size: .76rem; color: rgba(251,249,245,.5);
}
.footer__pay { letter-spacing: .04em; }

/* ============================================================
   REVEAL / MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 901px) {
  .bag { display: inline-flex; }
  .nav { padding-right: 8.5rem; } /* leave room for the bag on the right edge */
}

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .header__inner { grid-template-columns: auto 1fr auto; }
  .brand { grid-column: 2; justify-self: center; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    grid-column: 1 / -1;
    flex-direction: column; gap: 0;
    background: var(--ivory); color: var(--ink);
    padding: .5rem 1.3rem 1.6rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
  .bag { grid-column: 3; display: inline-flex; }
  .site-header:not(.is-solid) .nav a { color: var(--ink); }
}

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem .9rem; }
  .story__inner { grid-template-columns: 1fr; }
  .story__art { max-width: 320px; }
  .craft__grid { grid-template-columns: 1fr; gap: 2rem; }
  .signup__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .hero { min-height: 90vh; }
}

@media (max-width: 440px) {
  .grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__sub { font-size: .5rem; letter-spacing: .2em; text-indent: .2em; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
