/* J9 Brandworks webfonts — Google Fonts substitutions for Adobe Clean & Segoe UI.
   Source Sans 3 stands in for Adobe Clean; Open Sans stands in for Segoe UI.
   Replace with licensed originals when available. */

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/open-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/open-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/open-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/open-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/source-sans-3-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/source-sans-3-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/source-sans-3-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/fonts/source-sans-3-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* J9 Brandworks — color tokens.
   Brand colors are taken from the supplied logo/pattern artwork (digital truth),
   with the Pantone references from the brand guidelines recorded alongside. */

:root {
  /* --- Violet — PANTONE 3559 (primary brand color) --- */
  --j9-violet-50: #f4edf6;
  --j9-violet-100: #e7d8ec;
  --j9-violet-200: #d3bcda;
  --j9-violet-300: #b996c3; /* pattern field tint, from artwork */
  --j9-violet-400: #ad7fb8;
  --j9-violet-500: #9e61a7; /* CORE BRAND VIOLET — sampled from logo artwork */
  --j9-violet-600: #85459f; /* PANTONE 3559 C reference value */
  --j9-violet-700: #6e3a83;
  --j9-violet-800: #522b62;
  --j9-violet-900: #351c40;

  /* --- Blue — PANTONE 2391 (secondary: strategic partnerships) --- */
  --j9-blue-50: #e6f2f7;
  --j9-blue-100: #c2e0ea;
  --j9-blue-200: #8ac4d8;
  --j9-blue-300: #4fa5c3;
  --j9-blue-400: #1e8fb4;
  --j9-blue-500: #0f82aa; /* sampled from artwork */
  --j9-blue-600: #0081a6; /* PANTONE 2391 C reference value */
  --j9-blue-700: #026c8a;
  --j9-blue-800: #02526a;
  --j9-blue-900: #013747;

  /* --- Terra — PANTONE 2023 (secondary: corporate events) --- */
  --j9-terra-50: #fef1ed;
  --j9-terra-100: #fdddd2;
  --j9-terra-200: #fbc0ae;
  --j9-terra-300: #f8a78d;
  --j9-terra-400: #f59173; /* sampled from artwork */
  --j9-terra-500: #ef7752;
  --j9-terra-600: #d95f3a;
  --j9-terra-700: #b34a2c;
  --j9-terra-800: #8a3821;
  --j9-terra-900: #5e2616;

  /* --- Neutrals — black-led, faintly warm-violet --- */
  --j9-ink-0: #ffffff;
  --j9-ink-50: #f7f6f7;
  --j9-ink-100: #edecee;
  --j9-ink-200: #dcdadd;
  --j9-ink-300: #bfbcc1;
  --j9-ink-400: #96929a;
  --j9-ink-500: #6f6b73;
  --j9-ink-600: #4e4a51;
  --j9-ink-700: #333036;
  --j9-ink-800: #1c1a1e;
  --j9-ink-900: #0b0608; /* logo black */
  --j9-ink-1000: #000000; /* pattern / screen black */

  /* --- Semantic: brand --- */
  --color-brand: var(--j9-violet-500);
  --color-brand-strong: var(--j9-violet-700);
  --color-brand-soft: var(--j9-violet-300);
  --color-brand-tint: var(--j9-violet-50);
  --color-accent-blue: var(--j9-blue-500);
  --color-accent-terra: var(--j9-terra-400);

  /* --- Semantic: surfaces --- */
  --surface-page: var(--j9-ink-0);
  --surface-muted: var(--j9-ink-50);
  --surface-raised: var(--j9-ink-0);
  --surface-sunken: var(--j9-ink-100);
  --surface-inverse: var(--j9-ink-1000);
  --surface-brand: var(--j9-violet-500);
  --surface-brand-soft: var(--j9-violet-50);
  --surface-blue: var(--j9-blue-500);
  --surface-terra: var(--j9-terra-400);

  /* --- Semantic: text --- */
  --text-primary: var(--j9-ink-900);
  --text-secondary: var(--j9-ink-600);
  --text-muted: var(--j9-ink-400);
  --text-inverse: var(--j9-ink-0);
  --text-brand: var(--j9-violet-600);
  --text-on-brand: var(--j9-ink-0);
  --text-link: var(--j9-violet-600);
  --text-link-hover: var(--j9-violet-800);

  /* --- Semantic: borders --- */
  --border-subtle: var(--j9-ink-200);
  --border-default: var(--j9-ink-300);
  --border-strong: var(--j9-ink-900);
  --border-brand: var(--j9-violet-500);

  /* --- Semantic: state --- */
  --state-hover-tint: rgba(158, 97, 167, 0.08);
  --state-press-tint: rgba(158, 97, 167, 0.16);
  --state-disabled-bg: var(--j9-ink-100);
  --state-disabled-text: var(--j9-ink-400);
  --focus-ring: var(--j9-violet-500);

  /* --- Semantic: feedback (derived, brand-harmonized) --- */
  --feedback-success: #2f7d4f;
  --feedback-success-tint: #eaf4ee;
  --feedback-warning: var(--j9-terra-600);
  --feedback-warning-tint: var(--j9-terra-50);
  --feedback-danger: #b3242c;
  --feedback-danger-tint: #fbeced;
  --feedback-info: var(--j9-blue-600);
  --feedback-info-tint: var(--j9-blue-50);
}

