/* ==========================================================
   Boujee Baby · Sensory School & Spa
   Colours, fonts and spacing are all set in :root below.
   ========================================================== */

:root {
  --cream: #F8F3EC;
  --paper: #FFFCF7;
  --blush: #EBCFC4;
  --berry: #8A3A47;        /* the one bold colour */
  --berry-dark: #6E2A36;
  --gold: #C4A16A;
  --ink: #3A2F2C;
  --ink-soft: #6B5D57;
  --night: #2B2430;
  --line: rgba(58, 47, 44, .14);

  --font-display: "Cormorant Garamond", Garamond, Georgia, serif;
  --font-body: Jost, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

::selection { background: var(--blush); }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  font-size: .85rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

.h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.lead { font-size: 1.15rem; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  padding: .95rem 1.7rem;
  border-radius: 4px;
  background: var(--berry);
  color: #fff;
  font: 500 .95rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s;
}
.btn:hover { background: var(--berry-dark); }
.btn--sm { padding: .7rem 1.1rem; font-size: .85rem; }

.link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--berry);
  text-underline-offset: .3em;
}
.link:hover { color: var(--berry); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }

.brand { display: inline-flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.7rem; }
.brand__tag { margin-top: .25rem; font-size: .7rem; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { font-size: .92rem; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--berry); }

.nav-toggle { display: none; }

@media (max-width: 899px) {
  .site-nav { gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }

  .js .nav-toggle {
    display: inline-grid; place-items: center;
    width: 2.75rem; height: 2.75rem; padding: 0;
    border: 1px solid var(--line); border-radius: 4px;
    background: transparent; color: var(--ink); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    content: ""; display: block; width: 1.1rem; height: 1.5px; background: currentColor;
    transition: transform .2s, background-color .2s;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before { position: absolute; top: -5px; left: 0; }
  .nav-toggle__bars::after { position: absolute; top: 5px; left: 0; }
  [aria-expanded="true"] > .nav-toggle__bars { background: transparent; }
  [aria-expanded="true"] > .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
  [aria-expanded="true"] > .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

  .js .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 var(--gutter) 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .js .site-nav .btn { margin-top: 1.25rem; text-align: center; padding-block: 1rem; }
}

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

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--section-y); }
.hero__inner { display: grid; gap: 3rem; align-items: center; }

.hero__title {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.6rem, 10vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.01em;
}
.hero__sub {
  display: block;
  margin-top: .9rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink-soft);
}
.hero__lede {
  max-width: 32rem;
  margin: 1.75rem 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.6rem);
  line-height: 1.4;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero__where { margin-top: 2rem; font-size: .92rem; color: var(--ink-soft); }

.hero__art { width: min(100%, 420px); justify-self: center; }

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; }
  .hero__art { justify-self: end; }
}

/* ---------- The Signature Collection ---------- */

.collection__inner { display: grid; gap: 3rem; align-items: start; }
.collection__copy .h2 { margin-bottom: 1.5rem; }
.collection__copy p:not(.lead):not(.pull) { color: var(--ink-soft); }
.pull {
  margin: 1.75rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: var(--berry);
}

.includes { padding: 2rem clamp(1.25rem, 3vw, 2.25rem); background: var(--paper); border: 1px solid var(--line); }
.includes__title { margin-bottom: 1rem; font-size: 1.6rem; }
.includes li {
  position: relative;
  padding: .7rem 0 .7rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.5;
}
.includes li::before {
  content: "";
  position: absolute; left: 0; top: 1.25rem;
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--berry);
}

@media (min-width: 900px) {
  .collection__inner { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
}

/* ---------- Weekly themes ---------- */

.weeks { background: var(--paper); border-block: 1px solid var(--line); }
.weeks__title { max-width: 40rem; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.week-list { display: grid; gap: 2.5rem 3.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.week { display: grid; grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: start; }
.week__art { aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.week__art svg { width: 100%; height: 100%; }
.week__meta { margin-bottom: .35rem; font-size: .85rem; font-weight: 500; color: var(--berry); }
.week h3 { margin-bottom: .4rem; font-size: 1.65rem; }
.week__text p:last-child { color: var(--ink-soft); font-size: 1rem; }

@media (min-width: 560px) {
  .week { grid-template-columns: 9.5rem 1fr; gap: 1.75rem; }
}
@media (min-width: 960px) {
  .week-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- The finale ---------- */

.finale { padding-block: var(--section-y); background: var(--night); color: var(--cream); }
.finale__inner { display: grid; gap: 3rem; align-items: start; }
.finale .h2 { margin-bottom: 1.5rem; }
.week__meta--light { color: var(--gold); }
.finale__lede { font-family: var(--font-display); font-size: clamp(1.35rem, 2.3vw, 1.6rem); line-height: 1.4; }
.finale__copy p:last-child { color: rgba(248, 243, 236, .78); }

.treatments { padding: 2rem clamp(1.25rem, 3vw, 2.25rem); border: 1px solid rgba(248, 243, 236, .22); }
.treatments h3 { margin-bottom: .75rem; font-size: 1.6rem; color: var(--gold); }
.treatments li { padding: .65rem 0; border-top: 1px solid rgba(248, 243, 236, .16); font-family: var(--font-display); font-size: 1.35rem; }
.treatments p { margin-top: .75rem; font-size: .95rem; color: rgba(248, 243, 236, .72); }

.finale__signoff {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

@media (min-width: 900px) {
  .finale__inner { grid-template-columns: 1.1fr .9fr; gap: 5rem; }
}

/* ---------- Your guides ---------- */

.guides__inner { display: grid; gap: 1.5rem 4rem; }
.guides__statement { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.55rem); line-height: 1.45; }
.guide-list { display: grid; gap: 1.5rem; margin-top: 2.25rem; }
.guide-list > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.guide-list dt { font-weight: 500; }
.guide-list dd { color: var(--ink-soft); }

@media (min-width: 900px) {
  .guides__inner { grid-template-columns: 1fr 2fr; }
  .guide-list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Book ---------- */

.book { padding-block: clamp(3rem, 7vw, 4.5rem); background: var(--blush); }
.book__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.book .h2 { margin-bottom: .5rem; }
.book__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

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

.site-footer { padding: 2.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer__meta { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Motion: just the gentle sway of the hero mobile ---------- */

.sway { transform-box: view-box; animation: sway 7s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sway { animation: none; }
}
