/* ============================================
   MÚSE Bali — Stylesheet
   Palette: creamy vanilla, dark warm grey
   Fonts: Italiana, Cormorant Garamond, Inter
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* ----- CSS variables ----- */
:root {
  --c-cream: #F1ECE3;
  --c-vanilla: #FBF7EE;
  --c-sand: #E5DCC8;
  --c-sand-deep: #C9B597;
  --c-muted: #8A7F70;
  --c-text: #3D352D;
  --c-text-soft: #6A6258;
  --c-border: rgba(61, 53, 45, 0.15);
  --c-border-soft: rgba(61, 53, 45, 0.08);

  --f-logo: 'Italiana', 'Optima', serif;
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Inter', system-ui, sans-serif;

  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: opacity .25s ease; }
a:hover { opacity: 0.65; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--c-sand-deep); color: var(--c-vanilla); }

/* ----- Header & navigation ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 236, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--c-border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.nav__logo img,
.nav__logo svg {
  height: 26px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav__links a { transition: opacity .25s ease; }
.nav__links a.is-active { opacity: 0.5; }

.nav__cta {
  padding: 9px 18px;
  border: 0.5px solid var(--c-border);
  border-radius: 100px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}
.nav__cta:hover { background: var(--c-text); color: var(--c-vanilla); opacity: 1; }

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 0.5px;
  background: var(--c-text);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 0.5px;
  background: var(--c-text);
  left: 0;
  transition: transform .25s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }

.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ----- Sections ----- */
.section { padding: clamp(56px, 9vw, 120px) var(--gutter); max-width: var(--max-w); margin: 0 auto; }

/* Pull cards closer to the intro on the home page */
.section.intro { padding-bottom: clamp(14px, 2vw, 28px); }
.intro + .section { padding-top: clamp(14px, 2vw, 28px); }
.section--narrow { max-width: 760px; }
.section--bleed { padding-left: 0; padding-right: 0; max-width: none; }
.section--cream { background: var(--c-vanilla); max-width: none; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 400;
  margin: 0 0 22px;
}

.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--c-text);
  margin: 0;
}

.display--upright { font-style: normal; }

.body-lede {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  color: var(--c-text-soft);
  margin: 16px 0 0;
}

p { margin: 0 0 1.1em; color: var(--c-text-soft); }
p:last-child { margin-bottom: 0; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: clamp(520px, 80vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
  overflow: hidden;
  background: var(--c-sand);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--img, none), linear-gradient(160deg, #EDE2D2 0%, #D8C5A9 45%, #B5A089 100%);
  background-size: cover, cover;
  background-position: center 3%, center;
  background-color: #C9B597;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,53,45,0) 40%, rgba(61,53,45,0.25) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: var(--c-vanilla);
}

.hero__eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-vanilla);
  opacity: 0.9;
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--c-vanilla);
  margin: 0;
}

.hero__sub {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 18px);
  letter-spacing: 0.06em;
  color: var(--c-vanilla);
  opacity: 0.92;
  margin: 24px 0 0;
}

/* ----- Email signup form ----- */
.signup {
  margin: 36px auto 0;
  display: flex;
  gap: 8px;
  max-width: 460px;
  width: 100%;
}

.signup__input {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  background: rgba(255,255,255,0.85);
  border: 0.5px solid var(--c-border);
  border-radius: 100px;
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--c-text);
  outline: none;
  transition: border-color .25s ease, background .25s ease;
}
.signup__input::placeholder { color: var(--c-muted); }
.signup__input:focus { border-color: var(--c-text); background: white; }

.signup__btn {
  padding: 14px 28px;
  background: var(--c-text);
  color: var(--c-vanilla);
  border-radius: 100px;
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background .25s ease, transform .15s ease;
  white-space: nowrap;
}
.signup__btn:hover { background: #1F1A14; }
.signup__btn:active { transform: scale(0.98); }

.signup__msg {
  margin: 14px auto 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-text-soft);
  opacity: 0.9;
  text-transform: uppercase;
  min-height: 16px;
  text-align: center;
}

