/* me-base.css — Maison Elowen restyle layer, loaded after Dawn's base.css.
   Rules: one serif (headings, 300/500) + one sans (body, 400/500); 1rem = 10px; colours only via tokens
   (--color-* from me-tokens.liquid and Dawn's rgb(var(--color-*))); square corners; no shadows; motion only
   transform/opacity; secondary grey (--color-stone) only on paper backgrounds. */

/* 1. Utilities (contract §2) */
.me-eyebrow { font-family: var(--font-body-family); font-size: var(--me-size-eyebrow); font-weight: var(--me-weight-body-medium); letter-spacing: var(--me-eyebrow-tracking); text-transform: uppercase; line-height: 1.4; }
.me-display { font-family: var(--font-heading-family); font-weight: var(--me-weight-heading-light); font-size: var(--me-size-display); line-height: 1.02; letter-spacing: -0.01em; }
.me-h2 { font-family: var(--font-heading-family); font-weight: var(--me-weight-heading-light); font-size: var(--me-size-h2); line-height: 1.08; letter-spacing: -0.005em; }
.me-h3 { font-family: var(--font-heading-family); font-weight: var(--me-weight-heading-medium); font-size: var(--me-size-h3); line-height: 1.2; }
.me-body-large { font-family: var(--font-body-family); font-size: calc(var(--me-size-body) * 1.25); line-height: 1.5; font-weight: var(--me-weight-body); }
.me-text-secondary { color: var(--color-stone); }
.me-display em, .me-h2 em, .me-display strong, .me-h2 strong { font-style: italic; font-weight: inherit; }
.me-word { display: inline-block; will-change: transform; }

/* 2. Type scale for Dawn's own headings and body */
body { font-size: var(--me-size-body); line-height: var(--me-line-height-body); letter-spacing: 0; font-variant-numeric: lining-nums; }
h1, .h1, h2, .h2, h3, .h3, h4, .h4, .h0, .hxl, .hxxl, .title { font-family: var(--font-heading-family); letter-spacing: -0.005em; text-wrap: balance; }
h1, .h1 { font-size: var(--me-size-h2); font-weight: var(--me-weight-heading-light); line-height: 1.08; }
.h0, .hxl, .hxxl { font-size: var(--me-size-display); font-weight: var(--me-weight-heading-light); line-height: 1.02; letter-spacing: -0.01em; }
h2, .h2 { font-size: calc(var(--me-size-h2) * 0.8); font-weight: var(--me-weight-heading-light); line-height: 1.1; }
h3, .h3 { font-size: var(--me-size-h3); font-weight: var(--me-weight-heading-medium); line-height: 1.2; }
h4, .h4, h5, .h5 { font-size: 1.8rem; font-weight: var(--me-weight-heading-medium); line-height: 1.25; }
.title-wrapper-with-link .title, .title-wrapper .title { margin-bottom: 0; }
.rte, .rte p { line-height: var(--me-line-height-body); }
.rte p { max-width: 65ch; }
.caption, .caption-with-letter-spacing, .caption-large { font-family: var(--font-body-family); }
.caption-with-letter-spacing { font-size: var(--me-size-eyebrow); letter-spacing: var(--me-eyebrow-tracking); font-weight: var(--me-weight-body-medium); }
.subtitle { font-size: calc(var(--me-size-body) * 1.125); letter-spacing: 0; }
a, .link { text-underline-offset: 0.3em; text-decoration-thickness: 1px; }

/* 3. Layout */
.page-width { max-width: var(--page-width); margin: 0 auto; padding-inline: var(--me-gutter); }
@media screen and (min-width: 750px) { .page-width { padding-inline: var(--me-gutter); } }
.page-width--narrow { max-width: 92rem; }
main[data-template="index"] > .shopify-section.section { padding-block: var(--me-section-space); }
main[data-template="index"] > .shopify-section.section .section-padding, main[data-template="index"] > .shopify-section.section [class*="-padding"] { padding-top: 0; padding-bottom: 0; }
.me-section-wrapper { display: block; }
.title-wrapper-with-link { align-items: baseline; margin-bottom: 3.2rem; }
.title-wrapper-with-link .link-with-icon { font-size: 1.4rem; font-weight: var(--me-weight-body-medium); letter-spacing: 0.02em; }
@media screen and (min-width: 990px) { .title-wrapper-with-link { margin-bottom: 4.8rem; } }