/* Inverse scope — the brand's black/pattern surfaces */
.j9-inverse {
  --surface-page: var(--j9-ink-1000);
  --surface-muted: var(--j9-ink-900);
  --surface-raised: var(--j9-ink-800);
  --text-primary: var(--j9-ink-0);
  --text-secondary: var(--j9-ink-300);
  --text-muted: var(--j9-ink-400);
  --text-brand: var(--j9-violet-300);
  --text-link: var(--j9-violet-300);
  --text-link-hover: var(--j9-violet-100);
  --border-subtle: rgba(255, 255, 255, 0.16);
  --border-default: rgba(255, 255, 255, 0.28);
  --border-strong: var(--j9-ink-0);
}

/* J9 Brandworks — typography tokens.
   Brand guidelines specify two families:
     Adobe Clean  → print, logo, advertising   (substituted: Source Sans 3)
     Segoe        → email, presentations, web  (substituted: Open Sans)
   See readme.md → "Font substitutions". */

:root {
  --font-display: 'Source Sans 3', 'Adobe Clean', 'Myriad Pro', system-ui, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Segoe, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;

  /* Sizes — display sizes are deliberately large; the brand shouts in headlines
     and speaks quietly in body copy. */
  --size-display-1: 88px;
  --size-display-2: 64px;
  --size-h1: 48px;
  --size-h2: 36px;
  --size-h3: 28px;
  --size-h4: 22px;
  --size-lead: 20px;
  --size-body: 17px;
  --size-body-sm: 15px;
  --size-caption: 13px;
  --size-eyebrow: 12px;

  --leading-tight: 1; /* @kind other */
  --leading-display: 1.04; /* @kind other */
  --leading-heading: 1.16; /* @kind other */
  --leading-snug: 1.35; /* @kind other */
  --leading-body: 1.62; /* @kind other */
  --leading-loose: 1.8; /* @kind other */

  --tracking-display: -0.022em; /* @kind other */
  --tracking-heading: -0.012em; /* @kind other */
  --tracking-normal: 0; /* @kind other */
  --tracking-wide: 0.04em; /* @kind other */
  --tracking-eyebrow: 0.16em; /* @kind other */
  --tracking-nav: 0.08em; /* @kind other */

  --measure-narrow: 46ch; /* @kind other */
  --measure-default: 68ch; /* @kind other */
  --measure-wide: 84ch; /* @kind other */

  /* Composed roles */
  --type-display-1: var(--weight-bold) var(--size-display-1) / var(--leading-display) var(--font-display);
  --type-display-2: var(--weight-bold) var(--size-display-2) / var(--leading-display) var(--font-display);
  --type-h1: var(--weight-bold) var(--size-h1) / var(--leading-heading) var(--font-display);
  --type-h2: var(--weight-bold) var(--size-h2) / var(--leading-heading) var(--font-display);
  --type-h3: var(--weight-semibold) var(--size-h3) / var(--leading-snug) var(--font-display);
  --type-h4: var(--weight-semibold) var(--size-h4) / var(--leading-snug) var(--font-display);
  --type-lead: var(--weight-regular) var(--size-lead) / var(--leading-snug) var(--font-body);
  --type-body: var(--weight-regular) var(--size-body) / var(--leading-body) var(--font-body);
  --type-body-sm: var(--weight-regular) var(--size-body-sm) / var(--leading-body) var(--font-body);
  --type-caption: var(--weight-regular) var(--size-caption) / var(--leading-snug) var(--font-body);
  --type-eyebrow: var(--weight-semibold) var(--size-eyebrow) / var(--leading-snug) var(--font-body);
  --type-nav: var(--weight-semibold) var(--size-body-sm) / var(--leading-snug) var(--font-body);
}

/* J9 Brandworks — spacing & layout tokens. 4px base grid. */

:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 128px;
  --space-14: 160px;

  /* Vertical rhythm for page sections */
  --section-gap-sm: var(--space-10);
  --section-gap: var(--space-12);
  --section-gap-lg: var(--space-14);

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 860px;
  --container-wide: 1440px;
  --gutter: var(--space-7);
  --gutter-sm: var(--space-5);
  --grid-columns: 12; /* @kind other */
  --grid-gap: var(--space-6);

  --header-height: 88px;
  --control-height-sm: 34px;
  --control-height: 44px;
  --control-height-lg: 54px;
}

/* J9 Brandworks — shape, border & elevation tokens.

   The monogram is drawn with a constant-width stroke that terminates in perfect
   semicircles. The brand therefore has only two honest corner states: SQUARE
   (containers, images, pattern fields) and FULLY ROUND (controls, chips, avatars).
   The small radii below exist only for inputs that would look brittle at 0. */

