/* ============================================================
   Elegant Work — Core CSS
   Fonts: DM Serif Display (headings) + Outfit (body) + JetBrains Mono (code)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  /* Brand */
  --primary: #1B4B8A;
  --primary-light: #2460b0;
  --primary-dark: #0f2d57;
  --secondary: #F0A500;
  --secondary-dark: #c88800;

  /* Surfaces */
  --surface: #FFFFFF;
  --bg: #F4F6FA;
  --sidebar: #0D2545;
  --sidebar-hover: #162f58;
  --sidebar-active: #1B4B8A;

  /* Text */
  --text: #1A1D23;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  /* Borders */
  --border: #E2E8F0;
  --border-dark: #CBD5E1;

  /* States */
  --success: #16A34A;
  --success-bg: #F0FDF4;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --info: #0284C7;
  --info-bg: #F0F9FF;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 4px 12px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .05);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .05);
  --shadow-xl: 0 25px 60px rgba(0, 0, 0, .15);

  /* Layout */
  --sidebar-w: 260px;
  --header-h: 64px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration: .2s;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

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

ul,
ol {
  list-style: none;
}

/* ── Typography Scale ───────────────────────────────────── */
h1,
.h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -.02em;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 400;
}

h3,
.h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

h4,
.h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

h5,
.h5 {
  font-size: .875rem;
  font-weight: 600;
}

h6,
.h6 {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

p {
  margin-bottom: .75rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-sm {
  font-size: .8125rem;
}

.text-xs {
  font-size: .75rem;
}

.text-lg {
  font-size: 1.0625rem;
}

.text-muted {
  color: var(--text-muted);
}

.text-mono {
  font-family: var(--font-mono);
}

.text-primary {
  color: var(--primary);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-warning {
  color: var(--warning);
}

.font-medium {
  font-weight: 500;
}

.font-semi {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* ── Utility ────────────────────────────────────────────── */
.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.d-none {
  display: none;
}

.align-center {
  align-items: center;
}

.gap-1 {
  gap: .25rem;
}

.gap-2 {
  gap: .5rem;
}

.gap-3 {
  gap: .75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.flex-1 {
  flex: 1;
}

.flex-col {
  flex-direction: column;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.ml-auto {
  margin-left: auto;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: .25rem;
}

.mt-2 {
  margin-top: .5rem;
}

.mt-3 {
  margin-top: .75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: .5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.p-0 {
  padding: 0;
}

.p-3 {
  padding: .75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.w-full {
  width: 100%;
}

.rounded {
  border-radius: var(--radius);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capitalize {
  text-transform: capitalize;
}

.uppercase {
  text-transform: uppercase;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 99px;
}

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

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