/* =============================================
   BASE.CSS — CSS Custom Properties + Reset + Base Styles
   SM Technical Consultancy
   ============================================= */

/* === CSS CUSTOM PROPERTIES (DESIGN TOKENS) === */
:root {
  /* Colours — Navy & Blue palette */
  --color-navy:         #0D1B2E;
  --color-navy-mid:     #132338;
  --color-navy-light:   #1A2F4A;
  --color-slate:        #7FA8CC;
  --color-white:        #FFFFFF;
  --color-off-white:    #EDF3FA;
  --color-accent:       #2E8BC0;
  --color-accent-hover: #1E6F9F;
  --color-accent-light: #E1F0FA;
  --color-success:      #28A745;
  --color-error:        #DC3545;
  --color-border:       #1E3852;
  --color-border-light: #C5D8EA;

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;

  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-md:   1.125rem;
  --font-size-lg:   1.25rem;
  --font-size-xl:   1.5rem;
  --font-size-2xl:  2rem;
  --font-size-3xl:  2.5rem;
  --font-size-hero: 3.25rem;

  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  --line-height-tight: 1.2;
  --line-height-body:  1.7;

  /* Spacing (8px base grid) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 8rem;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card:       0 2px 12px rgba(0, 0, 0, 0.18);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.28);
  --shadow-nav:        0 2px 16px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width-content: 1200px;
  --max-width-text:    760px;
  --nav-height:        80px;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-navy);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* === FOCUS STYLES (ACCESSIBILITY) === */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* === BASE TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-4);
}

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

strong {
  font-weight: var(--font-weight-semibold);
}

/* === PROSE LISTS (inside article/detail content) === */
.prose ul, .prose ol {
  list-style: disc;
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: var(--space-2);
  line-height: var(--line-height-body);
}

.prose h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-xl);
}

.prose h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-lg);
}

.prose p + p {
  margin-top: 0;
}
