/* =========================================================
   LUXURY HAS NO SCENT™ STYLE GUIDE CSS
   Clean / tight replacement stylesheet
   Visual direction: porcelain white, pearl gray, mist blue,
   soft sage, watercolor light, quiet luxury, clean air.
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS / GLOBAL VARIABLES
   ========================================================= */

:root {
  --container-width: 1440px;
  --content-width: 820px;
  --header-width: 980px;

  --site-gutter: clamp(1.5rem, 4vw, 5rem);
  --site-gutter-mobile: 2rem;

  /* Section spacing */
  --section-y: clamp(0.22rem, 0.7vw, 0.48rem);
  --section-y-tight: clamp(0.14rem, 0.45vw, 0.32rem);

  /* Standard gaps */
  --heading-intro-gap: 0.65rem;
  --header-content-gap: clamp(0.7rem, 1.35vw, 1rem);
  --grid-gap: clamp(0.7rem, 1.35vw, 1rem);
  --card-gap: clamp(1rem, 2vw, 1.5rem);
  --paragraph-gap: 1rem;

  /* Shared type scale */
  --card-title-size: clamp(1.2rem, 1.8vw, 1.55rem);
  --card-text-size: clamp(.9rem, 0.98rem + 0.15vw, 1rem);
  --table-text-size: clamp(1rem, 0.98rem + 0.12vw, 1.0625rem);
  --label-size: 0.875rem;
  --small-text-size: 0.9rem;
  --minimum-text-size: 0.875rem;
  
  /* Shared font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Cards / panels */
  --card-padding: clamp(0.8rem, 1.6vw, 1.15rem);
  --card-radius: 26px;
  --panel-radius: 30px;
  --image-radius: 24px;

  /* Fonts */
  --font-serif: Georgia, Cambria, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

/* Backgrounds */
--bg-primary: var(--page-bg);
--page-bg: #F3F6F7;
--pearl-bg: #F1F4F5;     /* cool neutral panel */
--paper-bg: #F7F2EA;     /* warm editorial panel */
--card-bg: #FFFFFF;
--mist-bg: #EEF6F8;      /* pale blue mist */
--sage-bg: #F4F7F3;      /* pale sage */
--sky-bg: #E7F0F6;       /* slightly stronger blue panel */
--dark-bg: #1F2B33;      /* deep blue-gray */
/* Nested cards inside pastel panels */
--inner-card-bg: #FFFFFF;

/* Very light watercolor washes */
--wash-blue: rgba(201, 220, 230, 0.18);
--wash-warm: rgba(243, 231, 200, 0.14);
--wash-sage: rgba(211, 226, 214, 0.16);

/* Text */
--heading: #42586F;      /* elegant blue-gray */
--ink: #2F3A46;          /* strongest readable text */
--text: #4D5E68;         /* main body text */
--muted: #586B76;        /* secondary text — ≈5.6:1 on white and ≈5:1 on paper */
--soft-text: #606D74;    /* very soft/decorative text */
--light-text: #F7F6F1;   /* text on dark backgrounds */


/* Accents */
--accent: #52716D;       /* soft blue-green */
--accent-dark: #536C78;  /* readable slate teal, including on warm paper panels */
--accent-soft: #DCE8E4; /* pale sage accent */
--mist-blue: #C9DCE6;    /* soft blue accent */
--sun-wash: #F3E7C8;     /* pale warm yellow */
--champagne: #D6BE88;    /* refined gold */
--orchid-blush: #EEDFD8; /* soft blush */
--clay: #C98E7B;         /* warm emphasis */
--lavender-wash: #DED2E8;
--sage-wash: #D3E2D6;

/* Regulatory / ingredient states */
--restricted-fill: #C0862F;
--restricted-bg: #FAEFBE;
--restricted-border: #B49746;
--restricted-ink: #5F4D1E;
--banned-bg: #F6CDCD;
--banned-border: #AC5C5C;
--banned-ink: #693434;


/* Lines and shadows */
--border-dark: rgba(68, 78, 84, 0.36);
--line: rgba(72, 84, 90, 0.32);
--line-soft: rgba(72, 84, 90, 0.26);
--line-pearl: rgba(72, 84, 90, 0.30);

/* Component borders */
--panel-border: rgba(72, 84, 90, 0.40);
--card-border: rgba(72, 84, 90, 0.48);
--inner-card-border: rgba(72, 84, 90, 0.42);

--shadow-card:
  0 12px 28px rgba(58, 64, 68, 0.10),
  0 2px 8px rgba(58, 64, 68, 0.04),
  inset 0 1px 0 rgba(255, 255, 255, 1);

--shadow-panel:
  0 18px 44px rgba(58, 64, 68, 0.09),
  0 4px 12px rgba(58, 64, 68, 0.04),
  inset 0 1px 0 rgba(255, 255, 255, 1);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* Token aliases + readable accents so page CSS resolves to real tokens
     instead of hardcoding hex (added Jul 2026). */
  --sage-dark: var(--accent-dark);
  --gold-ink:  #8A6A2E;              /* readable gold for TEXT (~5:1 on white, WCAG AA) */
  --sun-ink: #D4A62A; 
  --teal:      #4F7168;              /* safe for meaningful text, rules, and pathway accents */
  --dark-text: var(--light-text);    /* fixes .site-footer h2/h3 (was undefined) */
  --kicker-teal: #4F7168;            /* eyebrow / section-kicker brand teal (was hardcoded x-site) */
  --focus-ring: #4F7168;             /* visible against pale site backgrounds */
  --control-border: #7A8D96;         /* ≥3:1 against white, paper, and page backgrounds */
}

/* =========================================================
   2. BASE PAGE STYLES
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Offsets EVERY in-page anchor jump (#section, #cite-N, #ref-N, ...)
     on EVERY page so nothing hides under the sticky header.
     --header-offset is set from the header's REAL height by global.js,
     so this adapts to any header size automatically. The 6rem fallback
     only applies if JS hasn't run yet. */
  scroll-padding-top: var(--header-offset, 6rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.58;
  font-weight: var(--weight-regular);
  color: var(--text);
  background: var(--page-bg);
}