.signup__msg.is-success { color: var(--c-text); opacity: 1; }
.signup__msg.is-error   { color: #C16450; opacity: 1; }

/* On the hero (dark image background) — use vanilla */
.hero .signup__msg { color: var(--c-vanilla); }
.hero .signup__msg.is-success { color: var(--c-vanilla); }

/* ----- Centered text block ----- */
.intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* ----- Page nav cards (Boutiques / Ebook / Founder) — narrower + less tall ----- */
.page-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
  max-width: 880px;
  margin: 0 auto;
}

.page-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  padding: 22px 20px;
  color: var(--c-vanilla);
  transition: transform .5s ease;
}

.page-card:hover { transform: translateY(-4px); opacity: 1; }

.page-card__bg {
  position: absolute;
  inset: 0;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  transition: transform .8s ease;
  z-index: 0;
}
.page-card:hover .page-card__bg { transform: scale(1.04); }

.page-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61,53,45,0) 30%, rgba(61,53,45,0.55) 100%);
}

.page-card__content { position: relative; z-index: 1; }

.page-card__eyebrow {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 8px;
  opacity: 0.92;
}

.page-card__title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.05;
  margin: 0;
}

/* Page-card backgrounds — image overlays a gradient fallback */
.page-card--boutiques .page-card__bg { background-image: var(--img, none), linear-gradient(170deg, #FBF7EE 0%, #E5DCC8 100%); }
.page-card--ebook     .page-card__bg { background-image: var(--img, none), linear-gradient(170deg, #E5DCC8 0%, #C9B597 100%); }
.page-card--founder   .page-card__bg { background-image: var(--img, none), linear-gradient(170deg, #C9B597 0%, #8A7F70 100%); }

/* ----- Boutique list — 5-col grid on desktop (5×2 = all 10 in two rows) ----- */
.boutiques {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px 18px;
}

.boutique__media {
  aspect-ratio: 4 / 5;
  background-color: var(--c-sand);
  background-image: var(--img, none), linear-gradient(170deg, #FBF7EE 0%, #C9B597 100%);
  background-size: cover, cover;
  background-position: center, center;
  margin-bottom: 12px;
}

.boutique__name {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--c-text);
  margin: 0 0 4px;
  line-height: 1.15;
}

.boutique__addr {
  font-size: 10px;
  color: var(--c-text-soft);
  line-height: 1.55;
  margin: 0 0 6px;
  white-space: pre-line;
}

.boutique__link {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text);
  border-bottom: 0.5px solid var(--c-border);
  padding-bottom: 2px;
  transition: border-color .25s ease;
}
.boutique__link:hover { border-color: var(--c-text); opacity: 1; }

/* Mid laptop — 4 columns */
@media (max-width: 1280px) {
  .boutiques { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet — 3 columns */
@media (max-width: 1000px) {
  .boutiques { grid-template-columns: repeat(3, 1fr); }
}

/* ----- Ebook layout — original two-column ----- */
.ebook {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.ebook__cover {
  aspect-ratio: 3 / 4;
  background-color: var(--c-cream);
  background-image: var(--img, none);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.ebook__cover {
  aspect-ratio: 3 / 4;
  background-color: var(--c-cream);
  background-image: var(--img, none);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.ebook__title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.0;
  margin: 8px 0 14px;
  color: var(--c-text);
  letter-spacing: -0.015em;
}

.ebook__byline {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 18px;
}

/* Mobile — stack ebook 2-col vertically */
@media (max-width: 760px) {
  .ebook { grid-template-columns: 1fr; gap: 32px; }
}

.ebook__features-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 22px 0 12px;
  font-weight: 400;
}

.ebook__features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.ebook__features li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.55;
  margin-bottom: 8px;
}

.ebook__features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--c-muted);
}

.ebook__closer {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--c-text-soft);
  line-height: 1.5;
  margin: 18px 0 22px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--c-text);
  color: var(--c-vanilla);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 20px;
  transition: background .25s ease;
}
.btn:hover { background: #1F1A14; opacity: 1; }
.btn--outline {
  background: transparent;
  color: var(--c-text);
  border: 0.5px solid var(--c-border);
}
.btn--outline:hover { background: var(--c-text); color: var(--c-vanilla); }

/* ----- Founder ----- */
.founder {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.founder__media {
  aspect-ratio: 4 / 5;
  background-color: var(--c-sand);
  background-image: var(--img, none), linear-gradient(160deg, #E5DCC8 0%, #C9B597 100%);
  background-size: cover, cover;
  background-position: center, center;
}

.founder__quote {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--c-text);
  margin: 24px 0 0;
}

.founder__sign {
  margin-top: 28px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-text);
}

/* ----- Mid-section signup band ----- */
.band-signup {
  background: var(--c-vanilla);
  text-align: center;
  padding: clamp(56px, 9vw, 96px) var(--gutter);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--c-cream);
  border-top: 0.5px solid var(--c-border-soft);
  padding: clamp(48px, 6vw, 72px) var(--gutter);
  text-align: center;
}

.footer__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  line-height: 0;
}
.footer__logo img,
.footer__logo svg {
  height: 32px;
  width: auto;
  display: block;
}

.footer__rule {
  width: 48px;
  height: 1px;
  background: var(--c-border-soft);
  margin: 18px auto 22px;
  border: 0;
}

.footer__links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin: 0 auto 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-text);
}
.footer__links a {
  color: var(--c-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s ease;
}
.footer__links a:hover { opacity: .55; }
.footer__sep {
  width: 3px;
  height: 3px;
  background: var(--c-text-soft);
  border-radius: 50%;
  display: inline-block;
}
.footer__icon {
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

.footer__personal {
  font-family: var(--f-display, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--c-text-soft);
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  opacity: .8;
  transition: opacity .25s ease;
}
.footer__personal a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--c-text-soft);
  padding-bottom: 1px;
}
.footer__personal:hover { opacity: 1; }
.footer__personal a:hover { color: var(--c-text); border-bottom-color: var(--c-text); }

