/* ==========================================================================
   VERNATTE — base + layout
   Structure only: grids, flow, spacing. Colour and type live in components.css.
   Single-class selectors throughout so source order, not specificity, decides.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

/* Inline SVG sprite lives at the top of <body> and takes no space. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Page + container -------------------------------------------------- */

.page { padding: var(--page-pad); }

.site {
  display: grid;
  gap: var(--gap);
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--container-pad);
  background: var(--bg);
  border-radius: var(--r-container);
}

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

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding-inline: clamp(20px, 2.4vw, 34px);
  border-radius: var(--r-panel);
}

.site-header__tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

/* ---- Main layout: sidebar + content ------------------------------------ */
/* DOM order is content first, then the editorial column. Grid areas place the
   column on the left on wide screens and keep the hero first on small ones. */

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-areas: "aside main";
  gap: var(--gap);
  align-items: stretch;
}

.main {
  grid-area: main;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--gap);
  min-width: 0;
}

.sidebar {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 30px 22px 24px;
  border-radius: var(--r-panel);
}

/* The fragrance feature sits at the foot of the column. */
.sidebar__block--end { margin-top: auto; padding-top: 8px; }

/* Named areas are only used when the column becomes a band (see responsive.css). */
.sidebar__intro { grid-area: intro; }
.sidebar__figure { grid-area: figure; }
.sidebar__copy { grid-area: copy; }
.sidebar__cta { grid-area: cta; }
.sidebar__social { grid-area: social; }
.sidebar__block--end { grid-area: mini; }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-panel);
}

/* The photograph fills the row even when the copy column is the taller one. */
.hero > .slot { align-self: stretch; }

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 3vw, 44px);
}

/* ---- Feature grid ------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

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

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 36px clamp(32px, 5vw, 80px);
  padding: clamp(28px, 3.4vw, 48px) clamp(20px, 2.4vw, 34px) 22px;
  border-radius: var(--r-panel);
}

.site-footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
}
