/* ---------------------------------------------------------------
   Durga Pobbathi — homepage
   Tokens carried over from the design source.
   --------------------------------------------------------------- */

:root {
  --paper:      #F6F2EB;
  --surface:    #FCFAF6;
  --image-bg:   #EDE7DE;
  --ink:        #241F19;
  --muted:      #6B6156;
  --faint:      #857A6C;
  --rule:       #E4DCD0;
  --rule-soft:  #EAE3D8;
  --accent:     #B8375A;
  --selection:  #E9D9DE;

  --serif: 'Bodoni Moda', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;

  --gutter: 64px;
  --header-h: 78px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
a:hover { color: var(--accent); }

h1, h2, p, figure, figcaption { margin: 0; }

img { max-width: 100%; }

input { font-family: inherit; }

::selection { background: var(--selection); }

:where(section, footer)[id],
.hero, .featured, .collections, .atelier { scroll-margin-top: calc(var(--header-h) + 34px); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Shared type ------------------------------------------------ */

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--faint);
}

.link-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}
.link-cta:hover { border-bottom-color: var(--accent); }
.link-cta--sm { padding-bottom: 7px; white-space: nowrap; }
.arrow { font-size: 15px; line-height: 1; }

/* Image frames — the zoom-on-hover treatment used across the page. */
.media {
  overflow: hidden;
  background: var(--image-bg);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 900ms var(--ease);
}
.media--4x5  { aspect-ratio: 4 / 5; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--16x9 { aspect-ratio: 16 / 9; }

.piece .media:hover img    { transform: scale(1.035); }
.category .media:hover img { transform: scale(1.04); }

/* Ribbons of dye colour that separate the major bands. */
.dye-rule {
  height: 3px;
  width: 100%;
  opacity: 0.55;
  background: linear-gradient(90deg,
    #2C7A78 0%, #6FA8A0 14%, #C98A3C 30%, #D9A86B 42%,
    #B8375A 58%, #8E3B62 72%, #6E3A63 84%, #4A7FA8 100%);
}
.dye-rule--alt {
  background: linear-gradient(90deg,
    #4A7FA8 0%, #6E3A63 18%, #B8375A 34%, #D9A86B 52%,
    #C98A3C 64%, #6FA8A0 82%, #2C7A78 100%);
}

/* --- Header ----------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 235, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.announce {
  border-bottom: 1px solid var(--rule-soft);
  padding: 9px 48px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}
.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 40px;
  justify-self: center;
}
.site-nav a,
.cart-label {
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.cart {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-count {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.08em;
}

/* --- Hero ------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 46fr 54fr;
  min-height: calc(100vh - var(--header-h));
  background: var(--paper);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 40px 96px var(--gutter);
  position: relative;
}
.hero-copy .eyebrow { margin-bottom: 40px; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-bottom: 34px;
}
.hero-title em { font-style: italic; }

.lede {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 48px;
  text-wrap: pretty;
}

.hero-media {
  position: relative;
  background: var(--image-bg);
}
.hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.piece-card {
  position: absolute;
  left: -74px;
  bottom: 88px;
  z-index: 2;
  background: var(--surface);
  padding: 22px 30px 20px;
  width: 260px;
}
.piece-index {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.piece-name {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
}
.piece-card .piece-detail { margin-top: 8px; letter-spacing: 0.02em; }

/* --- Featured pieces -------------------------------------------- */

.featured {
  background: var(--surface);
  padding: 132px var(--gutter) 140px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 88px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 34px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-head p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 330px;
  text-wrap: pretty;
}
.section-head--inline {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 76px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: start;
}

/* Staggered placement — deliberately uneven, as drawn. */
.piece--a { grid-column: 1 / 6;   }
.piece--b { grid-column: 7 / 10;  margin-top: 104px; }
.piece--c { grid-column: 10 / 13; margin-top: 216px; }
.piece--d { grid-column: 2 / 8;   margin-top: 72px;  }

.piece-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 20px;
}
.piece-caption--tight { gap: 16px; }
.piece-caption--stacked { display: block; }

.piece-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
}
.piece-title--sm { font-size: 20px; }

.piece-detail {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

.price {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.price--stacked { margin-top: 6px; }

/* --- Collections ------------------------------------------------ */

.collections {
  background: var(--paper);
  padding: 132px var(--gutter) 150px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}

.category { display: block; }
.category--dropped { margin-top: 76px; }

.category-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.category-name {
  font-family: var(--serif);
  font-size: 19px;
}
.category-count {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- Atelier ---------------------------------------------------- */

.atelier {
  display: grid;
  grid-template-columns: 52fr 48fr;
  background: var(--surface);
  position: relative;
}

.atelier-media {
  position: relative;
  overflow: hidden;
  background: var(--image-bg);
  min-height: 78vh;
}
.atelier-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.atelier-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 88px;
}
.atelier-copy > *:not(.dye-wash) { position: relative; }

/* Bled-dye tint behind the copy. */
.dye-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 78% 18%, rgba(184, 55, 90, 0.10) 0%, rgba(184, 55, 90, 0) 70%),
    radial-gradient(52% 44% at 12% 82%, rgba(44, 122, 120, 0.10) 0%, rgba(44, 122, 120, 0) 72%),
    radial-gradient(46% 38% at 88% 88%, rgba(201, 138, 60, 0.10) 0%, rgba(201, 138, 60, 0) 70%);
}

.atelier-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin-bottom: 30px;
  opacity: 0.9;
}
.atelier-copy .eyebrow { margin-bottom: 26px; }

