/* ─────────────────────────────────────────────
   MAISON NUNÉ — soft & warm gallery
   ───────────────────────────────────────────── */

:root {
  --cream:     #f4eee5;
  --ivory:     #fbf8f3;
  --sand:      #e9dfd1;
  --line:      #ddd1c1;
  --taupe:     #8c7b6d;
  --mocha:     #6b5444;
  --espresso:  #3b2f28;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

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

/* ───────── Logo ───────── */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1;
}
.logo__name {
  letter-spacing: .16em;
  margin-right: -.16em; /* optically centre tracked caps */
  white-space: nowrap;
}
.logo__rule {
  display: block;
  width: 2.2em;
  height: 1px;
  background: currentColor;
  opacity: .55;
  margin: .55em 0 .5em;
}
.logo__sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .2em;
  letter-spacing: .42em;
  margin-right: -.42em;
}

.logo--small  { font-size: 19px; }
.logo--hero   { font-size: clamp(38px, 6.4vw, 84px); }
.logo--hero .logo__rule { width: 1.1em; }
.logo--hero .logo__sub  { font-size: max(11px, .15em); }
.logo--footer { font-size: clamp(30px, 4vw, 44px); }
.logo--footer .logo__sub { font-size: 11px; }

/* ───────── Header ───────── */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(244, 238, 229, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* language switch */
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 243, .7);
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--taupe);
  font: 400 11px/1 var(--sans);
  letter-spacing: .14em;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang__btn svg {
  width: 18px; height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(59, 47, 40, .12);
  opacity: .55;
  filter: saturate(.6);
  transition: opacity .3s, filter .3s;
}
.lang__btn[aria-pressed="true"] { background: var(--espresso); color: var(--ivory); }
.lang__btn[aria-pressed="true"] svg { opacity: 1; filter: none; }
.lang__btn:hover svg { opacity: 1; }
.lang__btn:focus-visible { outline: 1px solid var(--mocha); outline-offset: 2px; }

/* ───────── Shared ───────── */

section { padding: clamp(80px, 12vw, 160px) var(--gutter); }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--taupe);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: .01em;
}
.section-head { text-align: center; margin-bottom: clamp(48px, 7vw, 88px); }
.muted { color: var(--taupe); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid var(--espresso);
  border-radius: 999px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--espresso); color: var(--ivory); }
.btn--solid:hover { background: var(--mocha); border-color: var(--mocha); }
.btn--ghost:hover { background: var(--espresso); color: var(--ivory); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow::after { content: "→"; font-family: var(--serif); font-size: 16px; letter-spacing: 0; }
.link-arrow:hover { border-color: var(--espresso); gap: 16px; }

/* ───────── Hero ───────── */

.hero {
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero__text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__text .eyebrow { margin-bottom: 36px; }
.hero__lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 300;
  line-height: 1.45;
  max-width: 30ch;
  text-wrap: balance;
  margin: 40px 0 44px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero__media { margin: 0; justify-self: center; width: min(100%, 460px); }
.arch {
  position: relative;
  aspect-ratio: 3 / 4.3;
  border-radius: 999px 999px 6px 6px;
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 30px 60px -30px rgba(59, 47, 40, .35);
}
.arch::after { /* thin inset line like her shop arch */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(251, 248, 243, .55);
  border-radius: inherit;
  pointer-events: none;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* ───────── Manifesto ───────── */

.manifesto {
  background: var(--ivory);
  text-align: center;
  padding-top: clamp(72px, 10vw, 130px);
  padding-bottom: clamp(72px, 10vw, 130px);
}
.ornament { display: block; font-family: var(--serif); font-size: 26px; color: var(--taupe); margin-bottom: 28px; }
.manifesto__quote {
  max-width: 30ch;
  margin: 0 auto;
  text-wrap: balance;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.3;
}

/* ───────── Collection ───────── */

.products {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
}
.product { display: flex; flex-direction: column; }
.product:nth-child(2) { margin-top: clamp(0px, 6vw, 80px); } /* gentle gallery stagger */

.product__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand);
  border-radius: 4px;
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 1.2s var(--ease);
}
.product:hover .product__media img { transform: scale(1.04); }

.product__body { padding-top: 26px; display: flex; flex-direction: column; flex: 1; }
.product__name { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 12px; }
.product__desc { color: var(--mocha); font-size: 15px; margin-bottom: 18px; }
.product__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.product__tags li {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--taupe);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}
.product__foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.product__price { font-family: var(--serif); font-size: 24px; }

/* ───────── Coming soon ───────── */

.soon {
  background: var(--sand);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}
.soon > * { max-width: calc(var(--max) / 2); }
.soon__media { margin: 0; justify-self: end; width: 100%; }
.soon__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  cursor: zoom-in;
}
.soon__list { margin: 36px 0 22px; border-top: 1px solid var(--line); }
.soon__list li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 28px);
}
.soon__list li span:first-child { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--taupe); }
.soon__text .muted { font-family: var(--serif); font-style: italic; font-size: 19px; margin-bottom: 30px; }

/* ───────── Story ───────── */

.story { text-align: center; }
.story__inner { max-width: 640px; margin: 0 auto; }
.story .section-title { margin-bottom: 36px; }
.story p:not(.eyebrow):not(.signature) { font-size: 17px; color: var(--mocha); margin-bottom: 20px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 26px; margin-top: 34px; }

/* ───────── Order ───────── */

.order { background: var(--ivory); }
.steps {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.step { text-align: center; padding: 0 6px; }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 58px; height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--mocha);
  margin-bottom: 22px;
}
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--taupe); }
.order__cta { text-align: center; margin-top: clamp(48px, 7vw, 80px); }

/* ───────── Footer ───────── */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: clamp(72px, 10vw, 120px) var(--gutter) 40px;
  text-align: center;
}
.footer__ig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--mocha);
  transition: color .3s;
}
.footer__ig:hover { color: var(--espresso); }
.footer__ig svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.footer__copy { font-size: 12px; letter-spacing: .08em; color: var(--taupe); margin-top: 20px; }

/* ───────── Lightbox ───────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(244, 238, 229, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 40px 80px -40px rgba(59, 47, 40, .45);
  transform: scale(.97);
  transition: transform .5s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox__close {
  position: absolute;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  font: 300 34px/1 var(--serif);
  color: var(--espresso);
  cursor: pointer;
}

[data-zoom] { cursor: zoom-in; }

/* ───────── Reveal ───────── */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* language change fade */
[data-i18n] { transition: opacity .25s ease; }
.is-switching [data-i18n] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ───────── Responsive ───────── */

@media (max-width: 960px) {
  .products { grid-template-columns: 1fr 1fr; }
  .product:nth-child(2) { margin-top: 0; }
  .product:nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - 20px); justify-self: center; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header { padding: 14px 16px; }
  .header.is-scrolled { padding: 10px 16px; }
  .logo--small { font-size: 16px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 108px;
    gap: 56px;
  }
  .hero__media { order: -1; width: min(82%, 380px); }
  .hero__text .eyebrow { margin-bottom: 24px; }
  .hero__lead { margin: 30px 0 34px; }

  .products { grid-template-columns: 1fr; gap: 64px; }
  .product:nth-child(3) { max-width: none; }

  .soon { grid-template-columns: 1fr; }
  .soon > * { max-width: none; }

  .steps { grid-template-columns: 1fr; row-gap: 44px; }
}

@media (max-width: 380px) {
  .lang__btn span { display: none; }
  .lang__btn { padding: 5px; }
  .hero__cta .btn { width: 100%; }
}
