/* Beauty BLVD showcase
   Palette, type hierarchy and usage rules follow Beauty BLVD Brand Guidelines v9
   (Oct 2018): Rose Quartz leads, Charcoal never dominates, no gradients, no
   shadows over colour, no filters on photography, and images are never housed
   inside a shape (hence square corners on every <img>). */

:root {
  --rose: #f7c9c9;
  --rose-tint: #fdeeee;
  --pink: #e31c79;
  --charcoal: #282829;
  --white: #fff;
  --grey: #6b6b6d;
  --hairline: rgba(40, 40, 41, .14);

  --measure: 62ch;
  --wrap: 84rem;
  --gap: clamp(1rem, 3vw, 2rem);
  --pad: clamp(1.25rem, 5vw, 4.5rem);

  /* Neue Plak is the brand face and is not web-licensed. Archivo carries a
     width axis (62-125) so it can hold both the extended and the compressed
     headline styles the guidelines call for. Source Sans is the real brand
     secondary and is open source. */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--pink); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

/* Full-bleed bands whose content stops growing at --wrap. */
.site-head, .page-head, .hero, .pillars, .band, .cta-band, .partners,
.site-foot {
  padding-inline: max(var(--pad), calc((100% - var(--wrap)) / 2));
}

/* Visually hidden. The !important keeps the honeypot input from picking up
   .lead input { width: 100% } and blowing the layout out sideways. */
.vh {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--pink); color: var(--white); padding: .75rem 1rem; z-index: 20;
}
.skip:focus { left: 0; }

/* ---------- type hierarchy ---------- */

.extended {
  font-family: var(--display);
  font-variation-settings: "wdth" 125, "wght" 800;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(.68rem, .6rem + .3vw, .8rem);
  margin: 0 0 .9rem;
}

.compressed {
  font-family: var(--display);
  font-variation-settings: "wdth" 68, "wght" 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .92;
  margin: 0;
  font-size: clamp(2.3rem, 1.2rem + 5.2vw, 5rem);
  text-wrap: balance;
}

h2, h3, h4 { font-family: var(--display); text-transform: uppercase; }
h3, h4 { font-variation-settings: "wdth" 100, "wght" 800; letter-spacing: .08em; }
h4 { font-size: .8rem; letter-spacing: .16em; }

.lede { max-width: var(--measure); font-size: 1.06em; }
.small { font-size: .85rem; }

.section-title {
  color: var(--pink);
  font-size: clamp(.72rem, .64rem + .3vw, .85rem);
  padding: 0;
  margin: 0 0 1.4rem;
}

/* ---------- header ---------- */

/* Below 62rem the header is a two-row grid: logo and picker share the top row,
   the nav slides beneath. head-right dissolves via display:contents. */
.site-head {
  position: sticky; top: 0; z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  row-gap: .55rem;
  padding-block: .7rem;
  background: var(--rose);
  border-bottom: 1px solid var(--hairline);
}
.head-right { display: contents; }
.cur-picker { grid-column: 2; grid-row: 1; justify-self: end; }
.site-head nav { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.brand { display: block; grid-column: 1; grid-row: 1; }
.brand img { width: clamp(126px, 24vw, 172px); }

@media (min-width: 62rem) {
  .site-head { display: flex; flex-wrap: nowrap; align-items: center; gap: 1.5rem; padding-block: .9rem; }
  .brand { flex: 0 0 auto; }
  .head-right {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 1.75rem;
    flex: 1 1 auto; justify-content: flex-end; min-width: 0;
  }
  .head-right nav { order: -1; flex: 0 1 auto; }
}

/* ---------- currency picker ---------- */

.cur-picker { display: flex; flex: 0 0 auto; border: 1px solid var(--charcoal); }
.cur-picker button {
  font-family: var(--display); font-size: .62rem;
  font-variation-settings: "wdth" 100, "wght" 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .42rem .68rem;
  background: transparent; color: var(--charcoal);
  border: 0; border-right: 1px solid var(--charcoal);
  cursor: pointer;
}
.cur-picker button:last-child { border-right: 0; }
.cur-picker button[aria-pressed="true"] { background: var(--charcoal); color: var(--white); }
.cur-picker button:hover:not([aria-pressed="true"]) { color: var(--pink); }

/* Every price ships all three currencies; the root data-cur attribute picks one,
   so the correct figure still shows with JS switched off. */
.c { display: none; }
html[data-cur="gbp"] .c-gbp,
html[data-cur="aed"] .c-aed,
html[data-cur="usd"] .c-usd { display: inline; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }

.nav {
  display: flex; gap: .35rem 1.7rem;
  list-style: none; margin: 0; padding: 0 0 .2rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 700;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .7rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.nav li { flex: 0 0 auto; }
.nav a { color: var(--charcoal); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--pink); }
.nav a.current { color: var(--pink); border-bottom: 2px solid var(--pink); padding-bottom: 2px; }
@media (min-width: 62rem) { .nav { padding-bottom: 0; overflow: visible; } }

/* ---------- product tiles ----------
   Product shots sit on white sweeps, so every tile is the same flat white
   square with a hairline rose border and the product held uncropped inside. */

.card img, .swatch img, .shots img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  background: var(--white);
  border: 1px solid var(--rose);
  padding: 6%;
  transition: opacity .15s ease;
}