@media (min-width: 461px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--ink);
}

::selection {
  background: rgba(201, 216, 206, 0.7);
  color: var(--ink);
}

/* =========================================================
   3. TYPOGRAPHY SYSTEM
   ========================================================= */

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--heading);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
}

h4 {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.16;
}

p {
  margin: 0 0 var(--paragraph-gap);
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.15vw, 1.05rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
}

p:last-child {
  margin-bottom: 0;
}

.small-text {
  font-size: var(--small-text-size);
  line-height: 1.45;
  color: var(--muted);
}

/* =========================================================
   4. SITE HEADER / BRAND / NAV
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #FBFDFD;
  border-bottom: 1px solid var(--border-dark);
}

.site-header .wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0.8rem;
  box-sizing: border-box;
}

.site-header .brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: #374852;
  text-decoration: none;
}

.site-header .brand-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #374852;
}

.site-header .brand-name {
  margin-left: 2px;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #374852;
}

.site-header .brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #374852;
}

.site-header .tm {
  margin-left: 1px;
  font-family: var(--font-sans);
  font-size: 0.44rem;
  vertical-align: super;
  letter-spacing: 0.04em;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 10px 0;
}

.site-header .nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.site-header .nav-divider {
  width: 1px;
  height: 42px;
  background-color: var(--border-dark);
  flex-shrink: 0;
}


.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 1.9vw, 2.4rem);
  min-width: 0;
  flex-shrink: 1;
}

.site-header .nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0.45rem 0 0.4rem;

  font-family: var(--font-sans);
  font-size: clamp(0.84rem, 0.85vw, 0.92rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;

  color: #455965;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .nav-links a:hover,
.site-header .nav-links a:focus-visible {
  color: var(--ink);
}

.site-header .nav-links a:not(.nav-feature)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: rgba(94, 118, 130, 0.7);
  transition: width 0.2s ease;
}

.site-header .nav-links a:not(.nav-feature):hover::after,
.site-header .nav-links a:not(.nav-feature):focus-visible::after,
.site-header .nav-links a:not(.nav-feature).active::after,
.site-header .nav-links a:not(.nav-feature)[aria-current="page"]::after {
  width: 100%;
}

.site-header .nav-links a:not(.nav-feature).active,
.site-header .nav-links a:not(.nav-feature)[aria-current="page"] {
  color: #2f3d3b;
}

.site-header .nav-links a:not(.nav-feature).active::after,
.site-header .nav-links a:not(.nav-feature)[aria-current="page"]::after {
  background: rgba(139, 177, 157, 0.9);
}

.site-header .nav-links .nav-feature {
  min-height: 30px;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  box-shadow: none;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: var(--weight-medium);
  line-height: 1.1;
  letter-spacing: 0.055em;
}

.site-header .nav-links .nav-feature:hover,
.site-header .nav-links .nav-feature:focus-visible {
  color: var(--ink);
  background: var(--mist-bg);
  border-color: var(--line);
}

.site-header .nav-links .nav-feature::after,
.site-header .nav-links .nav-feature:hover::after,
.site-header .nav-links .nav-feature:focus-visible::after {
  display: none;
  content: none;
}

@media (max-width: 1450px) and (min-width: 901px) {
  .site-header .wrapper {
    padding-inline: 1rem;
  }

  .site-header .nav-links {
    gap: clamp(1.25rem, 1.6vw, 1.75rem);
  }

  .site-header .nav-left {
    gap: 0.7rem;
  }

  .site-header .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.035em;
  }

  .site-header .nav-links .nav-feature {
    padding: 0.2rem 0.72rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 900px) {
  .site-header .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-header .nav-left {
    width: 100%;
    justify-content: flex-start;
  }

  .site-header .nav-divider {
    display: none;
  }

  .site-header .nav-links {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    width: 100%;
  }

  .site-header .nav-links a {
    min-height: 44px;
  }
}

@media (max-width: 460px) {
  .site-header .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;

    /* fade the right edge to signal more links off-screen */
    -webkit-mask-image: linear-gradient(
      to right,
      #000 calc(100% - 2.5rem),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      #000 calc(100% - 2.5rem),
      transparent 100%
    );
  }

  .site-header .nav-links a {
    flex: 0 0 auto;
    font-size: 0.75rem;
  }

  .site-header .nav-links .nav-feature {
    min-height: 36px;
    padding: 0.25rem 0.72rem;
  }
}

/* =========================================================
   5. EYEBROWS / SECTION KICKERS
   ========================================================= */

.eyebrow,
.page-kicker,
.section-kicker {
  display: block;
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: var(--label-size);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kicker-teal);
  text-align: inherit;
}

.fragrance-card .eyebrow,
.label-card .eyebrow,
.scent-info-box .eyebrow,
.card .eyebrow,
.card .section-kicker,
.eyebrow.card-label {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0.75rem;

  font-size: var(--label-size);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--kicker-teal);

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.start-here {
  color: var(--gold-ink) /* sun — change as desired */
}

/* =========================================================
   7. PAGE HEADER SYSTEM
   ========================================================= */

.page-header {
  width: min(var(--content-width), calc(100% - (2 * var(--site-gutter))));
  margin: 0 auto;
  padding:
    clamp(0.75rem, 2vw, 1.4rem)
    clamp(1rem, 3vw, 1.5rem)
    clamp(0.05rem, 0.35vw, 0.1rem);
}

.page-title em {
  font-style: italic;
  color: #3F565C;
}

.page-header-rule {
  width: 5.5rem;
  height: 1px;
  margin: .7rem auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(143, 174, 170, 0.75),
    transparent
  );
}

.page-header.page-header--wide {
  width: min(var(--container-width), calc(100% - (2 * var(--site-gutter))));
  max-width: var(--container-width);
}

