/* ========================================================================== 
   Jumalenin Core
   Identidad visual común
   ========================================================================== */

:root {
  --jm-bg: #f5f7f8;
  --jm-bg-soft: #eef2f3;
  --jm-surface: #ffffff;
  --jm-surface-soft: #f8fafb;

  --jm-text: #1f2933;
  --jm-text-muted: #5f6f7a;
  --jm-text-inverse: #ffffff;

  --jm-primary: #245b5f;
  --jm-primary-dark: #183f42;
  --jm-primary-soft: #d9e8e9;

  --jm-accent: #c28f2c;
  --jm-accent-dark: #8f681d;
  --jm-accent-soft: #f3e5c6;

  --jm-border: #d7dee2;
  --jm-border-strong: #b8c4ca;

  --jm-shadow-sm: 0 4px 14px rgba(31, 41, 51, 0.06);
  --jm-shadow-md: 0 10px 28px rgba(31, 41, 51, 0.10);

  --jm-radius-sm: 6px;
  --jm-radius-md: 12px;
  --jm-radius-lg: 20px;

  --jm-font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jm-font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --jm-container: 1120px;
  --jm-space-section: clamp(3rem, 7vw, 5.5rem);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--jm-bg);
  color: var(--jm-text);
  font-family: var(--jm-font-base);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--jm-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--jm-primary-dark); }

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  color: var(--jm-text);
  font-family: var(--jm-font-heading);
  font-weight: 750;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.015em;
}

p { margin: 0 0 1rem; }
ul, ol { margin-top: 0; }
strong { font-weight: 750; }

:focus-visible {
  outline: 3px solid var(--jm-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--jm-primary-soft);
  color: var(--jm-primary-dark);
}
