/* Elmejor. Ivory, onyx and brass were given in the brief; the crimson lives only in Elmejor's own photos. */
:root {
  --ivory: #F3EDE3;
  --onyx: #141210;
  --brass: #B08D57;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --gut: clamp(1rem, 4vw, 3.5rem);
  --max: 1240px;

  --page: #F3EDE3;
  --head-bg: rgb(243 237 227 / .94);
  --head-ink: #141210;
  --head-line: rgb(20 18 16 / .14);
  --focus: #141210;

  /* section rooms, light */
  --hero-bg: #F3EDE3; --hero-ink: #141210; --hero-mu: #5A5146; --hero-ac: #7A5D30; --hero-bb: #141210; --hero-bi: #F3EDE3;
  --sc-bg: #1A1714;   --sc-ink: #F3EDE3;   --sc-mu: #B3A898;   --sc-ac: #C9A66C;   --sc-bb: #C9A66C;   --sc-bi: #141210;
  --or-bg: #FBF8F3;   --or-ink: #141210;   --or-mu: #5A5146;   --or-ac: #7A5D30;   --or-bb: #141210;   --or-bi: #F3EDE3;
  --te-bg: #E6D8BE;   --te-ink: #141210;   --te-mu: #4D4130;   --te-ac: #6A4E24;   --te-bb: #141210;   --te-bi: #F3EDE3;
  --de-bg: #DCD8D0;   --de-ink: #141210;   --de-mu: #4C463E;   --de-ac: #6A4E24;   --de-bb: #141210;   --de-bi: #F3EDE3;
  --cl-bg: #B08D57;   --cl-ink: #141210;   --cl-mu: #2A2117;   --cl-ac: #141210;   --cl-bb: #141210;   --cl-bi: #F3EDE3;
  --fo-bg: #141210;   --fo-ink: #F3EDE3;   --fo-mu: #B3A898;   --fo-ac: #C9A66C;   --fo-bb: #C9A66C;   --fo-bi: #141210;
}

