/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-primary);
  background: linear-gradient(160deg, #fafafa 0%, #f5eaea 30%, #fff3ec 65%, #f0f0f8 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  max-width: 68ch;
}

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

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

ul, ol {
  list-style: none;
}

main {
  position: relative;
  flex: 1;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-3);
  background: var(--color-red);
  color: #fff;
  padding: 0.5em 1em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: var(--z-skip);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
}

/* Global focus styles */
:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
}

/* Visually hidden (screen reader only) */
.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;
}
