/* ZIOS design system — foundations */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;

  --color-bg: #f2f7f9;
  --color-bg-deep: #e8f1f5;
  --color-surface: #ffffff;
  --color-surface-soft: #f7fafb;
  --color-surface-tint: #e8f6fa;

  --color-dark: #092431;
  --color-text: #294653;
  --color-muted: #687f89;
  --color-faint: #8fa2aa;

  --color-blue: #0a91bd;
  --color-blue-dark: #05627f;
  --color-blue-soft: #e3f5fa;
  --color-accent: #f06f5b;
  --color-accent-soft: #fff0ec;
  --color-gold: #dfa933;
  --color-green: #14845d;
  --color-red: #c14943;
  --color-white: #ffffff;

  --color-border: #d7e3e8;
  --color-border-strong: #b7cbd3;
  --color-focus: rgba(10, 145, 189, 0.34);

  --shadow-xs: 0 1px 2px rgba(9, 36, 49, 0.06);
  --shadow-sm: 0 10px 30px rgba(9, 36, 49, 0.08);
  --shadow-md: 0 20px 55px rgba(9, 36, 49, 0.13);
  --shadow-lg: 0 30px 90px rgba(5, 31, 43, 0.2);

  --radius-xs: 8px;
  --radius-sm: 11px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --space-1: 0.375rem;
  --space-2: 0.625rem;
  --space-3: 0.875rem;
  --space-4: 1.125rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --container: 1180px;
  --container-wide: 1480px;
  --header-height: 76px;
  --font-sans: "Aptos", "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;

  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 2%, rgba(10, 145, 189, 0.08), transparent 26rem),
    var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: rgba(10, 145, 189, 0.2);
  color: var(--color-dark);
}

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

:target {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p,
li,
td,
th,
dd {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.72em;
  color: var(--color-dark);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 5.4rem);
}

h2 {
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
}

h4 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

small {
  font-size: 0.875rem;
}

strong,
b {
  color: var(--color-dark);
  font-weight: 780;
}

hr {
  margin: var(--space-7) 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

code,
kbd,
samp {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

kbd {
  padding: 0.15em 0.45em;
  border: 1px solid var(--color-border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-dark);
  font-size: 0.82em;
}

.page-frame {
  min-height: calc(100vh - var(--header-height));
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5000;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 760;
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--color-bg-deep);
  border-radius: var(--radius-pill);
  background: #9db5bf;
}

::-webkit-scrollbar-thumb:hover {
  background: #7897a3;
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  body {
    font-size: 15.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  button,
  .button {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .content,
  .page-shell {
    width: 100% !important;
    padding: 0 !important;
  }
}
