/* TACO design tokens. Source of truth for colour: brand/guidelines.md. Rationale: design/DESIGN.md.
   Shared by the public site, the demo form, the admin and the post renderer, so it holds values only:
   no element styles, no font loading. Load fonts in the page (see DESIGN.md, "Type"). */
:root {
  /* Brand palette, exactly as in the guidelines */
  --teal: #00957E;
  --coral: #F78E56;
  --pink: #FF236C;
  --yellow: #F2E394;
  --mustard: #E09900;
  --ink: #1F2A2E;
  --white: #FFFFFF;

  /* Accessible shades: same hues, darkened until they pass WCAG AA (4.5:1) on white.
     Use these wherever the colour carries text at body size, or fills a button with white text. */
  --teal-700: #007A67;    /* 5.3:1 on white: links, small teal text, focus ring */
  --teal-800: #006B5A;    /* 6.5:1: hover for teal-700 */
  --teal-50: #E6F4F2;     /* tinted backgrounds, icon chips */
  --pink-600: #E0004F;    /* 4.9:1: action button fill, pink text */
  --pink-700: #C70046;    /* 6.0:1: action hover/active */
  --pink-50: #FFE8EF;
  --coral-700: #B4501A;   /* 5.1:1: coral text */
  --coral-50: #FEF0E8;
  --mustard-700: #8F6200; /* 5.4:1: mustard text */
  --yellow-50: #FBF6DC;
  --cream: #FBF7EE;       /* sketchbook paper (post style .sk) */
  --cream-dot: #E9E1D0;

  /* Neutrals */
  --ink-700: #3A474C;
  --grey-600: #56636A;    /* 6.2:1: secondary text */
  --grey-500: #737F85;    /* 4.1:1: control borders (needs 3:1), placeholder text */
  --grey-200: #DCE2E3;    /* hairlines, card borders (decorative only) */
  --grey-50: #F4F6F6;

  /* Feedback */
  --red-700: #C0263B;     /* 5.9:1: error text and borders */
  --red-50: #FDECEE;

  /* Semantic roles. Components use these, not the raw palette. */
  --color-text: var(--ink);
  --color-text-muted: var(--grey-600);
  --color-text-on-brand: var(--white);
  --color-bg: var(--white);
  --color-bg-page: var(--cream);
  --color-surface: var(--white);
  --color-surface-tint: var(--yellow-50);
  --color-border: var(--grey-200);
  --color-border-control: var(--grey-500);
  --color-primary: var(--teal);            /* backgrounds, bands, large headings */
  --color-primary-text: var(--teal-700);   /* teal at body size */
  --color-primary-text-hover: var(--teal-800);
  --color-secondary: var(--coral);
  --color-secondary-text: var(--coral-700);
  --color-highlight: var(--mustard);       /* underlines, stars, small details */
  --color-action: var(--pink-600);         /* the single call to action */
  --color-action-hover: var(--pink-700);
  --color-action-brand: var(--pink);       /* pink at display size (24px+) or decoration */
  --color-on-action: var(--white);         /* text on the action button */
  --color-headline: var(--ink);            /* page and section headlines */
  --color-bg-hero: var(--color-bg-page);   /* behind the hero */
  --color-bg-header: var(--color-bg-page); /* sticky site header */
  --color-band: var(--teal-700);           /* full-width coloured band; white text passes AA at body size */
  --color-band-deep: var(--teal-800);      /* footer */
  --color-tape: color-mix(in srgb, var(--yellow) 85%, transparent); /* the strip of tape on a print */
  --color-focus: var(--teal-700);
  --color-error: var(--red-700);
  --color-error-bg: var(--red-50);
  --color-success: var(--teal-700);

  /* Type */
  --font-display: "Fredoka", "Fredoka One", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Akaya Kanadaka", "Comic Sans MS", cursive;
  --weight-display: 600;   /* Fredoka 600 = the Fredoka One look */
  --font-headline: var(--font-display);      /* what headlines are set in (a role, so a theme can change it) */
  --weight-headline: var(--weight-display);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --text-xs: 0.8125rem;    /* 13px  fine print */
  --text-sm: 0.9375rem;    /* 15px  hints, errors, labels */
  --text-base: 1rem;       /* 16px  body, inputs (never smaller: iOS zooms on focus) */
  --text-md: 1.125rem;     /* 18px  lead text, buttons */
  --text-lg: 1.375rem;     /* 22px  h3 */
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);   /* 24 to 30  h2 */
  --text-2xl: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem); /* 30 to 44  h1 */
  --text-3xl: clamp(2.25rem, 1.5rem + 3.6vw, 3.75rem);  /* 36 to 60  hero */

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-body: 1.55;

  /* Spacing: 4px base */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.25rem;  /* 20 */
  --space-6: 1.5rem;   /* 24 */
  --space-8: 2rem;     /* 32 */
  --space-10: 2.5rem;  /* 40 */
  --space-12: 3rem;    /* 48 */
  --space-16: 4rem;    /* 64 */
  --gutter: var(--space-4);  /* page side padding on phones */

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;   /* inputs */
  --radius-lg: 16px;
  --radius-xl: 24px;   /* cards */
  --radius-pill: 999px;/* buttons, tags */

  /* Shadows: minimal; artwork supplies the colour, not the chrome */
  --shadow-1: 0 1px 2px rgba(31, 42, 46, 0.06), 0 2px 8px rgba(31, 42, 46, 0.05);
  --shadow-2: 0 2px 4px rgba(31, 42, 46, 0.05), 0 12px 32px rgba(31, 42, 46, 0.08);
  --shadow-print: 0 1px 2px rgba(31, 42, 46, 0.14), 0 6px 16px rgba(31, 42, 46, 0.10); /* a photo print on the page */

  /* Controls */
  --control-height: 3rem;      /* 48px: tap target */
  --control-height-lg: 3.5rem; /* 56px: primary button */
  --control-padding-x: 0.875rem;
  --control-border-width: 1.5px;
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;

  /* Layout */
  --measure: 34rem;            /* form and text column */
  --container: 68rem;
  --header-height: 3.75rem;    /* 60px sticky site header */
  --cta-bar-height: 4.5rem;    /* 72px sticky "Book a free demo" bar on phones */
  --breakpoint-md: 48rem;      /* reference only; CSS vars don't work in media queries */
  --breakpoint-lg: 60rem;

  /* Motion */
  --duration-fast: 120ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; }
}
