<template>
  <div class="layout">
    <header class="header">
      Header
    </header>

    <main class="main">
      <div class="container">
        <slot />
      </div>
    </main>

    <footer class="footer">
      Footer
    </footer>
  </div>
</template>

<style lang="scss" scoped>
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  --ui-container: 100%;
  max-width: 100%;
  margin: 48px auto 100px;

  @media (max-width: 1280px) {
    margin: 24px auto 52px;
    padding: 0 24px;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main {
  flex: 1;
  margin-top: 64px;
}

.footer {
  margin-top: auto;
}
</style>