.page-header--wide .page-intro {
  max-width: 60rem;
}

/* =========================================================
   8. SECTION LAYOUT SYSTEM
   ========================================================= */

.section,
.button-row,
.section-divider {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}

.section {
  padding-block: var(--section-y);
}

.section.section--tight {
  padding-block: var(--section-y-tight);
}

.section-header,
.page-header,
.page-header-center,
.section-intro {
  max-width: var(--content-width);
  margin-inline: auto;
  margin-bottom: 0;
  text-align: center;
}

.section-header + *,
.page-header + * {
  margin-top: var(--header-content-gap);
}

.section-header.is-left,
.section-intro.is-left {
  max-width: var(--content-width);
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* =========================================================
   PAGE + SECTION HEADINGS
   ========================================================= */

/* Main page title */
.page-title,
.page-header h1,
.page-header-center h1 {
  margin-bottom: var(--heading-intro-gap);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--heading);
  text-wrap: balance;
}

/* Section headings */
.section-title,
.section-header h2,
.section-intro h2 {
  margin-bottom: var(--heading-intro-gap);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--heading);
  text-wrap: balance;
}

/* Header intro text only — does not affect .eyebrow paragraphs */
.page-intro,
.header-intro,
.section-header > p:not(.eyebrow):not(.page-kicker):not(.section-kicker),
.page-header > p:not(.eyebrow):not(.page-kicker):not(.section-kicker) {
  max-width: 52rem;
  margin: 0.7rem auto 0;
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
  line-height: 1.52;
  font-weight: 400;
  color: var(--heading);
  text-wrap: balance;
}

/* Left-aligned intro text */
.section-header.is-left .header-intro {
  margin-left: 0;
  margin-right: 0;
}

/* =========================================================
   9. PANELS / BACKGROUND VARIATIONS
   ========================================================= */

.section-panel,
.section-panel-mist,
.section-panel-white,
.section-panel-sky,
.section-panel-paper {
  padding: clamp(0.65rem, 1.2vw, 0.95rem)
           clamp(0.85rem, 1.6vw, 1.25rem)
           clamp(0.75rem, 1.4vw, 1.05rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  max-width: none;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-panel);
}

.section-panel {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 246, 218, 0.48), transparent 16rem),
    radial-gradient(circle at 92% 14%, rgba(232, 244, 249, 0.62), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #fffefa 48%, #f6fbfd 100%);
}

.section-panel-mist,
.panel--mist {
  background:
  radial-gradient(circle at 90% 10%, rgba(201, 220, 230, 0.52), transparent 19rem),
  radial-gradient(circle at 12% 18%, rgba(232, 243, 247, 0.55), transparent 18rem),
  linear-gradient(135deg, #ffffff 0%, #fbfdfe 48%, #eef7fb 100%);
}

.section-panel-white {
  background:
    radial-gradient(circle at 92% 7%, rgba(243, 216, 145, 0.035), transparent 9rem),
    linear-gradient(135deg, #ffffff 0%, #ffffff 82%, #fefefe 100%);
}

.panel--sage {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 246, 218, 0.42), transparent 16rem),
    radial-gradient(circle at 90% 18%, rgba(211, 226, 214, 0.34), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #fffefa 50%, #f6faf7 100%);
}

.section-panel-sky {
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 246, 218, 0.36), transparent 16rem),
    radial-gradient(circle at 88% 12%, rgba(201, 220, 230, 0.68), transparent 20rem),
    linear-gradient(135deg, #ffffff 0%, #f8fcff 50%, #eef8fd 100%);
}

.section-panel-paper {
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 231, 200, 0.58), transparent 17rem),
    radial-gradient(circle at 88% 16%, rgba(232, 244, 249, 0.42), transparent 18rem),
    linear-gradient(135deg, #ffffff 0%, #fffefa 45%, #fbf3dc 100%);
}

.panel-note {
  margin-top: clamp(0.85rem, 1.8vw, 1.25rem);
}


/* =========================================================
   11. GRID SYSTEM
   ========================================================= */

.grid,
.card-grid,
.card-grid-four,
.card-grid-fragrance,
.product-label-grid,
.scent-adaptation-grid {
  display: grid;
  gap: var(--grid-gap);
  align-items: stretch;
}

.grid--2,
.scent-adaptation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3,
.card-grid,
.card-grid-fragrance,
.product-label-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4, 
.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--auto {
  --grid-min: 17rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min)), 1fr));
}

.grid--compact {
  gap: clamp(0.6rem, 1.1vw, 0.85rem);
}

.grid--equal > *,
.card-grid > *,
.card-grid-four > *,
.card-grid-fragrance > *,
.product-label-grid > *,
.scent-adaptation-grid > * {
  height: 100%;
}

/* =========================================================
   CLEAN AIR EXAMPLES PAGE — PAGE-SPECIFIC GRID
   Add class="clean-air-page" to the <main>
   Add class="clean-air-grid" to the grid container
   ========================================================= */

/* =========================================================
   CLEAN AIR EXAMPLES PAGE — PAGE-SPECIFIC GRID
   ========================================================= */

.clean-air-page .clean-air-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

/* Keep every card contained within its grid column */
.clean-air-page .clean-air-grid > * {
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

/* Two cards per row on tablets */
@media (max-width: 1000px) {
  .clean-air-page .clean-air-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

/* One card per row on phones */
@media (max-width: 640px) {
  .clean-air-page .section {
    padding-inline: calc(var(--site-gutter-mobile) / 2);
  }

  .clean-air-page .clean-air-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}


/* =========================================================
   12. CARD SYSTEM
   ========================================================= */

.card,
.fragrance-card,
.label-card,
.scent-info-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  padding: var(--card-padding);
  color: inherit;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--card-radius);
}

.card--compact {
  padding: clamp(0.75rem, 1.4vw, 1rem);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
}

