/* kashsano – Base Styles, Reset, Theme, Typography */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Light Theme (default) – warmer, friendlier */
  --bg-primary: #FAFAFA;
  --bg-secondary: #F0F0EE;
  --bg-card: #FFFFFF;
  --bg-input: #F0F0EE;
  --text-primary: #2D2D2D;
  --text-secondary: #717171;
  --text-muted: #A3A3A3;
  --border: #E5E5E3;
  --border-focus: #1D9E75;

  /* Accent – slightly warmer green */
  --accent: #1A9D74;
  --accent-hover: #168A65;
  --accent-light: rgba(26, 157, 116, 0.08);
  --accent-soft: rgba(26, 157, 116, 0.12);
  --warning: #C4841D;
  --warning-light: rgba(196, 132, 29, 0.08);
  --danger: #D94343;
  --danger-light: rgba(217, 67, 67, 0.08);
  --success: #1A9D74;

  /* Layout */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --max-width: 480px;
  --nav-height: 64px;

  /* Typography – Inter */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 0.9375rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 580;
  --fw-bold: 650;

  /* Transitions */
  --transition: 180ms ease;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg-primary: #111111;
  --bg-secondary: #1A1A1A;
  --bg-card: #1E1E1E;
  --bg-input: #252525;
  --text-primary: #ECECEC;
  --text-secondary: #999999;
  --text-muted: #5C5C5C;
  --border: #2E2E2E;
  --border-focus: #1A9D74;
  --accent-light: rgba(26, 157, 116, 0.12);
  --accent-soft: rgba(26, 157, 116, 0.18);
  --warning-light: rgba(196, 132, 29, 0.12);
  --danger-light: rgba(217, 67, 67, 0.12);

  color-scheme: dark;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: var(--font);
  font-size: var(--fs-base);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: border-color var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

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

/* Utility: visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
