@import url('./variables.css');

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul,
ol {
  list-style: none;
}

main {
  display: block;
}

.page {
  min-height: 100vh;
  background-color: var(--bg-primary);
}

.page--light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--space-sm);
}

section {
  padding-block: var(--space-lg);
}

.section--tight {
  padding-block: var(--space-md);
}

.section--xl {
  padding-block: var(--space-xl);
}

.stack-md > * + * {
  margin-top: var(--space-md);
}

.stack-lg > * + * {
  margin-top: var(--space-lg);
}

.text-center {
  text-align: center;
}

.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;
}

/* Page-wide focus outline that remains visible on dark backgrounds */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-md);
  }

  section {
    padding-block: var(--space-xl);
  }
}


.section-title {
  font-family: var(--font-display);
  font-size: var(--text-section-title);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  text-transform: uppercase;
}

.stack-md .section-title + * {
  margin-top: var(--space-md);
}