:root[data-theme="dark"] {
  --page: #141210;
  --head-bg: rgb(20 18 16 / .94);
  --head-ink: #F1EADF;
  --head-line: rgb(241 234 223 / .12);
  --focus: #E4C58F;

  --hero-bg: #141210; --hero-ink: #F1EADF; --hero-mu: #B0A596; --hero-ac: #C9A66C; --hero-bb: #C9A66C; --hero-bi: #141210;
  --sc-bg: #211D19;   --sc-ink: #F1EADF;   --sc-mu: #B3A898;   --sc-ac: #C9A66C;   --sc-bb: #C9A66C;   --sc-bi: #141210;
  --or-bg: #1C1915;   --or-ink: #F1EADF;   --or-mu: #B0A596;   --or-ac: #C9A66C;   --or-bb: #F1EADF;   --or-bi: #141210;
  --te-bg: #2C241A;   --te-ink: #F1E6D2;   --te-mu: #C7B597;   --te-ac: #DAB87F;   --te-bb: #DAB87F;   --te-bi: #141210;
  --de-bg: #272824;   --de-ink: #ECE6DC;   --de-mu: #ADA79C;   --de-ac: #C9A66C;   --de-bb: #C9A66C;   --de-bi: #141210;
  --cl-bg: #C4A26B;   --cl-ink: #141210;   --cl-mu: #2E241A;   --cl-ac: #141210;   --cl-bb: #141210;   --cl-bi: #F1EADF;
  --fo-bg: #0D0C0A;   --fo-ink: #F1EADF;   --fo-mu: #A69B8C;   --fo-ac: #C9A66C;   --fo-bb: #C9A66C;   --fo-bi: #141210;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--hero-ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: .75rem 1rem; background: var(--onyx); color: var(--ivory); }
.skip:focus { top: 1rem; }

/* each section is a room: it sets its own surface tokens */
main > section, .site-foot {
  background: var(--s-bg);
  color: var(--s-ink);
  --focus-ring: var(--s-ink);
}
main > section :focus-visible, .site-foot :focus-visible { outline-color: var(--s-ink); }
.s-hero     { --s-bg: var(--hero-bg); --s-ink: var(--hero-ink); --s-mu: var(--hero-mu); --s-ac: var(--hero-ac); --s-bb: var(--hero-bb); --s-bi: var(--hero-bi); }
.s-scents   { --s-bg: var(--sc-bg);   --s-ink: var(--sc-ink);   --s-mu: var(--sc-mu);   --s-ac: var(--sc-ac);   --s-bb: var(--sc-bb);   --s-bi: var(--sc-bi); }
.s-order    { --s-bg: var(--or-bg);   --s-ink: var(--or-ink);   --s-mu: var(--or-mu);   --s-ac: var(--or-ac);   --s-bb: var(--or-bb);   --s-bi: var(--or-bi); }
.s-testers  { --s-bg: var(--te-bg);   --s-ink: var(--te-ink);   --s-mu: var(--te-mu);   --s-ac: var(--te-ac);   --s-bb: var(--te-bb);   --s-bi: var(--te-bi); }
.s-delivery { --s-bg: var(--de-bg);   --s-ink: var(--de-ink);   --s-mu: var(--de-mu);   --s-ac: var(--de-ac);   --s-bb: var(--de-bb);   --s-bi: var(--de-bi); }
.s-close    { --s-bg: var(--cl-bg);   --s-ink: var(--cl-ink);   --s-mu: var(--cl-mu);   --s-ac: var(--cl-ac);   --s-bb: var(--cl-bb);   --s-bi: var(--cl-bi); }
.site-foot  { --s-bg: var(--fo-bg);   --s-ink: var(--fo-ink);   --s-mu: var(--fo-mu);   --s-ac: var(--fo-ac);   --s-bb: var(--fo-bb);   --s-bi: var(--fo-bi); }

/* ---------- wordmark ---------- */
.wordmark {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: flex-end;
  min-height: 44px;
  padding-top: .45em;
}
.wordmark .o { position: relative; display: inline-block; }
.wordmark .o svg {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: .58em;
  height: .24em;
  margin-bottom: -.42em;
  transform: translateX(-50%);
  fill: currentColor;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .5rem var(--gut);
  background: var(--head-bg);
  color: var(--head-ink);
  border-bottom: 1px solid var(--head-line);
}
.nav-wide { display: none; gap: 2rem; margin-left: auto; }
.nav-wide a, .nav-menu nav a {
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-wide a:hover { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.head-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.theme-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--head-line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.theme-btn .moon { display: none; fill: currentColor; stroke: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.theme-btn:focus-visible { outline-color: var(--focus); }


.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none;
  min-height: 44px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--head-line);
  border-radius: 22px;
  font-weight: 500;
  font-size: .9375rem;
  cursor: pointer;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  min-width: 14rem;
  padding: .5rem 1.25rem;
  display: grid;
  background: var(--page);
  border: 1px solid var(--head-line);
  box-shadow: 0 18px 40px rgb(20 18 16 / .16);
}
.nav-menu nav a { border-bottom: 1px solid var(--head-line); }
.nav-menu nav a:last-child { border-bottom: 0; }

/* ---------- shared bits ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  background: var(--s-bb, var(--onyx));
  color: var(--s-bi, var(--ivory));
  border-radius: 2px;
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { box-shadow: 0 0 0 1px var(--s-bb), inset 0 0 0 2px var(--s-bi); }
.btn:active { transform: translateY(1px); }
.site-head .btn { background: var(--head-ink); color: var(--page); min-height: 44px; padding: 0 1.1rem; }
.site-head .btn-head { display: none; }

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .35em;
  text-decoration-thickness: 1px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* image windows: crop a region of a 640px post at no more than ~1.3x */
.crop {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--w) / var(--h);
}
.crop img {
  position: absolute;
  max-width: none;
  width: calc(640 / var(--w) * 100%);
  height: auto;
  left: calc(var(--x) / var(--w) * -100%);
  top: calc(var(--y) / var(--h) * -100%);
}

/* ---------- hero ---------- */
.s-hero {
  display: grid;
  gap: 2.75rem;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gut) clamp(3.5rem, 8vw, 6.5rem);
  max-width: none;
}
.hero-copy { max-width: 36rem; }
.s-hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);
  line-height: 1.02;
  font-variation-settings: "opsz" 96;
  font-weight: 500;
}
.lede { margin-top: 1.5rem; max-width: 30rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--s-mu); }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; }

