/* ==========================================================================
   Thoda Desi — stylesheet

   1.  Design tokens
   2.  Reset
   3.  Base elements
   4.  Announcement bar
   5.  Navigation
   6.  Hero
   7.  Culture strip
   8.  Drop / product grid
   9.  Manifesto
   10. Club / newsletter
   11. Footer
   12. Responsive
   13. Motion preferences
   ========================================================================== */


/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  --ink:    #211d18;  /* near-black, body text and borders */
  --paper:  #f2eadb;  /* warm off-white page background   */
  --cream:  #fff9ee;  /* lighter surface for raised cards  */
  --chilli: #dc3d24;  /* accent red                        */
  --lime:   #c9ed44;  /* accent green                      */
  --pink:   #f0a8bb;  /* hero backdrop                     */
  --line:   #211d183d; /* ink at 24% — hairline rules      */
}


/* ==========================================================================
   2. Reset
   ========================================================================== */

*,
*::before,
*::after,
::backdrop {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

b, strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

ol, ul, menu {
  list-style: none;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

button, input, select, optgroup, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  opacity: 1;
  background-color: transparent;
  border-radius: 0;
}

button,
input:where([type="button"], [type="reset"], [type="submit"]) {
  appearance: button;
}

::placeholder {
  opacity: 1;
  color: currentcolor;
}

[hidden]:where(:not([hidden="until-found"])) {
  display: none !important;
}


/* ==========================================================================
   3. Base elements
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main {
  overflow: hidden;
}

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

button {
  color: inherit;
}


/* ==========================================================================
   4. Announcement bar
   ========================================================================== */

.announcement {
  overflow: hidden;
  height: 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: max-content;
  height: 100%;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-44%); }
}


/* ==========================================================================
   5. Navigation
   ========================================================================== */

.nav-shell {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 234, 219, 0.9);
  backdrop-filter: blur(12px);
}

.wordmark {
  width: max-content;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.65rem, 2.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
}

.wordmark span {
  font-style: italic;
  color: var(--chilli);
}

.desktop-nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.desktop-nav a {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 4px;
  background: var(--chilli);
  transition: width 0.25s;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--ink);
  background: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.icon-button:hover {
  background: var(--lime);
  transform: rotate(-3deg);
}

.bag-button {
  position: relative;
}

/* Item-count badge on the bag icon. */
.bag-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--chilli);
}

/* Hidden until the 900px breakpoint, where it replaces .desktop-nav. */
.menu-button {
  display: none;
}

.mobile-menu {
  position: absolute;
  top: 100px;
  right: 1rem;
  z-index: 30;
  display: grid;
  min-width: 220px;
  border: 1px solid var(--ink);
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--ink);
}

.mobile-menu a {
  padding: 1rem 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}


/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 116px); /* viewport minus announcement + nav */
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5.5vw, 6.5rem);
  /* Subtle dot grid behind the headline. */
  background-image: radial-gradient(rgba(33, 29, 24, 0.12) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Shared display-serif treatment for every major heading. */
.hero h1,
.section-heading h2,
.manifesto h2,
.club h2 {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.8rem, 9.3vw, 10rem);
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 em,
.section-heading h2 em {
  font-weight: 500;
  color: var(--chilli);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
}

.hero-intro {
  max-width: 540px;
  margin: 2.25rem 0 2.5rem;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-cta-row > span {
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0 1.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--chilli);
  transition: transform 0.2s, box-shadow 0.2s;
}

.primary-cta:hover {
  box-shadow: 3px 3px 0 var(--chilli);
  transform: translate(3px, 3px);
}

.hero-visual {
  position: relative;
  min-height: 650px;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: var(--pink);
}

.hero-photo-wrap {
  width: 88%;
  height: 100%;
  margin-left: auto;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 95%, 0 100%, 0 5%);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(0.82) contrast(1.05);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual:hover img {
  transform: scale(1.025);
}

.scribble-note {
  position: absolute;
  top: 14%;
  left: -6%;
  padding: 0.8rem 1rem;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.9;
  color: var(--chilli);
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-9deg);
}

.hero-sticker {
  position: absolute;
  right: 6%;
  bottom: 5%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--chilli);
  transform: rotate(7deg);
}

.vertical-copy {
  position: absolute;
  bottom: 4%;
  left: 1rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}


/* ==========================================================================
   7. Culture strip
   ========================================================================== */

.culture-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: 78px;
  padding: 1rem;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-style: italic;
  color: var(--paper);
  background: var(--chilli);
  transform: rotate(-0.6deg) scale(1.01); /* slight tilt, scaled to hide the gaps */
}

.culture-strip p {
  margin: 0;
  white-space: nowrap;
}


/* ==========================================================================
   8. Drop / product grid
   ========================================================================== */