.card--feature {
  background:
     radial-gradient(
      circle at 82% 14%,
      color-mix(in srgb, var(--card-bg) 72%, transparent),
      transparent 13rem
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--card-bg) 88%, var(--sun-wash)),
      color-mix(in srgb, var(--sun-wash) 96%, var(--card-bg))
    );
  border-color: rgba(94, 118, 130, 0.34);
}

.card--stack,
.card-body,
.fragrance-card-body {
  display: flex;
  flex-direction: column;
}

.card-body,
.fragrance-card-body {
  flex: 1;
}

.card-label {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: var(--label-size);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.card-title,
.card h3,
.fragrance-card h3,
.scent-info-box h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: var(--card-title-size);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.006em;
  color: var(--heading);
}


.label-card h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2vw, 1.78rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--heading);
}

.card-text,
.card p,
.fragrance-card p,
.label-card p,
.scent-info-box p {
  margin-bottom: 0.55rem;
  font-size: var(--card-text-size);
  line-height: 1.45;
  color: var(--text);
}

:where(.card, .fragrance-card, .label-card, .scent-info-box) ul {
  margin: 0.55rem 0 0;
  padding-left: 1.05rem;
}

:where(.card, .fragrance-card, .label-card, .scent-info-box) li {
  margin-bottom: 0.42rem;
  font-size: clamp(0.92rem, 0.95vw, 0.98rem);
  line-height: 1.38;
  color: var(--text);
}

:where(.card, .fragrance-card, .label-card, .scent-info-box)
  :where(p, li):last-child {
  margin-bottom: 0;
}

:where(.card, .fragrance-card, .label-card, .scent-info-box)
  li::marker {
  color: rgba(52, 66, 79, 0.78);
}

.card-link {
  margin-top: auto;
  padding-top: 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.card-footer {
  margin-top: 0.9rem;   /* was: auto — let the takeaway absorb the slack instead */
  padding-top: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f6f67;
}

.card-link:hover,
.card-footer:hover {
  color: #3f5f57;
}

.stat-number {
  display: block;
  margin: 0.35rem 0 0.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.3vw, 2.6rem);
  line-height: 0.95;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}

/* =========================================================
   13. TAKEAWAYS / NOTES
   ========================================================= */

.soft-callout {
  padding: clamp(0.95rem, 2vw, 1.25rem);
  border: 1px solid rgba(112, 132, 145, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 16% 20%,
      rgba(238, 223, 216, 0.34),
      transparent 10rem
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92),
      rgba(246, 251, 253, 0.88)
    );
  box-shadow: var(--shadow-card);
}


.takeaway-box,
.key-takeaway {
  position: relative;
  margin-top: clamp(0.9rem, 1.8vw, 1.35rem);
  padding: 0.72rem 0.95rem 0.78rem 1rem;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(94, 118, 130, 0.24);
  border-left: 4px solid rgba(94, 118, 130, 0.68);
  background:
    radial-gradient(circle at 86% 18%, rgba(243, 231, 200, 0.34), transparent 14rem),
    linear-gradient(135deg, #ffffff 0%, #fffdf8 52%, #f6fbfd 100%);
  box-shadow:
    0 16px 38px rgba(51, 66, 76, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.key-takeaway--gold {
  position: relative;
  margin-top: clamp(0.9rem, 1.8vw, 1.35rem);
  padding: 0.72rem 0.95rem 0.78rem 1rem;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--champagne);
  border-left: 4px solid var(--gold-ink);
  background:
    radial-gradient(circle at 86% 18%, rgba(243, 231, 200, 0.34), transparent 14rem),
    linear-gradient(135deg, #ffffff 0%, #fffdf8 52%, #f6fbfd 100%);
  box-shadow:
    0 16px 38px rgba(51, 66, 76, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.card .takeaway-box,
.card .key-takeaway,
.fragrance-card .takeaway-box,
.fragrance-card .key-takeaway,
.label-card .takeaway-box,
.label-card .key-takeaway,
.scent-info-box .takeaway-box,
.scent-info-box .key-takeaway,
.card--stack .takeaway-box,
.card--stack .key-takeaway {
  margin-top: auto;
}


.key-takeaway-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  text-wrap: balance;
}

.takeaway-box p,
.key-takeaway p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(0.95rem, 1vw, 1rem);
  line-height: 1.5;
  color: #5B6B73;
}

.takeaway-box strong,
.key-takeaway strong {
  color: var(--ink);
}

/* ---------------------------------------------------------
   TAKEAWAY TIER SYSTEM (site-wide)
   Tier 1: .key-takeaway--gold (gold-ink left border) — conclusions
   Tier 2: .key-takeaway--caution (clay left border) — risk,
           asymmetry, and health-exposure framings
   Tier 3: neutral notes (slate left border, mist wash) —
           sample text and soft notes, styled per page
   One border color per meaning, identical on every page.
   --------------------------------------------------------- */
.key-takeaway--caution {
  border-left-color: var(--gold-ink);
  background:#FFFFFF
}

.key-takeaway--caution .key-takeaway-label {
  color: var(--gold-ink);
}

/* =========================================================
   15. IMAGE TREATMENTS
   ========================================================= */

.image-frame {
  padding: clamp(0.45rem, 1vw, 0.7rem);
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid rgba(112, 145, 142, 0.26);
  box-shadow: var(--shadow-card);
}

.image-frame img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 12px);
}

.image-frame-small {
  width: 99%;
  max-width: 380px;
  margin: 0 auto;
  padding: clamp(0.45rem, 1vw, 0.7rem);
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid rgba(112, 145, 142, 0.26);
  box-shadow: var(--shadow-card);

  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame-small img {
  display: block;
  width: 99%;
  height: 99%;
  object-fit: contain;
  border-radius: calc(var(--radius-xl) - 12px);
}

.image-frame-med {
  width: 99%;
  max-width: 420px;
  margin: 0 auto;
  padding: clamp(0.45rem, 1vw, 0.7rem);
  border-radius: 16px;
  overflow: hidden;
  background: transparent;

  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame-med img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.image-frame-large {
  width: 99%;
  max-width: 660px; /* increase this if you want it wider */
  margin: 0 auto;
  padding: 0;
  border-radius: 16px;
  overflow: visible;
  background: transparent;

  /* remove the forced square */
  aspect-ratio: auto;

  display: block;
}

.image-frame-large img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}


.watercolor-image {
  width: 100%;
  filter: saturate(1.02) contrast(1.01) brightness(1.02);
}

.card-media,
.fragrance-card-image {
  overflow: hidden;
  border-radius: 20px;
  background: var(--pearl-bg);
  border: 1px solid rgba(112, 132, 145, 0.20);
}

.card-media,
.card--image {
  margin: 0.75rem 0 0.85rem;
}

.card--image {
  padding: clamp(0.8rem, 1.6vw, 1.05rem);
  gap: 0.85rem;
}

.card-media img,
.fragrance-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(112, 132, 145, 0.20);
  box-shadow: 0 18px 40px rgba(51, 66, 76, 0.10);
}

.imbed-img-med {
  max-width: 350px;
  margin: 0 auto 1.2rem;
  overflow: hidden;
  line-height: 0;
  mix-blend-mode: multiply;
}

.imbed-img-med img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* =====================================================
   CONTACT PAGE — SADIE IMAGE
   ===================================================== */

.contact-sadie-media {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  overflow: hidden;

  /* Rounded outer shape */
  border-radius: 2rem;

  /* Keep the wrapper from adding a white background */
  background: transparent;
}


/* =========================================================
   16. SPLIT SECTIONS
   ========================================================= */

.split,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(0.85rem, 2.2vw, 1.65rem);
  align-items: center;
}