:root {
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  --border-width-hairline: 1px;
  --border-width: 2px;
  --border-width-thick: 3px;
  --border-rule: 1px solid var(--border-subtle); /* @kind other */

  /* Elevation is used sparingly — the brand is flat, ink-on-paper.
     Shadows are neutral and low-contrast; never colored glows. */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(11, 6, 8, 0.06), 0 1px 1px rgba(11, 6, 8, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 6, 8, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 6, 8, 0.12);
  --shadow-overlay: 0 24px 64px rgba(11, 6, 8, 0.24);
  --shadow-inset: inset 0 1px 2px rgba(11, 6, 8, 0.08);

  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --focus-ring-shadow: 0 0 0 var(--focus-ring-offset) var(--surface-page),
                       0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring);

  /* Pattern fields — the tessellated monogram, used full-bleed behind
     footers, section breaks and hero panels. */
  --pattern-violet: url('/assets/patterns/j9-bw-pattern-screen-violet.png'); /* @kind other */
  --pattern-violet-wide: url('/assets/patterns/j9-website-pattern-violet.png'); /* @kind other */
  --pattern-black: url('/assets/patterns/j9-bw-pattern-light-gray.png'); /* @kind other */

  /* Protection scrims for type over imagery */
  --scrim-bottom: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.32) 42%, rgba(0, 0, 0, 0) 78%); /* @kind other */
  --scrim-full: rgba(0, 0, 0, 0.48); /* @kind other */
}

/* J9 Brandworks — motion tokens.
   Motion is calm and confident: short fades and small vertical settles.
   No bounce, no spring overshoot, no parallax gimmicks. */

:root {
  --duration-instant: 90ms; /* @kind other */
  --duration-fast: 150ms; /* @kind other */
  --duration-base: 220ms; /* @kind other */
  --duration-slow: 320ms; /* @kind other */
  --duration-reveal: 520ms; /* @kind other */

  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-in: cubic-bezier(0.5, 0, 0.9, 0.2); /* @kind other */
  --ease-linear: linear; /* @kind other */

  --transition-control: color var(--duration-fast) var(--ease-standard),
                        background-color var(--duration-fast) var(--ease-standard),
                        border-color var(--duration-fast) var(--ease-standard),
                        box-shadow var(--duration-fast) var(--ease-standard); /* @kind other */
  --transition-surface: transform var(--duration-base) var(--ease-standard),
                        box-shadow var(--duration-base) var(--ease-standard),
                        opacity var(--duration-base) var(--ease-standard); /* @kind other */

  --lift-hover: translateY(-2px); /* @kind other */
  --press-scale: 0.985; /* @kind other */
  --image-zoom-hover: 1.03; /* @kind other */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms; /* @kind other */
    --duration-fast: 0ms; /* @kind other */
    --duration-base: 0ms; /* @kind other */
    --duration-slow: 0ms; /* @kind other */
    --duration-reveal: 0ms; /* @kind other */
    --lift-hover: none; /* @kind other */
    --press-scale: 1; /* @kind other */
    --image-zoom-hover: 1; /* @kind other */
  }
}

/* J9 Brandworks — base element styling.
   Minimal, opinionated defaults so any page picks up the brand immediately. */

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

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font: var(--type-body);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  color: var(--text-primary);
  text-wrap: balance;
}
h1 { font: var(--type-h1); letter-spacing: var(--tracking-heading); }
h2 { font: var(--type-h2); letter-spacing: var(--tracking-heading); }
h3 { font: var(--type-h3); }
h4 { font: var(--type-h4); }

p { margin: 0 0 var(--space-4); max-width: var(--measure-default); }

a {
  color: var(--text-link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: var(--transition-control);
}
a:hover { color: var(--text-link-hover); }
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring-shadow);
  border-radius: var(--radius-xs);
}

strong, b { font-weight: var(--weight-bold); }

hr {
  border: 0;
  border-top: var(--border-rule);
  margin: var(--space-7) 0;
}

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

::selection { background: var(--j9-violet-200); color: var(--j9-ink-900); }

/* --- Brand utility classes --- */

.j9-eyebrow {
  font: var(--type-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-brand);
}

.j9-display { font: var(--type-display-1); letter-spacing: var(--tracking-display); }
.j9-display-2 { font: var(--type-display-2); letter-spacing: var(--tracking-display); }
.j9-lead { font: var(--type-lead); color: var(--text-secondary); max-width: var(--measure-default); }

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

.j9-pattern-violet {
  background-image: var(--pattern-violet);
  background-size: 420px auto;
  background-repeat: repeat;
}
.j9-pattern-black {
  background-color: var(--j9-ink-1000);
  background-image: var(--pattern-black);
  background-size: cover;
}

.j9-rule-brand { border-top: var(--border-width-thick) solid var(--color-brand); }
