@import url('https://fonts.googleapis.com/css?family=Sora:700|Sora:400');

/* ==========================================================================
   DESIGN SYSTEM - Wick Journal
   ========================================================================== */

/* --------------------------------------------------------------------------
   COLOR PALETTE
   -------------------------------------------------------------------------- */
:root[data-theme="light"] {
  --text: #071311;
  --background: #eef2f1;
  --surface: #ffffff;
  --primary: #3d5c54;
  --secondary: #8ca6d4;
  --accent: #d56f62;
  --border-subtle: rgba(61, 92, 84, 0.1); /* Low opacity primary */
}

:root[data-theme="dark"] {
  --text: #ecf8f6;
  --background: #0d1110;
  --surface: #151a19; /* Slightly lighter than background */
  --primary: #a3c2ba;
  --secondary: #2b4573;
  --accent: #9d372a;
  --border-subtle: rgba(163, 194, 186, 0.1); /* Low opacity primary */
}

/* Gradients (dark theme values) */
:root {
  --linear-primary-secondary: linear-gradient(#a3c2ba, #2b4573);
  --linear-primary-accent: linear-gradient(#a3c2ba, #9d372a);
  --linear-secondary-accent: linear-gradient(#2b4573, #9d372a);
  --radial-primary-secondary: radial-gradient(#a3c2ba, #2b4573);
  --radial-primary-accent: radial-gradient(#a3c2ba, #9d372a);
  --radial-secondary-accent: radial-gradient(#2b4573, #9d372a);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
html {
  font-size: 100%; /* 16px base */
}

body {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--background);
}

h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em 0;
}

h1 { font-size: 4.210rem; }  /* 67.36px */
h2 { font-size: 3.158rem; }  /* 50.56px */
h3 { font-size: 2.369rem; }  /* 37.92px */
h4 { font-size: 1.777rem; }  /* 28.48px */
h5 { font-size: 1.333rem; }  /* 21.28px */
small { font-size: 0.750rem; } /* 12px */

/* Mobile typography adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
}

/* --------------------------------------------------------------------------
   SPACING SYSTEM (8px base)
   -------------------------------------------------------------------------- */
:root {
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
}

/* --------------------------------------------------------------------------
   BORDERS & RADIUS
   -------------------------------------------------------------------------- */
:root {
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --border-width: 1px;
}

/* --------------------------------------------------------------------------
   SHADOWS
   -------------------------------------------------------------------------- */
:root {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   TRANSITIONS
   -------------------------------------------------------------------------- */
:root {
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --------------------------------------------------------------------------
   BASE RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------------------------- */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