.split-section {
  padding-left: clamp(0.85rem, 2vw, 1.6rem);
}

.split-section-reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.split-copy h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
}

.split-copy p {
  max-width: 40rem;
}

.split-image {
  align-self: center;
}



/* Contact page — Sadie image */
.contact-image-column {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.contact-image-fade {
  --contact-image-radius: 2rem;

  width: min(100%, 34rem);
  overflow: hidden;
  border-radius: var(--contact-image-radius);
  clip-path: inset(0 round var(--contact-image-radius));
  line-height: 0;
  background: transparent;
  isolation: isolate;
}

.contact-image-fade img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: var(--contact-image-radius);
  box-shadow: none;

  /* Fade each edge while preserving the rectangular shape */
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0,
      #000 7%,
      #000 93%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0,
      #000 7%,
      #000 93%,
      transparent 100%
    );

  -webkit-mask-composite: source-in;

  mask-image:
    linear-gradient(
      to right,
      transparent 0,
      #000 7%,
      #000 93%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0,
      #000 7%,
      #000 93%,
      transparent 100%
    );

  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@media (max-width: 700px) {
  .contact-image-fade {
    --contact-image-radius: 1.5rem;
    width: min(100%, 27rem);
  }
}

/* =========================================================
   18. BUTTONS
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  color: #fff;
  background: #33414C;
  box-shadow: 0 12px 26px rgba(51, 65, 76, 0.15);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #fff;
  background: #28333B;
}

.button-row {
  margin-block: clamp(1rem, 2.5vw, 1.8rem);
  text-align: center;
}

/* =========================================================
   19. REFERENCES / CITATIONS
   One consolidated system for every page.

   Standard markup:

   Inline citation:
   <sup class="ref"><a href="#ref-1" id="cite-1">1</a></sup>

   Bottom reference block:
   <section class="references" aria-labelledby="references-title">
     <div class="references-inner">
       <h2 class="references-title" id="references-title">References</h2>
       <ol class="references-list">
         <li id="ref-1">
           <a href="https://example.com" target="_blank" rel="noopener noreferrer">
             Source title
           </a>
           <a class="ref-back" href="#cite-1" aria-label="Back to citation 1">↩</a>
         </li>
       </ol>
     </div>
   </section>
   ========================================================= */

/* Full-width reference band. */
.references {
  width: 100%;
  max-width: none;
  margin: 0 0 calc(-1 * clamp(1.25rem, 3vw, 2.25rem));
  padding: 3rem var(--site-gutter);
  border-top: 1px solid var(--line);
  background: var(--paper-bg);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.references-inner {
  width: 100%;
  min-width: 0;
}

.references-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--text);
}

.references-rounding-note {
  margin: 0.85rem 0 1.25rem;
  font-size: 0.8rem;
  line-height: 1.55;
  font-style: italic;
  opacity: 0.72;
}


.references-inner > .references-title {
  margin: 0 0 0.75rem;
}

/* Optional collapsible heading. */
.references-disclosure > summary {
  margin: 0 0 1.1rem;
  cursor: pointer;
  user-select: none;
}

