/* ============================================================
   TINYSQUARE STUDIO — GLOBAL CSS
   Design Tokens, Reset & Base Styles
   ============================================================ */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg: #0A0A0A; /* Black */
  --color-brand-green: #A3A3A3;
  --color-btn-bg: #E0E0E0;
  --color-btn-text: #0A0A0A;
  --color-stroke: #666666;
  --color-modal-overlay: rgba(0, 0, 0, 0.85);
  --color-watermark: #222222;
  --color-text-primary: #C0C0C0; /* Grayish */
  --color-text-muted: #888888;
  --color-surface: #1A1A1A;

  /* Typography */
  --font-family: 'Roboto Mono', monospace;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Font Sizes */
  --fs-xs: 0.75rem;
  /* 12px */
  --fs-sm: 0.875rem;
  /* 14px */
  --fs-base: 1rem;
  /* 16px */
  --fs-md: 1.125rem;
  /* 18px */
  --fs-lg: 1.25rem;
  /* 20px */
  --fs-xl: 1.5rem;
  /* 24px */
  --fs-2xl: 2rem;
  /* 32px */
  --fs-3xl: 2.5rem;
  /* 40px */

  /* Spacing */
  --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;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Z-index layers */
  --z-base: 1;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 300;

  /* Layout */
  --hero-width-desktop: 42%;
  --breakpoint-mobile: 1024px;
}

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

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

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow: hidden;
  /* Safe area for notch/status bar */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

/* --- Accessibility: Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--color-brand-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Scrollbar Styling (desktop) --- */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-stroke);
  border-radius: var(--radius-full);
}

/* --- Selection color --- */
::selection {
  background-color: var(--color-brand-green);
  color: var(--color-btn-bg);
}