@import url("./fonts/sn.css");

:root {
  font-family:
    "SN Pro",
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  font-weight: 400;
  font-size: var(--nano-font-size);
  color: var(--nano-color);

  --nano-color: #cdd6f4;
  --nano-accent-color: #f5c2e7;
  --nano-highlight-accent-color: rgb(from #f5c2e7 r g b / 0.6);
  --nano-font-size: 16px;
  --nano-background-color: #1e1e2e;
  --nano-secondary-background-color: #313244;
  --nano-tetriary-background-color: #45475a;
}

@media (min-width: 1000px) {
  body * {
    max-width: 880px;
  }
}

@media (min-width: 800px) and (max-width: 1000px) {
  body * {
    max-width: 680px;
  }
}

@media (min-width: 600px) and (max-width: 800px) {
  :root {
    --nano-font-size: 18px;
  }

  body * {
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  :root {
    --nano-font-size: 20px;
  }
}

* {
  padding: 0;
  margin: 0;
}

body {
  min-height: 100%;
  min-width: 100%;

  background-color: var(--nano-background-color);
}

main {
  gap: 1rem;
  margin: 2rem auto;

  background-color: var(--nano-secondary-background-color);
}

article > *:not(footer, header) {
  padding: 0 1rem;
}

article > *:not(:last-child) {
  margin-bottom: 1rem;
}

a {
  color: var(--nano-accent-color);
  text-decoration: none;
}

a:hover {
  color: var(--nano-color);
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-color: var(--nano-accent-color);
  text-decoration-thickness: 3px;
  background-color: var(--nano-highlight-accent-color);
}

ul[aria-label="Contact"] {
  display: grid;
  grid-template-columns: auto auto;
  margin-bottom: 1rem;

  > * {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  img {
    width: 2rem;
    max-width: 4rem;
  }
}

.container {
  padding: 1rem;
}

.miniprofile {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;

  min-height: 10rem;
  max-height: 20rem;
}

.miniprofile hgroup {
  position: absolute;
  top: 30%;
  transform: translateY(-30%);
  margin-left: 9.5rem;

  max-width: fit-content;
  max-height: fit-content;
}

.miniprofile div.meta {
  position: absolute;
  top: 0;
  z-index: 3;

  height: 100%;
  min-height: 100%;
  min-width: 100%;
  max-width: 100%;
}

.miniprofile img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1rem;

  min-height: 75%;
  max-height: 75%;
}

.miniprofile img.frame {
  left: calc(1rem - 0.75rem);

  min-height: calc(75% + 1.5rem);
  max-height: calc(75% + 1.5rem);
}

.miniprofile video {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;

  min-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.miniprofile div.blur {
  position: absolute;
  z-index: 2;
  top: 40%;

  min-height: 60%;
  max-height: 60%;
  min-width: 100%;
  max-width: 100%;

  background: linear-gradient(
    to bottom,
    rgba(24, 26, 30, 0.85) 5%,
    rgba(24, 26, 30, 0.65) 95%
  );
  backdrop-filter: blur(10px);
}