.references-disclosure > summary > h2,
.references-disclosure > summary > h3 {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

.references-disclosure > summary:hover > h2,
.references-disclosure > summary:hover > h3 {
  opacity: 0.8;
}

/* Introductory copy inherits the reference section's type scale. */
.references p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* Automatic decimal numbering keeps entries in sync. */
.references-list {
  margin: 0;
  padding: 0 0 0 1.6rem;
  list-style: decimal;
}

.references-list > li {
  margin: 0 0 0.85rem;
  padding-left: 0.3rem;
}

.references-list > li:last-child {
  margin-bottom: 0;
}

.references-list > li::marker {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ref-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9em;
  color: var(--muted);
}

/* Subtle visual confirmation when a reference is targeted.
   .is-cited is added by global.js (it controls the scroll itself, so the
   native :target may not persist); both share one look. */
.references-list > li:target,
.references-list > li.is-cited {
  border-radius: 10px;
  background: rgba(237, 245, 248, 0.72);
  box-shadow: 0 0 0 0.25rem rgba(237, 245, 248, 0.72);
}

/* Source links — one consistent treatment for every entry. */
.references-list a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.references-list a:hover,
.references-list a:focus-visible {
  color: var(--text);
  text-decoration-thickness: 2px;
}

/* Back-to-citation arrow after each bottom reference. */
.references-list .ref-back {
  margin-left: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Keep reference targets below the sticky header. */
.references :target {
  scroll-margin-top: var(--header-offset, 6rem);
}

sup.ref {
  display: inline;
  margin-left: 0.14em;
  font-size: clamp(0.72rem, 0.55em, 1.05rem);
  line-height: 0;
  vertical-align: super;
  white-space: nowrap;
}

sup.ref a {
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: none;
}

sup.ref a:hover,
sup.ref a:focus-visible {
  color: var(--ink);
}

/* Optional supporting notes nested within a reference. */
.ref-subnotes {
  position: relative;
  margin: 0.35rem 0 0.85rem;
  padding: 0;
}

.ref-subnotes > summary {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.ref-subnotes[open] > summary {
  margin-bottom: 0.45rem;
}

.ref-subnotes > summary::marker {
  content: "";
}

.ref-subnotes > summary::-webkit-details-marker {
  display: none;
}

.ref-subnotes > summary::before {
  content: "▸";
  position: absolute;
  left: -1.15rem;
  top: -0.02rem;
  font-size: 1.15em;
  line-height: inherit;
  color: var(--muted);
}

.ref-subnotes[open] > summary::before {
  content: "▾";
}

.ref-subnotes > ul {
  margin: 0 0 0 1.25rem;
  padding: 0;
}

.ref-subnotes > ul > li {
  margin: 0 0 0.85rem;
}

.ref-subnotes > ul > li:last-child {
  margin-bottom: 0;
}

.ref-cite-note {
  font-style: italic;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.8rem) 0;

  color: var(--light-text);
  background:
    radial-gradient(
      circle at 18% 0%,
      var(--wash-blue),
      transparent 24rem
    ),
    linear-gradient(
      135deg,
      var(--dark-bg),
      var(--ink)
    );

  border-top: 1px solid var(--accent-dark);
}

.footer-inner {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--site-gutter);

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  align-items: center;
  gap: clamp(0.7rem, 1.3vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
}

/* Top navigation row */

.site-footer .footer-links {
  grid-column: 1 / -1;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem clamp(1.25rem, 2.5vw, 2.5rem);

  margin: 0;
  padding: 0 0 0.2rem;
}

.site-footer .footer-links a {
  color: var(--mist-blue);
  border: 0;
  text-decoration: none;
  font-size: clamp(0.86rem, 1vw, 0.94rem);
  line-height: 1.3;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  color: var(--sun-wash);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

/* Brand and review status row */

.site-footer .footer-brand {
  grid-column: 1;
  grid-row: 3;
  margin: 0;

  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: var(--weight-regular);
  line-height: 1.4;
  color: var(--light-text);
  text-align: center;
}

.site-footer .footer-review-status {
  grid-column: 1;
  grid-row: 2;
  margin: 0;

  color: var(--mist-blue);
  font-size: var(--small-text-size);
  line-height: 1.5;
  text-align: center;
}

.site-footer .footer-review-status a {
  color: var(--light-text);
  font: inherit;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer .footer-review-status a:hover,
.site-footer .footer-review-status a:focus-visible {
  color: var(--sun-wash);
}

/* Disclaimer */

.site-footer .footer-disclaimer {
  grid-column: 1 / -1;

  max-width: 68rem;
  margin: 0 auto;
  padding-top: 0.8rem;

  border-top: 1px solid var(--accent-dark);
  color: var(--mist-blue);

  font-size: clamp(0.82rem, 0.9vw, 0.9rem);
  line-height: 1.6;
  text-align: center;
}

.site-footer .footer-disclaimer a {
  color: var(--light-text);
  font: inherit;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer .footer-disclaimer a:hover,
.site-footer .footer-disclaimer a:focus-visible {
  color: var(--sun-wash);
}

/* Mobile */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding-inline: var(--site-gutter-mobile);
    gap: 1rem;
  }

  .site-footer .footer-links {
    grid-column: 1;
    gap: 0.65rem 1.25rem;
  }

  .site-footer .footer-brand,
  .site-footer .footer-review-status {
    grid-column: 1;
    text-align: center;
  }

  .site-footer .footer-disclaimer {
    grid-column: 1;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-footer .footer-links {
    flex-direction: column;
    gap: 0.9rem;
  }

  .site-footer .footer-links a {
    padding: 0.1rem 0;
  }
}

/* =========================================================
   21. SECTION DIVIDER
   ========================================================= */

.section-divider {
  height: 1px;
  margin-block: clamp(0.6rem, 1.6vw, 1.1rem);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* =========================================================
   22. CONTACT FORM
   ========================================================= */

.contact-form-card {
  max-width: 34rem;
  width: 100%;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  gap: 0.32rem;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
}

.form-input:focus,
.form-textarea:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--accent-dark);
}

.form-textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form .button {
  justify-self: start;
  margin-top: 0.2rem;
  border: 0;
  cursor: pointer;
}

/* =========================================================
   23. UTILITY CLASSES
   ========================================================= */

.mt-1 {
  margin-top: 1rem;
}

/* =========================================================
   24. RESPONSIVE RULES
   ========================================================= */

@media (max-width: 1000px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  /* Tablet step: multi-column grids hold two columns here and
     collapse to one column in the 640px block below. */
  .grid,
  .card-grid,
  .card-grid-four,
  .card-grid-fragrance,
  .product-label-grid,
  .scent-adaptation-grid,
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split-section,
  .split-section-reverse {
    grid-template-columns: 1fr;
  }

  .section-header,
  .page-header-center,
  .section-intro {
    max-width: 100%;
  }

  .split-section {
    padding-left: 0;
  }

  .contact-form-card {
    max-width: none;
  }

}

/*At 640px, global CSS reduces .section width but leaves margin-inline: 0. 
If mobile margins look uneven, add margin-inline: auto inside that existing global mobile rule.*/

@media (max-width: 640px) {
  .section,
  .button-row,
  .section-divider {
    width: 100%;
    margin-inline: auto;
    padding-inline: calc(var(--site-gutter-mobile) / 2);
  }

  /* Phones: grids collapse from the tablet two-column step to one. */
  .grid,
  .card-grid,
  .card-grid-four,
  .card-grid-fragrance,
  .product-label-grid,
  .scent-adaptation-grid,
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hero {
    width: 100%;
  }

  .page-header,
  .page-header.page-header--wide {
    width: min(100% - var(--site-gutter-mobile), var(--content-width));
    padding-top: clamp(1.25rem, 5vw, 2rem);
    padding-bottom: clamp(0.8rem, 3vw, 1.35rem);
  }

  .page-title {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
    line-height: 1.08;
  }

  .page-intro {
    font-size: 1rem;
    line-height: 1.5;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3.1rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }


  .section-panel,
  .section-panel-mist,
  .section-panel-white,
  .section-panel-sky,
  .section-panel-paper {
    padding: 1.15rem;
    border-radius: 28px;
  }

  .card:not(.card--compact),
  .fragrance-card,
  .label-card,
  .scent-info-box {
    padding: var(--card-padding);
    border-radius: var(--card-radius);
  }

  .card-media img,
  .fragrance-card-image img {
    aspect-ratio: 16 / 10;
  }

  .site-footer {
    margin-top: 1.25rem;
    padding: 1.35rem 0;
  }

  .footer-inner {
    gap: 0.7rem;
  }

  .site-footer p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .site-footer .footer-links {
    gap: 0.7rem;
  }
}


/* =========================================================
   25. ACCESSIBILITY UPGRADES (added in cleanup)
   ========================================================= */

/* Visible keyboard focus for ALL interactive elements. Mouse users are
   unaffected (:focus-visible only fires for keyboard / programmatic focus). */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.card:focus-visible,
.button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer summary:focus-visible {
  outline-color: var(--light-text);
}

/* Skip link for keyboard and screen-reader users.
   Place <a class="skip-link" href="#main">Skip to content</a>
   first inside <body>. */
   
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 999;
  padding: 0.55rem 0.9rem;
  border-radius: 0 0 12px 12px;
  background: #33414C;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* Gentle, optional lift on the chapter cards (kept subtle and elegant). */
.card-grid > a.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-grid > a.card:hover,
.card-grid > a.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 26px 58px rgba(34, 48, 54, 0.15);
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .card-grid > a.card:hover,
  .card-grid > a.card:focus-visible {
    transform: none;
  }
}

/* =========================================================
   26. HOMEPAGE HERO + LANDING ELEMENTS
   Folded in from the old landing.css so the homepage can share
   this single stylesheet (previously landing.css re-declared the
   design tokens with DIFFERENT values, making the homepage drift
   from the rest of the site).
   ========================================================= */

.tm-hero {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-left: 0.06em;
  position: relative;
  top: -0.16em;
}

.hero-scroll-cue {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  margin-top: 0.65rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #34424f;
  text-shadow: none;
}

.hero-scroll-cue span:last-child {
  color: #34424f;
  font-size: 0.95rem;
  line-height: 1;
  animation: soft-bounce 1.8s ease-in-out infinite;
}

@keyframes soft-bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

.hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: calc(100vh - var(--header-offset, 72px));
  min-height: 650px;
  max-height: 900px;
  object-fit: cover;
  object-position: center 92%;
}

.hero-overlay {
  position: absolute;
  top: 27%;
  left: 50%;
  width: 80%;
  max-width: 800px;
  padding: 1.5rem 2rem;
  color: #3e434c;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: transparent;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108%;
  height: 116%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.90) 0%,
    rgba(255, 255, 255, 0.72) 48%,
    rgba(255, 255, 255, 0.28) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

.hero-kicker {
  margin: 0 0 clamp(0.75rem, 1.4vw, 1.1rem);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--heading);
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 1),
    0 0 14px rgba(255, 255, 255, 0.92);
}

