/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ═══════════════════════════════════════════════════════════════════════════
   Writelium Design System — Dark-first SaaS
   Inspired by Linear, Raycast, Arc
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── Core Variables (Dark Mode Default) ─── */
:root {
  /* Background layers */
  --bg: #09090b;
  --bg-subtle: #0c0c0f;
  --surface: #141417;
  --surface-hover: #1c1c21;
  --surface-active: #232329;
  --elevated: #1a1a1f;
  
  /* Text colors */
  --ink: #fafafa;
  --ink-secondary: #a1a1aa;
  --ink-muted: #71717a;
  --ink-faint: #52525b;
  
  /* Semantic aliases */
  --text: var(--ink);
  --text-secondary: var(--ink-secondary);
  --text-muted: var(--ink-muted);
  --heading: var(--ink);
  --steel: var(--ink-muted);
  
  /* Borders */
  --line: #27272a;
  --line-subtle: #1f1f23;
  --line-hover: #3f3f46;
  --border: var(--line);
  
  /* Accent colors */
  --accent: #ef4444;
  --accent-hover: #f97316;
  --accent-muted: rgba(239, 68, 68, 0.15);
  --accent-glow: rgba(239, 68, 68, 0.4);
  --blue: var(--accent);
  --primary: var(--accent);
  
  /* Status colors */
  --success: #22c55e;
  --success-muted: rgba(34, 197, 94, 0.15);
  --warning: #f59e0b;
  --warning-muted: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-muted: rgba(239, 68, 68, 0.15);
  
  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: var(--font-display);
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  
  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);
  
  /* Transitions */
  --transition-fast: 0.1s ease;
  --transition-base: 0.15s ease;
  --transition-slow: 0.25s ease;
}

/* ─── Light Mode ─── */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --surface: #ffffff;
  --surface-hover: #f4f4f5;
  --surface-active: #e4e4e7;
  --elevated: #ffffff;
  
  --ink: #18181b;
  --ink-secondary: #3f3f46;
  --ink-muted: #71717a;
  --ink-faint: #a1a1aa;
  
  --line: #e4e4e7;
  --line-subtle: #f4f4f5;
  --line-hover: #d4d4d8;
  
  --accent: #dc2626;
  --accent-hover: #ea580c;
  --accent-muted: rgba(220, 38, 38, 0.1);
  --accent-glow: rgba(220, 38, 38, 0.25);
  
  --success: #16a34a;
  --success-muted: rgba(22, 163, 74, 0.1);
  --warning: #d97706;
  --warning-muted: rgba(217, 119, 6, 0.1);
  --danger: #dc2626;
  --danger-muted: rgba(220, 38, 38, 0.1);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px var(--accent-glow);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ─── Selection ─── */
::selection {
  background: var(--accent);
  color: white;
}

/* ─── Scrollbar (Webkit) ─── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--line-hover);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* ─── Placeholder ─── */
::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

/* ─── Focus Visible ─── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Links ─── */
a {
  color: inherit;
  text-decoration: none;
}

/* ─── Images ─── */
img, svg {
  display: block;
  max-width: 100%;
}

/* ─── Buttons Reset ─── */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
}

/* ─── Input Reset ─── */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

/* ─── Article Body (for markdown preview) ─── */
.article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article-body h1 { font-size: 1.75rem; }
.article-body h2 { font-size: 1.375rem; }
.article-body h3 { font-size: 1.125rem; }
.article-body h4 { font-size: 1rem; }

.article-body p {
  margin-bottom: 1em;
}

.article-body ul, .article-body ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.article-body li {
  margin-bottom: 0.25em;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface-hover);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.article-body pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--bg-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1em;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1em;
  margin: 1em 0;
  color: var(--ink-muted);
  font-style: italic;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

.article-body th,
.article-body td {
  padding: 0.75em;
  border: 1px solid var(--line);
  text-align: left;
}

.article-body th {
  background: var(--surface);
  font-weight: 600;
}

