/* Kimono.inc — Base styles
   Brand: Pure B&W with orange accent (per Kimono Brand Guidelines V01, Dec 2024)
   Typography: Neue Haas Grotesk → Inter as free web fallback
*/

:root {
  /* ─── Brand colors ─── */
  --k-black: #000000;
  --k-white: #ffffff;

  /* Gray ramp from brand guide (4.3 Shades / Secondary) */
  --k-gray-900: #000000;
  --k-gray-800: #393939;
  --k-gray-700: #747474;
  --k-gray-600: #a8a8a8;
  --k-gray-500: #cdcdcd;
  --k-gray-300: #e5e5e5;
  --k-gray-200: #f5f5f5;
  --k-gray-100: #fafafa;

  /* Brand action colors (per Figma + live product — May 22, 2026) */
  /* V7.2 — user-locked 4-color palette (2026-06-02) */
  --k-rust:      #ba5324;     /* Rust — em emphasis, gravitas accents */
  --k-orange:    #cc5f26;     /* Orange — primary CTA, buttons */
  --k-orange-hover: #ba5324;  /* CTA hover — falls to rust */
  --k-gold:      #b3935c;     /* Gold — K mark, eyebrows, primary accent (locked) */
  --k-gold-deep: #9c7e4a;     /* Gold deep — accent variant for dividers, decorative */
  --k-gold-soft: #9c7e4a;     /* alias for backward-compat (now points to gold-deep) */
  --k-gold-hover: #9c7e4a;    /* alias for backward-compat */
  --k-indigo: #6b5fe4;        /* Indigo — reserved for product-app echo (Edit/Share buttons) */
  --k-indigo-hover: #7e74e8;

  /* ─── Dark theme semantic roles ─── */
  --color-bg: #161816;         /* Warm near-black, matches product app */
  --color-surface: #1c1f1c;
  --color-surface-2: #232622;
  --color-border: #2a2d29;
  --color-divider: #1f221f;

  --color-text: var(--k-white);
  --color-text-muted: #b8b8b8;
  --color-text-faint: #7a7a7a;

  /* ─── Light theme semantic roles (for white sections) ─── */
  --color-bg-light: var(--k-white);
  --color-surface-light: var(--k-gray-100);
  --color-border-light: var(--k-gray-300);
  --color-text-light: var(--k-black);
  --color-text-light-muted: var(--k-gray-700);
  --color-text-light-faint: var(--k-gray-600);

  /* Background reference for system color in case of OS pickup */
  color-scheme: dark;

  /* ─── Type scale (per shared/01-design-tokens.md) ─── */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 7rem);

  /* ─── Spacing (4px base) ─── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ─── Radii ─── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ─── Transitions ─── */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ─── Content widths ─── */
  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1280px;

  /* ─── Fonts ─── */
  /* Inter is the closest free web substitute for Neue Haas Grotesk Display.
     Per brand guidelines: Roman 55 for body, Medium 65 for emphasis, Thin 35 for light moments. */
  --font-body: 'Inter', 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Inter', 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ─── Reset / base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.5;
  font-family: var(--font-body);
  font-weight: 400; /* Roman 55 equivalent */
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: -0.005em;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  font-weight: 500; /* Medium 65 */
  letter-spacing: -0.02em;
}

h1 { line-height: 1.0; }     /* 100% per brand guide */
h2, h3 { line-height: 1.15; } /* tight display */
h4, h5, h6 { line-height: 1.3; }
p, li, figcaption { text-wrap: pretty; max-width: 70ch; line-height: 1.55; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-interactive), border-color var(--transition-interactive);
}

::selection {
  background: var(--k-orange);
  color: var(--k-black);
}

:focus-visible {
  outline: 2px solid var(--k-orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button { cursor: pointer; background: none; border: none; color: inherit; }

a, button, [role='button'], input, textarea, select {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              opacity var(--transition-interactive);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
