/* ==========================================================================
   Her Wellness Daily — base layer
   Design tokens, reset, typography scale, layout primitives.
   Section-specific rules live in sections.css.
   ========================================================================== */

:root {
  /* Brand palette */
  --c-white:      #FFFFFF;
  --c-ink:        #242424;  /* primary text        */
  --c-ink-soft:   #4A4A4A;  /* secondary text      */
  --c-ink-body:   #424242;  /* long-form body copy */
  --c-ink-muted:  #767676;  /* metadata (AA 4.5:1) */
  --c-burgundy:   #873D55;  /* accent              */
  --c-rose:       #F3E6EA;  /* secondary accent    */
  --c-neutral:    #F8F7F5;  /* light sections      */
  --c-rule:       #E7E7E7;  /* dividers            */

  /* Typefaces — display serif + editorial sans, with metric-near fallbacks */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-text:    "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --measure:   41.25rem;  /* 660px — editorial reading column */
  --wide:      65rem;     /* 1040px — hero / full-width blocks */
  --gutter:    1.25rem;

  /* Vertical rhythm */
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1.125rem;
  --space-md:  1.75rem;
  --space-lg:  2.5rem;
  --space-xl:  3.5rem;
}

@media (min-width: 48em) {
  :root {
    --gutter: 2rem;
    --space-lg: 3rem;
    --space-xl: 4.5rem;
  }
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background-color: var(--c-white);
  color: var(--c-ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;     /* 17px mobile */
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }

img, picture, svg { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--measure { max-width: calc(var(--measure) + var(--gutter) * 2); }
.shell--wide    { max-width: calc(var(--wide) + var(--gutter) * 2); }

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--c-burgundy);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Typographic utilities
   -------------------------------------------------------------------------- */

/* Keeps hyphenated product names (GLP-1) from breaking across lines */
.nb { white-space: nowrap; }

/* Screen-reader-only text that stays in the accessibility tree */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
