/* Variables, fuente, estilos globales y accesibilidad. */

@font-face {
  font-family: Inter;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070d10;
  --text: #edf0f5;
  --mint: #20e4bc;
  --font: Inter,Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse at 75% 42%,#06302735,transparent 46%);
}

button,select {
  font: inherit;
}

button,a,select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,a:focus-visible,select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}

.container {
  width: calc(100% - 80px);
  max-width: 1380px;
  margin-inline: auto;
}

/* Alineación de los párrafos de contenido en todas las páginas. */
.hero-description,
.page-description,
.principle-copy p,
.history-copy > p,
.project-copy > p,
.member-description {
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  overflow-wrap: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

h1 {
  font-size: 52px;
  line-height: 1.045;
  letter-spacing: -1.6px;
  font-weight: 750;
  margin: 0 0 21px;
}

h1 span {
  color: var(--mint);
  text-shadow: 0 0 20px #1debb90a;
}

@media(min-width:1600px) {
  .container {
    width: calc(100% - 292px);
  }
}

@media(max-width:1390px) {
  h1 {
    font-size: 49px;
  }
}

@media(max-width:1100px) {
  .container {
    width: calc(100% - 48px);
  }

  h1 {
    font-size: 45px;
  }
}

@media(max-width:800px) {
  h1 {
    font-size: 49px;
    line-height: 1.07;
  }
}

@media(max-width:480px) {
  .container {
    width: calc(100% - 36px);
  }

  h1 {
    font-size: clamp(34px,9.9vw,47px);
    letter-spacing: -1.1px;
    line-height: 1.075;
    margin-bottom: 22px;
  }
}

main {
  overflow: clip;
}

@media(min-width:801px) {
  h1 {
    margin-bottom: 17px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*:before,*:after {
    transition: none!important;
    animation: none!important;
  }
}