.hero-visual {
  margin: 0;
  position: relative;
  width: min(100%, 340px);
  justify-self: center;
  padding: 0 0 0 1.75rem;
}
.hero-frame {
  width: 100%;
  outline: 1px solid var(--brass);
  outline-offset: 10px;
}
.swatch {
  position: absolute;
  width: 78px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--s-bg);
}
.sw-a { left: 0; top: 18%; }
.sw-b { left: 1.75rem; top: calc(18% + 92px); width: 64px; }
.hero-visual figcaption {
  margin-top: 1.4rem;
  font-size: .875rem;
  color: var(--s-mu);
  max-width: 19rem;
}

/* ---------- scents ---------- */
.s-scents {
  padding: clamp(4rem, 9vw, 8rem) var(--gut);
  display: grid;
  gap: 3rem;
}
.scents-intro h2 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1.05; font-variation-settings: "opsz" 72; }
.scents-intro p { margin-top: 1.25rem; max-width: 30rem; color: var(--s-mu); }
.scents-frame { display: none; }

.scent-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgb(201 166 108 / .35);
}
.scent-index li {
  display: grid;
  grid-template-columns: 2.2rem auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgb(201 166 108 / .18);
}
.num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--s-ac);
  font-variant-numeric: lining-nums;
}
.pair { display: flex; }
.dot {
  width: 56px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--s-bg);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.dot + .dot { margin-left: -14px; }
.scent-index li:hover .dot + .dot { transform: translateX(10px); }
.scent-index p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  line-height: 1.35;
  font-variation-settings: "opsz" 24;
}

/* ---------- ordering ---------- */
.s-order {
  padding: clamp(4rem, 9vw, 7.5rem) var(--gut) clamp(4rem, 8vw, 6.5rem);
  display: grid;
  gap: 2.5rem;
  justify-items: start;
}
.s-order h2 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1.05; font-variation-settings: "opsz" 72; max-width: 12ch; }
.thread {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 46rem;
  display: grid;
  counter-reset: msg;
}
.thread li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .75rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgb(122 93 48 / .28);
}
.thread li:last-child { border-bottom: 1px solid rgb(122 93 48 / .28); }
.who {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--s-ac);
  padding-top: .35rem;
}
.thread p { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); line-height: 1.35; font-variation-settings: "opsz" 36; }
.thread q { font-style: italic; quotes: "\201C" "\201D"; }
.thread .note { display: block; margin-top: .5rem; font: 400 .875rem/1.5 var(--sans); color: var(--s-mu); }
.thread .us p { color: var(--s-ink); }
.order-alt { color: var(--s-mu); max-width: 34rem; }
.order-alt a { text-underline-offset: .25em; color: var(--s-ink); }

/* ---------- testers ---------- */
.s-testers {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}
.testers-copy h2 { font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.9rem); line-height: 1.04; font-variation-settings: "opsz" 72; max-width: 11ch; }
.testers-copy p { margin-top: 1.25rem; max-width: 30rem; color: var(--s-mu); }
.testers-copy p:first-of-type { color: var(--s-ink); font-size: 1.15rem; }
.highlights h3 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; letter-spacing: .02em; }
.highlights ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 1.25rem .75rem;
  max-width: 34rem;
}
.highlights a {
  display: grid;
  justify-items: center;
  gap: .55rem;
  text-decoration: none;
  padding: .25rem 0;
}
.ring {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--s-ac);
  box-shadow: inset 0 0 0 4px var(--s-bg), inset 0 0 0 5px rgb(20 18 16 / .14);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  transition: transform .25s ease, background-color .25s ease;
}
.highlights a:hover .ring { transform: translateY(-2px); background: rgb(255 255 255 / .22); }
.hl-label { font-size: .875rem; font-weight: 500; text-align: center; }
.hl-note { margin-top: 1.5rem; font-size: .875rem; color: var(--s-mu); }

