/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
  font-family: "Apercu";
  src: url("./fonts/ApercuMedium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apercu";
  src: url("./fonts/ApercuBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

h1,
p {
  font-size: inherit;
  font-weight: inherit;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   Body
   ========================================================================== */

body {
  font-family: "Apercu", system-ui, sans-serif;
  min-height: 100dvh;
  color: black;
  background-color: white;
  padding: 14px;
  font-size: 14px;
  line-height: 14px;
}

/* ==========================================================================
   Main
   ========================================================================== */

main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
  display: flex;
  justify-content: space-between;
  /* margin-bottom: 100px; */
  margin-bottom: 30px;
}

header h1 {
  flex: 1;
  font-weight: bold;
  margin-right: 14px;
}

header nav ul {
  text-align: right;
}

/* ==========================================================================
   Content
   ========================================================================== */

main > div {
  /* margin-bottom: 100px; */
  margin-bottom: 30px;
}

main > div > * + * {
  margin-top: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

footer p {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

footer div {
  flex: 1;
}

footer svg {
  display: block;
  /* width: 80%; */
  width: 50%;
  height: auto;
}

/* ==========================================================================
   Link
   ========================================================================== */

.link {
  opacity: 0.4;
  transition-duration: 250ms;
}

/* ==========================================================================
   Slideshow
   ========================================================================== */

[data-slideshow] {
  position: relative;
  aspect-ratio: 3 / 4;
  isolation: isolate;
}

[data-slideshow] img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

[data-slideshow] img[data-active] {
  z-index: 10;
}

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1024px) {
  body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: 100dvh;
    width: 100vw;
    font-size: 18px;
    line-height: 18px;
  }

  main {
    height: 100%;
    width: 100%;
  }

  header {
    margin-bottom: 30px;
  }

  header h1 {
    margin-right: 30px;
  }

  main > div {
    margin-bottom: 30px;
  }

  main > div > * + * {
    margin-top: 18px;
  }

  footer {
    gap: 30px;
    margin-bottom: 0;
  }

  footer svg {
    width: 50%;
    height: auto;
  }

  .link:hover {
    opacity: 1;
  }

  [data-slideshow] {
    height: 100%;
    width: 100%;
    aspect-ratio: auto;
  }
}
