/* MR Vitamins affiliate program: shared styles.
   Tokens and rules are lifted from the Mr Vitamins design system (retail theme). Use the semantic
   tokens (--bg, --fg, --accent, ...) in page styles, never raw hex values. */

:root {
  /* Brand palette */
  --mv-heart-red: #e2323a;
  --mv-plum: #50174b;
  --mv-charcoal: #281e1e;
  --mv-powder-white: #ffffff;
  --mv-sand: #fee4d2;
  --mv-sand-pale: #fff4ed;

  /* Semantic tokens (retail theme) */
  --bg: var(--mv-powder-white);
  --bg-soft: var(--mv-sand-pale);
  --surface-alt: var(--mv-sand);
  --fg: var(--mv-charcoal);
  --fg-muted: color-mix(in oklch, var(--mv-charcoal) 65%, transparent);
  --accent: var(--mv-heart-red);
  --accent-alt: var(--mv-plum);
  --border: color-mix(in oklch, var(--mv-charcoal) 12%, transparent);
  --focus-ring: color-mix(in oklch, var(--mv-heart-red) 45%, transparent);

  /* Type. FK Grotesk applies once its font files are added; until then the system sans-serif. */
  --font-sans: "FK Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-weight: 500;
  --fs-h1: clamp(34px, 9vw, 64px);
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --lh-tight: 1.05;
  --lh-normal: 1.45;
  --lh-loose: 1.6;
  --tracking-tight: -0.02em;

  /* Spacing (4px grid) and radii */
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --motif-stroke: 1.5px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
}

h1 {
  font-weight: var(--heading-weight);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}

p {
  margin: 0 0 var(--s-4);
  max-width: 62ch;
  text-wrap: pretty;
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
  color: var(--fg-muted);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Layout: one left-aligned column, generous space, comfortable on a phone. */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-5) var(--s-5) var(--s-8);
}

.site-header {
  padding: var(--s-3) 0 var(--s-6);
}

.site-header img {
  display: block;
  width: 168px;
  height: auto;
}

/* The page's one colour block. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
  border-radius: var(--r-lg);
  padding: 120px var(--s-5) var(--s-6);
}

.hero > :last-child {
  margin-bottom: 0;
}

/* Corner motif: an open "V" (vertical leg, then an angled leg rising to the top right).
   Never an L or a bracket. */
.corner-motif {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  width: 84px;
  height: 84px;
  color: var(--accent);
  pointer-events: none;
}

@media (min-width: 600px) {
  .page {
    padding-top: var(--s-6);
  }

  .hero {
    padding: 160px var(--s-7) var(--s-7);
  }

  .corner-motif {
    top: var(--s-6);
    right: var(--s-6);
    width: 120px;
    height: 120px;
  }
}