/* ---------- delivery ---------- */
.s-delivery {
  padding: clamp(4rem, 10vw, 8.5rem) var(--gut);
  display: grid;
  gap: 2.25rem;
}
.s-delivery h2 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.6rem); line-height: 1; font-variation-settings: "opsz" 96; max-width: 14ch; }
.emirates {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgb(106 78 36 / .35);
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + .7vw, 1.6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1.5rem;
}
@media (min-width: 1080px) {
  .emirates { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 1rem; }
  .emirates li:not(:last-child)::after { content: "/"; font-style: normal; color: var(--s-ac); margin-left: 1rem; }
}
.deliv-note { color: var(--s-mu); max-width: 30rem; }

/* ---------- closing band ---------- */
.s-close {
  padding: clamp(4rem, 9vw, 7rem) var(--gut);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2rem;
}
.close-cap { width: 54px; height: 22px; fill: var(--s-ink); }
.s-close h2 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.6rem); line-height: 1.08; max-width: 18ch; font-variation-settings: "opsz" 72; }

/* ---------- footer ---------- */
.site-foot {
  padding: 3rem var(--gut) 2.5rem;
  display: grid;
  gap: 1.75rem;
}
.foot-brand p { margin-top: .75rem; color: var(--s-mu); font-size: .9375rem; max-width: 26rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: .3em; }
.credit { font-size: .8125rem; color: var(--s-mu); }
.credit a { color: var(--s-ink); text-underline-offset: .25em; }

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  .s-hero { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .hero-visual { justify-self: end; }
  .scent-index { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .s-order { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 3rem; align-items: start; }
  .s-order h2 { grid-row: span 3; position: sticky; top: 6rem; }
  .s-order .btn { grid-column: 2; }
  .order-alt { grid-column: 2; }
  .s-testers { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: end; }
  .emirates { grid-template-columns: repeat(4, auto); justify-content: start; column-gap: 2.5rem; }
  .site-foot { grid-template-columns: 1fr auto; align-items: end; }
  .credit { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid rgb(201 166 108 / .2); }
}

/* ---------- desktop ---------- */
@media (min-width: 1080px) {
  .nav-wide { display: flex; }
  .nav-wide + .head-actions { margin-left: 0; }
  .nav-menu { display: none; }
  .site-head .btn-head { display: inline-flex; }
  .s-hero, .s-scents, .s-order, .s-testers, .s-delivery {
    padding-left: max(var(--gut), calc((100vw - var(--max)) / 2));
    padding-right: max(var(--gut), calc((100vw - var(--max)) / 2));
  }
  .s-hero { grid-template-columns: 1.25fr .75fr; min-height: min(78vh, 760px); }
  .hero-visual { width: 360px; margin-right: 2rem; }
  .s-scents { grid-template-columns: 22rem 1fr; column-gap: 5rem; align-items: start; }
  .scents-intro { position: sticky; top: 6rem; }
  .scents-frame {
    display: block;
    width: 220px;
    margin-top: 2.75rem;
    outline: 1px solid rgb(201 166 108 / .55);
    outline-offset: 8px;
  }
  .s-delivery { grid-template-columns: 1.1fr 1fr; column-gap: 4rem; align-items: end; }
  .emirates { grid-column: 1 / -1; grid-row: 2; }
  .deliv-note { grid-column: 2; grid-row: 1; justify-self: end; }
  .s-testers { column-gap: 5rem; }
}

/* ---------- one signature entrance: the hero photo is unveiled from the cap down ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-frame img { animation: unveil 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .swatch { animation: settle .8s .55s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