/* Grid children default to min-width:auto, which lets an oversized image push
   the whole document wider than the viewport. Pin them to zero. */
.hero > *, .range-meta > *, .pillars > *, .partner-grid > *, .foot-cols > *,
.product > *, .page-head.has-img > * { min-width: 0; }

/* ---------- hero ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 5vw, 4rem);
  background: var(--rose);
}
.hero-copy { align-self: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-img figcaption {
  margin-top: .5rem; font-family: var(--display); font-size: .6rem;
  font-variation-settings: "wdth" 100, "wght" 700;
  text-transform: uppercase; letter-spacing: .14em;
}
.hero-img figcaption a { color: var(--charcoal); text-decoration: none; }
.hero-img figcaption a:hover { color: var(--pink); }
.hero-img { margin: 0; }

@media (min-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
  .hero-img { max-width: 34rem; width: 100%; justify-self: end; }
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 700;
  text-transform: uppercase; letter-spacing: .12em; font-size: .75rem;
  padding: .85rem 1.5rem;
  background: var(--pink); color: var(--white); text-decoration: none;
  border: 2px solid var(--pink);
  cursor: pointer;
}
.btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.btn.ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn.ghost:hover { background: var(--charcoal); color: var(--white); }

/* ---------- pillars ---------- */

.pillars {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--hairline);
}
.pillar .num { color: var(--pink); margin: 0 0 .5rem; }
.pillar h3 { font-size: .85rem; letter-spacing: .16em; margin: 0 0 .4rem; }
.pillar p { margin: 0; max-width: 34ch; }
@media (min-width: 46rem) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* ---------- page furniture ---------- */

.page-head {
  padding-block: clamp(2rem, 5vw, 3.75rem);
  background: var(--rose);
}
.page-head h1 { margin-bottom: 1rem; }
.page-head .extended a { color: var(--charcoal); }

.page-head.has-img { display: grid; gap: var(--gap); }
.head-img { margin: 0; }
.head-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 52rem) {
  .page-head.has-img {
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }
}

.band { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.band.alt { background: var(--rose-tint); }
.band.slim { padding-block: 1.25rem 3rem; }

.cta-band {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--rose);
}
.cta-band h2 { font-size: clamp(1.9rem, 1rem + 4vw, 3.4rem); margin: 0 0 1rem; }
.cta-band p { margin-bottom: 1.5rem; }

.more { margin-top: 2.25rem; }

/* Keep anchored sections clear of the sticky header. */
.band, .page-head, .partners, #top { scroll-margin-top: 6.5rem; }

ul.plain { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
ul.plain li { padding: .7rem 0; border-top: 1px solid var(--rose); }
ul.plain li:first-child { border-top: 0; }

ul.inline {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--display); font-size: .72rem;
  font-variation-settings: "wdth" 100, "wght" 700;
  text-transform: uppercase; letter-spacing: .1em;
}

/* ---------- range cards ---------- */

.cards {
  display: grid; gap: clamp(1.25rem, 3vw, 2rem) var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}
.card { text-decoration: none; color: inherit; display: block; }
.card h3 { margin: .8rem 0 .2rem; font-size: .8rem; letter-spacing: .13em; }
.card .price { margin: 0; font-size: .92rem; color: var(--pink); font-weight: 600; }
.card .meta { margin: .2rem 0 0; font-size: .8rem; color: var(--grey); }
.card:hover img { opacity: .85; }
.card:hover h3 { color: var(--pink); }
.price-line { margin: .2rem 0 0; font-size: .92rem; color: var(--pink); font-weight: 600; }

/* ---------- prices table ---------- */

.prices { border-collapse: collapse; width: 100%; max-width: 26rem; font-size: .95rem; }
.prices th, .prices td { text-align: left; padding: .6rem 0; }
.prices tbody th { font-weight: 600; font-family: var(--body); text-transform: none; padding-right: 1rem; }
.prices tbody tr + tr th, .prices tbody tr + tr td { border-top: 1px solid var(--rose); }
.prices td { text-align: right; color: var(--pink); font-weight: 600; }
.poa { font-style: italic; margin: 0; }

/* ---------- range pages ---------- */

