@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #f5f5f2;
  --color-surface: #ffffff;
  --color-surface-alt: #eceee8;
  --color-text: #1d2226;
  --color-text-muted: #5b6470;
  --color-border: #dde1dc;
  --color-primary: #1f3a4d;
  --color-primary-dark: #142b3a;
  --color-primary-soft: #e4eaee;
  --color-accent: #6f8f79;
  --color-accent-dark: #566f5f;
  --color-accent-soft: #e5ebe4;

  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(29, 34, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(29, 34, 38, 0.08);
  --shadow-lg: 0 20px 48px rgba(29, 34, 38, 0.12);

  --container-width: 1160px;
}

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

* {
  margin: 0;
}

html {
  background: var(--color-bg);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary-dark);
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  color: var(--color-text);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

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

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