.hero-title {
  margin: 0 0 clamp(1rem, 1.8vw, 1.35rem);
  font-family: var(--font-serif);
  font-size: clamp(1.72rem, 3.25vw, 2.6rem);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--heading);
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 1),
    0 0 16px rgba(255, 255, 255, 0.94);
}

.hero-subtitle {
  max-width: 690px;
  margin: 0 auto clamp(2rem, 3.5vw, 3rem);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
  color: var(--heading);
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 1),
    0 0 16px rgba(255, 255, 255, 0.94);
}

.hero-subtitle:last-of-type {
  margin-bottom: clamp(1.2rem, 2.4vw, 2rem);
}

.landing-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  background-color: rgba(52, 66, 74, 0.38);
}

/* "Open the Site Overview" call-to-action link on the homepage. */
.site-overview-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  max-width: 640px;
  margin: 1.25rem 0 3rem;
  padding: 0.85rem 1rem 0.9rem;
  color: #34424f;
  text-decoration: none;
  border: 1px solid rgba(139, 177, 157, 0.38);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 236, 137, 0.32), rgba(255, 255, 255, 0.9) 48%, rgba(177, 213, 205, 0.18));
  box-shadow: 0 14px 34px rgba(52, 66, 79, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.site-overview-link:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 177, 157, 0.58);
  box-shadow: 0 18px 42px rgba(52, 66, 79, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.overview-window-icon {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 18px;
  background: radial-gradient(circle at 35% 25%, rgba(255, 236, 137, 0.55), transparent 58%), rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(139, 177, 157, 0.28);
}

.overview-window-icon svg {
  width: 2.1rem;
  height: 2.1rem;
  fill: none;
  stroke: #5F7770;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-link-text {
  display: grid;
  gap: 0.12rem;
}

.overview-link-kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kicker-teal);
}

.overview-link-title {
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  line-height: 1.1;
  font-weight: 500;
  color: #34424f;
}

