:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --surface: #111111;
  --text: #f4f2ed;
  --muted: #9a9995;
  --line: rgba(244, 242, 237, 0.18);
  --soft-line: rgba(244, 242, 237, 0.1);
  --header-height: 96px;
  --page-gutter: clamp(20px, 3.2vw, 54px);
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  border: 0;
}

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

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

::selection {
  background: var(--text);
  color: var(--background);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--background);
  font-size: 13px;
  font-weight: 600;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: none;
}
