/* reset.css */
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

/* style.css */
:root {
  --theme-main-bg: #b9dcff;
  --theme-sub-bg: #f2fbfe;
  --theme-text: #070f36;
  --theme-title: #8dc9f4;
  --font-sans: "Urbanist", sans-serif;
}

body {
  height: 100vh;
  overflow-x: hidden;
}

h1 {
  font-size: clamp(10vw, 250px, 20vw);
  color: var(--theme-title);
}

p {
  width: clamp(5vw, 250px, 80vw);
  font-size: clamp(1vw, 12px, 1.5vw);
  font-weight: 600;
  text-wrap: balance;
  color: var(--theme-text);
  line-height: 1.3;
}

section#content {
  font-family: var(--font-sans);
  color: var(--theme-text);
  position: fixed;
  inset: 0;
  padding-inline: min(10vw, 100px);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;

  & p:nth-of-type(2) {
    position: absolute;
    bottom: 5vh;
    left: min(40vw, 300px);
  }

  & p:nth-of-type(3) {
    position: absolute;
    top: 50%;
    right: 10vw;
  }
}

section#panes-container {
  width: 300vw;
  display: flex;
  height: 100vh;
}

.pane {
  position: relative;
  height: 100vh;
}

.pane:nth-of-type(2) {
  & img {
    aspect-ratio: 1/1;
    object-fit: cover;
    translate: -200% -70%;
    width: max(15vw, 300px);
  }
}
.pane:nth-of-type(3) {
  & img {
    translate: -150% -50%;
  }
}

img {
  position: absolute;
  right: 0;
  top: 50%;
  width: max(20vw, 400px);
  translate: -100% 0;
  border-radius: 12px;
}

svg {
  position: fixed;
  z-index: -1;
  width: 100%;
  height: 100%;
}