.overview-link-note {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(52, 66, 79, 0.72);
}

.overview-link-arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.15rem;
  color: #5f7770;
  background: rgba(255, 255, 255, 0.68);
  transition: transform 0.18s ease, background 0.18s ease;
}

.site-overview-link:hover .overview-link-arrow {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 640px) {
  .hero-overlay {
    width: 90%;
    padding: 1rem;
  }

  .site-overview-link {
    width: 100%;
    max-width: none;
    margin-bottom: 2.25rem;
  }

  .overview-link-note {
    display: none;
  }
}

/* Success / error message area for the contact form. */
.form-status {
  margin: 0.25rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.4;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-success {
  color: #2f5d3a;
  background: rgba(211, 226, 214, 0.55);
  border: 1px solid rgba(94, 130, 100, 0.4);
}

.form-status.is-error {
  color: #7a3b32;
  background: rgba(238, 223, 216, 0.6);
  border: 1px solid rgba(201, 142, 123, 0.5);
}

/* Field-level error text. */
.field-error {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: #9a4438;
}

/* Visually hide the honeypot field from sighted users (bots still fill it). */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   27. HOMEPAGE CHAPTER CARDS — image sizing & alignment
   ========================================================= */

/* Reserve room for a two-line title so every image starts at the same
   height across all four cards (some chapter titles wrap, some don't). */
.card-grid .card-title {
  min-height: 2.5em;
}

/* Match the frame to the (near-square) artwork so almost nothing is
   cropped, keep every card image the same height, and add space below.
   Switch object-fit to "contain" if you want every pixel visible. */
.card-image-frame {
  width: 95%;
  aspect-ratio: 1 / 1;
  margin: 0.25rem auto 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(112, 132, 145, 0.45);
  box-shadow: 0 18px 40px rgba(51, 66, 76, 0.10);
  overflow: hidden;
  background: transparent;
}

.card-image-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.1);
  transform-origin: center center;
}

/* =========================================================
   PUBLIC REVIEW — SITE-WIDE STYLES
   Temporary soft-launch styles.
   Remove everything between this opening comment and the
   matching END PUBLIC REVIEW comment when review ends.
   ========================================================= */


/* ---------------------------------------------------------
   PUBLIC REVIEW STATUS BANNER
   Place beneath the skip link and above the site header.
   --------------------------------------------------------- */

.review-status-banner {
  width: 100%;
  border-bottom: 1px solid var(--panel-border);
  background:
    linear-gradient(
      90deg,
      rgba(243, 231, 200, 0.84),
      rgba(238, 246, 248, 0.92),
      rgba(215, 229, 218, 0.82)
    );
}

.review-status-inner {
  width: min(
    var(--container-width),
    calc(100% - (2 * var(--site-gutter)))
  );
  margin-inline: auto;
  padding: 0.65rem 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  flex-wrap: wrap;
  text-align: center;
}


.review-status-label {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: var(--label-size);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.review-status-link {
  color: var(--accent-dark);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.review-status-text {
  margin: 0;
  color: var(--ink);
}

.review-status-text,
.review-status-link {
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  line-height: 1.4;
}

.review-status-link:hover,
.review-status-link:focus-visible {
  color: var(--ink);
}


/* ---------------------------------------------------------
   PUBLIC REVIEW NOTE
   --------------------------------------------------------- */

.page-review-note {
  margin-top: clamp(0.25rem, 1.5vw, .5rem);
  padding: clamp(1rem, 2.2vw, 1.35rem);
  width: min(
    var(--container-width),
    calc(100% - (2 * var(--site-gutter)))
  );
  margin-inline: auto;
  margin-bottom: var(--card-gap);

  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.88),
      rgba(238, 246, 248, 0.72)
    );

  box-shadow: var(--shadow-card);
}

.page-review-note p {
  margin: 0;
}

.page-review-note p + p {
  margin-top: 0.55rem;
}

.page-review-note-title {
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.25vw, 2rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.005em;
  text-wrap: balance;
}


.page-review-note-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.page-review-note-link:hover,
.page-review-note-link:focus-visible {
  color: var(--ink);
}



/* ---------------------------------------------------------
   CONTACT PAGE REVIEW INSTRUCTIONS
   Place above the Contact form.
   --------------------------------------------------------- */

.review-feedback-intro {
  margin-bottom: clamp(1rem, 2vw, 1.4rem);
  padding: 1rem 1.1rem;

  border: 1px solid var(--inner-card-border);
  border-radius: var(--radius-md);

  background: rgba(255, 255, 255, 0.74);
}

.review-feedback-intro p {
  margin: 0;
}

.review-feedback-intro strong {
  color: var(--ink);
}


/* ---------------------------------------------------------
   OPTIONAL HOMEPAGE PUBLIC REVIEW PANEL
   Use only if you add the fuller homepage review section.
   --------------------------------------------------------- */

.public-review-home {
  position: relative;
  overflow: hidden;
}

.public-review-home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(243, 231, 200, 0.36),
      transparent 34%
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(215, 229, 218, 0.34),
      transparent 36%
    );
}

.public-review-home > * {
  position: relative;
  z-index: 1;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {
  .review-status-inner {
    width: min(100% - 2rem, var(--container-width));
    gap: 0.5rem 0.75rem;
    padding: 0.72rem 0;
  }

  .review-status-text {
    width: 100%;
  }

  .review-status-label {
    font-size: 0.72rem;
  }

  .page-review-note {
    padding: 1rem;
  }
}


/* ---------------------------------------------------------
   REDUCED MOTION / ACCESSIBILITY
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .review-status-link,
  .page-review-note-link,
  .footer-review-status a {
    scroll-behavior: auto;
  }
}


/* =========================================================
   END PUBLIC REVIEW — SITE-WIDE STYLES
   Remove everything above through the opening PUBLIC REVIEW
   comment when the soft-launch period is complete.
   ========================================================= */