.drop-section {
  padding: clamp(6rem, 10vw, 10rem) clamp(1.25rem, 5.5vw, 6.5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr;
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.section-heading h2 {
  font-size: clamp(4rem, 8vw, 8rem);
}

.section-description {
  max-width: 420px;
  margin: 0 0 0.7rem;
  font-size: 1rem;
  line-height: 1.75;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(2rem, 7vw, 8rem);
}

/* Second card drops down so the two images stagger. */
.product-card-2 {
  margin-top: 12rem;
}

.product-image {
  position: relative;
  overflow: hidden;
  height: min(62vw, 780px);
  background: #ddd1c0; /* placeholder tone while the photo loads */
}

/* Each card gets its own hand-cut edge. */
.product-card-1 .product-image {
  clip-path: polygon(0 0, 94% 3%, 100% 100%, 4% 96%);
}

.product-card-2 .product-image {
  clip-path: polygon(5% 0, 100% 5%, 95% 97%, 0 100%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s;
}

.product-card:hover .product-image img {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.heart-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.heart-button:hover {
  color: var(--chilli);
  transform: scale(1.08);
}

.product-color {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--lime);
}

.product-info {
  padding: 2rem 0.25rem 0;
}

/* The "01 / SHORT KURTI" eyebrow. */
.product-info > p:first-child {
  margin: 0 0 0.7rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--chilli);
}

.product-info h3 {
  max-width: 560px;
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.product-description {
  max-width: 520px;
  margin: 1.2rem 0 1.7rem;
  line-height: 1.7;
}

.product-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.product-buy-row strong {
  font-size: 1.2rem;
}

.product-buy-row button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.product-buy-row button:hover {
  background: var(--chilli);
  transform: translateY(-2px);
}

/* Applied by script.js once the item is in the bag. */
.product-buy-row button.added {
  color: var(--ink);
  background: var(--lime);
}


/* ==========================================================================
   9. Manifesto
   ========================================================================== */

.manifesto {
  display: grid;
  grid-template-columns: 0.3fr 1fr;
  min-height: 720px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.manifesto-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(242, 234, 219, 0.25);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.manifesto-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 9vw, 9rem);
}

.manifesto-copy > p {
  margin: 0 0 2rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
}

.manifesto h2 {
  font-size: clamp(4rem, 8.5vw, 9rem);
}

.manifesto h2 span {
  font-style: italic;
  color: var(--pink);
}

.manifesto-details {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  margin-top: 3rem;
}

.manifesto-details > p {
  max-width: 580px;
  margin: 0;
  line-height: 1.8;
  color: rgba(242, 234, 219, 0.72);
}

.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat strong {
  font-family: "Bodoni Moda", serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--chilli);
}

.stat span {
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ==========================================================================
   10. Club / newsletter
   ========================================================================== */

.club {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 5.5vw, 6.5rem);
  background: var(--lime);
}

.club h2 {
  font-size: clamp(3.8rem, 7vw, 7rem);
}

.signup-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.email-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  border-bottom: 2px solid var(--ink);
}

.email-row input {
  min-width: 0;
  padding: 1rem 0;
  border: 0;
  outline: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  background: none;
}

.email-row input::placeholder {
  color: rgba(33, 29, 24, 0.45);
}

.email-row button {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}

.email-row button:hover {
  background: var(--chilli);
}

.signup-form small {
  display: block;
  margin-top: 1rem;
  font-size: 0.67rem;
  line-height: 1.6;
}

/* Replaces the form fields after a successful signup. */
.success-message {
  padding: 2rem;
  border: 2px solid var(--ink);
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--chilli);
}


/* ==========================================================================
   11. Footer
   ========================================================================== */

footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem clamp(1.25rem, 5.5vw, 6.5rem) 5.5rem;
  color: var(--paper);
  background: var(--chilli);
}

.footer-mark span {
  color: var(--lime);
}

footer > p {
  font-family: "Bodoni Moda", serif;
  font-size: 1.1rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copyright {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transform: translateX(-50%);
}


/* ==========================================================================
   12. Responsive
   ========================================================================== */

/* Tablet — swap the inline nav for the menu button, stack the hero. */
@media (max-width: 900px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-button { display: grid; }

  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 650px; }
  .hero-visual { min-height: 720px; }
  .hero-photo-wrap { width: 90%; }

  .section-heading { grid-template-columns: 1fr; }
  .product-grid { gap: 2rem; }
  .product-card-2 { margin-top: 7rem; }

  .manifesto { grid-template-columns: 72px 1fr; }
  .manifesto-details,
  .club { grid-template-columns: 1fr; }

  footer { grid-template-columns: 1fr 1fr; }
  footer > p { display: none; }
}

/* Phone — single column throughout, trim the culture strip. */
@media (max-width: 640px) {
  .announcement { height: 28px; }

  .nav-shell { height: 70px; padding: 0 1rem; }
  .bag-button { display: none; }

  .hero { min-height: auto; }
  .hero-copy { min-height: 610px; padding: 5rem 1.25rem 4rem; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6.5rem); }
  .hero-intro { font-size: 0.95rem; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .hero-visual { min-height: 600px; padding: 1rem; }
  .hero-photo-wrap { width: 95%; }
  .scribble-note { top: 8%; left: 1%; }

  .culture-strip { justify-content: flex-start; gap: 1.5rem; overflow: hidden; }
  .culture-strip p:nth-of-type(3),
  .culture-strip span:nth-of-type(2) { display: none; }

  .drop-section { padding-top: 6rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card-2 { margin-top: 4rem; }
  .product-image { height: 125vw; max-height: 680px; }

  .manifesto { grid-template-columns: 42px 1fr; min-height: 700px; }
  .manifesto-copy { padding: 4.5rem 1.4rem; }
  .manifesto h2 { font-size: clamp(3.4rem, 16vw, 5.5rem); }
  .manifesto-details { gap: 2rem; }

  .club { gap: 3rem; }
  .club h2 { font-size: 3.8rem; }

  footer { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
}


/* ==========================================================================
   13. Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
