/* 1. Apply a natural box layout model to all elements.
     This is a core part of the "least CSS" philosophy.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Set smooth scrolling for anchor links.
  3. Improve text rendering.
*/
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
  3. Remove default margin.
  4. Set user-requested background and a readable default text color.
  5. Use a modern, system-default font stack.
*/
body {
  margin: 0;
  min-height: 100vh;
  background-color: #000;
  color: #eee;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

/*
  4. Make images responsive by default.
*/
img,
picture {
  display: block;
  max-width: 100%;
}

/* Helper class to define our "page" */
.page-section {
    /* Fill the entire viewport height */
    min-height: 100vh;
    
    /* Center content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    padding: 1rem;
    position: relative;
}

/* Style for the logo on the home page */
#home-logo {
    max-width: 90%;
    width: 600px;
    height: auto;
    animation: fadeIn 1.2s ease-in;
}

/* Subtle fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    #home-logo {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* The non-obvious link to the "about" page */
.hidden-link {
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: #000;
    text-decoration: none;
    font-size: 2rem;
}

/* Slight reveal on hover just to make it usable */
.hidden-link:hover {
    color: #111;
}

/* The content on the "about" page */
#about-content {
    color: #000;
    max-width: 60ch;
    text-align: center;
}

/* The hidden link back to the home page */
#about-content a {
    color: #000;
    text-decoration: underline;
    display: block;
    margin-top: 2rem;
}

#about-content a:hover {
    color: #111;
}