/* 4. Buttons and inputs: one calm button style, sentence case, ≥ 44 px targets, visible focus */
.button, .shopify-challenge__button, .customer button, button.shopify-payment-button__button--unbranded, .shopify-payment-button [role="button"], .cart__dynamic-checkout-buttons [role="button"] {
  font-family: var(--font-body-family); font-size: 1.5rem; font-weight: var(--me-weight-body-medium); letter-spacing: 0.02em; text-transform: none;
  min-height: 4.8rem; padding: 0 2.4rem; border-radius: var(--buttons-radius, 0); transition: opacity 240ms var(--me-ease), transform 240ms var(--me-ease);
}
.button:hover, .shopify-challenge__button:hover, .customer button:hover { opacity: 0.88; }
.button:active { transform: scale(0.97); transition-duration: 90ms; }
.button--secondary { --color-button: var(--color-background); --color-button-text: var(--color-foreground); border: 1px solid rgb(var(--color-foreground)); background: rgb(var(--color-background)); color: rgb(var(--color-foreground)); }
.button--secondary:after { box-shadow: none; }
.button--secondary:hover { opacity: 1; border-width: 2px; }
.button--primary, .me-hero__button.button--primary { background: rgb(var(--color-button)); color: rgb(var(--color-button-text)); }
.button:after { box-shadow: none !important; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.button:focus-visible, .link:focus-visible, .header__icon:focus-visible { outline: 0.2rem solid var(--color-accent); outline-offset: 0.3rem; box-shadow: none; }
.field__input, .select__select, .customer .field input, .customer select { font-family: var(--font-body-family); font-size: 1.5rem; border-radius: var(--inputs-radius, 0); }
.field:after, .select:after, .customer .field:after, .customer select:after { box-shadow: 0 0 0 1px rgba(var(--color-foreground), 0.35); border-radius: 0; }
.field__input:focus-visible ~ .field__label, .field__label { font-family: var(--font-body-family); }

/* 5. Announcement bar and header */
.announcement-bar__message { font-family: var(--font-body-family); font-size: var(--me-size-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; font-weight: var(--me-weight-body-medium); padding: 1.1rem 0; }
.utility-bar { border-bottom: 0; }
.header-wrapper { border-bottom: 1px solid var(--color-mist); }
.header-wrapper--border-bottom { border-bottom: 1px solid var(--color-mist); }
.header-wrapper .header { padding-inline: var(--me-gutter); }
/* Wordmark: the same tracked sans capitals as the bottle label. A logo image replaces it. */
.header__heading-link .h2, .header__heading-link { font-family: var(--font-body-family); font-weight: var(--me-weight-body-medium); font-size: 1.3rem; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; line-height: 1; color: rgb(var(--color-foreground)); }
.header__heading-logo { max-height: 4rem; }
.header__menu-item, .list-menu__item--link { font-family: var(--font-body-family); font-size: 1.4rem; font-weight: var(--me-weight-body-medium); letter-spacing: 0.04em; color: rgb(var(--color-foreground)); }
.header__menu-item:hover span, .list-menu__item--link:hover { text-decoration-thickness: 1px; }
.header__icon, .header__icon--cart { width: 4.4rem; height: 4.4rem; display: inline-flex; align-items: center; justify-content: center; }
.header__icon .icon { width: 2.2rem; height: 2.2rem; }
.header__icon--cart .icon { width: 2.3rem; height: 2.3rem; }
.header__icon--cart { position: relative; }
.cart-count-bubble { background: var(--color-accent); color: var(--color-paper); font-family: var(--font-body-family); font-size: 1rem; width: 1.8rem; height: 1.8rem; position: absolute; top: 0.5rem; right: 0.3rem; bottom: auto; }
@media screen and (min-width: 990px) {
  .header__heading-link .h2 { font-size: 1.6rem; }
  .header__menu-item { padding: 1.2rem 1.6rem; }
}
/* Sticky alone stays at layer 0, so card links scrolled past it painted over the header. */
.section-header { z-index: 5; }
.shopify-section-header-sticky.animate .header-wrapper { background: rgb(var(--color-background)); }

/* 6. Product cards and prices (Dawn card-product) */
.card-wrapper { color: rgb(var(--color-foreground)); }
.card, .card .card__inner, .card--card, .card--standard .card__inner { border-radius: 0; box-shadow: none; }
.card--card:after, .card--standard .card__inner:after, .card--standard .card__inner .card__media:after { box-shadow: none; }
.card__content, .card--standard .card__content { padding: 0; }
.card__information { padding: 1.6rem 0 0; text-align: left; }
.card--standard .card__inner .card__information { padding-left: 0; padding-right: 0; }
.card__heading, .card__heading.h5 { font-family: var(--font-heading-family); font-size: 2.2rem; font-weight: var(--me-weight-heading-medium); line-height: 1.2; letter-spacing: 0; margin: 0 0 0.6rem; }
.card__heading a::after { outline: 0; box-shadow: none; }
.card__heading a:focus-visible::after { outline: 0.2rem solid var(--color-accent); outline-offset: 0.3rem; }
.card-information { font-size: 1.4rem; }
.card-information .price { font-family: var(--font-body-family); font-size: 1.4rem; letter-spacing: 0.02em; line-height: 1.4; color: rgba(var(--color-foreground), 0.8); }
.price--large { font-size: 1.8rem; letter-spacing: 0; }
.price .price-item { letter-spacing: 0; }
@media screen and (max-width: 749px) { .card__heading, .card__heading.h5, .article-card .card__heading { font-size: 1.9rem; } }
.card__media .media img { transition: opacity 600ms var(--me-ease), transform 1200ms var(--me-ease); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__media .media img:first-child { transform: scale(1.03); } }
.card__badge .badge { border-radius: 0; font-family: var(--font-body-family); font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; }
.placeholder-svg { background: var(--color-mist); fill: var(--color-stone-soft); }
.me-placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 7. Dawn sections used on the home (image-with-text, featured-blog, newsletter, rich-text) */
.image-with-text__media { border-radius: 0; }
.image-with-text__content { padding: 0; }
.image-with-text__heading { margin-bottom: 1.6rem; }
.image-with-text__text { font-size: var(--me-size-body); }
.image-with-text__content > :first-child.image-with-text__text, .image-with-text__content .caption-with-letter-spacing { margin-bottom: 1.6rem; }
.image-with-text .button { margin-top: 2.4rem; }
.article-card .card__heading { font-size: 2.2rem; }
.article-card__info { font-size: 1.3rem; color: var(--color-stone); letter-spacing: 0.02em; }
.article-card__excerpt { font-size: 1.5rem; line-height: 1.6; }
.newsletter__wrapper { padding-block: 0; }
.newsletter__subheading { font-size: var(--me-size-body); max-width: 48ch; margin-inline: auto; }
.newsletter-form__field-wrapper .field__input { font-size: 1.5rem; }
.newsletter-form__button { width: 4.8rem; }
.color-scheme-2 .me-text-secondary, .color-scheme-3 .me-text-secondary, .color-scheme-4 .me-text-secondary, .color-scheme-5 .me-text-secondary { color: rgba(var(--color-foreground), 0.8); }

/* 8. Footer */
.footer { border-top: 1px solid var(--color-mist); }
.footer__content-top { padding-bottom: 4.8rem; }
.footer .footer-block__heading { font-family: var(--font-body-family); font-size: var(--me-size-eyebrow); font-weight: var(--me-weight-body-medium); letter-spacing: var(--me-eyebrow-tracking); text-transform: uppercase; margin-bottom: 2rem; }
.footer-block__details-content .list-menu__item--link, .footer-block__details-content p { font-size: 1.4rem; line-height: 1.7; letter-spacing: 0; }
.footer-block__details-content .list-menu__item--link { color: rgb(var(--color-foreground)); }
.footer__content-bottom { border-top: 1px solid var(--color-mist); padding-top: 2.4rem; }
.copyright__content, .copyright__content a, .policies .copyright__content a { font-size: 1.2rem; letter-spacing: 0.02em; color: var(--color-stone); }
.footer__localization, .footer__payment { opacity: 0.9; }
.me-legal { font-style: normal; font-size: 1.4rem; line-height: 1.7; }
.me-legal__item { margin: 0; }
.me-legal__item--name { font-weight: var(--me-weight-body-medium); }
.me-legal .link { color: rgb(var(--color-foreground)); }
/* One tidy bottom row: copyright left, cookie link right, notice below. */
.footer .footer__content-bottom-wrapper { flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 2.4rem; }
.footer .footer__copyright { margin-top: 0; text-align: left; }
.me-cookie-settings { margin: 0; }
.me-cookie-settings .link { white-space: nowrap; }
@media screen and (max-width: 749px) {
  .footer .footer__content-top { padding-inline: var(--me-gutter); }
  .footer .footer__content-top .footer__blocks-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.2rem 2.4rem; margin: 0; }
  .footer .footer__blocks-wrapper .footer-block.grid__item { margin: 0; max-width: none; }
  .footer .footer-block--newsletter { margin-top: 3.2rem; }
  .footer .footer-block__newsletter { text-align: left; }
  .footer .footer__column--info { padding-inline: 0; align-items: flex-start; }
  .footer .list-payment { justify-content: flex-start; margin: 0; }
}
.me-demo-disclaimer { width: 100%; margin: 2rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--color-mist); text-align: center; font-size: 1.2rem; letter-spacing: 0.02em; color: var(--color-stone); }

