/*
 * Final V9 typography audit.
 * This file normalises the small-text system and brand wordmark without
 * changing the approved layouts or image proportions.
 */

@font-face {
  font-family: "Coolvetica Regular";
  src: url("assets/fonts/coolvetica-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --brand-face: "Coolvetica Regular", "Coolvetica", "Arial Rounded MT Bold", sans-serif;
  --content-safe-inset: clamp(40px, 2.75vw, 56px);
  --micro-label-size: clamp(13px, 0.78vw, 15px);
  --support-copy-size: clamp(15px, 0.92vw, 17px);
}

/* Brand typography */
.wordmark,
.brand-inline {
  font-family: var(--brand-face);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-transform: lowercase;
}

.wordmark {
  font-size: clamp(40px, 2.65vw, 50px);
  line-height: 0.86;
}

.brand-inline {
  font-size: 1.24em;
  line-height: 0;
}

.brand-inline--body {
  font-size: 1.12em;
}

.site-footer .wordmark {
  font-size: clamp(48px, 3.25vw, 62px);
}

/* Navigation and actions are small, but never secondary to the point of loss. */
.site-nav a,
.footer-links a {
  font-size: clamp(14px, 0.86vw, 16px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

.primary-action {
  font-size: clamp(14px, 0.82vw, 15px);
  font-weight: 700;
  line-height: 1;
}

/* One consistent eyebrow / section-label system. */
.eyebrow,
.category-rebuild__rail p,
.category-rebuild__kicker,
.scent-v9-intro-refresh .section-rail .eyebrow,
.scent-families-v9-refresh > .subsection-heading .eyebrow,
.featured-v9 > .subsection-heading .eyebrow,
.full-collection-v9 > .full-grid-heading .eyebrow {
  font-size: var(--micro-label-size);
  font-weight: 780;
  line-height: 1.3;
  letter-spacing: 0.105em;
}

.category-rebuild__rail span,
.section-rail > span,
.scent-v9-intro-refresh .section-rail > span {
  font-size: clamp(14px, 0.82vw, 16px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* Product-detail support labels */
.material-notes {
  gap: 10px;
}

.material-notes span {
  padding: 9px 12px;
  font-size: clamp(13px, 0.78vw, 15px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.025em;
}

/* How-to steps */
.how-v9-steps span {
  font-size: clamp(15px, 0.9vw, 17px);
  font-weight: 750;
  line-height: 1.2;
}

.how-v9-steps p {
  font-size: var(--support-copy-size);
  font-weight: 500;
  line-height: 1.52;
}

/* Scent-family cards */
.series-v9-card p {
  margin-bottom: 9px;
  font-size: clamp(13px, 0.78vw, 15px);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.series-v9-card span {
  max-width: 28ch;
  font-size: var(--support-copy-size);
  font-weight: 500;
  line-height: 1.48;
}

/* Featured scent story labels and descriptions */
.featured-v9 {
  --featured-copy-inset: var(--content-safe-inset);
}

.featured-v9-card p {
  margin-bottom: 10px;
  font-size: clamp(13px, 0.78vw, 15px);
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: 0.075em;
}

.featured-v9-card span {
  max-width: 34ch;
  font-size: var(--support-copy-size);
  font-weight: 500;
  line-height: 1.5;
}

/* Full collection labels should remain readable beneath the square artwork. */
.collection-v9-card small {
  min-height: 18px;
  font-size: clamp(12px, 0.72vw, 14px);
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: 0.055em;
}

.collection-v9-card h4 {
  margin-top: 7px;
  font-size: clamp(21px, 1.55vw, 29px);
  line-height: 1.02;
}

.collection-v9-card > div:last-child {
  min-height: 94px;
  padding-top: 15px;
}

/* The three Scent Collection headings share one inset and one right edge. */
.scent-families-v9-refresh > .subsection-heading,
.featured-v9 > .subsection-heading,
.full-collection-v9 > .full-grid-heading {
  box-sizing: border-box;
  width: 100%;
  padding-inline: var(--content-safe-inset);
}

.featured-v9 > .subsection-heading h3,
.full-collection-v9 > .full-grid-heading h3 {
  width: auto;
  max-width: none;
  margin: 0 0 0 auto;
  font-size: clamp(44px, 3.7vw, 70px);
  font-weight: 740;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-align: right;
  white-space: nowrap;
}

.scent-families-v9-refresh > .subsection-heading h3 {
  margin-left: auto;
  text-align: right;
}

/* Footer information remains clearly available for policy/API review. */
.footer-main p {
  max-width: 28ch;
  font-size: clamp(15px, 0.92vw, 17px);
  font-weight: 550;
  line-height: 1.45;
}

.footer-links {
  gap: 11px;
}

.footer-bottom {
  font-size: clamp(12px, 0.72vw, 14px);
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: 0.035em;
}

@media (max-width: 900px) {
  :root {
    --content-safe-inset: 20px;
    --micro-label-size: 12px;
    --support-copy-size: 15px;
  }

  .wordmark {
    font-size: 36px;
  }

  .site-nav a,
  .footer-links a {
    font-size: 13px;
  }

  .scent-families-v9-refresh > .subsection-heading,
  .featured-v9 > .subsection-heading,
  .full-collection-v9 > .full-grid-heading {
    padding-inline: var(--content-safe-inset);
  }

  .featured-v9 > .subsection-heading h3,
  .full-collection-v9 > .full-grid-heading h3 {
    margin-left: 0;
    font-size: clamp(38px, 10.5vw, 56px);
    text-align: left;
    white-space: normal;
  }

  .scent-families-v9-refresh > .subsection-heading h3 {
    text-align: left;
  }

  .featured-v9-card:nth-child(odd) > div {
    padding-inline: var(--content-safe-inset);
  }

  .collection-v9-card small {
    font-size: 11px;
  }

  .collection-v9-card h4 {
    font-size: clamp(18px, 5.1vw, 24px);
  }

  .footer-bottom {
    font-size: 12px;
  }
}
