/* ==========================================================================
   Bookiry Design System - Base Tokens & Typography (English-First Global)
   Theme: Clean Light (Slate Surface + Warm Literary Accents)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&display=swap');

:root {
  /* Surface Tokens */
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-soft: #F1F5F9;
  --bg-surface-elevated: #FFFFFF;
  
  /* Text Tokens */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-on-accent: #FFFFFF;
  
  /* Accent Tokens */
  --accent-blue: #3182F6;
  --accent-blue-hover: #1B64DA;
  --accent-blue-subtle: #EFF6FF;
  
  --accent-emerald: #10B981;
  --accent-emerald-subtle: #ECFDF5;
  
  --accent-amber: #F59E0B;
  --accent-amber-subtle: #FFFBEB;
  
  --accent-purple: #8B5CF6;
  --accent-purple-subtle: #F5F3FF;
  
  /* Border & Line Tokens */
  --border-subtle: #E2E8F0;
  --border-focus: #3182F6;
  --border-warm: #E2E8F0;
  
  /* Radius Tokens (Rounded Rectangle Standards) */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 20px 40px rgba(49, 130, 246, 0.12);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-brand: 'Outfit', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  /* Layout */
  --max-width: 1040px;
  --touch-target: 48px;
}

/* Reset & Box Sizing (Zero Horizontal Overflow) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
  position: relative;
}

/* Links & Buttons Reset */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}
