:root {
  --background-colour: #000;
  --text-colour: #fff;
  --greyed-colour: #ccc;
  --main-font-size: 3rem;
  --reduced-font-size: 2.6rem;
  --caption-font-size: 1.6rem;
  --h1-font-size: 4rem;
  --gutter-size: 4rem;
}

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


html {
  margin: 0;
  padding: 0;
  font-size: 62.5%;
}

body {
  background-color: var(--background-colour);
  color: var(--text-colour);
  margin: 0;
  padding: 0;
}

article {
}

section {
  position: relative;
  scroll-snap-type: block mandatory;
  scroll-snap-points: repeat(100vh);
}

section[data-background]::before {
  position: sticky;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--gutter-size);
  text-align: center;
  content: attr(data-background);
  font-size: var(--caption-font-size);
  color: var(--greyed-colour);
  background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  z-index: 10;
  margin-bottom: calc(0px - var(--gutter-size) - var(--caption-font-size) -  var(--gutter-size));
}

section > * {
  min-height: 100vh;
  /* position: relative; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--gutter-size);
  scroll-snap-align: start;
}

section[data-background] > * {
  /* transform: translateY(calc(0px - var(--gutter-size) - var(--caption-font-size) -  var(--gutter-size))); */
}

section > h1 {
  font-size: var(--h1-font-size);
}

section > p {
  font-size: var(--main-font-size);
  line-height: 1.5;
}
