:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --color-primary: #0f172a;       /* Deep Slate Navy */
  --color-primary-light: #1e293b;
  --color-primary-dark: #020617;
  --color-accent: #dc2626;        /* High-Visibility Emergency Red */
  --color-accent-hover: #b91c1c;
  --color-action: #ea580c;        /* High-Visibility Emergency Orange */
  --color-water: #0284c7;         /* Clean Aquatic Blue */
  --color-water-light: #e0f2fe;
  --color-water-dark: #0369a1;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-surface-muted: #f1f5f9;
  --color-border: #e2e8f0;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #64748b;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 100% Screen Fit & Zero Slide Bar Guarantee */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-surface-subtle);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-wrap: break-word;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); margin-bottom: 0.85rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.6rem); margin-bottom: 0.5rem; }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p {
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.075rem);
  line-height: 1.7;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

a {
  color: var(--color-water-dark);
  text-decoration: none;
  transition: var(--transition);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: inline-block;
  vertical-align: middle;
}

/* Containers */
.site-container, .container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.site-container--narrow {
  max-width: 900px;
}