.range-meta {
  display: grid; gap: var(--gap);
}
@media (min-width: 46rem) {
  .range-meta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start; gap: clamp(2rem, 5vw, 5rem);
  }
}

.swatches {
  display: grid; gap: 1.25rem .8rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
}
.swatch { text-decoration: none; color: inherit; display: block; }
.swatch-name {
  display: flex; align-items: center; gap: .45rem;
  margin-top: .5rem; font-size: .84rem; line-height: 1.25;
}
.swatch:hover img { opacity: .85; }
.swatch:hover .swatch-name { color: var(--pink); }

.chip {
  display: inline-block; width: .8rem; height: .8rem; flex: 0 0 auto;
  border: 1px solid var(--hairline);
}
.chip.lg { width: 1.1rem; height: 1.1rem; }
.swatch-note {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--white);
  padding: .5rem .85rem;
  margin: 1.25rem 0 0;
  font-size: .82rem;
}

/* ---------- colourway pages ---------- */

.product { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 60rem) {
  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .product .buy { position: sticky; top: 5.75rem; }
}
.buy .btn { display: block; text-align: center; margin-top: 1.5rem; }
.buy .prose { margin-top: 1.75rem; font-size: .95rem; }

.shots {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
@media (min-width: 60rem) {
  .shots {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 20rem));
    justify-content: start;
  }
}
.shots figure, .shot { margin: 0; }
.shots figcaption {
  margin-top: .45rem; font-family: var(--display); font-size: .6rem;
  font-variation-settings: "wdth" 100, "wght" 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--grey);
}

.prose p { max-width: 60ch; margin: 0; }
.prose p + p { margin-top: .9rem; }

ul.ticks, ol.steps { max-width: 56ch; margin: 0; }
ul.ticks { list-style: none; padding: 0; }
ul.ticks li { padding: .35rem 0 .35rem 1.3rem; position: relative; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .95em;
  width: .5rem; height: .5rem; background: var(--pink);
}
ol.steps { padding-left: 1.2rem; }
ol.steps li { padding: .35rem 0 .35rem .3rem; }
ol.steps li::marker { color: var(--pink); font-weight: 700; }

.pager {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem;
  margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--hairline);
  font-family: var(--display); font-size: .68rem;
  font-variation-settings: "wdth" 100, "wght" 700;
  text-transform: uppercase; letter-spacing: .1em;
}
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* ---------- partners ---------- */

.partners {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--rose);
}
.partners h2 { font-size: clamp(2rem, 1rem + 4.5vw, 4rem); margin: 0 0 1rem; }
.partner-grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  margin: clamp(2rem, 5vw, 3rem) 0 0;
}
.partner-grid h3 { font-size: .8rem; letter-spacing: .16em; color: var(--pink); margin: 0 0 .4rem; }
.partner-grid p { margin: 0; }
@media (min-width: 46rem) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- form ---------- */

.lead {
  background: var(--white);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  max-width: 46rem;
}
.lead .row { display: grid; gap: 0 1.25rem; }
@media (min-width: 46rem) { .lead .row { grid-template-columns: 1fr 1fr; } }
.lead label {
  display: block; margin-bottom: 1.1rem;
  font-family: var(--display); font-size: .66rem;
  font-variation-settings: "wdth" 100, "wght" 700;
  text-transform: uppercase; letter-spacing: .12em;
}
.lead label span { color: var(--pink); }
.lead input, .lead select, .lead textarea {
  display: block; width: 100%; margin-top: .4rem;
  font-family: var(--body); font-size: 1rem;
  padding: .7rem .8rem;
  border: 1px solid var(--charcoal);
  background: var(--white); color: var(--charcoal);
  border-radius: 0;
}
.lead input:focus, .lead select:focus, .lead textarea:focus { border-color: var(--pink); }
.lead textarea { resize: vertical; }
.lead button { margin-top: .5rem; }
.lead button:disabled { opacity: .55; cursor: progress; }
.form-status { min-height: 1.4em; margin: .9rem 0 0; font-weight: 600; }
.form-status.ok { color: #1c7a4a; }
.form-status.bad { color: #b3123f; }

/* ---------- footer ---------- */

.site-foot {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--charcoal);
  color: var(--rose);
}
.foot-mark { width: clamp(140px, 26vw, 210px); margin-bottom: 2.25rem; }
.foot-cols { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 2.25rem; }
.site-foot h4 { color: var(--white); margin: 0 0 .55rem; }
.site-foot p { margin: 0; font-size: .9rem; }
.site-foot a { color: var(--rose); }
.site-foot a:hover { color: var(--white); }
.site-foot .small { color: #cfa9a9; }
.foot-nav { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.foot-nav li { padding: .15rem 0; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
@media (min-width: 46rem) { .foot-cols { grid-template-columns: 1.4fr 1fr 1.2fr; } }
