/* Shared site styles: design tokens, reset, typography, buttons, layout primitives.
   Page-specific composition lives next to each page (e.g. /products/glp1-color/page.css).
   Tokens are documented in docs/design-tokens.md. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/DMSans-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Colour: approved palette (approved-website-sources/project-facts.json -> palette) */
  --color-burgundy: #67283d;
  --color-lime: #d2ec70;
  --color-ivory: #fff8ee;
  --color-peach: #f1a863;
  --color-burgundy-deep: #3f1024;
  /* Colour: screen neutrals derived from the palette (see docs/design-tokens.md) */
  --color-tint: #f6ece3; /* ivory mixed with 6% burgundy */
  --color-muted: #694350; /* burgundy-deep mixed 78% into ivory */
  --color-ink: var(--color-burgundy-deep);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-h2: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --text-h1: clamp(2.125rem, 1.4rem + 3.6vw, 4rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --section-y: clamp(var(--space-16), 10vw, 7.5rem);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 38rem;
  --container: 72rem;

  --radius: 2px;
}

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

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

body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-burgundy);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); letter-spacing: -0.015em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--text-h3); line-height: 1.2; }

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--color-burgundy);
  color: var(--color-ivory);
}
.skip-link:focus { top: var(--space-4); }

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

.eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-burgundy);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--color-tint); }
.section__head { max-width: var(--measure); margin-bottom: var(--space-12); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 2rem;
  border: 2px solid var(--color-burgundy);
  border-radius: var(--radius);
  background: var(--color-burgundy);
  color: var(--color-ivory);
  font: 700 1rem/1.2 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--color-ivory); color: var(--color-burgundy); }
.btn--small { min-height: 2.5rem; padding: 0.5rem 1.25rem; font-size: var(--text-sm); }
.btn--lime { background: var(--color-lime); border-color: var(--color-lime); color: var(--color-burgundy-deep); }
.btn--lime:hover { background: transparent; color: var(--color-lime); }

/* Unresolved purchase link: visibly present but not a link */
.btn--pending {
  background: transparent;
  border-style: dashed;
  color: var(--color-burgundy);
  cursor: default;
  gap: var(--space-2);
}
.btn--pending:hover { background: transparent; color: var(--color-burgundy); }
.btn--pending small { font-size: 0.8em; font-weight: 500; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Shared notice shown on every page while the marketing copy is a draft */
.draft-banner { padding: 0.5rem var(--gutter); background: var(--color-burgundy-deep); color: var(--color-ivory); font-size: var(--text-sm); text-align: center; }