.atelier-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 30px;
  text-wrap: pretty;
}

.atelier-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.atelier-body--last { margin-bottom: 44px; }

/* --- Newsletter -------------------------------------------------- */

.newsletter {
  background: var(--paper);
  padding: 130px var(--gutter) 118px;
  text-align: center;
}
.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
}
.newsletter .eyebrow { margin-bottom: 24px; }

.newsletter-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 2.9vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.newsletter-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 44px;
  text-wrap: pretty;
}

.subscribe {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
  max-width: 400px;
  margin: 0 auto;
}
.subscribe input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding: 0;
}
.subscribe input::placeholder { color: var(--faint); }

.join-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0;
  transition: color 200ms ease;
}
.join-btn:hover { color: var(--accent); }

.subscribed {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  padding-bottom: 12px;
}

/* --- Footer ------------------------------------------------------ */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 82px var(--gutter) 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.footer-mark {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
  margin-bottom: 22px;
}
.footer-blurb {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 260px;
  text-wrap: pretty;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: var(--muted);
}
.footer-heading {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.footer-domain {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.footer-legal {
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------
   Responsive. The source design is drawn at desktop only; the rules
   below unwind the fixed columns and the deliberate vertical stagger.
   --------------------------------------------------------------- */

@media (max-width: 1180px) {
  :root { --gutter: 44px; }
  .header-inner { padding: 0 28px; }
  .announce { padding: 9px 28px; }
  .site-nav { gap: 28px; }
  .atelier-copy { padding: 104px 56px; }
  .piece-card { left: -48px; bottom: 56px; width: 232px; }
}

@media (max-width: 900px) {
  :root { --gutter: 32px; }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 16px;
    height: auto;
    padding: 18px 24px;
    row-gap: 14px;
  }
  /* Brand and cart share the top row; nav drops beneath them. */
  .brand { grid-area: 1 / 1; }
  .cart  { grid-area: 1 / 2; }
  .site-nav {
    grid-area: 2 / 1 / 3 / -1;
    justify-self: start;
    gap: 26px;
  }
  .announce { padding: 9px 20px; letter-spacing: 0.18em; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy { padding: 72px var(--gutter) 64px; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; }
  /* The overhanging card has nothing to overhang once stacked. */
  .piece-card {
    left: auto;
    right: 0;
    bottom: 0;
    width: min(260px, 72%);
  }

  .featured { padding: 88px var(--gutter) 96px; }
  .collections { padding: 88px var(--gutter) 96px; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 48px;
  }
  .section-head--inline { margin-bottom: 44px; }

  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .piece--a, .piece--b, .piece--c, .piece--d {
    grid-column: auto;
    margin-top: 0;
  }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category--dropped { margin-top: 0; }

  .atelier { grid-template-columns: 1fr; }
  .atelier-media { min-height: 0; aspect-ratio: 4 / 3; }
  .atelier-copy { padding: 80px var(--gutter); }

  .newsletter { padding: 88px var(--gutter) 80px; }

  .site-footer { padding: 64px var(--gutter) 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-base { margin-top: 48px; }
}

@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; gap: 44px; }
  .category-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }

  .site-nav { gap: 20px; }
  .site-nav a { font-size: 11px; letter-spacing: 0.14em; }
  .brand-name { font-size: 13px; letter-spacing: 0.22em; }

  .hero-copy { padding: 56px var(--gutter) 56px; }
  .hero-copy .eyebrow { margin-bottom: 24px; }
  .lede { margin-bottom: 36px; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media img { transition: none; }
  .piece .media:hover img,
  .category .media:hover img { transform: none; }
}
