:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-strong: #eef5ff;
  --text: #172033;
  --muted: #5c677a;
  --line: #dbe4ef;
  --accent: #0d63ce;
  --accent-strong: #084a9d;
  --accent-soft: #e8f2ff;
  --secondary: #10233f;
  --focus: #ffb020;
  --shadow: 0 20px 55px rgba(18, 35, 63, 0.12);
  --soft-shadow: 0 10px 28px rgba(18, 35, 63, 0.08);
  --shadow-alpha: 0.12;
  --radius: 12px;
  --container: 1160px;
  --content-max-width: 760px;
  --heading-scale: 1;
  --heading-weight: 650;
  --section-spacing: 1;
  --section-padding-top: 1;
  --section-padding-bottom: 1;
  --body-line-height: 1.6;
  --letter-spacing: 0px;
  --button-size: 1;
  --navigation-size: 0.92rem;
  --hero-height: 1;
  --profile-card-width: 1;
  --project-card-width: 305px;
  --image-ratio: 16 / 9;
  --font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  font-family: var(--font-family);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8fbff 0, #ffffff 420px),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: var(--body-line-height);
  letter-spacing: var(--letter-spacing);
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  transform: translateY(-160%);
  background: var(--text);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
}

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

h1,
h2,
h3 {
  line-height: 1.14;
  margin: 0;
  letter-spacing: 0;
  font-weight: var(--heading-weight);
}

h1 {
  font-size: calc(clamp(2.35rem, 6vw, 4.45rem) * var(--heading-scale));
  max-width: 930px;
}

h2 {
  font-size: calc(clamp(1.75rem, 3vw, 2.65rem) * var(--heading-scale));
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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