/* 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;
}

/* end reset */

/* typeface */

@font-face {
  font-family: "abc-oracle";
  src: url("assets/ABCOracle-Book.woff2") format("woff2"),
    url("assets/ABCOracle-Book.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "abc-oracle";
  src: url("assets/ABCOracle-Medium.woff2") format("woff2"),
    url("assets/ABCOracle-Medium.woff") format("woff");
  font-weight: bold;
  font-display: swap;
}

body {
  color: white;
  background-color: white;
  font-family: abc-oracle;
  font-size: 0.6rem;
  text-rendering: optimizeLegibility;
  background-image: url(assets/images/osd_image_01.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100vh;
  line-height: normal;
}

p {
  text-align: justify;
}

a {
  color: white;
  text-decoration: none;
  opacity: 1;
  transition: 0.3s;
}

a:hover {
  opacity: 0.75;
}

/* layout */

.wrapper {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.wrapper::before {
  content: "";
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #000;
  opacity: 0.2;
  z-index: -1;
}

header {
  padding-top: 5%;
}

.titles {
  padding: 0 4%;
}

footer {
  padding: 0 4% 7% 4%;
}

.logo {
  display: flex;
  justify-content: center;
}

.logo svg {
  width: 150px;
  height: auto;
  padding-top: 5%;
}

h2.titles {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: -0.03rem;
}

.links {
  display: flex;
  justify-content: space-between;
  padding-top: 5%;
}

.background-wrapper {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  flex-basis: 0;
  z-index: -100;
}

.background {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  z-index: -100;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.showing {
  opacity: 1;
}

/* tablet and up */
@media (min-width: 768px) {
  body {
    font-size: 0.8rem;
  }

  header {
    padding-top: 3%;
  }

  h2.titles {
    padding: 0 3%;
    font-size: 1rem;
  }

  .logo svg {
    width: 180px;
    padding-top: 0;
  }
  footer {
    display: flex;
    justify-content: space-between;
    gap: 10%;
    padding: 0 3% 2% 3%;
  }

  footer .about {
    max-width: 759px;
  }

  footer .links {
    padding-top: 0;
    min-width: 400px;
  }
}
