/* HeartWork Creative: design tokens
   Source: HeartWork Creative Website UI kit (exported 2026-09). See brain/visual-style-guide.md.
   Fonts: load Playfair Display + Inter from Google Fonts:
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap" rel="stylesheet">
*/
/* HeartWork Creative, locked palette (rev. 2026-08-18). Ratios are hierarchy guidance, not formula. */
:root{
  /* Base palette */
  --hwc-ivory:#F5F1E8;      /* ~45% backgrounds, negative space */
  --hwc-slate:#2F3441;      /* ~25% body text, nav, footer, high-contrast sections */
  --hwc-aubergine:#6F3E63;  /* ~15% signature: logo emphasis, headlines, key statements */
  --hwc-teal:#437472;       /* ~10% buttons, links, icons, CTAs (WCAG AA; #477B78 retired) */
  --hwc-sand:#D9C9BE;       /* ~4% cards, content blocks, dividers */
  --hwc-clay:#B5765F;       /* ~1% editorial accents, micro-details, sparingly */
  --hwc-clay-deep:#9A5F4A;  /* badge fills only: Warm White text passes AA (5.0:1) */

  /* Derived steps (mixed from the palette, for hover/pressed/tints only) */
  --hwc-teal-hover:#375F5D;
  --hwc-teal-press:#2C4D4B;
  --hwc-aubergine-deep:#5A3150;
  --hwc-slate-soft:#4A5060;
  --hwc-ivory-deep:#EDE6D8;
  --hwc-sand-soft:#E8DDD4;
  --hwc-white:#FFFDF9;

  /* Semantic: text */
  --text-body:var(--hwc-slate);
  --text-muted:var(--hwc-slate-soft);
  --text-heading:var(--hwc-aubergine);
  --text-link:var(--hwc-teal);
  --text-link-hover:var(--hwc-teal-hover);
  --text-on-dark:var(--hwc-ivory);
  --text-on-dark-muted:#C9C4BA;
  --text-accent:var(--hwc-clay);

  /* Semantic: surfaces */
  --surface-page:var(--hwc-ivory);
  --surface-alt:var(--hwc-ivory-deep);
  --surface-card:var(--hwc-sand-soft);
  --surface-card-strong:var(--hwc-sand);
  --surface-raised:var(--hwc-white);
  --surface-dark:var(--hwc-slate);
  --surface-brand:var(--hwc-aubergine);

  /* Semantic: actions */
  --action-primary:var(--hwc-teal);
  --action-primary-hover:var(--hwc-teal-hover);
  --action-primary-press:var(--hwc-teal-press);
  --action-on-primary:var(--hwc-ivory);

  /* Lines */
  --border-default:var(--hwc-sand);
  --border-strong:#BFAEA2;
  --border-accent:var(--hwc-clay);
  --focus-ring:var(--hwc-teal);
}

:root{
  --font-display:"Playfair Display",Georgia,"Times New Roman",serif;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;

  --fs-display:clamp(2.5rem,5vw,4rem);   /* hero h1 */
  --fs-h2:clamp(2rem,3.6vw,2.875rem);
  --fs-h3:1.625rem;
  --fs-h4:1.25rem;
  --fs-lead:1.1875rem;
  --fs-body:1.0625rem;
  --fs-small:0.9375rem;
  --fs-eyebrow:0.8125rem;
  --fs-price:2.5rem;
  --fs-quote:1.375rem;

  --lh-tight:1.12;
  --lh-heading:1.2;
  --lh-body:1.65;
  --lh-quote:1.5;

  --fw-regular:400;--fw-medium:500;--fw-semibold:600;--fw-bold:700;
  --tracking-eyebrow:0.16em;
  --tracking-heading:-0.01em;
}

:root{
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--space-8:64px;--space-9:96px;--space-10:128px;
  --section-pad-y:var(--space-9);
  --container-max:1180px;
  --container-narrow:760px;
  --gutter:clamp(20px,4vw,40px);

  --radius-sm:4px;--radius-md:8px;--radius-lg:14px;--radius-pill:999px;
  --shadow-card:0 1px 2px rgba(47,52,65,.06),0 8px 24px rgba(47,52,65,.07);
  --shadow-raised:0 2px 4px rgba(47,52,65,.06),0 18px 40px rgba(47,52,65,.12);
  --shadow-header:0 1px 0 rgba(47,52,65,.08);

  --ease-standard:cubic-bezier(.2,.6,.2,1);
  --dur-fast:150ms;
  --dur-base:240ms;
  --dur-slow:400ms;
}


/* Base element styles */
html{scroll-behavior:smooth}
body{margin:0;background:var(--surface-page);color:var(--text-body);font-family:var(--font-body);font-size:var(--fs-body);line-height:var(--lh-body);-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:var(--font-display);color:var(--text-heading);font-weight:var(--fw-semibold);line-height:var(--lh-heading);letter-spacing:var(--tracking-heading);text-wrap:balance;margin:0}
p{text-wrap:pretty}
a{color:var(--text-link);text-underline-offset:3px}
a:hover{color:var(--text-link-hover)}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
::selection{background:var(--hwc-sand)}
