/* ------------------------- Style Guide ® Code by Sergio & Pablo -------------------------------------------------- */

/* ------------------------- Colors -------------------------------------------------- */

:root {
  --color-dark: #161616;
  --color-light: #ffffff;
  --color-gray: #909090;
  --color-white: #ffffff;

  --color-border: rgba(28, 29, 32, 0.175);
  --color-border-solid: #bfbfbf;
  --color-border-light: #fdfdfd;
  --color-border-solid-light: #545557;

  --color-text: #909090;
  --color-text-light: #fff;

  --animation-primary: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  --animation-fast: all 0.3s cubic-bezier(0.7, 0, 0.3, 1);
  --animation-smooth: all 0.7s cubic-bezier(0.7, 0, 0.3, 1);
  --animation-slow: all 0.9s cubic-bezier(0.7, 0, 0.3, 1);

  --section-padding: clamp(5em, 21vh, 12em);
  --container-padding: clamp(2.5em, 8vw, 8em);
  --gap-padding: clamp(1.5em, 4vw, 2.5em);

  --menu-width: 4.5rem;
}

@media screen and (max-width: 1200px) {
  :root {
    --container-padding: 6vw;
  }
}

@media screen and (max-width: 720px) {
  :root {
    --section-padding: 12vh;
  }
}

@media screen and (max-width: 540px) {
  :root {
    --color-border: rgba(28, 29, 32, 0.225);
    --color-border-light: rgba(255, 255, 255, 0.225);
    --container-padding: clamp(1.25em, 4vw, 2.5em);
    --section-padding: max(2.5em, 12vh);
  }
}

/* ------------------------- Body -------------------------------------------------- */

*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
li,
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: Helvetica, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 450;
  font-style: normal;
  font-size: 16px;
  font-size: clamp(16px, 1.2vw, 19px);
  background-color: var(--color-dark);
}

html,
body {
  width: 100%;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background-color: var(--color-dark);
}

/* Selection */
::selection {
  background-color: var(--color-dark);
  color: var(--color-white);
  text-shadow: none;
}
::-moz-selection {
  background-color: var(--color-dark);
  color: var(--color-white);
  text-shadow: none;
}

canvas,
img,
video {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

svg {
  max-width: none;
  height: auto;
  box-sizing: border-box;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/* ------------------------- Typography -------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
ul,
ol,
span,
strong,
em {
  padding: 0;
  margin: 0;
  font-style: normal;
  font-weight: 450;
  letter-spacing: normal;
}
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
p:last-child,
p.big:last-child,
p.small:last-child,
a:last-child,
strong:last-child {
  margin-bottom: 0;
}

h1 {
  font-family: Helvetica, sans-serif;
  font-weight: 450;
  font-style: normal;
  font-size: clamp(3.25em, 7vw, 8em);
  line-height: 1.065;
  margin-bottom: 1em;
  font-size: calc(clamp(3.25em, 7vw, 8em) * 0.875);
}

h2 {
  font-family: Helvetica, sans-serif;
  font-weight: 450;
  font-style: normal;
  font-size: calc(clamp(3.25em, 5vw, 4.5em) * 0.75);
  line-height: 1.065;
  margin-bottom: 0.66em;
}

h3 {
  font-family: Helvetica, sans-serif;
  font-weight: 450;
  font-style: normal;
  font-size: clamp(2.66em, 4.65vw, 5.32em);
  line-height: 1.065;
  margin-bottom: 1em;
}

h4 {
  font-family: Helvetica, sans-serif;
  font-weight: 450;
  font-style: normal;
  font-size: clamp(1.55em, 2.3vw, 2.5em);
  line-height: 1.45;
  margin-bottom: 1em;
}

h5 {
  font-family: Helvetica, sans-serif;
  font-weight: 450;
  font-style: normal;
  font-size: 0.6em;
  line-height: 1.065;
  margin-bottom: 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

p {
  font-family: Helvetica, sans-serif;
  font-weight: 450;
  font-style: normal;
  color: var(--text);
  font-size: 1em;
  line-height: 1.66;
  margin-bottom: 1em;
}

p.small {
  font-size: 0.8em;
  line-height: 1.75;
  letter-spacing: 0.015em;
}

p.big {
  font-size: 1.2em;
}

strong {
  font-weight: 800;
}

a {
  color: var(--color-dark);
  text-decoration: none;
}

p a {
  text-decoration: underline;
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark p {
  color: var(--color-white);
}

/* ------------------------- Main Elements -------------------------------------------------- */

.section {
  display: block;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
}

.section-wrap {
  display: block;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}

.section.full-height {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section.no-padding {
  padding-top: unset;
  padding-bottom: unset;
}

.container {
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  max-width: 100em;
}

.container.large {
  padding-left: var(--gap-padding);
  padding-right: var(--gap-padding);
}

.container.medium {
  padding-left: calc(var(--container-padding) * 2);
  padding-right: calc(var(--container-padding) * 2);
}

.container.small {
  padding-left: calc(var(--container-padding) * 3);
  padding-right: calc(var(--container-padding) * 3);
}

.container.no-padding {
  padding-left: unset;
  padding-right: unset;
}

.row {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.row.no-flex {
  display: block;
}

.row.no-wrap {
  flex-wrap: nowrap;
}

.flex-col {
  display: block;
  width: 100%;
  order: 2;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

img.overlay,
video.overlay {
  object-fit: cover;
}

.line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  margin-top: var(--gap-padding);
  margin-bottom: var(--gap-padding);
}

.stripe {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

.theme-dark .stripe {
  background-color: var(--color-border-light);
}

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@media screen and (max-width: 540px) {
  .section.full-height {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    max-height: 100vh;
  }

  .container.medium,
  .container.small {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
}
