/* Kome — Design System
   7shifts-inspired light theme: indigo CTA, ember orange accent,
   warm bone surfaces, no drop shadows (fill contrast only),
   Inter for UI + Nanum Pen Script for personality moments.
   Easing curves & timings follow Emil Kowalski's animation principles. */

:root {
  /* ───── Colors ───── */
  --color-indigo-bolt: #4570ff;
  --color-indigo-bolt-hover: #3a62e6;
  --color-ember-orange: #ff6808;
  --color-lime-highlighter: #c6ff94;
  --color-lavender-mist: #ebdcff;
  --color-ice-blue: #d6e0ff;
  --color-lilac-bloom: #c293f1;
  --color-deep-navy: #193f78;
  --color-forest-sage: #244f47;
  --color-warm-bone: #f1f0ec;
  --color-paper-white: #ffffff;
  --color-ink-black: #000000;
  --color-hairline: #e5e7eb;
  --color-stone: #d1d5db;
  --color-smoke: #6e6d6c;
  --color-graphite: #555555;

  /* Semantic */
  --surface-page: var(--color-paper-white);
  --surface-bone: var(--color-warm-bone);
  --surface-dark: var(--color-ink-black);
  --text-primary: var(--color-ink-black);
  --text-secondary: var(--color-smoke);
  --text-tertiary: var(--color-graphite);
  --border: var(--color-hairline);

  /* ───── Typography ───── */
  --font-sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Nanum Pen Script', cursive;

  /* Scale */
  --text-caption: 11px;
  --text-body: 14px;
  --text-body-lg: 16px;
  --text-subheading: 18px;
  --text-heading-sm: 24px;
  --text-heading: 36px;
  --text-heading-lg: 48px;
  --text-display: 64px;

  /* ───── Spacing (4px base) ───── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-15: 60px;
  --space-20: 80px;
  --space-23: 92px;
  --space-25: 100px;
  --space-30: 120px;
  --space-40: 160px;

  /* ───── Radius ───── */
  --radius-icon: 8px;
  --radius-input: 12px;
  --radius-nav: 16px;
  --radius-card: 20px;
  --radius-hero: 40px;
  --radius-pill: 9999px;

  /* ───── Layout ───── */
  --page-max: 1200px;

  /* ───── Easing (Emil Kowalski) ───── */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01" on, "cv11" on;
  background: var(--surface-page);
  color: var(--text-primary);
  font-size: var(--text-body-lg);
  line-height: 1.5;
  letter-spacing: -0.02em;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

/* ───── Typography helpers ───── */
.t-display {
  font-size: var(--text-display);
  line-height: 1.11;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.t-heading-lg {
  font-size: var(--text-heading-lg);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.t-heading {
  font-size: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.t-heading-sm {
  font-size: var(--text-heading-sm);
  line-height: 1.33;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.t-subheading {
  font-size: var(--text-subheading);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.t-body-lg {
  font-size: var(--text-body-lg);
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.t-body {
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.t-caption {
  font-size: var(--text-caption);
  line-height: 1.4;
  letter-spacing: -0.018em;
}
.t-eyebrow {
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* ───── Script accent (signature moment) ───── */
.accent-script {
  font-family: var(--font-script);
  color: var(--color-ember-orange);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-block;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: inherit;
  font-size: var(--text-body-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  border-radius: var(--radius-pill);
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible {
  outline: 2px solid var(--color-indigo-bolt);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-indigo-bolt);
  color: var(--color-paper-white);
}
.btn--primary:hover { background: var(--color-indigo-bolt-hover); }

.btn--outline {
  background: transparent;
  color: var(--color-ember-orange);
  border: 2px solid var(--color-ember-orange);
  padding: 10px 20px;
}
.btn--outline:hover { background: rgba(255, 104, 8, 0.06); }

.btn--ghost {
  background: transparent;
  color: var(--color-graphite);
  padding: 8px 12px;
  border-radius: var(--radius-nav);
}
.btn--ghost:hover { background: var(--color-warm-bone); }

.btn--bone {
  background: var(--color-warm-bone);
  color: var(--color-ink-black);
  padding: 10px 20px;
}
.btn--bone:hover { background: #e8e6e0; }

.btn--dark {
  background: var(--color-ink-black);
  color: var(--color-paper-white);
}

/* ───── Pill tag ───── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-warm-bone);
  color: var(--color-ink-black);
  font-size: 12px;
  font-weight: 400;
  padding: 4px 12px;
  letter-spacing: -0.01em;
}
.pill--white { background: var(--color-paper-white); border: 1px solid var(--border); }
.pill--dark { background: var(--color-ink-black); color: var(--color-paper-white); }

/* ───── Card surface ───── */
.surface-card {
  background: var(--color-paper-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}

/* ───── Material Symbols sizing ───── */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ───── Focus ring (a11y default) ───── */
:focus-visible {
  outline: 2px solid var(--color-indigo-bolt);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ───── Reduced motion ───── */
@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;
  }
}