/* 9. Drawers and overlays: square, calm */
.drawer__inner, .menu-drawer__inner-container, .search-modal__content, .cart-notification { border-radius: 0; }
.cart-drawer .drawer__inner { transition-duration: var(--me-duration-drawer); transition-timing-function: var(--me-ease); }

/* 10. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .button, .card__media .media img, .cart-drawer .drawer__inner { transition: none; }
  .card:hover .card__media .media img:first-child { transform: none; }
  .me-word { will-change: auto; }
}

/* 11. Pages: main-page, 404, search, blog, article, legal notice, company details */
.main-page-title, .page-title, .collection-hero__title { font-size: var(--me-size-title); font-weight: var(--me-weight-heading-light); margin-bottom: 2.4rem; }
.page-width--narrow .rte, .main-page .rte { max-width: 68ch; }
/* Page title and text share one centred column of 68ch: 65.3rem of body text plus the page gutters. */
@media screen and (min-width: 990px) { .page-width--narrow:has(> .main-page-title) { max-width: 74.9rem; } }
.article-card__excerpt.rte-width { margin-inline: 0; }
@media screen and (min-width: 750px) { .multicolumn.background-none .multicolumn-list:not(.slider) .multicolumn-card__info { padding-inline: 0; } }
.rte h2 { font-size: 2.4rem; font-weight: var(--me-weight-heading-medium); margin: 3.2rem 0 1.2rem; }
.rte h3 { font-size: 1.8rem; font-weight: var(--me-weight-body-medium); font-family: var(--font-body-family); margin: 2.4rem 0 0.8rem; }
.template-404 { padding-block: var(--me-section-space); }
.template-404__title { font-size: var(--me-size-display); font-weight: var(--me-weight-heading-light); line-height: 1.02; margin-bottom: 1.6rem; }
.template-404__subtext { font-size: calc(var(--me-size-body) * 1.25); color: var(--color-stone); max-width: 42ch; margin-inline: auto; }
.template-search__header { padding-top: var(--me-section-space); }
.template-search__header .h2 { font-size: var(--me-size-title); font-weight: var(--me-weight-heading-light); }
.template-search__search .search__input, .search-modal__form .search__input { font-size: 1.8rem; }
.search__button { width: 5.2rem; }
.template-search__results .title-wrapper { margin-bottom: 3.2rem; }
.blog__title, .main-blog .title { font-size: var(--me-size-title); font-weight: var(--me-weight-heading-light); }
.blog-articles { row-gap: 4.8rem; }
.article-template__hero-container { margin-bottom: 3.2rem; }
.article-template__title { font-size: var(--me-size-title); font-weight: var(--me-weight-heading-light); line-height: 1.08; }
.article-template__link { font-size: 1.3rem; color: var(--color-stone); }
.article-template .rte { max-width: 65ch; font-size: calc(var(--me-size-body) * 1.0625); }
.me-template-notice { padding: 1rem 0; }
.me-template-notice__text { margin: 0; text-align: center; font-size: var(--me-size-eyebrow); letter-spacing: var(--me-eyebrow-tracking); text-transform: uppercase; font-weight: var(--me-weight-body-medium); }
.me-company__heading { margin: 0 0 2.4rem; }
.me-company__list { margin: 0; display: grid; gap: 1.6rem; }
.me-company__row { display: grid; grid-template-columns: 1fr; gap: 0.4rem; padding-top: 1.6rem; border-top: 1px solid var(--color-mist); }
.me-company__row dt { font-size: var(--me-size-eyebrow); letter-spacing: var(--me-eyebrow-tracking); text-transform: uppercase; font-weight: var(--me-weight-body-medium); color: rgba(var(--color-foreground), 0.8); }
.me-company__row dd { margin: 0; font-size: 1.5rem; line-height: 1.6; }
@media screen and (min-width: 750px) { .me-company__row { grid-template-columns: 22rem 1fr; gap: 2.4rem; } }