.footer__small {
  font-size: 10px;
  color: var(--c-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 520px) {
  .footer__links { flex-direction: column; gap: 12px; }
  .footer__sep { display: none; }
}

/* ============================================
   Responsive — mobile
   ============================================ */
@media (max-width: 760px) {
  body { font-size: 14px; }

  .nav {
    padding: 18px var(--gutter);
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--c-cream);
    border-bottom: 0.5px solid var(--c-border-soft);
    padding: 18px 0;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 14px var(--gutter);
    text-align: center;
  }

  .nav__cta { display: none; }
  .nav.is-open .nav__cta {
    display: block;
    position: absolute;
    top: calc(100% + 280px);
    left: 50%;
    transform: translateX(-50%);
  }

  .nav__toggle { display: flex; }
  .nav__logo img,
  .nav__logo svg { height: 22px; }
  .footer__logo img,
  .footer__logo svg { height: 26px; }

  .page-cards { grid-template-columns: 1fr; }
  .page-card { aspect-ratio: 4 / 5; }

  /* Mobile crops — ebook shows person in middle, founder shows face at top */
  .page-card--ebook .page-card__bg { background-position: center; }
  .page-card--founder .page-card__bg { background-position: center 10%; }

  .boutiques { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .boutique__name { font-size: 16px; }
  .boutique__addr { font-size: 10px; }

  .ebook,
  .founder {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .signup { flex-direction: column; gap: 10px; }
  .signup__btn { width: 100%; padding: 16px; }

  .footer__social { flex-wrap: wrap; gap: 14px 22px; }
}

/* ============================================
   Page-specific layouts
   ============================================ */

/* Inner page hero — minimal padding, sits right under header */
.page-hero {
  padding: clamp(6px, 1vw, 14px) var(--gutter) clamp(4px, 0.8vw, 10px);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero__title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.0;
  color: var(--c-text);
  margin: 14px 0 0;
}

/* Tighter section padding around the boutiques grid */
.page-hero + .section { padding-top: clamp(12px, 2vw, 24px); }
