:root {
  color-scheme: light;
  --color-ink: #15171a;
  --color-muted: #5c626b;
  --color-line: #d8dde4;
  --color-bg: #ffffff;
  --color-soft: #f4f6f8;
  --color-panel: #ffffff;
  --color-brand: #b52222;
  --color-brand-dark: #7f1717;
  --color-field: #f9fafb;
  --color-success: #1f7a45;
  --color-error: #a61f2b;
  --shadow-soft: 0 14px 36px rgba(21, 23, 26, .10);
  --radius: 8px;
  --container: 1180px;
  --container-offset: 2rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(181, 34, 34, .45);
  text-underline-offset: .18em;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.9rem, 8vw, 2.45rem);
}

h2 {
  font-size: clamp(1.45rem, 6vw, 1.95rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - var(--container-offset)), var(--container));
  margin-inline: auto;
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius);
}

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

@media (min-width: 768px) {
  :root {
    --container-offset: 3rem;
  }

  h1 {
    font-size: clamp(2.6rem, 7vw, 4.15rem);
  }

  h2 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
  }
}

@media (min-width: 1100px) {
  :root {
    --container-offset: 4rem;
  }

  h1 {
    font-size: clamp(3.2rem, 5vw, 4.75rem);
  }

  h2 {
    font-size: clamp(2.15rem, 3.2vw, 3rem);
  }
}