/* 13. Premium polish (phase 2 of the sales brief): solid fixed-height header, side menu, trust bar, cards, links */
html.me-scrolled .header-wrapper, .scrolled-past-header .header-wrapper { background: rgb(var(--color-background)); }
.menu-drawer { border-right: 1px solid var(--color-mist); }
.menu-drawer__inner-container { background: rgb(var(--color-background)); }
.menu-drawer__menu-item { font-family: var(--font-heading-family); font-size: 2.8rem; font-weight: var(--me-weight-heading-light); padding: 1.4rem 3.2rem; letter-spacing: 0; }
.menu-drawer__utility-links { background: transparent; padding: 2.4rem 3.2rem; }
.menu-drawer__close-button { font-family: var(--font-body-family); font-size: 1.4rem; }
.me-newsletter-note { max-width: 56ch; margin: 1.2rem auto 0; font-size: 1.3rem; line-height: 1.5; }
.me-trust { padding: 0; border-bottom: 1px solid var(--color-mist); }
.me-trust__list { display: flex; gap: 1.2rem 3.2rem; justify-content: center; flex-wrap: wrap; margin: 0; padding: 1.6rem 0; }
.me-trust__item { font-family: var(--font-body-family); font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: var(--me-weight-body-medium); color: rgba(var(--color-foreground), 0.8); white-space: nowrap; }
.me-trust__item + .me-trust__item::before { content: "\00b7"; margin-right: 3.2rem; opacity: 0.5; }
@media screen and (max-width: 749px) { .me-trust__list { flex-direction: column; align-items: center; gap: 0.6rem; } .me-trust__item + .me-trust__item::before { content: none; } }
.card-wrapper { transition: transform 480ms var(--me-ease); }
@media (hover: none) { .card-wrapper:active { transform: scale(0.985); transition-duration: 120ms; } }
a, button, label, summary { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (min-width: 990px) {
  .card-wrapper:hover { transform: translateY(-4px); }
  .card .quick-add { opacity: 0; transform: translateY(6px); transition: opacity 240ms var(--me-ease), transform 240ms var(--me-ease); }
  .card:hover .quick-add, .card:focus-within .quick-add { opacity: 1; transform: none; }
}
.quick-add__submit.button { font-size: 1.4rem; min-height: 4.4rem; }
.card__information { display: flex; flex-direction: column; }
.header__menu-item span, .me-statement__link, .me-feature__link, .footer-block__details-content .list-menu__item--link, .rte a, .article-template__link { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0% 1px; background-position: 0 100%; text-decoration: none; transition: background-size 320ms var(--me-ease); padding-bottom: 0.1em; }
.header__menu-item:hover span, .me-statement__link:hover, .me-feature__link:hover, .footer-block__details-content .list-menu__item--link:hover, .rte a:hover, .article-template__link:hover { background-size: 100% 1px; }
.header__menu-item:hover span { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .card-wrapper, .card .quick-add, .header__menu-item span { transition: none; } .card-wrapper:hover, .card-wrapper:active { transform: none; } }

/* 12. Bottle artwork */
/* Liquid colour per fragrance and its card tint come from assets/me-bottle-tokens.css (defaults) and the "Liquid: …" theme settings. */
[data-me-handle="salt-and-gorse"] { --me-tint: var(--me-tint-salt-and-gorse); --me-liquid: var(--me-liquid-salt-and-gorse); }
[data-me-handle="wet-slate"] { --me-tint: var(--me-tint-wet-slate); --me-liquid: var(--me-liquid-wet-slate); }
[data-me-handle="glasshouse-fig"] { --me-tint: var(--me-tint-glasshouse-fig); --me-liquid: var(--me-liquid-glasshouse-fig); }
[data-me-handle="midsummer-hay"] { --me-tint: var(--me-tint-midsummer-hay); --me-liquid: var(--me-liquid-midsummer-hay); }
[data-me-handle="cathedral-smoke"] { --me-tint: var(--me-tint-cathedral-smoke); --me-liquid: var(--me-liquid-cathedral-smoke); }
[data-me-handle="blackberry-lane"] { --me-tint: var(--me-tint-blackberry-lane); --me-liquid: var(--me-liquid-blackberry-lane); }
.card[data-me-handle="salt-and-gorse"] .card__media, .me-feature[data-me-handle="salt-and-gorse"] .me-feature__media { background-color: var(--me-tint-salt-and-gorse); }
.card[data-me-handle="wet-slate"] .card__media, .me-feature[data-me-handle="wet-slate"] .me-feature__media { background-color: var(--me-tint-wet-slate); }
.card[data-me-handle="glasshouse-fig"] .card__media, .me-feature[data-me-handle="glasshouse-fig"] .me-feature__media { background-color: var(--me-tint-glasshouse-fig); }
.card[data-me-handle="midsummer-hay"] .card__media, .me-feature[data-me-handle="midsummer-hay"] .me-feature__media { background-color: var(--me-tint-midsummer-hay); }
.card[data-me-handle="cathedral-smoke"] .card__media, .me-feature[data-me-handle="cathedral-smoke"] .me-feature__media { background-color: var(--me-tint-cathedral-smoke); }
.card[data-me-handle="blackberry-lane"] .card__media, .me-feature[data-me-handle="blackberry-lane"] .me-feature__media { background-color: var(--me-tint-blackberry-lane); }
/* Generic helper: any element with data-me-handle (or an inline --me-tint) gets the tint as its background. */
.me-tint-field { background-color: var(--me-tint, var(--color-mist)); }

/* Tap targets ≥ 24 px (Lighthouse target-size): footer contact links and policy links */
.me-legal .link, .policies .copyright__content a, .me-cookie-settings .link { display: inline-block; padding: 0.4rem 0; min-height: 2.4rem; }
