:root {
  --text-color: hsl(45 89% 60%);;
  --background-color: hsla(0, 0%, 8%, 1);
}

body {
  background-image: url("/images/1x/3Y6A6677.jpg");
  @media (min-width: 600px) {
    background-image: url("/images/2x/3Y6A6677.jpg");
  }
  background-position: center 0;
}

nav {
  text-shadow: black 0 0 5px;
}

#hero {
  padding-bottom: 4rem;

  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 12vw, var(--background-color) 22vw);

  .content-wrapper {
    align-items: center;
    width: 100%;
  }

  @media (max-width: 600px) {
    background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 0, var(--background-color) 15vw);
  }

  h1 {
    line-height: 1.2;
  }
}

article {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 1rem;

  & + article {
    margin-top: 1rem;
  }

  h1, h2, h3, h4 {
    margin: 0;
    padding: 0;
    line-height: 1;
  }
  p {
    margin: 0;
    padding: 0;
  }

  section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-block: 1rem;

    a:link {
      text-decoration: solid underline color(from var(--text-color) srgb r g b / 0.4) 4px;
    }

    h4 {
      a:link, a:visited {
        color: color(from var(--text-color) srgb r g b / 0.4);
        text-decoration-color: color(from var(--text-color) srgb r g b / 0.2);
      }
    }
  }

  header {
    display: flex;
    align-items: center;
    container-type: inline-size;
    gap: 1rem;

    @media (min-width: 600px) {
      gap: 2rem;
    }

    h2 {
      font-size: 5cqw;
    }

    time {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: var(--text-color);
      color: var(--background-color);
      text-transform: uppercase;
      line-height: 1;

      container-type: inline-size;

      width: 15cqw;
      height: 15cqw;

      min-width: 5rem;
      min-height: 5rem;

      font-family: "Google Sans Code", monospace;
      font-optical-sizing: auto;
      font-weight: 800;
      font-style: normal;
      font-size: 4cqw;

      span {
        &:nth-child(1) {
          font-size: 42cqw;
        }
        &:nth-child(2) {
          font-size: 25cqw;
        }
        &:nth-child(3) {
          font-size: 20cqw;
        }
      }
    }
  }
}

main {
  .content-wrapper {
    max-width: 896px;
  }

  li {
    color: color(from var(--text-color) srgb r g b / 0.6);
    margin-bottom: 0.65em;

    h3 {
      color: var(--text-color);
      font-size: 1.2em;
      margin: 0;
    }
    p {
      margin: 0;
      font-style: italic;

      time {
        font-style: normal;
        font-variant-numeric: tabular-nums;
      }
    }
  }
}


